diff --git a/.gitignore b/.gitignore
index 43995bd..770f9a1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -64,3 +64,6 @@ target/
#Ipython Notebook
.ipynb_checkpoints
+
+# PyCharm
+.idea/
\ No newline at end of file
diff --git a/README.md b/README.md
index cbbbbc8..805986a 100644
--- a/README.md
+++ b/README.md
@@ -20,11 +20,11 @@ If the python package is hosted on a repository, you can install directly using:
```sh
pip install git+https://github.com/clevermaps/cm-python-openapi-sdk.git
```
-(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git`)
+(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/clevermaps/cm-python-openapi-sdk.git`)
Then import the package:
```python
-import openapi_client
+import cm_python_openapi_sdk
```
### Setuptools
@@ -38,7 +38,7 @@ python setup.py install --user
Then import the package:
```python
-import openapi_client
+import cm_python_openapi_sdk
```
### Tests
@@ -51,31 +51,42 @@ Please follow the [installation procedure](#installation--usage) and then run th
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.AuthenticationApi(api_client)
- token_request_dto = openapi_client.TokenRequestDTO() # TokenRequestDTO | (optional)
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ attribute_style_dto = cm_python_openapi_sdk.AttributeStyleDTO() # AttributeStyleDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
- # Get bearer token
- api_response = api_instance.get_token(token_request_dto=token_request_dto)
- print("The response of AuthenticationApi->get_token:\n")
+ # Creates new attribute style
+ api_response = api_instance.create_attribute_style(project_id, attribute_style_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of AttributeStylesApi->create_attribute_style:\n")
pprint(api_response)
except ApiException as e:
- print("Exception when calling AuthenticationApi->get_token: %s\n" % e)
+ print("Exception when calling AttributeStylesApi->create_attribute_style: %s\n" % e)
```
@@ -85,12 +96,34 @@ All URIs are relative to *https://staging.dev.clevermaps.io/rest*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*AttributeStylesApi* | [**create_attribute_style**](docs/AttributeStylesApi.md#create_attribute_style) | **POST** /projects/{projectId}/md/attributeStyles | Creates new attribute style
+*AttributeStylesApi* | [**delete_attribute_style_by_id**](docs/AttributeStylesApi.md#delete_attribute_style_by_id) | **DELETE** /projects/{projectId}/md/attributeStyles/{id} | Deletes attribute style by id
+*AttributeStylesApi* | [**get_all_attribute_styles**](docs/AttributeStylesApi.md#get_all_attribute_styles) | **GET** /projects/{projectId}/md/attributeStyles | Returns paged collection of all Attribute Styles in a project
+*AttributeStylesApi* | [**get_attribute_style_by_id**](docs/AttributeStylesApi.md#get_attribute_style_by_id) | **GET** /projects/{projectId}/md/attributeStyles/{id} | Gets attribute style by id
+*AttributeStylesApi* | [**update_attribute_style_by_id**](docs/AttributeStylesApi.md#update_attribute_style_by_id) | **PUT** /projects/{projectId}/md/attributeStyles/{id} | Updates attribute style by id
*AuthenticationApi* | [**get_token**](docs/AuthenticationApi.md#get_token) | **POST** /oauth/token | Get bearer token
*DashboardsApi* | [**create_dashboard**](docs/DashboardsApi.md#create_dashboard) | **POST** /projects/{projectId}/md/dashboards | Creates new dashboard
*DashboardsApi* | [**delete_dashboard_by_id**](docs/DashboardsApi.md#delete_dashboard_by_id) | **DELETE** /projects/{projectId}/md/dashboards/{id} | Deletes dashboard by id
*DashboardsApi* | [**get_all_dashboards**](docs/DashboardsApi.md#get_all_dashboards) | **GET** /projects/{projectId}/md/dashboards | Returns paged collection of all Dashboards in a project
*DashboardsApi* | [**get_dashboard_by_id**](docs/DashboardsApi.md#get_dashboard_by_id) | **GET** /projects/{projectId}/md/dashboards/{id} | Gets dashboard by id
*DashboardsApi* | [**update_dashboard_by_id**](docs/DashboardsApi.md#update_dashboard_by_id) | **PUT** /projects/{projectId}/md/dashboards/{id} | Updates dashboard by id
+*DataPermissionsApi* | [**create_data_permission**](docs/DataPermissionsApi.md#create_data_permission) | **POST** /projects/{projectId}/md/dataPermissions | Creates new data permission
+*DataPermissionsApi* | [**delete_data_permission_by_id**](docs/DataPermissionsApi.md#delete_data_permission_by_id) | **DELETE** /projects/{projectId}/md/dataPermissions/{id} | Deletes data permission by id
+*DataPermissionsApi* | [**get_all_data_permissions**](docs/DataPermissionsApi.md#get_all_data_permissions) | **GET** /projects/{projectId}/md/dataPermissions | Returns paged collection of all data permissions in a project
+*DataPermissionsApi* | [**get_data_permission_by_id**](docs/DataPermissionsApi.md#get_data_permission_by_id) | **GET** /projects/{projectId}/md/dataPermissions/{id} | Gets data permission by id
+*DataPermissionsApi* | [**update_data_permission_by_id**](docs/DataPermissionsApi.md#update_data_permission_by_id) | **PUT** /projects/{projectId}/md/dataPermissions/{id} | Updates data permission by id
+*DataSourcesApi* | [**get_all_data_sources**](docs/DataSourcesApi.md#get_all_data_sources) | **GET** /projects/{projectId}/md/dataSources | Return list of all unique data sources specified in datasets of a project
+*DatasetsApi* | [**create_dataset**](docs/DatasetsApi.md#create_dataset) | **POST** /projects/{projectId}/md/datasets | Creates new dataset
+*DatasetsApi* | [**delete_dataset_by_id**](docs/DatasetsApi.md#delete_dataset_by_id) | **DELETE** /projects/{projectId}/md/datasets/{id} | Deletes dataset by id
+*DatasetsApi* | [**generate_dataset_from_csv**](docs/DatasetsApi.md#generate_dataset_from_csv) | **POST** /projects/{projectId}/md/datasets/generateDataset | Generate dataset from CSV
+*DatasetsApi* | [**get_all_datasets**](docs/DatasetsApi.md#get_all_datasets) | **GET** /projects/{projectId}/md/datasets | Returns paged collection of all datasets in a project
+*DatasetsApi* | [**get_dataset_by_id**](docs/DatasetsApi.md#get_dataset_by_id) | **GET** /projects/{projectId}/md/datasets/{id} | Gets dataset by id
+*DatasetsApi* | [**update_dataset_by_id**](docs/DatasetsApi.md#update_dataset_by_id) | **PUT** /projects/{projectId}/md/datasets/{id} | Updates dataset by id
+*ExportsApi* | [**create_export**](docs/ExportsApi.md#create_export) | **POST** /projects/{projectId}/md/exports | Creates new export
+*ExportsApi* | [**delete_export_by_id**](docs/ExportsApi.md#delete_export_by_id) | **DELETE** /projects/{projectId}/md/exports/{id} | Deletes export by id
+*ExportsApi* | [**get_all_exports**](docs/ExportsApi.md#get_all_exports) | **GET** /projects/{projectId}/md/exports | Returns paged collection of all Exports in a project
+*ExportsApi* | [**get_export_by_id**](docs/ExportsApi.md#get_export_by_id) | **GET** /projects/{projectId}/md/exports/{id} | Gets export by id
+*ExportsApi* | [**update_export_by_id**](docs/ExportsApi.md#update_export_by_id) | **PUT** /projects/{projectId}/md/exports/{id} | Updates export by id
*IndicatorDrillsApi* | [**create_indicator_drill**](docs/IndicatorDrillsApi.md#create_indicator_drill) | **POST** /projects/{projectId}/md/indicatorDrills | Creates new Indicator Drill.
*IndicatorDrillsApi* | [**delete_indicator_drill_by_id**](docs/IndicatorDrillsApi.md#delete_indicator_drill_by_id) | **DELETE** /projects/{projectId}/md/indicatorDrills/{id} | Deletes indicator drill by id
*IndicatorDrillsApi* | [**get_all_indicator_drills**](docs/IndicatorDrillsApi.md#get_all_indicator_drills) | **GET** /projects/{projectId}/md/indicatorDrills | Returns paged collection of all Indicator Drills in a project.
@@ -101,11 +134,57 @@ Class | Method | HTTP request | Description
*IndicatorsApi* | [**get_all_indicators**](docs/IndicatorsApi.md#get_all_indicators) | **GET** /projects/{projectId}/md/indicators | Returns paged collection of all Indicators in a project.
*IndicatorsApi* | [**get_indicator_by_id**](docs/IndicatorsApi.md#get_indicator_by_id) | **GET** /projects/{projectId}/md/indicators/{id} | Gets indicator by id
*IndicatorsApi* | [**update_indicator_by_id**](docs/IndicatorsApi.md#update_indicator_by_id) | **PUT** /projects/{projectId}/md/indicators/{id} | Updates indicator by id
+*IsochroneApi* | [**get_isochrone**](docs/IsochroneApi.md#get_isochrone) | **GET** /isochrone |
+*JobsApi* | [**get_job_status**](docs/JobsApi.md#get_job_status) | **GET** /jobs/{jobId} |
+*JobsApi* | [**get_jobs_history**](docs/JobsApi.md#get_jobs_history) | **GET** /jobs/history |
+*JobsApi* | [**submit_job_execution**](docs/JobsApi.md#submit_job_execution) | **POST** /jobs |
*MapsApi* | [**create_map**](docs/MapsApi.md#create_map) | **POST** /projects/{projectId}/md/maps | Creates new Map.
*MapsApi* | [**delete_map_by_id**](docs/MapsApi.md#delete_map_by_id) | **DELETE** /projects/{projectId}/md/maps/{id} | Deletes map by id
*MapsApi* | [**get_all_maps**](docs/MapsApi.md#get_all_maps) | **GET** /projects/{projectId}/md/maps | Returns paged collection of all Maps in a project.
*MapsApi* | [**get_map_by_id**](docs/MapsApi.md#get_map_by_id) | **GET** /projects/{projectId}/md/maps/{id} | Gets map by id
*MapsApi* | [**update_map_by_id**](docs/MapsApi.md#update_map_by_id) | **PUT** /projects/{projectId}/md/maps/{id} | Updates map by id
+*MarkerSelectorsApi* | [**create_marker_selector**](docs/MarkerSelectorsApi.md#create_marker_selector) | **POST** /projects/{projectId}/md/markerSelectors | Creates new Marker Selector.
+*MarkerSelectorsApi* | [**delete_marker_selector_by_id**](docs/MarkerSelectorsApi.md#delete_marker_selector_by_id) | **DELETE** /projects/{projectId}/md/markerSelectors/{id} | Deletes marker selector by id
+*MarkerSelectorsApi* | [**get_all_marker_selectors**](docs/MarkerSelectorsApi.md#get_all_marker_selectors) | **GET** /projects/{projectId}/md/markerSelectors | Returns paged collection of all Marker Selectors in a project.
+*MarkerSelectorsApi* | [**get_marker_selector_by_id**](docs/MarkerSelectorsApi.md#get_marker_selector_by_id) | **GET** /projects/{projectId}/md/markerSelectors/{id} | Gets marker selector by id
+*MarkerSelectorsApi* | [**update_marker_selector_by_id**](docs/MarkerSelectorsApi.md#update_marker_selector_by_id) | **PUT** /projects/{projectId}/md/markerSelectors/{id} | Updates marker selector by id
+*MarkersApi* | [**create_marker**](docs/MarkersApi.md#create_marker) | **POST** /projects/{projectId}/md/markers | Creates new Marker.
+*MarkersApi* | [**delete_marker_by_id**](docs/MarkersApi.md#delete_marker_by_id) | **DELETE** /projects/{projectId}/md/markers/{id} | Deletes marker by id
+*MarkersApi* | [**get_all_markers**](docs/MarkersApi.md#get_all_markers) | **GET** /projects/{projectId}/md/markers | Returns paged collection of all Markers in a project.
+*MarkersApi* | [**get_marker_by_id**](docs/MarkersApi.md#get_marker_by_id) | **GET** /projects/{projectId}/md/markers/{id} | Gets marker by id
+*MarkersApi* | [**update_marker_by_id**](docs/MarkersApi.md#update_marker_by_id) | **PUT** /projects/{projectId}/md/markers/{id} | Updates marker by id
+*MembersApi* | [**add_project_member**](docs/MembersApi.md#add_project_member) | **POST** /projects/{projectId}/members | Add new project member and assign a role.
+*MembersApi* | [**delete_membership**](docs/MembersApi.md#delete_membership) | **DELETE** /projects/{projectId}/members/{membershipId} | Deletes membership of user in project.
+*MembersApi* | [**get_membership_by_id**](docs/MembersApi.md#get_membership_by_id) | **GET** /projects/{projectId}/members/{membershipId} | Get detail of user membership in project by membership id.
+*MembersApi* | [**get_project_members**](docs/MembersApi.md#get_project_members) | **GET** /projects/{projectId}/members | Get list of project members.
+*MembersApi* | [**update_membership**](docs/MembersApi.md#update_membership) | **PUT** /projects/{projectId}/members/{membershipId} | Update membership by changing role or status in project.
+*MetricsApi* | [**create_metric**](docs/MetricsApi.md#create_metric) | **POST** /projects/{projectId}/md/metrics | Creates new metric.
+*MetricsApi* | [**delete_metric_by_id**](docs/MetricsApi.md#delete_metric_by_id) | **DELETE** /projects/{projectId}/md/metrics/{id} | Deletes metric by id
+*MetricsApi* | [**get_all_metrics**](docs/MetricsApi.md#get_all_metrics) | **GET** /projects/{projectId}/md/metrics | Returns paged collection of all Metrics in a project.
+*MetricsApi* | [**get_metric_by_id**](docs/MetricsApi.md#get_metric_by_id) | **GET** /projects/{projectId}/md/metrics/{id} | Gets metric by id
+*MetricsApi* | [**update_metric_by_id**](docs/MetricsApi.md#update_metric_by_id) | **PUT** /projects/{projectId}/md/metrics/{id} | Updates metric by id
+*OrganizationsApi* | [**create_organization**](docs/OrganizationsApi.md#create_organization) | **POST** /organizations | Creates a new organization.
+*OrganizationsApi* | [**delete_organization**](docs/OrganizationsApi.md#delete_organization) | **DELETE** /organizations/{organizationId} | Delete an organization.
+*OrganizationsApi* | [**get_organization_by_id**](docs/OrganizationsApi.md#get_organization_by_id) | **GET** /organizations/{organizationId} | Get organization detail.
+*OrganizationsApi* | [**get_organizations**](docs/OrganizationsApi.md#get_organizations) | **GET** /organizations | Get all organizations available for authenticated user.
+*OrganizationsApi* | [**update_organization**](docs/OrganizationsApi.md#update_organization) | **PUT** /organizations/{organizationId} | Update organization.
+*ProjectSettingsApi* | [**create_project_settings**](docs/ProjectSettingsApi.md#create_project_settings) | **POST** /projects/{projectId}/md/projectSettings | Creates new project settings
+*ProjectSettingsApi* | [**delete_project_settings_by_id**](docs/ProjectSettingsApi.md#delete_project_settings_by_id) | **DELETE** /projects/{projectId}/md/projectSettings/{id} | Deletes project settings by id
+*ProjectSettingsApi* | [**get_all_project_settings**](docs/ProjectSettingsApi.md#get_all_project_settings) | **GET** /projects/{projectId}/md/projectSettings | Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+*ProjectSettingsApi* | [**get_project_settings_by_id**](docs/ProjectSettingsApi.md#get_project_settings_by_id) | **GET** /projects/{projectId}/md/projectSettings/{id} | Gets project settings by id
+*ProjectSettingsApi* | [**update_project_settings_by_id**](docs/ProjectSettingsApi.md#update_project_settings_by_id) | **PUT** /projects/{projectId}/md/projectSettings/{id} | Updates project settings by id
+*ProjectInvitationsApi* | [**create_invitation**](docs/ProjectInvitationsApi.md#create_invitation) | **POST** /projects/{projectId}/invitations | Create new invitation to the project for a user.
+*ProjectInvitationsApi* | [**delete_invitation**](docs/ProjectInvitationsApi.md#delete_invitation) | **DELETE** /projects/{projectId}/invitations/{invitationId} | Delete invitation.
+*ProjectInvitationsApi* | [**get_invitation_by_id**](docs/ProjectInvitationsApi.md#get_invitation_by_id) | **GET** /projects/{projectId}/invitations/{invitationId} | Get detail of an invitation.
+*ProjectInvitationsApi* | [**get_invitations**](docs/ProjectInvitationsApi.md#get_invitations) | **GET** /projects/{projectId}/invitations | Get list of project invitations.
+*ProjectInvitationsApi* | [**update_invitation**](docs/ProjectInvitationsApi.md#update_invitation) | **PUT** /projects/{projectId}/invitations/{invitationId} | Update invitation.
+*ProjectsApi* | [**create_project**](docs/ProjectsApi.md#create_project) | **POST** /projects | Create new project
+*ProjectsApi* | [**delete_project**](docs/ProjectsApi.md#delete_project) | **DELETE** /projects/{projectId} | Delete project.
+*ProjectsApi* | [**get_all_projects**](docs/ProjectsApi.md#get_all_projects) | **GET** /projects | Get list of projects for authenticated account.
+*ProjectsApi* | [**get_project_by_id**](docs/ProjectsApi.md#get_project_by_id) | **GET** /projects/{projectId} | Get project by given project id.
+*ProjectsApi* | [**update_project**](docs/ProjectsApi.md#update_project) | **PUT** /projects/{projectId} | Update the project.
+*UserInvitationsApi* | [**accept_user_invitation**](docs/UserInvitationsApi.md#accept_user_invitation) | **POST** /invitations/{invitationHash} | Accept invitation.
+*UserInvitationsApi* | [**get_user_invitation**](docs/UserInvitationsApi.md#get_user_invitation) | **GET** /invitations/{invitationHash} | Get detail of an invitation.
*ViewsApi* | [**create_view**](docs/ViewsApi.md#create_view) | **POST** /projects/{projectId}/md/views | Creates new view
*ViewsApi* | [**delete_view_by_id**](docs/ViewsApi.md#delete_view_by_id) | **DELETE** /projects/{projectId}/md/views/{id} | Deletes view by id
*ViewsApi* | [**get_all_views**](docs/ViewsApi.md#get_all_views) | **GET** /projects/{projectId}/md/views | Returns collection of all views in a project
@@ -126,16 +205,53 @@ Class | Method | HTTP request | Description
- [AdditionalSeriesLinkDTO](docs/AdditionalSeriesLinkDTO.md)
- [AnnotationLinkDTO](docs/AnnotationLinkDTO.md)
- [AttributeFormatDTO](docs/AttributeFormatDTO.md)
+ - [AttributeStyleCategoryDTO](docs/AttributeStyleCategoryDTO.md)
+ - [AttributeStyleContentDTO](docs/AttributeStyleContentDTO.md)
+ - [AttributeStyleDTO](docs/AttributeStyleDTO.md)
+ - [AttributeStyleFallbackCategoryDTO](docs/AttributeStyleFallbackCategoryDTO.md)
+ - [AttributeStylePagedModelDTO](docs/AttributeStylePagedModelDTO.md)
- [BlockAbstractType](docs/BlockAbstractType.md)
- [BlockRowAbstractType](docs/BlockRowAbstractType.md)
- [BlockRowDTO](docs/BlockRowDTO.md)
+ - [BulkPointQueryJobRequest](docs/BulkPointQueryJobRequest.md)
+ - [BulkPointQueryPointQueriesOptionIsochrone](docs/BulkPointQueryPointQueriesOptionIsochrone.md)
+ - [BulkPointQueryPointQueriesOptionNearest](docs/BulkPointQueryPointQueriesOptionNearest.md)
+ - [BulkPointQueryRequest](docs/BulkPointQueryRequest.md)
+ - [BulkPointQueryRequestPointQueriesInner](docs/BulkPointQueryRequestPointQueriesInner.md)
+ - [BulkPointQueryRequestPointQueriesInnerOptions](docs/BulkPointQueryRequestPointQueriesInnerOptions.md)
+ - [BulkPointQueryRequestPointsInner](docs/BulkPointQueryRequestPointsInner.md)
- [CategoriesDTO](docs/CategoriesDTO.md)
+ - [CategoryDTO](docs/CategoryDTO.md)
- [CenterDTO](docs/CenterDTO.md)
+ - [CreateInvitation](docs/CreateInvitation.md)
+ - [CreateMembershipDTO](docs/CreateMembershipDTO.md)
+ - [CreateOrganizationDTO](docs/CreateOrganizationDTO.md)
+ - [CreateProjectDTO](docs/CreateProjectDTO.md)
- [CuzkParcelInfoDTO](docs/CuzkParcelInfoDTO.md)
- [DashboardContentDTO](docs/DashboardContentDTO.md)
- [DashboardDTO](docs/DashboardDTO.md)
- [DashboardDatasetPropertiesDTO](docs/DashboardDatasetPropertiesDTO.md)
- [DashboardPagedModelDTO](docs/DashboardPagedModelDTO.md)
+ - [DataDumpJobRequest](docs/DataDumpJobRequest.md)
+ - [DataDumpRequest](docs/DataDumpRequest.md)
+ - [DataPermissionContentDTO](docs/DataPermissionContentDTO.md)
+ - [DataPermissionDTO](docs/DataPermissionDTO.md)
+ - [DataPermissionPagedModelDTO](docs/DataPermissionPagedModelDTO.md)
+ - [DataPullJobRequest](docs/DataPullJobRequest.md)
+ - [DataPullRequest](docs/DataPullRequest.md)
+ - [DataPullRequestCsvOptions](docs/DataPullRequestCsvOptions.md)
+ - [DataPullRequestHttpsUpload](docs/DataPullRequestHttpsUpload.md)
+ - [DataPullRequestS3Upload](docs/DataPullRequestS3Upload.md)
+ - [DataSourceDTO](docs/DataSourceDTO.md)
+ - [DataSourcePagedModelDTO](docs/DataSourcePagedModelDTO.md)
+ - [DatasetDTO](docs/DatasetDTO.md)
+ - [DatasetDwhTypeDTO](docs/DatasetDwhTypeDTO.md)
+ - [DatasetH3GridTypeDTO](docs/DatasetH3GridTypeDTO.md)
+ - [DatasetPagedModelDTO](docs/DatasetPagedModelDTO.md)
+ - [DatasetPropertiesDTO](docs/DatasetPropertiesDTO.md)
+ - [DatasetType](docs/DatasetType.md)
+ - [DatasetVisualizationDTO](docs/DatasetVisualizationDTO.md)
+ - [DatasetVtTypeDTO](docs/DatasetVtTypeDTO.md)
- [DateFilterDTO](docs/DateFilterDTO.md)
- [DateFilterDefaultValueType](docs/DateFilterDefaultValueType.md)
- [DateRangeFunction](docs/DateRangeFunction.md)
@@ -148,17 +264,61 @@ Class | Method | HTTP request | Description
- [DefaultValuesIndicatorDTO](docs/DefaultValuesIndicatorDTO.md)
- [DefaultValuesMultiSelectDTO](docs/DefaultValuesMultiSelectDTO.md)
- [DefaultValuesSingleSelectDTO](docs/DefaultValuesSingleSelectDTO.md)
+ - [DisplayOptionsDTO](docs/DisplayOptionsDTO.md)
- [DistributionDTO](docs/DistributionDTO.md)
+ - [DwhAbstractProperty](docs/DwhAbstractProperty.md)
+ - [DwhForeignKeyDTO](docs/DwhForeignKeyDTO.md)
+ - [DwhGeometryDTO](docs/DwhGeometryDTO.md)
+ - [DwhPropertyDTO](docs/DwhPropertyDTO.md)
+ - [DwhQueryFunctionTypes](docs/DwhQueryFunctionTypes.md)
+ - [DwhQueryMetricType](docs/DwhQueryMetricType.md)
+ - [DwhQueryNumberType](docs/DwhQueryNumberType.md)
+ - [DwhQueryPropertyType](docs/DwhQueryPropertyType.md)
+ - [ExportContentDTO](docs/ExportContentDTO.md)
+ - [ExportDTO](docs/ExportDTO.md)
+ - [ExportJobRequest](docs/ExportJobRequest.md)
- [ExportLinkDTO](docs/ExportLinkDTO.md)
+ - [ExportPagedModelDTO](docs/ExportPagedModelDTO.md)
+ - [ExportRequest](docs/ExportRequest.md)
+ - [ExportRequestCsvOptions](docs/ExportRequestCsvOptions.md)
- [FeatureAttributeDTO](docs/FeatureAttributeDTO.md)
- [FeatureFilterDTO](docs/FeatureFilterDTO.md)
+ - [FeatureFunctionDTO](docs/FeatureFunctionDTO.md)
+ - [FeaturePropertyDTO](docs/FeaturePropertyDTO.md)
+ - [FeaturePropertyType](docs/FeaturePropertyType.md)
+ - [FeatureTextDTO](docs/FeatureTextDTO.md)
- [FilterAbstractType](docs/FilterAbstractType.md)
- [FormatDTO](docs/FormatDTO.md)
+ - [FunctionAggTypeGeneral](docs/FunctionAggTypeGeneral.md)
+ - [FunctionArithmTypeGeneral](docs/FunctionArithmTypeGeneral.md)
+ - [FunctionConditionTypeGeneral](docs/FunctionConditionTypeGeneral.md)
+ - [FunctionDateTrunc](docs/FunctionDateTrunc.md)
+ - [FunctionDateTruncOptions](docs/FunctionDateTruncOptions.md)
+ - [FunctionDistance](docs/FunctionDistance.md)
+ - [FunctionDistanceOptions](docs/FunctionDistanceOptions.md)
+ - [FunctionDistanceOptionsCentralPoint](docs/FunctionDistanceOptionsCentralPoint.md)
+ - [FunctionH3Grid](docs/FunctionH3Grid.md)
+ - [FunctionH3GridOptions](docs/FunctionH3GridOptions.md)
+ - [FunctionInterval](docs/FunctionInterval.md)
+ - [FunctionNtile](docs/FunctionNtile.md)
+ - [FunctionNtileOptions](docs/FunctionNtileOptions.md)
+ - [FunctionPercentToTotalTypeGeneral](docs/FunctionPercentToTotalTypeGeneral.md)
+ - [FunctionPercentile](docs/FunctionPercentile.md)
+ - [FunctionPropertyType](docs/FunctionPropertyType.md)
+ - [FunctionRank](docs/FunctionRank.md)
+ - [FunctionRoundTypeGeneral](docs/FunctionRoundTypeGeneral.md)
+ - [FunctionRowNumber](docs/FunctionRowNumber.md)
+ - [FunctionToday](docs/FunctionToday.md)
+ - [GetOrganizations200Response](docs/GetOrganizations200Response.md)
+ - [GetProjectMembers200Response](docs/GetProjectMembers200Response.md)
- [GlobalDateFilterDTO](docs/GlobalDateFilterDTO.md)
- [GoogleEarthDTO](docs/GoogleEarthDTO.md)
- [GoogleSatelliteDTO](docs/GoogleSatelliteDTO.md)
- [GoogleStreetViewDTO](docs/GoogleStreetViewDTO.md)
+ - [GranularityCategoryDTO](docs/GranularityCategoryDTO.md)
- [HistogramFilterDTO](docs/HistogramFilterDTO.md)
+ - [ImportProjectJobRequest](docs/ImportProjectJobRequest.md)
+ - [ImportProjectRequest](docs/ImportProjectRequest.md)
- [IndicatorContentDTO](docs/IndicatorContentDTO.md)
- [IndicatorDTO](docs/IndicatorDTO.md)
- [IndicatorDrillContentDTO](docs/IndicatorDrillContentDTO.md)
@@ -170,10 +330,16 @@ Class | Method | HTTP request | Description
- [IndicatorLinkDTOBlockRowsInner](docs/IndicatorLinkDTOBlockRowsInner.md)
- [IndicatorPagedModelDTO](docs/IndicatorPagedModelDTO.md)
- [IndicatorVisualizationsDTO](docs/IndicatorVisualizationsDTO.md)
+ - [InvitationDTO](docs/InvitationDTO.md)
+ - [InvitationPagedModelDTO](docs/InvitationPagedModelDTO.md)
- [IsochroneDTO](docs/IsochroneDTO.md)
+ - [IsochronePagedModelDTO](docs/IsochronePagedModelDTO.md)
+ - [JobDetailResponse](docs/JobDetailResponse.md)
+ - [JobHistoryPagedModelDTO](docs/JobHistoryPagedModelDTO.md)
- [LayerDTO](docs/LayerDTO.md)
- [LayerDTODatasetsInner](docs/LayerDTODatasetsInner.md)
- [LayerDTODatasetsInnerAttributeStylesInner](docs/LayerDTODatasetsInnerAttributeStylesInner.md)
+ - [LinkedLayerDTO](docs/LinkedLayerDTO.md)
- [MandatoryKeysForPagableResponse](docs/MandatoryKeysForPagableResponse.md)
- [MapContentDTO](docs/MapContentDTO.md)
- [MapContentDTOBaseLayer](docs/MapContentDTOBaseLayer.md)
@@ -186,10 +352,34 @@ Class | Method | HTTP request | Description
- [MapPagedModelDTO](docs/MapPagedModelDTO.md)
- [MapyczOrtophotoDTO](docs/MapyczOrtophotoDTO.md)
- [MapyczPanoramaDTO](docs/MapyczPanoramaDTO.md)
+ - [MarkerContentDTO](docs/MarkerContentDTO.md)
+ - [MarkerContentDTOPropertyFiltersInner](docs/MarkerContentDTOPropertyFiltersInner.md)
+ - [MarkerDTO](docs/MarkerDTO.md)
+ - [MarkerLinkDTO](docs/MarkerLinkDTO.md)
+ - [MarkerPagedModelDTO](docs/MarkerPagedModelDTO.md)
+ - [MarkerSelectorContentDTO](docs/MarkerSelectorContentDTO.md)
+ - [MarkerSelectorContentDTOKeepFiltered](docs/MarkerSelectorContentDTOKeepFiltered.md)
+ - [MarkerSelectorDTO](docs/MarkerSelectorDTO.md)
+ - [MarkerSelectorPagedModelDTO](docs/MarkerSelectorPagedModelDTO.md)
- [MaxValueDTO](docs/MaxValueDTO.md)
- [MeasureDTO](docs/MeasureDTO.md)
+ - [MembershipDTO](docs/MembershipDTO.md)
+ - [MembershipPagedModelDTO](docs/MembershipPagedModelDTO.md)
+ - [MetricDTO](docs/MetricDTO.md)
+ - [MetricPagedModelDTO](docs/MetricPagedModelDTO.md)
- [MultiSelectFilterDTO](docs/MultiSelectFilterDTO.md)
- [OrderByDTO](docs/OrderByDTO.md)
+ - [OrganizationPagedModelDTO](docs/OrganizationPagedModelDTO.md)
+ - [OrganizationResponseDTO](docs/OrganizationResponseDTO.md)
+ - [OutputDTO](docs/OutputDTO.md)
+ - [ProjectPagedModelDTO](docs/ProjectPagedModelDTO.md)
+ - [ProjectResponseDTO](docs/ProjectResponseDTO.md)
+ - [ProjectSettingsContentDTO](docs/ProjectSettingsContentDTO.md)
+ - [ProjectSettingsDTO](docs/ProjectSettingsDTO.md)
+ - [ProjectSettingsPagedModelDTO](docs/ProjectSettingsPagedModelDTO.md)
+ - [ProjectTemplateDTO](docs/ProjectTemplateDTO.md)
+ - [PropertyFilterCompareDTO](docs/PropertyFilterCompareDTO.md)
+ - [PropertyFilterInDTO](docs/PropertyFilterInDTO.md)
- [RankingDTO](docs/RankingDTO.md)
- [RelationsDTO](docs/RelationsDTO.md)
- [ScaleOptionsDTO](docs/ScaleOptionsDTO.md)
@@ -197,14 +387,26 @@ Class | Method | HTTP request | Description
- [StaticScaleOptionDTO](docs/StaticScaleOptionDTO.md)
- [StaticScaleOptionDTOBreaks](docs/StaticScaleOptionDTOBreaks.md)
- [StyleDTO](docs/StyleDTO.md)
+ - [SubmitJobExecutionRequest](docs/SubmitJobExecutionRequest.md)
+ - [TemplateDatasetDTO](docs/TemplateDatasetDTO.md)
- [TimeSeriesDTO](docs/TimeSeriesDTO.md)
- [TokenRequestDTO](docs/TokenRequestDTO.md)
- [TokenResponseDTO](docs/TokenResponseDTO.md)
+ - [TruncateJobRequest](docs/TruncateJobRequest.md)
+ - [UpdateInvitation](docs/UpdateInvitation.md)
+ - [UpdateMembership](docs/UpdateMembership.md)
+ - [UpdateOrganizationDTO](docs/UpdateOrganizationDTO.md)
+ - [UpdateProjectDTO](docs/UpdateProjectDTO.md)
+ - [ValidateJobRequest](docs/ValidateJobRequest.md)
+ - [ValidateRequest](docs/ValidateRequest.md)
+ - [ValueOptionDTO](docs/ValueOptionDTO.md)
- [VariableDTO](docs/VariableDTO.md)
+ - [VariableType](docs/VariableType.md)
- [VariablesDTO](docs/VariablesDTO.md)
- [ViewContentDTO](docs/ViewContentDTO.md)
- [ViewDTO](docs/ViewDTO.md)
- [ViewPagedModelDTO](docs/ViewPagedModelDTO.md)
+ - [ZoomDTO](docs/ZoomDTO.md)
diff --git a/cm_python_openapi_sdk/__init__.py b/cm_python_openapi_sdk/__init__.py
new file mode 100644
index 0000000..b403ab1
--- /dev/null
+++ b/cm_python_openapi_sdk/__init__.py
@@ -0,0 +1,267 @@
+# coding: utf-8
+
+# flake8: noqa
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+__version__ = "1.0.0"
+
+# import apis into sdk package
+from cm_python_openapi_sdk.api.attribute_styles_api import AttributeStylesApi
+from cm_python_openapi_sdk.api.authentication_api import AuthenticationApi
+from cm_python_openapi_sdk.api.dashboards_api import DashboardsApi
+from cm_python_openapi_sdk.api.data_permissions_api import DataPermissionsApi
+from cm_python_openapi_sdk.api.data_sources_api import DataSourcesApi
+from cm_python_openapi_sdk.api.datasets_api import DatasetsApi
+from cm_python_openapi_sdk.api.exports_api import ExportsApi
+from cm_python_openapi_sdk.api.indicator_drills_api import IndicatorDrillsApi
+from cm_python_openapi_sdk.api.indicators_api import IndicatorsApi
+from cm_python_openapi_sdk.api.isochrone_api import IsochroneApi
+from cm_python_openapi_sdk.api.jobs_api import JobsApi
+from cm_python_openapi_sdk.api.maps_api import MapsApi
+from cm_python_openapi_sdk.api.marker_selectors_api import MarkerSelectorsApi
+from cm_python_openapi_sdk.api.markers_api import MarkersApi
+from cm_python_openapi_sdk.api.members_api import MembersApi
+from cm_python_openapi_sdk.api.metrics_api import MetricsApi
+from cm_python_openapi_sdk.api.organizations_api import OrganizationsApi
+from cm_python_openapi_sdk.api.project_settings_api import ProjectSettingsApi
+from cm_python_openapi_sdk.api.project_invitations_api import ProjectInvitationsApi
+from cm_python_openapi_sdk.api.projects_api import ProjectsApi
+from cm_python_openapi_sdk.api.user_invitations_api import UserInvitationsApi
+from cm_python_openapi_sdk.api.views_api import ViewsApi
+
+# import ApiClient
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.api_client import ApiClient
+from cm_python_openapi_sdk.configuration import Configuration
+from cm_python_openapi_sdk.exceptions import OpenApiException
+from cm_python_openapi_sdk.exceptions import ApiTypeError
+from cm_python_openapi_sdk.exceptions import ApiValueError
+from cm_python_openapi_sdk.exceptions import ApiKeyError
+from cm_python_openapi_sdk.exceptions import ApiAttributeError
+from cm_python_openapi_sdk.exceptions import ApiException
+
+# import models into sdk package
+from cm_python_openapi_sdk.models.active_date_filter_dto import ActiveDateFilterDTO
+from cm_python_openapi_sdk.models.active_feature_filter_dto import ActiveFeatureFilterDTO
+from cm_python_openapi_sdk.models.active_filter_abstract_type import ActiveFilterAbstractType
+from cm_python_openapi_sdk.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
+from cm_python_openapi_sdk.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
+from cm_python_openapi_sdk.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
+from cm_python_openapi_sdk.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
+from cm_python_openapi_sdk.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
+from cm_python_openapi_sdk.models.additional_series_link_dto import AdditionalSeriesLinkDTO
+from cm_python_openapi_sdk.models.annotation_link_dto import AnnotationLinkDTO
+from cm_python_openapi_sdk.models.attribute_format_dto import AttributeFormatDTO
+from cm_python_openapi_sdk.models.attribute_style_category_dto import AttributeStyleCategoryDTO
+from cm_python_openapi_sdk.models.attribute_style_content_dto import AttributeStyleContentDTO
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.models.attribute_style_fallback_category_dto import AttributeStyleFallbackCategoryDTO
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+from cm_python_openapi_sdk.models.block_abstract_type import BlockAbstractType
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.block_row_dto import BlockRowDTO
+from cm_python_openapi_sdk.models.bulk_point_query_job_request import BulkPointQueryJobRequest
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_isochrone import BulkPointQueryPointQueriesOptionIsochrone
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest
+from cm_python_openapi_sdk.models.bulk_point_query_request import BulkPointQueryRequest
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner import BulkPointQueryRequestPointQueriesInner
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner_options import BulkPointQueryRequestPointQueriesInnerOptions
+from cm_python_openapi_sdk.models.bulk_point_query_request_points_inner import BulkPointQueryRequestPointsInner
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.category_dto import CategoryDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+from cm_python_openapi_sdk.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
+from cm_python_openapi_sdk.models.dashboard_content_dto import DashboardContentDTO
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.models.data_dump_job_request import DataDumpJobRequest
+from cm_python_openapi_sdk.models.data_dump_request import DataDumpRequest
+from cm_python_openapi_sdk.models.data_permission_content_dto import DataPermissionContentDTO
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+from cm_python_openapi_sdk.models.data_pull_job_request import DataPullJobRequest
+from cm_python_openapi_sdk.models.data_pull_request import DataPullRequest
+from cm_python_openapi_sdk.models.data_pull_request_csv_options import DataPullRequestCsvOptions
+from cm_python_openapi_sdk.models.data_pull_request_https_upload import DataPullRequestHttpsUpload
+from cm_python_openapi_sdk.models.data_pull_request_s3_upload import DataPullRequestS3Upload
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.models.dataset_dwh_type_dto import DatasetDwhTypeDTO
+from cm_python_openapi_sdk.models.dataset_h3_grid_type_dto import DatasetH3GridTypeDTO
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+from cm_python_openapi_sdk.models.dataset_properties_dto import DatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dataset_type import DatasetType
+from cm_python_openapi_sdk.models.dataset_visualization_dto import DatasetVisualizationDTO
+from cm_python_openapi_sdk.models.dataset_vt_type_dto import DatasetVtTypeDTO
+from cm_python_openapi_sdk.models.date_filter_dto import DateFilterDTO
+from cm_python_openapi_sdk.models.date_filter_default_value_type import DateFilterDefaultValueType
+from cm_python_openapi_sdk.models.date_range_function import DateRangeFunction
+from cm_python_openapi_sdk.models.date_range_value import DateRangeValue
+from cm_python_openapi_sdk.models.default_distribution_dto import DefaultDistributionDTO
+from cm_python_openapi_sdk.models.default_selected_dto import DefaultSelectedDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_feature_dto import DefaultValuesFeatureDTO
+from cm_python_openapi_sdk.models.default_values_histogram_dto import DefaultValuesHistogramDTO
+from cm_python_openapi_sdk.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
+from cm_python_openapi_sdk.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
+from cm_python_openapi_sdk.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
+from cm_python_openapi_sdk.models.display_options_dto import DisplayOptionsDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty
+from cm_python_openapi_sdk.models.dwh_foreign_key_dto import DwhForeignKeyDTO
+from cm_python_openapi_sdk.models.dwh_geometry_dto import DwhGeometryDTO
+from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO
+from cm_python_openapi_sdk.models.dwh_query_function_types import DwhQueryFunctionTypes
+from cm_python_openapi_sdk.models.dwh_query_metric_type import DwhQueryMetricType
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+from cm_python_openapi_sdk.models.dwh_query_property_type import DwhQueryPropertyType
+from cm_python_openapi_sdk.models.export_content_dto import ExportContentDTO
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.models.export_job_request import ExportJobRequest
+from cm_python_openapi_sdk.models.export_link_dto import ExportLinkDTO
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+from cm_python_openapi_sdk.models.export_request import ExportRequest
+from cm_python_openapi_sdk.models.export_request_csv_options import ExportRequestCsvOptions
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_filter_dto import FeatureFilterDTO
+from cm_python_openapi_sdk.models.feature_function_dto import FeatureFunctionDTO
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+from cm_python_openapi_sdk.models.feature_property_type import FeaturePropertyType
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+from cm_python_openapi_sdk.models.filter_abstract_type import FilterAbstractType
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral
+from cm_python_openapi_sdk.models.function_arithm_type_general import FunctionArithmTypeGeneral
+from cm_python_openapi_sdk.models.function_condition_type_general import FunctionConditionTypeGeneral
+from cm_python_openapi_sdk.models.function_date_trunc import FunctionDateTrunc
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+from cm_python_openapi_sdk.models.function_distance import FunctionDistance
+from cm_python_openapi_sdk.models.function_distance_options import FunctionDistanceOptions
+from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint
+from cm_python_openapi_sdk.models.function_h3_grid import FunctionH3Grid
+from cm_python_openapi_sdk.models.function_h3_grid_options import FunctionH3GridOptions
+from cm_python_openapi_sdk.models.function_interval import FunctionInterval
+from cm_python_openapi_sdk.models.function_ntile import FunctionNtile
+from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions
+from cm_python_openapi_sdk.models.function_percent_to_total_type_general import FunctionPercentToTotalTypeGeneral
+from cm_python_openapi_sdk.models.function_percentile import FunctionPercentile
+from cm_python_openapi_sdk.models.function_property_type import FunctionPropertyType
+from cm_python_openapi_sdk.models.function_rank import FunctionRank
+from cm_python_openapi_sdk.models.function_round_type_general import FunctionRoundTypeGeneral
+from cm_python_openapi_sdk.models.function_row_number import FunctionRowNumber
+from cm_python_openapi_sdk.models.function_today import FunctionToday
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+from cm_python_openapi_sdk.models.global_date_filter_dto import GlobalDateFilterDTO
+from cm_python_openapi_sdk.models.google_earth_dto import GoogleEarthDTO
+from cm_python_openapi_sdk.models.google_satellite_dto import GoogleSatelliteDTO
+from cm_python_openapi_sdk.models.google_street_view_dto import GoogleStreetViewDTO
+from cm_python_openapi_sdk.models.granularity_category_dto import GranularityCategoryDTO
+from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO
+from cm_python_openapi_sdk.models.import_project_job_request import ImportProjectJobRequest
+from cm_python_openapi_sdk.models.import_project_request import ImportProjectRequest
+from cm_python_openapi_sdk.models.indicator_content_dto import IndicatorContentDTO
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.indicator_drill_content_dto import IndicatorDrillContentDTO
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_filter_dto import IndicatorFilterDTO
+from cm_python_openapi_sdk.models.indicator_group_dto import IndicatorGroupDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+from cm_python_openapi_sdk.models.layer_dto import LayerDTO
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner import LayerDTODatasetsInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
+from cm_python_openapi_sdk.models.linked_layer_dto import LinkedLayerDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.map_content_dto import MapContentDTO
+from cm_python_openapi_sdk.models.map_content_dto_base_layer import MapContentDTOBaseLayer
+from cm_python_openapi_sdk.models.map_content_dto_options import MapContentDTOOptions
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.map_options_dto import MapOptionsDTO
+from cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
+from cm_python_openapi_sdk.models.mapycz_panorama_dto import MapyczPanoramaDTO
+from cm_python_openapi_sdk.models.marker_content_dto import MarkerContentDTO
+from cm_python_openapi_sdk.models.marker_content_dto_property_filters_inner import MarkerContentDTOPropertyFiltersInner
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.models.marker_link_dto import MarkerLinkDTO
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+from cm_python_openapi_sdk.models.marker_selector_content_dto import MarkerSelectorContentDTO
+from cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered import MarkerSelectorContentDTOKeepFiltered
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+from cm_python_openapi_sdk.models.max_value_dto import MaxValueDTO
+from cm_python_openapi_sdk.models.measure_dto import MeasureDTO
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.models.membership_paged_model_dto import MembershipPagedModelDTO
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+from cm_python_openapi_sdk.models.multi_select_filter_dto import MultiSelectFilterDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from cm_python_openapi_sdk.models.output_dto import OutputDTO
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.models.project_settings_content_dto import ProjectSettingsContentDTO
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+from cm_python_openapi_sdk.models.project_template_dto import ProjectTemplateDTO
+from cm_python_openapi_sdk.models.property_filter_compare_dto import PropertyFilterCompareDTO
+from cm_python_openapi_sdk.models.property_filter_in_dto import PropertyFilterInDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.relations_dto import RelationsDTO
+from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO
+from cm_python_openapi_sdk.models.single_select_filter_dto import SingleSelectFilterDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto import StaticScaleOptionDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+from cm_python_openapi_sdk.models.template_dataset_dto import TemplateDatasetDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.models.truncate_job_request import TruncateJobRequest
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+from cm_python_openapi_sdk.models.validate_job_request import ValidateJobRequest
+from cm_python_openapi_sdk.models.validate_request import ValidateRequest
+from cm_python_openapi_sdk.models.value_option_dto import ValueOptionDTO
+from cm_python_openapi_sdk.models.variable_dto import VariableDTO
+from cm_python_openapi_sdk.models.variable_type import VariableType
+from cm_python_openapi_sdk.models.variables_dto import VariablesDTO
+from cm_python_openapi_sdk.models.view_content_dto import ViewContentDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
diff --git a/cm_python_openapi_sdk/api/__init__.py b/cm_python_openapi_sdk/api/__init__.py
new file mode 100644
index 0000000..99da64c
--- /dev/null
+++ b/cm_python_openapi_sdk/api/__init__.py
@@ -0,0 +1,26 @@
+# flake8: noqa
+
+# import apis into api package
+from cm_python_openapi_sdk.api.attribute_styles_api import AttributeStylesApi
+from cm_python_openapi_sdk.api.authentication_api import AuthenticationApi
+from cm_python_openapi_sdk.api.dashboards_api import DashboardsApi
+from cm_python_openapi_sdk.api.data_permissions_api import DataPermissionsApi
+from cm_python_openapi_sdk.api.data_sources_api import DataSourcesApi
+from cm_python_openapi_sdk.api.datasets_api import DatasetsApi
+from cm_python_openapi_sdk.api.exports_api import ExportsApi
+from cm_python_openapi_sdk.api.indicator_drills_api import IndicatorDrillsApi
+from cm_python_openapi_sdk.api.indicators_api import IndicatorsApi
+from cm_python_openapi_sdk.api.isochrone_api import IsochroneApi
+from cm_python_openapi_sdk.api.jobs_api import JobsApi
+from cm_python_openapi_sdk.api.maps_api import MapsApi
+from cm_python_openapi_sdk.api.marker_selectors_api import MarkerSelectorsApi
+from cm_python_openapi_sdk.api.markers_api import MarkersApi
+from cm_python_openapi_sdk.api.members_api import MembersApi
+from cm_python_openapi_sdk.api.metrics_api import MetricsApi
+from cm_python_openapi_sdk.api.organizations_api import OrganizationsApi
+from cm_python_openapi_sdk.api.project_settings_api import ProjectSettingsApi
+from cm_python_openapi_sdk.api.project_invitations_api import ProjectInvitationsApi
+from cm_python_openapi_sdk.api.projects_api import ProjectsApi
+from cm_python_openapi_sdk.api.user_invitations_api import UserInvitationsApi
+from cm_python_openapi_sdk.api.views_api import ViewsApi
+
diff --git a/cm_python_openapi_sdk/api/attribute_styles_api.py b/cm_python_openapi_sdk/api/attribute_styles_api.py
new file mode 100644
index 0000000..6c4b9f8
--- /dev/null
+++ b/cm_python_openapi_sdk/api/attribute_styles_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class AttributeStylesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_attribute_style(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AttributeStyleDTO:
+ """Creates new attribute style
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_attribute_style_serialize(
+ project_id=project_id,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_attribute_style_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AttributeStyleDTO]:
+ """Creates new attribute style
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_attribute_style_serialize(
+ project_id=project_id,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_attribute_style_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new attribute style
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_attribute_style_serialize(
+ project_id=project_id,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_attribute_style_serialize(
+ self,
+ project_id,
+ attribute_style_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if attribute_style_dto is not None:
+ _body_params = attribute_style_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/attributeStyles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_attribute_style_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_attribute_style_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_attribute_style_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_attribute_style_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/attributeStyles/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_attribute_styles(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AttributeStylePagedModelDTO:
+ """Returns paged collection of all Attribute Styles in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_attribute_styles_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStylePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_attribute_styles_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AttributeStylePagedModelDTO]:
+ """Returns paged collection of all Attribute Styles in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_attribute_styles_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStylePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_attribute_styles_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Attribute Styles in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_attribute_styles_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStylePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_attribute_styles_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/attributeStyles',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_attribute_style_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AttributeStyleDTO:
+ """Gets attribute style by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_attribute_style_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AttributeStyleDTO]:
+ """Gets attribute style by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_attribute_style_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets attribute style by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_attribute_style_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/attributeStyles/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_attribute_style_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AttributeStyleDTO:
+ """Updates attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_attribute_style_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AttributeStyleDTO]:
+ """Updates attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_attribute_style_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the attribute style")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ attribute_style_dto: AttributeStyleDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates attribute style by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the attribute style (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param attribute_style_dto: (required)
+ :type attribute_style_dto: AttributeStyleDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_attribute_style_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ attribute_style_dto=attribute_style_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttributeStyleDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_attribute_style_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ attribute_style_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if attribute_style_dto is not None:
+ _body_params = attribute_style_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/attributeStyles/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/openapi_client/api/authentication_api.py b/cm_python_openapi_sdk/api/authentication_api.py
similarity index 97%
rename from openapi_client/api/authentication_api.py
rename to cm_python_openapi_sdk/api/authentication_api.py
index dc75f8c..a6ea3f5 100644
--- a/openapi_client/api/authentication_api.py
+++ b/cm_python_openapi_sdk/api/authentication_api.py
@@ -17,12 +17,12 @@
from typing_extensions import Annotated
from typing import Optional
-from openapi_client.models.token_request_dto import TokenRequestDTO
-from openapi_client.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class AuthenticationApi:
diff --git a/openapi_client/api/dashboards_api.py b/cm_python_openapi_sdk/api/dashboards_api.py
similarity index 96%
rename from openapi_client/api/dashboards_api.py
rename to cm_python_openapi_sdk/api/dashboards_api.py
index 7bcac91..a535fde 100644
--- a/openapi_client/api/dashboards_api.py
+++ b/cm_python_openapi_sdk/api/dashboards_api.py
@@ -16,15 +16,15 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import Field, StrictStr, field_validator
+from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class DashboardsApi:
@@ -45,6 +45,7 @@ def create_dashboard(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,6 +67,8 @@ def create_dashboard(
:type project_id: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ def create_dashboard(
_param = self._create_dashboard_serialize(
project_id=project_id,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -118,6 +122,7 @@ def create_dashboard_with_http_info(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -139,6 +144,8 @@ def create_dashboard_with_http_info(
:type project_id: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -164,6 +171,7 @@ def create_dashboard_with_http_info(
_param = self._create_dashboard_serialize(
project_id=project_id,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -191,6 +199,7 @@ def create_dashboard_without_preload_content(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -212,6 +221,8 @@ def create_dashboard_without_preload_content(
:type project_id: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -237,6 +248,7 @@ def create_dashboard_without_preload_content(
_param = self._create_dashboard_serialize(
project_id=project_id,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -259,6 +271,7 @@ def _create_dashboard_serialize(
self,
project_id,
dashboard_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -284,6 +297,8 @@ def _create_dashboard_serialize(
_path_params['projectId'] = project_id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if dashboard_dto is not None:
@@ -1199,6 +1214,7 @@ def update_dashboard_by_id(
id: Annotated[StrictStr, Field(description="Id of the dashboard")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1224,6 +1240,8 @@ def update_dashboard_by_id(
:type if_match: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1251,6 +1269,7 @@ def update_dashboard_by_id(
id=id,
if_match=if_match,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1283,6 +1302,7 @@ def update_dashboard_by_id_with_http_info(
id: Annotated[StrictStr, Field(description="Id of the dashboard")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1308,6 +1328,8 @@ def update_dashboard_by_id_with_http_info(
:type if_match: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1335,6 +1357,7 @@ def update_dashboard_by_id_with_http_info(
id=id,
if_match=if_match,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1367,6 +1390,7 @@ def update_dashboard_by_id_without_preload_content(
id: Annotated[StrictStr, Field(description="Id of the dashboard")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
dashboard_dto: DashboardDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1392,6 +1416,8 @@ def update_dashboard_by_id_without_preload_content(
:type if_match: str
:param dashboard_dto: (required)
:type dashboard_dto: DashboardDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1419,6 +1445,7 @@ def update_dashboard_by_id_without_preload_content(
id=id,
if_match=if_match,
dashboard_dto=dashboard_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1446,6 +1473,7 @@ def _update_dashboard_by_id_serialize(
id,
if_match,
dashboard_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -1475,6 +1503,8 @@ def _update_dashboard_by_id_serialize(
# process the header parameters
if if_match is not None:
_header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if dashboard_dto is not None:
diff --git a/cm_python_openapi_sdk/api/data_permissions_api.py b/cm_python_openapi_sdk/api/data_permissions_api.py
new file mode 100644
index 0000000..2d3c012
--- /dev/null
+++ b/cm_python_openapi_sdk/api/data_permissions_api.py
@@ -0,0 +1,1562 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class DataPermissionsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_data_permission(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataPermissionDTO:
+ """Creates new data permission
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_data_permission_serialize(
+ project_id=project_id,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_data_permission_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataPermissionDTO]:
+ """Creates new data permission
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_data_permission_serialize(
+ project_id=project_id,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_data_permission_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new data permission
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_data_permission_serialize(
+ project_id=project_id,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_data_permission_serialize(
+ self,
+ project_id,
+ data_permission_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if data_permission_dto is not None:
+ _body_params = data_permission_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/dataPermissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_data_permission_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_data_permission_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_data_permission_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_data_permission_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/dataPermissions/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_data_permissions(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataPermissionPagedModelDTO:
+ """Returns paged collection of all data permissions in a project
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_permissions_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_data_permissions_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataPermissionPagedModelDTO]:
+ """Returns paged collection of all data permissions in a project
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_permissions_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_data_permissions_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all data permissions in a project
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_permissions_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_data_permissions_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/dataPermissions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_data_permission_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataPermissionDTO:
+ """Gets data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_data_permission_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataPermissionDTO]:
+ """Gets data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_data_permission_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_data_permission_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/dataPermissions/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_data_permission_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataPermissionDTO:
+ """Updates data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_data_permission_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataPermissionDTO]:
+ """Updates data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_data_permission_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the data permission")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ data_permission_dto: DataPermissionDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates data permission by id
+
+ Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the data permission (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param data_permission_dto: (required)
+ :type data_permission_dto: DataPermissionDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_data_permission_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ data_permission_dto=data_permission_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataPermissionDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_data_permission_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ data_permission_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if data_permission_dto is not None:
+ _body_params = data_permission_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/dataPermissions/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/data_sources_api.py b/cm_python_openapi_sdk/api/data_sources_api.py
new file mode 100644
index 0000000..5e58fe6
--- /dev/null
+++ b/cm_python_openapi_sdk/api/data_sources_api.py
@@ -0,0 +1,331 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class DataSourcesApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_all_data_sources(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataSourcePagedModelDTO:
+ """Return list of all unique data sources specified in datasets of a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_sources_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSourcePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_data_sources_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataSourcePagedModelDTO]:
+ """Return list of all unique data sources specified in datasets of a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_sources_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSourcePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_data_sources_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Return list of all unique data sources specified in datasets of a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_data_sources_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSourcePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_data_sources_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/dataSources',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/datasets_api.py b/cm_python_openapi_sdk/api/datasets_api.py
new file mode 100644
index 0000000..60ef5ec
--- /dev/null
+++ b/cm_python_openapi_sdk/api/datasets_api.py
@@ -0,0 +1,1990 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class DatasetsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_dataset(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DatasetDTO:
+ """Creates new dataset
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_dataset_serialize(
+ project_id=project_id,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_dataset_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DatasetDTO]:
+ """Creates new dataset
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_dataset_serialize(
+ project_id=project_id,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_dataset_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new dataset
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_dataset_serialize(
+ project_id=project_id,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_dataset_serialize(
+ self,
+ project_id,
+ dataset_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if dataset_dto is not None:
+ _body_params = dataset_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/datasets',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_dataset_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_dataset_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_dataset_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_dataset_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/datasets/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def generate_dataset_from_csv(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ name: Annotated[str, Field(strict=True, description="Name of the dataset")],
+ body: StrictStr,
+ subtype: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Subtype of the dataset")] = None,
+ primary_key: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the property that will be marked as primary key")] = None,
+ geometry: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the geometry key for geometryPolygon dataset subtype")] = None,
+ csv_separator: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV column separator character")] = None,
+ csv_quote: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV quote character")] = None,
+ csv_escape: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV escape character")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DatasetDTO:
+ """Generate dataset from CSV
+
+ Generate dataset metadata object from a CSV file with a header. The CSV body must not be longer than 10 lines.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param name: Name of the dataset (required)
+ :type name: str
+ :param body: (required)
+ :type body: str
+ :param subtype: Subtype of the dataset
+ :type subtype: str
+ :param primary_key: Name of the property that will be marked as primary key
+ :type primary_key: str
+ :param geometry: Name of the geometry key for geometryPolygon dataset subtype
+ :type geometry: str
+ :param csv_separator: Custom CSV column separator character
+ :type csv_separator: str
+ :param csv_quote: Custom CSV quote character
+ :type csv_quote: str
+ :param csv_escape: Custom CSV escape character
+ :type csv_escape: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_dataset_from_csv_serialize(
+ project_id=project_id,
+ name=name,
+ body=body,
+ subtype=subtype,
+ primary_key=primary_key,
+ geometry=geometry,
+ csv_separator=csv_separator,
+ csv_quote=csv_quote,
+ csv_escape=csv_escape,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ '413': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def generate_dataset_from_csv_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ name: Annotated[str, Field(strict=True, description="Name of the dataset")],
+ body: StrictStr,
+ subtype: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Subtype of the dataset")] = None,
+ primary_key: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the property that will be marked as primary key")] = None,
+ geometry: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the geometry key for geometryPolygon dataset subtype")] = None,
+ csv_separator: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV column separator character")] = None,
+ csv_quote: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV quote character")] = None,
+ csv_escape: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV escape character")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DatasetDTO]:
+ """Generate dataset from CSV
+
+ Generate dataset metadata object from a CSV file with a header. The CSV body must not be longer than 10 lines.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param name: Name of the dataset (required)
+ :type name: str
+ :param body: (required)
+ :type body: str
+ :param subtype: Subtype of the dataset
+ :type subtype: str
+ :param primary_key: Name of the property that will be marked as primary key
+ :type primary_key: str
+ :param geometry: Name of the geometry key for geometryPolygon dataset subtype
+ :type geometry: str
+ :param csv_separator: Custom CSV column separator character
+ :type csv_separator: str
+ :param csv_quote: Custom CSV quote character
+ :type csv_quote: str
+ :param csv_escape: Custom CSV escape character
+ :type csv_escape: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_dataset_from_csv_serialize(
+ project_id=project_id,
+ name=name,
+ body=body,
+ subtype=subtype,
+ primary_key=primary_key,
+ geometry=geometry,
+ csv_separator=csv_separator,
+ csv_quote=csv_quote,
+ csv_escape=csv_escape,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ '413': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def generate_dataset_from_csv_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ name: Annotated[str, Field(strict=True, description="Name of the dataset")],
+ body: StrictStr,
+ subtype: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Subtype of the dataset")] = None,
+ primary_key: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the property that will be marked as primary key")] = None,
+ geometry: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Name of the geometry key for geometryPolygon dataset subtype")] = None,
+ csv_separator: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV column separator character")] = None,
+ csv_quote: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV quote character")] = None,
+ csv_escape: Annotated[Optional[Annotated[str, Field(min_length=1, strict=True, max_length=1)]], Field(description="Custom CSV escape character")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Generate dataset from CSV
+
+ Generate dataset metadata object from a CSV file with a header. The CSV body must not be longer than 10 lines.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param name: Name of the dataset (required)
+ :type name: str
+ :param body: (required)
+ :type body: str
+ :param subtype: Subtype of the dataset
+ :type subtype: str
+ :param primary_key: Name of the property that will be marked as primary key
+ :type primary_key: str
+ :param geometry: Name of the geometry key for geometryPolygon dataset subtype
+ :type geometry: str
+ :param csv_separator: Custom CSV column separator character
+ :type csv_separator: str
+ :param csv_quote: Custom CSV quote character
+ :type csv_quote: str
+ :param csv_escape: Custom CSV escape character
+ :type csv_escape: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._generate_dataset_from_csv_serialize(
+ project_id=project_id,
+ name=name,
+ body=body,
+ subtype=subtype,
+ primary_key=primary_key,
+ geometry=geometry,
+ csv_separator=csv_separator,
+ csv_quote=csv_quote,
+ csv_escape=csv_escape,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '409': None,
+ '413': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _generate_dataset_from_csv_serialize(
+ self,
+ project_id,
+ name,
+ body,
+ subtype,
+ primary_key,
+ geometry,
+ csv_separator,
+ csv_quote,
+ csv_escape,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if name is not None:
+
+ _query_params.append(('name', name))
+
+ if subtype is not None:
+
+ _query_params.append(('subtype', subtype))
+
+ if primary_key is not None:
+
+ _query_params.append(('primaryKey', primary_key))
+
+ if geometry is not None:
+
+ _query_params.append(('geometry', geometry))
+
+ if csv_separator is not None:
+
+ _query_params.append(('csvSeparator', csv_separator))
+
+ if csv_quote is not None:
+
+ _query_params.append(('csvQuote', csv_quote))
+
+ if csv_escape is not None:
+
+ _query_params.append(('csvEscape', csv_escape))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if body is not None:
+ _body_params = body
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'text/csv'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/datasets/generateDataset',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_datasets(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Returns only collection of datasets of given type.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DatasetPagedModelDTO:
+ """Returns paged collection of all datasets in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param type: Returns only collection of datasets of given type.
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_datasets_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_datasets_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Returns only collection of datasets of given type.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DatasetPagedModelDTO]:
+ """Returns paged collection of all datasets in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param type: Returns only collection of datasets of given type.
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_datasets_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_datasets_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Returns only collection of datasets of given type.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all datasets in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param type: Returns only collection of datasets of given type.
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_datasets_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_datasets_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/datasets',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_dataset_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DatasetDTO:
+ """Gets dataset by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_dataset_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DatasetDTO]:
+ """Gets dataset by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_dataset_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets dataset by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_dataset_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/datasets/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_dataset_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DatasetDTO:
+ """Updates dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_dataset_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DatasetDTO]:
+ """Updates dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_dataset_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the dataset")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ dataset_dto: DatasetDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates dataset by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the dataset (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param dataset_dto: (required)
+ :type dataset_dto: DatasetDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_dataset_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ dataset_dto=dataset_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DatasetDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_dataset_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ dataset_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if dataset_dto is not None:
+ _body_params = dataset_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/datasets/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/exports_api.py b/cm_python_openapi_sdk/api/exports_api.py
new file mode 100644
index 0000000..164684c
--- /dev/null
+++ b/cm_python_openapi_sdk/api/exports_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class ExportsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_export(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ExportDTO:
+ """Creates new export
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_export_serialize(
+ project_id=project_id,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_export_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ExportDTO]:
+ """Creates new export
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_export_serialize(
+ project_id=project_id,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_export_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new export
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_export_serialize(
+ project_id=project_id,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_export_serialize(
+ self,
+ project_id,
+ export_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if export_dto is not None:
+ _body_params = export_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/exports',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_export_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_export_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_export_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_export_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/exports/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_exports(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ExportPagedModelDTO:
+ """Returns paged collection of all Exports in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_exports_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_exports_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ExportPagedModelDTO]:
+ """Returns paged collection of all Exports in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_exports_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_exports_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Exports in a project
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_exports_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_exports_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/exports',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_export_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ExportDTO:
+ """Gets export by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_export_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ExportDTO]:
+ """Gets export by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_export_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets export by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_export_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/exports/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_export_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ExportDTO:
+ """Updates export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_export_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ExportDTO]:
+ """Updates export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_export_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the export")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ export_dto: ExportDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates export by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the export (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param export_dto: (required)
+ :type export_dto: ExportDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_export_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ export_dto=export_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ExportDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_export_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ export_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if export_dto is not None:
+ _body_params = export_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/exports/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/openapi_client/api/indicator_drills_api.py b/cm_python_openapi_sdk/api/indicator_drills_api.py
similarity index 96%
rename from openapi_client/api/indicator_drills_api.py
rename to cm_python_openapi_sdk/api/indicator_drills_api.py
index 6fada66..d286e47 100644
--- a/openapi_client/api/indicator_drills_api.py
+++ b/cm_python_openapi_sdk/api/indicator_drills_api.py
@@ -16,15 +16,15 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import Field, StrictStr, field_validator
+from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class IndicatorDrillsApi:
@@ -45,6 +45,7 @@ def create_indicator_drill(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,6 +67,8 @@ def create_indicator_drill(
:type project_id: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ def create_indicator_drill(
_param = self._create_indicator_drill_serialize(
project_id=project_id,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -118,6 +122,7 @@ def create_indicator_drill_with_http_info(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -139,6 +144,8 @@ def create_indicator_drill_with_http_info(
:type project_id: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -164,6 +171,7 @@ def create_indicator_drill_with_http_info(
_param = self._create_indicator_drill_serialize(
project_id=project_id,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -191,6 +199,7 @@ def create_indicator_drill_without_preload_content(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -212,6 +221,8 @@ def create_indicator_drill_without_preload_content(
:type project_id: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -237,6 +248,7 @@ def create_indicator_drill_without_preload_content(
_param = self._create_indicator_drill_serialize(
project_id=project_id,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -259,6 +271,7 @@ def _create_indicator_drill_serialize(
self,
project_id,
indicator_drill_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -284,6 +297,8 @@ def _create_indicator_drill_serialize(
_path_params['projectId'] = project_id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if indicator_drill_dto is not None:
@@ -1199,6 +1214,7 @@ def update_indicator_drill_by_id(
id: Annotated[StrictStr, Field(description="Id of the indicator drill")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1224,6 +1240,8 @@ def update_indicator_drill_by_id(
:type if_match: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1251,6 +1269,7 @@ def update_indicator_drill_by_id(
id=id,
if_match=if_match,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1283,6 +1302,7 @@ def update_indicator_drill_by_id_with_http_info(
id: Annotated[StrictStr, Field(description="Id of the indicator drill")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1308,6 +1328,8 @@ def update_indicator_drill_by_id_with_http_info(
:type if_match: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1335,6 +1357,7 @@ def update_indicator_drill_by_id_with_http_info(
id=id,
if_match=if_match,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1367,6 +1390,7 @@ def update_indicator_drill_by_id_without_preload_content(
id: Annotated[StrictStr, Field(description="Id of the indicator drill")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_drill_dto: IndicatorDrillDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1392,6 +1416,8 @@ def update_indicator_drill_by_id_without_preload_content(
:type if_match: str
:param indicator_drill_dto: (required)
:type indicator_drill_dto: IndicatorDrillDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1419,6 +1445,7 @@ def update_indicator_drill_by_id_without_preload_content(
id=id,
if_match=if_match,
indicator_drill_dto=indicator_drill_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1446,6 +1473,7 @@ def _update_indicator_drill_by_id_serialize(
id,
if_match,
indicator_drill_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -1473,6 +1501,8 @@ def _update_indicator_drill_by_id_serialize(
_path_params['id'] = id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
if if_match is not None:
_header_params['If-Match'] = if_match
# process the form parameters
diff --git a/openapi_client/api/indicators_api.py b/cm_python_openapi_sdk/api/indicators_api.py
similarity index 96%
rename from openapi_client/api/indicators_api.py
rename to cm_python_openapi_sdk/api/indicators_api.py
index b6a13ac..314b9ae 100644
--- a/openapi_client/api/indicators_api.py
+++ b/cm_python_openapi_sdk/api/indicators_api.py
@@ -16,15 +16,15 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import Field, StrictStr, field_validator
+from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class IndicatorsApi:
@@ -45,6 +45,7 @@ def create_indicator(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,6 +67,8 @@ def create_indicator(
:type project_id: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ def create_indicator(
_param = self._create_indicator_serialize(
project_id=project_id,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -118,6 +122,7 @@ def create_indicator_with_http_info(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -139,6 +144,8 @@ def create_indicator_with_http_info(
:type project_id: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -164,6 +171,7 @@ def create_indicator_with_http_info(
_param = self._create_indicator_serialize(
project_id=project_id,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -191,6 +199,7 @@ def create_indicator_without_preload_content(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -212,6 +221,8 @@ def create_indicator_without_preload_content(
:type project_id: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -237,6 +248,7 @@ def create_indicator_without_preload_content(
_param = self._create_indicator_serialize(
project_id=project_id,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -259,6 +271,7 @@ def _create_indicator_serialize(
self,
project_id,
indicator_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -284,6 +297,8 @@ def _create_indicator_serialize(
_path_params['projectId'] = project_id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if indicator_dto is not None:
@@ -1199,6 +1214,7 @@ def update_indicator_by_id(
id: Annotated[StrictStr, Field(description="Id of the indicator")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1224,6 +1240,8 @@ def update_indicator_by_id(
:type if_match: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1251,6 +1269,7 @@ def update_indicator_by_id(
id=id,
if_match=if_match,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1283,6 +1302,7 @@ def update_indicator_by_id_with_http_info(
id: Annotated[StrictStr, Field(description="Id of the indicator")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1308,6 +1328,8 @@ def update_indicator_by_id_with_http_info(
:type if_match: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1335,6 +1357,7 @@ def update_indicator_by_id_with_http_info(
id=id,
if_match=if_match,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1367,6 +1390,7 @@ def update_indicator_by_id_without_preload_content(
id: Annotated[StrictStr, Field(description="Id of the indicator")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
indicator_dto: IndicatorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1392,6 +1416,8 @@ def update_indicator_by_id_without_preload_content(
:type if_match: str
:param indicator_dto: (required)
:type indicator_dto: IndicatorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1419,6 +1445,7 @@ def update_indicator_by_id_without_preload_content(
id=id,
if_match=if_match,
indicator_dto=indicator_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1446,6 +1473,7 @@ def _update_indicator_by_id_serialize(
id,
if_match,
indicator_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -1475,6 +1503,8 @@ def _update_indicator_by_id_serialize(
# process the header parameters
if if_match is not None:
_header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if indicator_dto is not None:
diff --git a/cm_python_openapi_sdk/api/isochrone_api.py b/cm_python_openapi_sdk/api/isochrone_api.py
new file mode 100644
index 0000000..7ee2935
--- /dev/null
+++ b/cm_python_openapi_sdk/api/isochrone_api.py
@@ -0,0 +1,404 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class IsochroneApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_isochrone(
+ self,
+ lat: Annotated[StrictStr, Field(description="Latitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ lng: Annotated[StrictStr, Field(description="Longitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ profile: Annotated[StrictStr, Field(description="Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma.")],
+ unit: Annotated[StrictStr, Field(description="Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma.")],
+ amount: Annotated[StrictStr, Field(description="The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma.")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> IsochronePagedModelDTO:
+ """get_isochrone
+
+ Calculates a list of isochrones for the given point(s). An **isochrone** is a line that connects points of equal travel time around a given location. It can be calculated as: - **Travel Time-Based Isochrone**: Represents the area reachable within a specified amount of time. Supported for the following travel modes: - `car` - `bike` - `foot` - **Distance-Based Isochrone**: Represents a circular area defined by a specified distance (in meters) from a point. Supported for the `air` travel mode. Endpoint accepts multiple points split by comma. For each point you must also define profile, unit and amount, split by comma. E.g. for two points - profile=foot,car unit=time,time amount=5.20
+
+ :param lat: Latitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lat: str
+ :param lng: Longitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lng: str
+ :param profile: Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma. (required)
+ :type profile: str
+ :param unit: Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma. (required)
+ :type unit: str
+ :param amount: The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma. (required)
+ :type amount: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_isochrone_serialize(
+ lat=lat,
+ lng=lng,
+ profile=profile,
+ unit=unit,
+ amount=amount,
+ size=size,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "IsochronePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_isochrone_with_http_info(
+ self,
+ lat: Annotated[StrictStr, Field(description="Latitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ lng: Annotated[StrictStr, Field(description="Longitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ profile: Annotated[StrictStr, Field(description="Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma.")],
+ unit: Annotated[StrictStr, Field(description="Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma.")],
+ amount: Annotated[StrictStr, Field(description="The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma.")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[IsochronePagedModelDTO]:
+ """get_isochrone
+
+ Calculates a list of isochrones for the given point(s). An **isochrone** is a line that connects points of equal travel time around a given location. It can be calculated as: - **Travel Time-Based Isochrone**: Represents the area reachable within a specified amount of time. Supported for the following travel modes: - `car` - `bike` - `foot` - **Distance-Based Isochrone**: Represents a circular area defined by a specified distance (in meters) from a point. Supported for the `air` travel mode. Endpoint accepts multiple points split by comma. For each point you must also define profile, unit and amount, split by comma. E.g. for two points - profile=foot,car unit=time,time amount=5.20
+
+ :param lat: Latitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lat: str
+ :param lng: Longitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lng: str
+ :param profile: Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma. (required)
+ :type profile: str
+ :param unit: Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma. (required)
+ :type unit: str
+ :param amount: The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma. (required)
+ :type amount: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_isochrone_serialize(
+ lat=lat,
+ lng=lng,
+ profile=profile,
+ unit=unit,
+ amount=amount,
+ size=size,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "IsochronePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_isochrone_without_preload_content(
+ self,
+ lat: Annotated[StrictStr, Field(description="Latitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ lng: Annotated[StrictStr, Field(description="Longitude of the isochrone starting location. Accepts multiple values split by comma.")],
+ profile: Annotated[StrictStr, Field(description="Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma.")],
+ unit: Annotated[StrictStr, Field(description="Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma.")],
+ amount: Annotated[StrictStr, Field(description="The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma.")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_isochrone
+
+ Calculates a list of isochrones for the given point(s). An **isochrone** is a line that connects points of equal travel time around a given location. It can be calculated as: - **Travel Time-Based Isochrone**: Represents the area reachable within a specified amount of time. Supported for the following travel modes: - `car` - `bike` - `foot` - **Distance-Based Isochrone**: Represents a circular area defined by a specified distance (in meters) from a point. Supported for the `air` travel mode. Endpoint accepts multiple points split by comma. For each point you must also define profile, unit and amount, split by comma. E.g. for two points - profile=foot,car unit=time,time amount=5.20
+
+ :param lat: Latitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lat: str
+ :param lng: Longitude of the isochrone starting location. Accepts multiple values split by comma. (required)
+ :type lng: str
+ :param profile: Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma. (required)
+ :type profile: str
+ :param unit: Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma. (required)
+ :type unit: str
+ :param amount: The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma. (required)
+ :type amount: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_isochrone_serialize(
+ lat=lat,
+ lng=lng,
+ profile=profile,
+ unit=unit,
+ amount=amount,
+ size=size,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "IsochronePagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_isochrone_serialize(
+ self,
+ lat,
+ lng,
+ profile,
+ unit,
+ amount,
+ size,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if lat is not None:
+
+ _query_params.append(('lat', lat))
+
+ if lng is not None:
+
+ _query_params.append(('lng', lng))
+
+ if profile is not None:
+
+ _query_params.append(('profile', profile))
+
+ if unit is not None:
+
+ _query_params.append(('unit', unit))
+
+ if amount is not None:
+
+ _query_params.append(('amount', amount))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/isochrone',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/jobs_api.py b/cm_python_openapi_sdk/api/jobs_api.py
new file mode 100644
index 0000000..e662f45
--- /dev/null
+++ b/cm_python_openapi_sdk/api/jobs_api.py
@@ -0,0 +1,958 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class JobsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_job_status(
+ self,
+ job_id: Annotated[StrictStr, Field(description="job id is generated when submitting the job")],
+ type: Annotated[StrictStr, Field(description="Jobs type")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> JobDetailResponse:
+ """get_job_status
+
+ Checks the current status of a given job. ### Job Statuses - **RUNNING**: The job is currently running or waiting in the queue. - **SUCCEEDED**: The job was successfully processed. - **FAILED**: The job execution failed. - **TIMED_OUT**: The job execution exceeded the allowed time limit. - **ABORTED**: The job execution was manually or systemically aborted.
+
+ :param job_id: job id is generated when submitting the job (required)
+ :type job_id: str
+ :param type: Jobs type (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_job_status_serialize(
+ job_id=job_id,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_job_status_with_http_info(
+ self,
+ job_id: Annotated[StrictStr, Field(description="job id is generated when submitting the job")],
+ type: Annotated[StrictStr, Field(description="Jobs type")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[JobDetailResponse]:
+ """get_job_status
+
+ Checks the current status of a given job. ### Job Statuses - **RUNNING**: The job is currently running or waiting in the queue. - **SUCCEEDED**: The job was successfully processed. - **FAILED**: The job execution failed. - **TIMED_OUT**: The job execution exceeded the allowed time limit. - **ABORTED**: The job execution was manually or systemically aborted.
+
+ :param job_id: job id is generated when submitting the job (required)
+ :type job_id: str
+ :param type: Jobs type (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_job_status_serialize(
+ job_id=job_id,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_job_status_without_preload_content(
+ self,
+ job_id: Annotated[StrictStr, Field(description="job id is generated when submitting the job")],
+ type: Annotated[StrictStr, Field(description="Jobs type")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_job_status
+
+ Checks the current status of a given job. ### Job Statuses - **RUNNING**: The job is currently running or waiting in the queue. - **SUCCEEDED**: The job was successfully processed. - **FAILED**: The job execution failed. - **TIMED_OUT**: The job execution exceeded the allowed time limit. - **ABORTED**: The job execution was manually or systemically aborted.
+
+ :param job_id: job id is generated when submitting the job (required)
+ :type job_id: str
+ :param type: Jobs type (required)
+ :type type: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_job_status_serialize(
+ job_id=job_id,
+ type=type,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_job_status_serialize(
+ self,
+ job_id,
+ type,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if job_id is not None:
+ _path_params['jobId'] = job_id
+ # process the query parameters
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/jobs/{jobId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_jobs_history(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="projectId for which to retrieve jobs history")],
+ account_id: Annotated[Optional[StrictStr], Field(description="AccountId that started the job executions")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Jobs type")] = None,
+ dataset: Optional[StrictStr] = None,
+ last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> JobHistoryPagedModelDTO:
+ """get_jobs_history
+
+ Retrieves the job history for a project. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude). - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning).
+
+ :param project_id: projectId for which to retrieve jobs history (required)
+ :type project_id: str
+ :param account_id: AccountId that started the job executions
+ :type account_id: str
+ :param type: Jobs type
+ :type type: str
+ :param dataset:
+ :type dataset: str
+ :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format)
+ :type last_evaluated_timestamp: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort_direction: Sort direction
+ :type sort_direction: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_jobs_history_serialize(
+ project_id=project_id,
+ account_id=account_id,
+ type=type,
+ dataset=dataset,
+ last_evaluated_timestamp=last_evaluated_timestamp,
+ size=size,
+ sort_direction=sort_direction,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobHistoryPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_jobs_history_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="projectId for which to retrieve jobs history")],
+ account_id: Annotated[Optional[StrictStr], Field(description="AccountId that started the job executions")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Jobs type")] = None,
+ dataset: Optional[StrictStr] = None,
+ last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[JobHistoryPagedModelDTO]:
+ """get_jobs_history
+
+ Retrieves the job history for a project. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude). - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning).
+
+ :param project_id: projectId for which to retrieve jobs history (required)
+ :type project_id: str
+ :param account_id: AccountId that started the job executions
+ :type account_id: str
+ :param type: Jobs type
+ :type type: str
+ :param dataset:
+ :type dataset: str
+ :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format)
+ :type last_evaluated_timestamp: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort_direction: Sort direction
+ :type sort_direction: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_jobs_history_serialize(
+ project_id=project_id,
+ account_id=account_id,
+ type=type,
+ dataset=dataset,
+ last_evaluated_timestamp=last_evaluated_timestamp,
+ size=size,
+ sort_direction=sort_direction,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobHistoryPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_jobs_history_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="projectId for which to retrieve jobs history")],
+ account_id: Annotated[Optional[StrictStr], Field(description="AccountId that started the job executions")] = None,
+ type: Annotated[Optional[StrictStr], Field(description="Jobs type")] = None,
+ dataset: Optional[StrictStr] = None,
+ last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_jobs_history
+
+ Retrieves the job history for a project. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude). - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning).
+
+ :param project_id: projectId for which to retrieve jobs history (required)
+ :type project_id: str
+ :param account_id: AccountId that started the job executions
+ :type account_id: str
+ :param type: Jobs type
+ :type type: str
+ :param dataset:
+ :type dataset: str
+ :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format)
+ :type last_evaluated_timestamp: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort_direction: Sort direction
+ :type sort_direction: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_jobs_history_serialize(
+ project_id=project_id,
+ account_id=account_id,
+ type=type,
+ dataset=dataset,
+ last_evaluated_timestamp=last_evaluated_timestamp,
+ size=size,
+ sort_direction=sort_direction,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "JobHistoryPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_jobs_history_serialize(
+ self,
+ project_id,
+ account_id,
+ type,
+ dataset,
+ last_evaluated_timestamp,
+ size,
+ sort_direction,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if project_id is not None:
+
+ _query_params.append(('projectId', project_id))
+
+ if account_id is not None:
+
+ _query_params.append(('accountId', account_id))
+
+ if type is not None:
+
+ _query_params.append(('type', type))
+
+ if dataset is not None:
+
+ _query_params.append(('dataset', dataset))
+
+ if last_evaluated_timestamp is not None:
+
+ _query_params.append(('lastEvaluatedTimestamp', last_evaluated_timestamp))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort_direction is not None:
+
+ _query_params.append(('sortDirection', sort_direction))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/jobs/history',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def submit_job_execution(
+ self,
+ submit_job_execution_request: Annotated[SubmitJobExecutionRequest, Field(description="Successful response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> JobDetailResponse:
+ """submit_job_execution
+
+ Starts the execution of a new project task. Tasks are processed asynchronously, and all jobs are added to a queue. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude); limited to 1,000 points per request. - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning). ### Security - **dataPull, importProject**: Requires `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles. - **dataDump, truncate**: Requires the `ADMIN` project role. - **export, bulkPointQuery**: Requires `VIEWER`, `VIEW_CREATOR`, `METADATA_EDITOR`, `DATA_EDITOR`, `VIEW_CREATOR`, or `ADMIN` project roles. - **validate**: Requires `METADATA_EDITOR`, `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles.
+
+ :param submit_job_execution_request: Successful response (required)
+ :type submit_job_execution_request: SubmitJobExecutionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._submit_job_execution_serialize(
+ submit_job_execution_request=submit_job_execution_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '202': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def submit_job_execution_with_http_info(
+ self,
+ submit_job_execution_request: Annotated[SubmitJobExecutionRequest, Field(description="Successful response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[JobDetailResponse]:
+ """submit_job_execution
+
+ Starts the execution of a new project task. Tasks are processed asynchronously, and all jobs are added to a queue. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude); limited to 1,000 points per request. - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning). ### Security - **dataPull, importProject**: Requires `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles. - **dataDump, truncate**: Requires the `ADMIN` project role. - **export, bulkPointQuery**: Requires `VIEWER`, `VIEW_CREATOR`, `METADATA_EDITOR`, `DATA_EDITOR`, `VIEW_CREATOR`, or `ADMIN` project roles. - **validate**: Requires `METADATA_EDITOR`, `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles.
+
+ :param submit_job_execution_request: Successful response (required)
+ :type submit_job_execution_request: SubmitJobExecutionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._submit_job_execution_serialize(
+ submit_job_execution_request=submit_job_execution_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '202': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def submit_job_execution_without_preload_content(
+ self,
+ submit_job_execution_request: Annotated[SubmitJobExecutionRequest, Field(description="Successful response")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """submit_job_execution
+
+ Starts the execution of a new project task. Tasks are processed asynchronously, and all jobs are added to a queue. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude); limited to 1,000 points per request. - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning). ### Security - **dataPull, importProject**: Requires `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles. - **dataDump, truncate**: Requires the `ADMIN` project role. - **export, bulkPointQuery**: Requires `VIEWER`, `VIEW_CREATOR`, `METADATA_EDITOR`, `DATA_EDITOR`, `VIEW_CREATOR`, or `ADMIN` project roles. - **validate**: Requires `METADATA_EDITOR`, `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles.
+
+ :param submit_job_execution_request: Successful response (required)
+ :type submit_job_execution_request: SubmitJobExecutionRequest
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._submit_job_execution_serialize(
+ submit_job_execution_request=submit_job_execution_request,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '202': "JobDetailResponse",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _submit_job_execution_serialize(
+ self,
+ submit_job_execution_request,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if submit_job_execution_request is not None:
+ _body_params = submit_job_execution_request
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/jobs',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/openapi_client/api/maps_api.py b/cm_python_openapi_sdk/api/maps_api.py
similarity index 96%
rename from openapi_client/api/maps_api.py
rename to cm_python_openapi_sdk/api/maps_api.py
index daff18f..9939bb8 100644
--- a/openapi_client/api/maps_api.py
+++ b/cm_python_openapi_sdk/api/maps_api.py
@@ -16,15 +16,15 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import Field, StrictStr, field_validator
+from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class MapsApi:
@@ -45,6 +45,7 @@ def create_map(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,6 +67,8 @@ def create_map(
:type project_id: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ def create_map(
_param = self._create_map_serialize(
project_id=project_id,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -118,6 +122,7 @@ def create_map_with_http_info(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -139,6 +144,8 @@ def create_map_with_http_info(
:type project_id: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -164,6 +171,7 @@ def create_map_with_http_info(
_param = self._create_map_serialize(
project_id=project_id,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -191,6 +199,7 @@ def create_map_without_preload_content(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -212,6 +221,8 @@ def create_map_without_preload_content(
:type project_id: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -237,6 +248,7 @@ def create_map_without_preload_content(
_param = self._create_map_serialize(
project_id=project_id,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -259,6 +271,7 @@ def _create_map_serialize(
self,
project_id,
map_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -284,6 +297,8 @@ def _create_map_serialize(
_path_params['projectId'] = project_id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if map_dto is not None:
@@ -1199,6 +1214,7 @@ def update_map_by_id(
id: Annotated[StrictStr, Field(description="Id of the map")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1224,6 +1240,8 @@ def update_map_by_id(
:type if_match: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1251,6 +1269,7 @@ def update_map_by_id(
id=id,
if_match=if_match,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1283,6 +1302,7 @@ def update_map_by_id_with_http_info(
id: Annotated[StrictStr, Field(description="Id of the map")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1308,6 +1328,8 @@ def update_map_by_id_with_http_info(
:type if_match: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1335,6 +1357,7 @@ def update_map_by_id_with_http_info(
id=id,
if_match=if_match,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1367,6 +1390,7 @@ def update_map_by_id_without_preload_content(
id: Annotated[StrictStr, Field(description="Id of the map")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
map_dto: MapDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1392,6 +1416,8 @@ def update_map_by_id_without_preload_content(
:type if_match: str
:param map_dto: (required)
:type map_dto: MapDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1419,6 +1445,7 @@ def update_map_by_id_without_preload_content(
id=id,
if_match=if_match,
map_dto=map_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1446,6 +1473,7 @@ def _update_map_by_id_serialize(
id,
if_match,
map_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -1475,6 +1503,8 @@ def _update_map_by_id_serialize(
# process the header parameters
if if_match is not None:
_header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if map_dto is not None:
diff --git a/cm_python_openapi_sdk/api/marker_selectors_api.py b/cm_python_openapi_sdk/api/marker_selectors_api.py
new file mode 100644
index 0000000..661386a
--- /dev/null
+++ b/cm_python_openapi_sdk/api/marker_selectors_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class MarkerSelectorsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_marker_selector(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerSelectorDTO:
+ """Creates new Marker Selector.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_selector_serialize(
+ project_id=project_id,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_marker_selector_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerSelectorDTO]:
+ """Creates new Marker Selector.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_selector_serialize(
+ project_id=project_id,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_marker_selector_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new Marker Selector.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_selector_serialize(
+ project_id=project_id,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_marker_selector_serialize(
+ self,
+ project_id,
+ marker_selector_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if marker_selector_dto is not None:
+ _body_params = marker_selector_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/markerSelectors',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_marker_selector_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_marker_selector_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_marker_selector_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_marker_selector_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/markerSelectors/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_marker_selectors(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerSelectorPagedModelDTO:
+ """Returns paged collection of all Marker Selectors in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_marker_selectors_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_marker_selectors_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerSelectorPagedModelDTO]:
+ """Returns paged collection of all Marker Selectors in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_marker_selectors_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_marker_selectors_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Marker Selectors in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_marker_selectors_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_marker_selectors_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/markerSelectors',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_marker_selector_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerSelectorDTO:
+ """Gets marker selector by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_marker_selector_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerSelectorDTO]:
+ """Gets marker selector by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_marker_selector_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets marker selector by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_marker_selector_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/markerSelectors/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_marker_selector_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerSelectorDTO:
+ """Updates marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_marker_selector_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerSelectorDTO]:
+ """Updates marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_marker_selector_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker selector")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_selector_dto: MarkerSelectorDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates marker selector by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker selector (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_selector_dto: (required)
+ :type marker_selector_dto: MarkerSelectorDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_selector_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_selector_dto=marker_selector_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerSelectorDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_marker_selector_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ marker_selector_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if marker_selector_dto is not None:
+ _body_params = marker_selector_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/markerSelectors/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/markers_api.py b/cm_python_openapi_sdk/api/markers_api.py
new file mode 100644
index 0000000..236dbcd
--- /dev/null
+++ b/cm_python_openapi_sdk/api/markers_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class MarkersApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_marker(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerDTO:
+ """Creates new Marker.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_serialize(
+ project_id=project_id,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_marker_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerDTO]:
+ """Creates new Marker.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_serialize(
+ project_id=project_id,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_marker_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new Marker.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_marker_serialize(
+ project_id=project_id,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_marker_serialize(
+ self,
+ project_id,
+ marker_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if marker_dto is not None:
+ _body_params = marker_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/markers',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_marker_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_marker_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_marker_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_marker_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/markers/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_markers(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerPagedModelDTO:
+ """Returns paged collection of all Markers in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_markers_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_markers_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerPagedModelDTO]:
+ """Returns paged collection of all Markers in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_markers_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_markers_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Markers in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_markers_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_markers_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/markers',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_marker_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerDTO:
+ """Gets marker by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_marker_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerDTO]:
+ """Gets marker by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_marker_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets marker by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_marker_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/markers/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_marker_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MarkerDTO:
+ """Updates marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_marker_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MarkerDTO]:
+ """Updates marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_marker_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the marker")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ marker_dto: MarkerDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates marker by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the marker (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param marker_dto: (required)
+ :type marker_dto: MarkerDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_marker_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ marker_dto=marker_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MarkerDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_marker_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ marker_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if marker_dto is not None:
+ _body_params = marker_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/markers/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/members_api.py b/cm_python_openapi_sdk/api/members_api.py
new file mode 100644
index 0000000..31a0fb2
--- /dev/null
+++ b/cm_python_openapi_sdk/api/members_api.py
@@ -0,0 +1,1532 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class MembersApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def add_project_member(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_membership_dto: CreateMembershipDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MembershipDTO:
+ """Add new project member and assign a role.
+
+ The user is added into the project without any cooperation (acknowledgement) with invited user. See the Project Invitation resource too. It allows to invite a new member by email address and sends an invitation email. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_membership_dto: (required)
+ :type create_membership_dto: CreateMembershipDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_project_member_serialize(
+ project_id=project_id,
+ create_membership_dto=create_membership_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def add_project_member_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_membership_dto: CreateMembershipDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MembershipDTO]:
+ """Add new project member and assign a role.
+
+ The user is added into the project without any cooperation (acknowledgement) with invited user. See the Project Invitation resource too. It allows to invite a new member by email address and sends an invitation email. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_membership_dto: (required)
+ :type create_membership_dto: CreateMembershipDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_project_member_serialize(
+ project_id=project_id,
+ create_membership_dto=create_membership_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def add_project_member_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_membership_dto: CreateMembershipDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Add new project member and assign a role.
+
+ The user is added into the project without any cooperation (acknowledgement) with invited user. See the Project Invitation resource too. It allows to invite a new member by email address and sends an invitation email. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_membership_dto: (required)
+ :type create_membership_dto: CreateMembershipDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._add_project_member_serialize(
+ project_id=project_id,
+ create_membership_dto=create_membership_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _add_project_member_serialize(
+ self,
+ project_id,
+ create_membership_dto,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_membership_dto is not None:
+ _body_params = create_membership_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/members',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_membership(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes membership of user in project.
+
+ The user will be not able to access the project anymore. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_membership_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes membership of user in project.
+
+ The user will be not able to access the project anymore. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_membership_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes membership of user in project.
+
+ The user will be not able to access the project anymore. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_membership_serialize(
+ self,
+ project_id,
+ membership_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if membership_id is not None:
+ _path_params['membershipId'] = membership_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/members/{membershipId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_membership_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MembershipDTO:
+ """Get detail of user membership in project by membership id.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_membership_by_id_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_membership_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MembershipDTO]:
+ """Get detail of user membership in project by membership id.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_membership_by_id_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_membership_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get detail of user membership in project by membership id.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_membership_by_id_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_membership_by_id_serialize(
+ self,
+ project_id,
+ membership_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if membership_id is not None:
+ _path_params['membershipId'] = membership_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/members/{membershipId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_project_members(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetProjectMembers200Response:
+ """Get list of project members.
+
+ See list of user role: https://docs.clevermaps.io/docs/projects-and-users#UserrolesandPermissions-Userroles **Security:** Restricted to ADMIN project role, unless `accountId` is provided. See Constraints for more info Constraints: - If `accountId` is provided, other query parameters (`size`, `sort`, etc.) must NOT be used. Also endpoint will return single member.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param account_id: Id of the account, used in query parameters
+ :type account_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_members_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ expand=expand,
+ account_id=account_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetProjectMembers200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_project_members_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetProjectMembers200Response]:
+ """Get list of project members.
+
+ See list of user role: https://docs.clevermaps.io/docs/projects-and-users#UserrolesandPermissions-Userroles **Security:** Restricted to ADMIN project role, unless `accountId` is provided. See Constraints for more info Constraints: - If `accountId` is provided, other query parameters (`size`, `sort`, etc.) must NOT be used. Also endpoint will return single member.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param account_id: Id of the account, used in query parameters
+ :type account_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_members_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ expand=expand,
+ account_id=account_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetProjectMembers200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_project_members_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get list of project members.
+
+ See list of user role: https://docs.clevermaps.io/docs/projects-and-users#UserrolesandPermissions-Userroles **Security:** Restricted to ADMIN project role, unless `accountId` is provided. See Constraints for more info Constraints: - If `accountId` is provided, other query parameters (`size`, `sort`, etc.) must NOT be used. Also endpoint will return single member.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param account_id: Id of the account, used in query parameters
+ :type account_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_members_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ expand=expand,
+ account_id=account_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetProjectMembers200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_project_members_serialize(
+ self,
+ project_id,
+ size,
+ page,
+ sort,
+ expand,
+ account_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ if account_id is not None:
+
+ _query_params.append(('accountId', account_id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/members',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_membership(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ update_membership: UpdateMembership,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MembershipDTO:
+ """Update membership by changing role or status in project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param update_membership: (required)
+ :type update_membership: UpdateMembership
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ update_membership=update_membership,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_membership_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ update_membership: UpdateMembership,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MembershipDTO]:
+ """Update membership by changing role or status in project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param update_membership: (required)
+ :type update_membership: UpdateMembership
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ update_membership=update_membership,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_membership_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ membership_id: Annotated[str, Field(strict=True, description="Id of the membership")],
+ update_membership: UpdateMembership,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update membership by changing role or status in project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param membership_id: Id of the membership (required)
+ :type membership_id: str
+ :param update_membership: (required)
+ :type update_membership: UpdateMembership
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_membership_serialize(
+ project_id=project_id,
+ membership_id=membership_id,
+ update_membership=update_membership,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MembershipDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_membership_serialize(
+ self,
+ project_id,
+ membership_id,
+ update_membership,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if membership_id is not None:
+ _path_params['membershipId'] = membership_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_membership is not None:
+ _body_params = update_membership
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/members/{membershipId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/metrics_api.py b/cm_python_openapi_sdk/api/metrics_api.py
new file mode 100644
index 0000000..87acd2d
--- /dev/null
+++ b/cm_python_openapi_sdk/api/metrics_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class MetricsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_metric(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MetricDTO:
+ """Creates new metric.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_metric_serialize(
+ project_id=project_id,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_metric_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MetricDTO]:
+ """Creates new metric.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_metric_serialize(
+ project_id=project_id,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_metric_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new metric.
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_metric_serialize(
+ project_id=project_id,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_metric_serialize(
+ self,
+ project_id,
+ metric_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if metric_dto is not None:
+ _body_params = metric_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/metrics',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_metric_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_metric_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_metric_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_metric_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/metrics/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_metrics(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MetricPagedModelDTO:
+ """Returns paged collection of all Metrics in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_metrics_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_metrics_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MetricPagedModelDTO]:
+ """Returns paged collection of all Metrics in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_metrics_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_metrics_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Metrics in a project.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_metrics_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_metrics_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/metrics',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_metric_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MetricDTO:
+ """Gets metric by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_metric_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MetricDTO]:
+ """Gets metric by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_metric_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets metric by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_metric_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/metrics/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_metric_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MetricDTO:
+ """Updates metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_metric_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MetricDTO]:
+ """Updates metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_metric_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the metric")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ metric_dto: MetricDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates metric by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the metric (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param metric_dto: (required)
+ :type metric_dto: MetricDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_metric_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ metric_dto=metric_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MetricDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_metric_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ metric_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if metric_dto is not None:
+ _body_params = metric_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/metrics/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/organizations_api.py b/cm_python_openapi_sdk/api/organizations_api.py
new file mode 100644
index 0000000..66b8cad
--- /dev/null
+++ b/cm_python_openapi_sdk/api/organizations_api.py
@@ -0,0 +1,1412 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class OrganizationsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_organization(
+ self,
+ create_organization_dto: CreateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> OrganizationPagedModelDTO:
+ """Creates a new organization.
+
+ **Security:** Creating of organization is restricted to CleverMaps platform administrators.
+
+ :param create_organization_dto: (required)
+ :type create_organization_dto: CreateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_dto=create_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_organization_with_http_info(
+ self,
+ create_organization_dto: CreateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[OrganizationPagedModelDTO]:
+ """Creates a new organization.
+
+ **Security:** Creating of organization is restricted to CleverMaps platform administrators.
+
+ :param create_organization_dto: (required)
+ :type create_organization_dto: CreateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_dto=create_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_organization_without_preload_content(
+ self,
+ create_organization_dto: CreateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates a new organization.
+
+ **Security:** Creating of organization is restricted to CleverMaps platform administrators.
+
+ :param create_organization_dto: (required)
+ :type create_organization_dto: CreateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_organization_serialize(
+ create_organization_dto=create_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_organization_serialize(
+ self,
+ create_organization_dto,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_organization_dto is not None:
+ _body_params = create_organization_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/organizations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_organization(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Delete an organization.
+
+ **Security:** Deleting of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_organization_with_http_info(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Delete an organization.
+
+ **Security:** Deleting of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_organization_without_preload_content(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete an organization.
+
+ **Security:** Deleting of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_organization_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_organization_serialize(
+ self,
+ organization_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_id is not None:
+ _path_params['organizationId'] = organization_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/organizations/{organizationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organization_by_id(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> OrganizationResponseDTO:
+ """Get organization detail.
+
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_by_id_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organization_by_id_with_http_info(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[OrganizationResponseDTO]:
+ """Get organization detail.
+
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_by_id_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organization_by_id_without_preload_content(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get organization detail.
+
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organization_by_id_serialize(
+ organization_id=organization_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organization_by_id_serialize(
+ self,
+ organization_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_id is not None:
+ _path_params['organizationId'] = organization_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/organizations/{organizationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_organizations(
+ self,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the project, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> GetOrganizations200Response:
+ """Get all organizations available for authenticated user.
+
+
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param project_id: Id of the project, used in query parameters
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ page=page,
+ size=size,
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizations200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_organizations_with_http_info(
+ self,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the project, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[GetOrganizations200Response]:
+ """Get all organizations available for authenticated user.
+
+
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param project_id: Id of the project, used in query parameters
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ page=page,
+ size=size,
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizations200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_organizations_without_preload_content(
+ self,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ project_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the project, used in query parameters")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get all organizations available for authenticated user.
+
+
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param project_id: Id of the project, used in query parameters
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_organizations_serialize(
+ page=page,
+ size=size,
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "GetOrganizations200Response",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_organizations_serialize(
+ self,
+ page,
+ size,
+ project_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if project_id is not None:
+
+ _query_params.append(('projectId', project_id))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/organizations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_organization(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ update_organization_dto: UpdateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> OrganizationResponseDTO:
+ """Update organization.
+
+ **Security:** Updating of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param update_organization_dto: (required)
+ :type update_organization_dto: UpdateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ organization_id=organization_id,
+ update_organization_dto=update_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_organization_with_http_info(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ update_organization_dto: UpdateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[OrganizationResponseDTO]:
+ """Update organization.
+
+ **Security:** Updating of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param update_organization_dto: (required)
+ :type update_organization_dto: UpdateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ organization_id=organization_id,
+ update_organization_dto=update_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_organization_without_preload_content(
+ self,
+ organization_id: Annotated[str, Field(strict=True, description="Id of the organization")],
+ update_organization_dto: UpdateOrganizationDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update organization.
+
+ **Security:** Updating of organization is restricted to CleverMaps platform administrators.
+
+ :param organization_id: Id of the organization (required)
+ :type organization_id: str
+ :param update_organization_dto: (required)
+ :type update_organization_dto: UpdateOrganizationDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_organization_serialize(
+ organization_id=organization_id,
+ update_organization_dto=update_organization_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_organization_serialize(
+ self,
+ organization_id,
+ update_organization_dto,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if organization_id is not None:
+ _path_params['organizationId'] = organization_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_organization_dto is not None:
+ _body_params = update_organization_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/organizations/{organizationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/project_invitations_api.py b/cm_python_openapi_sdk/api/project_invitations_api.py
new file mode 100644
index 0000000..1edd55d
--- /dev/null
+++ b/cm_python_openapi_sdk/api/project_invitations_api.py
@@ -0,0 +1,1519 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class ProjectInvitationsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_invitation(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_invitation: CreateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Create new invitation to the project for a user.
+
+ User is specified by email address and invitation contains a project role. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_invitation: (required)
+ :type create_invitation: CreateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_invitation_serialize(
+ project_id=project_id,
+ create_invitation=create_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_invitation_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_invitation: CreateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Create new invitation to the project for a user.
+
+ User is specified by email address and invitation contains a project role. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_invitation: (required)
+ :type create_invitation: CreateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_invitation_serialize(
+ project_id=project_id,
+ create_invitation=create_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_invitation_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ create_invitation: CreateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create new invitation to the project for a user.
+
+ User is specified by email address and invitation contains a project role. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param create_invitation: (required)
+ :type create_invitation: CreateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_invitation_serialize(
+ project_id=project_id,
+ create_invitation=create_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_invitation_serialize(
+ self,
+ project_id,
+ create_invitation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_invitation is not None:
+ _body_params = create_invitation
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/invitations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_invitation(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Delete invitation.
+
+ If an invitation has status `PENDING`, project Admin can cancel it by calling the `DELETE` method. Calling the `DELETE` method is equivalent to sending a `PUT` request with the status `CANCELED` as described above. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_invitation_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Delete invitation.
+
+ If an invitation has status `PENDING`, project Admin can cancel it by calling the `DELETE` method. Calling the `DELETE` method is equivalent to sending a `PUT` request with the status `CANCELED` as described above. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_invitation_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete invitation.
+
+ If an invitation has status `PENDING`, project Admin can cancel it by calling the `DELETE` method. Calling the `DELETE` method is equivalent to sending a `PUT` request with the status `CANCELED` as described above. **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_invitation_serialize(
+ self,
+ project_id,
+ invitation_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if invitation_id is not None:
+ _path_params['invitationId'] = invitation_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/invitations/{invitationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_invitation_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitation_by_id_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_invitation_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitation_by_id_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_invitation_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitation_by_id_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_invitation_by_id_serialize(
+ self,
+ project_id,
+ invitation_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if invitation_id is not None:
+ _path_params['invitationId'] = invitation_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/invitations/{invitationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_invitations(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ status: Annotated[Optional[StrictStr], Field(description="Filter invitations by status attribute.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationPagedModelDTO:
+ """Get list of project invitations.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param status: Filter invitations by status attribute.
+ :type status: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitations_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ status=status,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_invitations_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ status: Annotated[Optional[StrictStr], Field(description="Filter invitations by status attribute.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationPagedModelDTO]:
+ """Get list of project invitations.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param status: Filter invitations by status attribute.
+ :type status: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitations_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ status=status,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_invitations_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ status: Annotated[Optional[StrictStr], Field(description="Filter invitations by status attribute.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get list of project invitations.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param size: The count of records to return for one page
+ :type size: int
+ :param page: Number of the page
+ :type page: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param status: Filter invitations by status attribute.
+ :type status: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_invitations_serialize(
+ project_id=project_id,
+ size=size,
+ page=page,
+ sort=sort,
+ status=status,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_invitations_serialize(
+ self,
+ project_id,
+ size,
+ page,
+ sort,
+ status,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if status is not None:
+
+ _query_params.append(('status', status))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/invitations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_invitation(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ update_invitation: UpdateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Update invitation.
+
+ Cancel or resend project invitation. If an invitation has status `PENDING`, project Admin can cancel it. If the invitation has status `CANCELED`, `EXPIRED` or `PENDING`, user can activate it or resend the invitation email by PUTing the status `PENDING`. Invitations with status `ACCEPTED` cannot be updated anymore. **Allowed status transitions:** | Original Status | PUT Request | New Status | |---------------|------------|------------| | CANCELED | PENDING | PENDING | | EXPIRED | PENDING | PENDING | | PENDING | CANCELED | CANCELED | **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param update_invitation: (required)
+ :type update_invitation: UpdateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ update_invitation=update_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_invitation_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ update_invitation: UpdateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Update invitation.
+
+ Cancel or resend project invitation. If an invitation has status `PENDING`, project Admin can cancel it. If the invitation has status `CANCELED`, `EXPIRED` or `PENDING`, user can activate it or resend the invitation email by PUTing the status `PENDING`. Invitations with status `ACCEPTED` cannot be updated anymore. **Allowed status transitions:** | Original Status | PUT Request | New Status | |---------------|------------|------------| | CANCELED | PENDING | PENDING | | EXPIRED | PENDING | PENDING | | PENDING | CANCELED | CANCELED | **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param update_invitation: (required)
+ :type update_invitation: UpdateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ update_invitation=update_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_invitation_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ invitation_id: Annotated[str, Field(strict=True, description="Id of the invitation")],
+ update_invitation: UpdateInvitation,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update invitation.
+
+ Cancel or resend project invitation. If an invitation has status `PENDING`, project Admin can cancel it. If the invitation has status `CANCELED`, `EXPIRED` or `PENDING`, user can activate it or resend the invitation email by PUTing the status `PENDING`. Invitations with status `ACCEPTED` cannot be updated anymore. **Allowed status transitions:** | Original Status | PUT Request | New Status | |---------------|------------|------------| | CANCELED | PENDING | PENDING | | EXPIRED | PENDING | PENDING | | PENDING | CANCELED | CANCELED | **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param invitation_id: Id of the invitation (required)
+ :type invitation_id: str
+ :param update_invitation: (required)
+ :type update_invitation: UpdateInvitation
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_invitation_serialize(
+ project_id=project_id,
+ invitation_id=invitation_id,
+ update_invitation=update_invitation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_invitation_serialize(
+ self,
+ project_id,
+ invitation_id,
+ update_invitation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if invitation_id is not None:
+ _path_params['invitationId'] = invitation_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_invitation is not None:
+ _body_params = update_invitation
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/invitations/{invitationId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/project_settings_api.py b/cm_python_openapi_sdk/api/project_settings_api.py
new file mode 100644
index 0000000..9d69e64
--- /dev/null
+++ b/cm_python_openapi_sdk/api/project_settings_api.py
@@ -0,0 +1,1556 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictBool, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class ProjectSettingsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_project_settings(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectSettingsDTO:
+ """Creates new project settings
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_settings_serialize(
+ project_id=project_id,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_project_settings_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectSettingsDTO]:
+ """Creates new project settings
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_settings_serialize(
+ project_id=project_id,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_project_settings_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Creates new project settings
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_settings_serialize(
+ project_id=project_id,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '409': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_project_settings_serialize(
+ self,
+ project_id,
+ project_settings_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ # process the form parameters
+ # process the body parameter
+ if project_settings_dto is not None:
+ _body_params = project_settings_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects/{projectId}/md/projectSettings',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_project_settings_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Deletes project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_project_settings_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Deletes project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_project_settings_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Deletes project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_project_settings_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}/md/projectSettings/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_project_settings(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectSettingsPagedModelDTO:
+ """Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_project_settings_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_project_settings_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectSettingsPagedModelDTO]:
+ """Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_project_settings_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_project_settings_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_project_settings_serialize(
+ project_id=project_id,
+ page=page,
+ size=size,
+ sort=sort,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_project_settings_serialize(
+ self,
+ project_id,
+ page,
+ size,
+ sort,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/projectSettings',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_project_settings_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectSettingsDTO:
+ """Gets project settings by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_project_settings_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectSettingsDTO]:
+ """Gets project settings by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_project_settings_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Gets project settings by id
+
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_project_settings_by_id_serialize(
+ self,
+ project_id,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}/md/projectSettings/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_project_settings_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectSettingsDTO:
+ """Updates project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_project_settings_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectSettingsDTO]:
+ """Updates project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_project_settings_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ id: Annotated[StrictStr, Field(description="Id of the project settings")],
+ if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
+ project_settings_dto: ProjectSettingsDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Updates project settings by id
+
+ Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param id: Id of the project settings (required)
+ :type id: str
+ :param if_match: ETag value used for conditional updates (required)
+ :type if_match: str
+ :param project_settings_dto: (required)
+ :type project_settings_dto: ProjectSettingsDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_settings_by_id_serialize(
+ project_id=project_id,
+ id=id,
+ if_match=if_match,
+ project_settings_dto=project_settings_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectSettingsDTO",
+ '400': None,
+ '404': None,
+ '409': None,
+ '412': None,
+ '428': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_project_settings_by_id_serialize(
+ self,
+ project_id,
+ id,
+ if_match,
+ project_settings_dto,
+ x_can_strict_json_validation,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
+ if if_match is not None:
+ _header_params['If-Match'] = if_match
+ # process the form parameters
+ # process the body parameter
+ if project_settings_dto is not None:
+ _body_params = project_settings_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}/md/projectSettings/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/projects_api.py b/cm_python_openapi_sdk/api/projects_api.py
new file mode 100644
index 0000000..25ca1b1
--- /dev/null
+++ b/cm_python_openapi_sdk/api/projects_api.py
@@ -0,0 +1,1485 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr, field_validator
+from typing import Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class ProjectsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_project(
+ self,
+ create_project_dto: CreateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectResponseDTO:
+ """Create new project
+
+ Create new project and set the authenticated user as the project member in ADMIN project role.
+
+ :param create_project_dto: (required)
+ :type create_project_dto: CreateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_serialize(
+ create_project_dto=create_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_project_with_http_info(
+ self,
+ create_project_dto: CreateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectResponseDTO]:
+ """Create new project
+
+ Create new project and set the authenticated user as the project member in ADMIN project role.
+
+ :param create_project_dto: (required)
+ :type create_project_dto: CreateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_serialize(
+ create_project_dto=create_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_project_without_preload_content(
+ self,
+ create_project_dto: CreateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create new project
+
+ Create new project and set the authenticated user as the project member in ADMIN project role.
+
+ :param create_project_dto: (required)
+ :type create_project_dto: CreateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_project_serialize(
+ create_project_dto=create_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_project_serialize(
+ self,
+ create_project_dto,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if create_project_dto is not None:
+ _body_params = create_project_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/projects',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def delete_project(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Delete project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_serialize(
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def delete_project_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Delete project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_serialize(
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def delete_project_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Delete project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._delete_project_serialize(
+ project_id=project_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '204': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _delete_project_serialize(
+ self,
+ project_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='DELETE',
+ resource_path='/projects/{projectId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_all_projects(
+ self,
+ organization_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the organization, used in query parameters")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ share: Annotated[Optional[StrictStr], Field(description="Filter project list by share attribute.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectPagedModelDTO:
+ """Get list of projects for authenticated account.
+
+ **Security:** Resource returns only those projects where the authenticated user is a member.
+
+ :param organization_id: Id of the organization, used in query parameters
+ :type organization_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param share: Filter project list by share attribute.
+ :type share: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_projects_serialize(
+ organization_id=organization_id,
+ page=page,
+ size=size,
+ sort=sort,
+ share=share,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_all_projects_with_http_info(
+ self,
+ organization_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the organization, used in query parameters")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ share: Annotated[Optional[StrictStr], Field(description="Filter project list by share attribute.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectPagedModelDTO]:
+ """Get list of projects for authenticated account.
+
+ **Security:** Resource returns only those projects where the authenticated user is a member.
+
+ :param organization_id: Id of the organization, used in query parameters
+ :type organization_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param share: Filter project list by share attribute.
+ :type share: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_projects_serialize(
+ organization_id=organization_id,
+ page=page,
+ size=size,
+ sort=sort,
+ share=share,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_all_projects_without_preload_content(
+ self,
+ organization_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the organization, used in query parameters")] = None,
+ page: Annotated[Optional[Annotated[int, Field(strict=True, ge=0)]], Field(description="Number of the page")] = None,
+ size: Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="The count of records to return for one page")] = None,
+ sort: Annotated[Optional[StrictStr], Field(description="Name of the attribute to use for sorting the results, together with direction (asc or desc)")] = None,
+ share: Annotated[Optional[StrictStr], Field(description="Filter project list by share attribute.")] = None,
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get list of projects for authenticated account.
+
+ **Security:** Resource returns only those projects where the authenticated user is a member.
+
+ :param organization_id: Id of the organization, used in query parameters
+ :type organization_id: str
+ :param page: Number of the page
+ :type page: int
+ :param size: The count of records to return for one page
+ :type size: int
+ :param sort: Name of the attribute to use for sorting the results, together with direction (asc or desc)
+ :type sort: str
+ :param share: Filter project list by share attribute.
+ :type share: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_all_projects_serialize(
+ organization_id=organization_id,
+ page=page,
+ size=size,
+ sort=sort,
+ share=share,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectPagedModelDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_all_projects_serialize(
+ self,
+ organization_id,
+ page,
+ size,
+ sort,
+ share,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if organization_id is not None:
+
+ _query_params.append(('organizationId', organization_id))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if size is not None:
+
+ _query_params.append(('size', size))
+
+ if sort is not None:
+
+ _query_params.append(('sort', sort))
+
+ if share is not None:
+
+ _query_params.append(('share', share))
+
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_project_by_id(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectResponseDTO:
+ """Get project by given project id.
+
+ **Security:** Access is restricted only to users that are members of given project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_by_id_serialize(
+ project_id=project_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_project_by_id_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectResponseDTO]:
+ """Get project by given project id.
+
+ **Security:** Access is restricted only to users that are members of given project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_by_id_serialize(
+ project_id=project_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_project_by_id_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ expand: Annotated[Optional[StrictStr], Field(description="Expand selected attribute(s) to minimalize roundtrips.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get project by given project id.
+
+ **Security:** Access is restricted only to users that are members of given project.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param expand: Expand selected attribute(s) to minimalize roundtrips.
+ :type expand: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_project_by_id_serialize(
+ project_id=project_id,
+ expand=expand,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_project_by_id_serialize(
+ self,
+ project_id,
+ expand,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ if expand is not None:
+
+ _query_params.append(('expand', expand))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/projects/{projectId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_project(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ update_project_dto: UpdateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ProjectResponseDTO:
+ """Update the project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param update_project_dto: (required)
+ :type update_project_dto: UpdateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_serialize(
+ project_id=project_id,
+ update_project_dto=update_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_project_with_http_info(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ update_project_dto: UpdateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ProjectResponseDTO]:
+ """Update the project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param update_project_dto: (required)
+ :type update_project_dto: UpdateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_serialize(
+ project_id=project_id,
+ update_project_dto=update_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_project_without_preload_content(
+ self,
+ project_id: Annotated[str, Field(strict=True, description="Id of the project")],
+ update_project_dto: UpdateProjectDTO,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update the project.
+
+ **Security:** Restricted to ADMIN project role.
+
+ :param project_id: Id of the project (required)
+ :type project_id: str
+ :param update_project_dto: (required)
+ :type update_project_dto: UpdateProjectDTO
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_project_serialize(
+ project_id=project_id,
+ update_project_dto=update_project_dto,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ProjectResponseDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_project_serialize(
+ self,
+ project_id,
+ update_project_dto,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if project_id is not None:
+ _path_params['projectId'] = project_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if update_project_dto is not None:
+ _body_params = update_project_dto
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PUT',
+ resource_path='/projects/{projectId}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/cm_python_openapi_sdk/api/user_invitations_api.py b/cm_python_openapi_sdk/api/user_invitations_api.py
new file mode 100644
index 0000000..fd1af43
--- /dev/null
+++ b/cm_python_openapi_sdk/api/user_invitations_api.py
@@ -0,0 +1,569 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, field_validator
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
+
+
+class UserInvitationsApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def accept_user_invitation(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Accept invitation.
+
+ This resource allows accepting an invitation by an invited user. The URL contains a secret `invitationHash` that is sent to the invited user by email. By clicking on the href link from the invitation email, the user is redirected into the CleverMaps application, and after authentication, the invitation is accepted. When a user accepts an invitation, they are added as a new Member of the Project in the role granted by the invitation. **Security:** Restricted to invited user. The authenticated user email must equal the email in the invitation.
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ '403': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def accept_user_invitation_with_http_info(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Accept invitation.
+
+ This resource allows accepting an invitation by an invited user. The URL contains a secret `invitationHash` that is sent to the invited user by email. By clicking on the href link from the invitation email, the user is redirected into the CleverMaps application, and after authentication, the invitation is accepted. When a user accepts an invitation, they are added as a new Member of the Project in the role granted by the invitation. **Security:** Restricted to invited user. The authenticated user email must equal the email in the invitation.
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ '403': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def accept_user_invitation_without_preload_content(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Accept invitation.
+
+ This resource allows accepting an invitation by an invited user. The URL contains a secret `invitationHash` that is sent to the invited user by email. By clicking on the href link from the invitation email, the user is redirected into the CleverMaps application, and after authentication, the invitation is accepted. When a user accepts an invitation, they are added as a new Member of the Project in the role granted by the invitation. **Security:** Restricted to invited user. The authenticated user email must equal the email in the invitation.
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ '400': None,
+ '403': None,
+ '404': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _accept_user_invitation_serialize(
+ self,
+ invitation_hash,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if invitation_hash is not None:
+ _path_params['invitationHash'] = invitation_hash
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/invitations/{invitationHash}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_invitation(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> InvitationDTO:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_invitation_with_http_info(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[InvitationDTO]:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_invitation_without_preload_content(
+ self,
+ invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")],
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get detail of an invitation.
+
+ An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED
+
+ :param invitation_hash: Hash of the invitation (required)
+ :type invitation_hash: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_invitation_serialize(
+ invitation_hash=invitation_hash,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "InvitationDTO",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_invitation_serialize(
+ self,
+ invitation_hash,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if invitation_hash is not None:
+ _path_params['invitationHash'] = invitation_hash
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'bearerAuth'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/invitations/{invitationHash}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/openapi_client/api/views_api.py b/cm_python_openapi_sdk/api/views_api.py
similarity index 96%
rename from openapi_client/api/views_api.py
rename to cm_python_openapi_sdk/api/views_api.py
index 53066fe..fdc2267 100644
--- a/openapi_client/api/views_api.py
+++ b/cm_python_openapi_sdk/api/views_api.py
@@ -16,15 +16,15 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import Field, StrictStr, field_validator
+from pydantic import Field, StrictBool, StrictStr, field_validator
from typing import Optional
from typing_extensions import Annotated
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
-from openapi_client.api_client import ApiClient, RequestSerialized
-from openapi_client.api_response import ApiResponse
-from openapi_client.rest import RESTResponseType
+from cm_python_openapi_sdk.api_client import ApiClient, RequestSerialized
+from cm_python_openapi_sdk.api_response import ApiResponse
+from cm_python_openapi_sdk.rest import RESTResponseType
class ViewsApi:
@@ -45,6 +45,7 @@ def create_view(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -66,6 +67,8 @@ def create_view(
:type project_id: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -91,6 +94,7 @@ def create_view(
_param = self._create_view_serialize(
project_id=project_id,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -118,6 +122,7 @@ def create_view_with_http_info(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -139,6 +144,8 @@ def create_view_with_http_info(
:type project_id: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -164,6 +171,7 @@ def create_view_with_http_info(
_param = self._create_view_serialize(
project_id=project_id,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -191,6 +199,7 @@ def create_view_without_preload_content(
self,
project_id: Annotated[str, Field(strict=True, description="Id of the project")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -212,6 +221,8 @@ def create_view_without_preload_content(
:type project_id: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -237,6 +248,7 @@ def create_view_without_preload_content(
_param = self._create_view_serialize(
project_id=project_id,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -259,6 +271,7 @@ def _create_view_serialize(
self,
project_id,
view_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -284,6 +297,8 @@ def _create_view_serialize(
_path_params['projectId'] = project_id
# process the query parameters
# process the header parameters
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if view_dto is not None:
@@ -1199,6 +1214,7 @@ def update_view_by_id(
id: Annotated[StrictStr, Field(description="Id of the view")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1224,6 +1240,8 @@ def update_view_by_id(
:type if_match: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1251,6 +1269,7 @@ def update_view_by_id(
id=id,
if_match=if_match,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1283,6 +1302,7 @@ def update_view_by_id_with_http_info(
id: Annotated[StrictStr, Field(description="Id of the view")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1308,6 +1328,8 @@ def update_view_by_id_with_http_info(
:type if_match: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1335,6 +1357,7 @@ def update_view_by_id_with_http_info(
id=id,
if_match=if_match,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1367,6 +1390,7 @@ def update_view_by_id_without_preload_content(
id: Annotated[StrictStr, Field(description="Id of the view")],
if_match: Annotated[str, Field(strict=True, description="ETag value used for conditional updates")],
view_dto: ViewDTO,
+ x_can_strict_json_validation: Optional[StrictBool] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1392,6 +1416,8 @@ def update_view_by_id_without_preload_content(
:type if_match: str
:param view_dto: (required)
:type view_dto: ViewDTO
+ :param x_can_strict_json_validation:
+ :type x_can_strict_json_validation: bool
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1419,6 +1445,7 @@ def update_view_by_id_without_preload_content(
id=id,
if_match=if_match,
view_dto=view_dto,
+ x_can_strict_json_validation=x_can_strict_json_validation,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1446,6 +1473,7 @@ def _update_view_by_id_serialize(
id,
if_match,
view_dto,
+ x_can_strict_json_validation,
_request_auth,
_content_type,
_headers,
@@ -1475,6 +1503,8 @@ def _update_view_by_id_serialize(
# process the header parameters
if if_match is not None:
_header_params['If-Match'] = if_match
+ if x_can_strict_json_validation is not None:
+ _header_params['X-CAN-STRICT-JSON-VALIDATION'] = x_can_strict_json_validation
# process the form parameters
# process the body parameter
if view_dto is not None:
diff --git a/openapi_client/api_client.py b/cm_python_openapi_sdk/api_client.py
similarity index 98%
rename from openapi_client/api_client.py
rename to cm_python_openapi_sdk/api_client.py
index 282a9e5..02547d5 100644
--- a/openapi_client/api_client.py
+++ b/cm_python_openapi_sdk/api_client.py
@@ -26,11 +26,11 @@
from typing import Tuple, Optional, List, Dict, Union
from pydantic import SecretStr
-from openapi_client.configuration import Configuration
-from openapi_client.api_response import ApiResponse, T as ApiResponseT
-import openapi_client.models
-from openapi_client import rest
-from openapi_client.exceptions import (
+from cm_python_openapi_sdk.configuration import Configuration
+from cm_python_openapi_sdk.api_response import ApiResponse, T as ApiResponseT
+import cm_python_openapi_sdk.models
+from cm_python_openapi_sdk import rest
+from cm_python_openapi_sdk.exceptions import (
ApiValueError,
ApiException,
BadRequestException,
@@ -449,7 +449,7 @@ def __deserialize(self, data, klass):
if klass in self.NATIVE_TYPES_MAPPING:
klass = self.NATIVE_TYPES_MAPPING[klass]
else:
- klass = getattr(openapi_client.models, klass)
+ klass = getattr(cm_python_openapi_sdk.models, klass)
if klass in self.PRIMITIVE_TYPES:
return self.__deserialize_primitive(data, klass)
diff --git a/openapi_client/api_response.py b/cm_python_openapi_sdk/api_response.py
similarity index 100%
rename from openapi_client/api_response.py
rename to cm_python_openapi_sdk/api_response.py
diff --git a/openapi_client/configuration.py b/cm_python_openapi_sdk/configuration.py
similarity index 99%
rename from openapi_client/configuration.py
rename to cm_python_openapi_sdk/configuration.py
index c385071..53294cb 100644
--- a/openapi_client/configuration.py
+++ b/cm_python_openapi_sdk/configuration.py
@@ -230,7 +230,7 @@ def __init__(
self.logger = {}
"""Logging Settings
"""
- self.logger["package_logger"] = logging.getLogger("openapi_client")
+ self.logger["package_logger"] = logging.getLogger("cm_python_openapi_sdk")
self.logger["urllib3_logger"] = logging.getLogger("urllib3")
self.logger_format = '%(asctime)s %(levelname)s %(message)s'
"""Log format
diff --git a/openapi_client/exceptions.py b/cm_python_openapi_sdk/exceptions.py
similarity index 100%
rename from openapi_client/exceptions.py
rename to cm_python_openapi_sdk/exceptions.py
diff --git a/cm_python_openapi_sdk/models/__init__.py b/cm_python_openapi_sdk/models/__init__.py
new file mode 100644
index 0000000..9b02ade
--- /dev/null
+++ b/cm_python_openapi_sdk/models/__init__.py
@@ -0,0 +1,229 @@
+# coding: utf-8
+
+# flake8: noqa
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+# import models into model package
+from cm_python_openapi_sdk.models.active_date_filter_dto import ActiveDateFilterDTO
+from cm_python_openapi_sdk.models.active_feature_filter_dto import ActiveFeatureFilterDTO
+from cm_python_openapi_sdk.models.active_filter_abstract_type import ActiveFilterAbstractType
+from cm_python_openapi_sdk.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
+from cm_python_openapi_sdk.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
+from cm_python_openapi_sdk.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
+from cm_python_openapi_sdk.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
+from cm_python_openapi_sdk.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
+from cm_python_openapi_sdk.models.additional_series_link_dto import AdditionalSeriesLinkDTO
+from cm_python_openapi_sdk.models.annotation_link_dto import AnnotationLinkDTO
+from cm_python_openapi_sdk.models.attribute_format_dto import AttributeFormatDTO
+from cm_python_openapi_sdk.models.attribute_style_category_dto import AttributeStyleCategoryDTO
+from cm_python_openapi_sdk.models.attribute_style_content_dto import AttributeStyleContentDTO
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.models.attribute_style_fallback_category_dto import AttributeStyleFallbackCategoryDTO
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+from cm_python_openapi_sdk.models.block_abstract_type import BlockAbstractType
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.block_row_dto import BlockRowDTO
+from cm_python_openapi_sdk.models.bulk_point_query_job_request import BulkPointQueryJobRequest
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_isochrone import BulkPointQueryPointQueriesOptionIsochrone
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest
+from cm_python_openapi_sdk.models.bulk_point_query_request import BulkPointQueryRequest
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner import BulkPointQueryRequestPointQueriesInner
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner_options import BulkPointQueryRequestPointQueriesInnerOptions
+from cm_python_openapi_sdk.models.bulk_point_query_request_points_inner import BulkPointQueryRequestPointsInner
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.category_dto import CategoryDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+from cm_python_openapi_sdk.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
+from cm_python_openapi_sdk.models.dashboard_content_dto import DashboardContentDTO
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.models.data_dump_job_request import DataDumpJobRequest
+from cm_python_openapi_sdk.models.data_dump_request import DataDumpRequest
+from cm_python_openapi_sdk.models.data_permission_content_dto import DataPermissionContentDTO
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+from cm_python_openapi_sdk.models.data_pull_job_request import DataPullJobRequest
+from cm_python_openapi_sdk.models.data_pull_request import DataPullRequest
+from cm_python_openapi_sdk.models.data_pull_request_csv_options import DataPullRequestCsvOptions
+from cm_python_openapi_sdk.models.data_pull_request_https_upload import DataPullRequestHttpsUpload
+from cm_python_openapi_sdk.models.data_pull_request_s3_upload import DataPullRequestS3Upload
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.models.dataset_dwh_type_dto import DatasetDwhTypeDTO
+from cm_python_openapi_sdk.models.dataset_h3_grid_type_dto import DatasetH3GridTypeDTO
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+from cm_python_openapi_sdk.models.dataset_properties_dto import DatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dataset_type import DatasetType
+from cm_python_openapi_sdk.models.dataset_visualization_dto import DatasetVisualizationDTO
+from cm_python_openapi_sdk.models.dataset_vt_type_dto import DatasetVtTypeDTO
+from cm_python_openapi_sdk.models.date_filter_dto import DateFilterDTO
+from cm_python_openapi_sdk.models.date_filter_default_value_type import DateFilterDefaultValueType
+from cm_python_openapi_sdk.models.date_range_function import DateRangeFunction
+from cm_python_openapi_sdk.models.date_range_value import DateRangeValue
+from cm_python_openapi_sdk.models.default_distribution_dto import DefaultDistributionDTO
+from cm_python_openapi_sdk.models.default_selected_dto import DefaultSelectedDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_feature_dto import DefaultValuesFeatureDTO
+from cm_python_openapi_sdk.models.default_values_histogram_dto import DefaultValuesHistogramDTO
+from cm_python_openapi_sdk.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
+from cm_python_openapi_sdk.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
+from cm_python_openapi_sdk.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
+from cm_python_openapi_sdk.models.display_options_dto import DisplayOptionsDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty
+from cm_python_openapi_sdk.models.dwh_foreign_key_dto import DwhForeignKeyDTO
+from cm_python_openapi_sdk.models.dwh_geometry_dto import DwhGeometryDTO
+from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO
+from cm_python_openapi_sdk.models.dwh_query_function_types import DwhQueryFunctionTypes
+from cm_python_openapi_sdk.models.dwh_query_metric_type import DwhQueryMetricType
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+from cm_python_openapi_sdk.models.dwh_query_property_type import DwhQueryPropertyType
+from cm_python_openapi_sdk.models.export_content_dto import ExportContentDTO
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.models.export_job_request import ExportJobRequest
+from cm_python_openapi_sdk.models.export_link_dto import ExportLinkDTO
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+from cm_python_openapi_sdk.models.export_request import ExportRequest
+from cm_python_openapi_sdk.models.export_request_csv_options import ExportRequestCsvOptions
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_filter_dto import FeatureFilterDTO
+from cm_python_openapi_sdk.models.feature_function_dto import FeatureFunctionDTO
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+from cm_python_openapi_sdk.models.feature_property_type import FeaturePropertyType
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+from cm_python_openapi_sdk.models.filter_abstract_type import FilterAbstractType
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral
+from cm_python_openapi_sdk.models.function_arithm_type_general import FunctionArithmTypeGeneral
+from cm_python_openapi_sdk.models.function_condition_type_general import FunctionConditionTypeGeneral
+from cm_python_openapi_sdk.models.function_date_trunc import FunctionDateTrunc
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+from cm_python_openapi_sdk.models.function_distance import FunctionDistance
+from cm_python_openapi_sdk.models.function_distance_options import FunctionDistanceOptions
+from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint
+from cm_python_openapi_sdk.models.function_h3_grid import FunctionH3Grid
+from cm_python_openapi_sdk.models.function_h3_grid_options import FunctionH3GridOptions
+from cm_python_openapi_sdk.models.function_interval import FunctionInterval
+from cm_python_openapi_sdk.models.function_ntile import FunctionNtile
+from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions
+from cm_python_openapi_sdk.models.function_percent_to_total_type_general import FunctionPercentToTotalTypeGeneral
+from cm_python_openapi_sdk.models.function_percentile import FunctionPercentile
+from cm_python_openapi_sdk.models.function_property_type import FunctionPropertyType
+from cm_python_openapi_sdk.models.function_rank import FunctionRank
+from cm_python_openapi_sdk.models.function_round_type_general import FunctionRoundTypeGeneral
+from cm_python_openapi_sdk.models.function_row_number import FunctionRowNumber
+from cm_python_openapi_sdk.models.function_today import FunctionToday
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+from cm_python_openapi_sdk.models.global_date_filter_dto import GlobalDateFilterDTO
+from cm_python_openapi_sdk.models.google_earth_dto import GoogleEarthDTO
+from cm_python_openapi_sdk.models.google_satellite_dto import GoogleSatelliteDTO
+from cm_python_openapi_sdk.models.google_street_view_dto import GoogleStreetViewDTO
+from cm_python_openapi_sdk.models.granularity_category_dto import GranularityCategoryDTO
+from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO
+from cm_python_openapi_sdk.models.import_project_job_request import ImportProjectJobRequest
+from cm_python_openapi_sdk.models.import_project_request import ImportProjectRequest
+from cm_python_openapi_sdk.models.indicator_content_dto import IndicatorContentDTO
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.indicator_drill_content_dto import IndicatorDrillContentDTO
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_filter_dto import IndicatorFilterDTO
+from cm_python_openapi_sdk.models.indicator_group_dto import IndicatorGroupDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+from cm_python_openapi_sdk.models.layer_dto import LayerDTO
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner import LayerDTODatasetsInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
+from cm_python_openapi_sdk.models.linked_layer_dto import LinkedLayerDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.map_content_dto import MapContentDTO
+from cm_python_openapi_sdk.models.map_content_dto_base_layer import MapContentDTOBaseLayer
+from cm_python_openapi_sdk.models.map_content_dto_options import MapContentDTOOptions
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.map_options_dto import MapOptionsDTO
+from cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
+from cm_python_openapi_sdk.models.mapycz_panorama_dto import MapyczPanoramaDTO
+from cm_python_openapi_sdk.models.marker_content_dto import MarkerContentDTO
+from cm_python_openapi_sdk.models.marker_content_dto_property_filters_inner import MarkerContentDTOPropertyFiltersInner
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.models.marker_link_dto import MarkerLinkDTO
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+from cm_python_openapi_sdk.models.marker_selector_content_dto import MarkerSelectorContentDTO
+from cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered import MarkerSelectorContentDTOKeepFiltered
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+from cm_python_openapi_sdk.models.max_value_dto import MaxValueDTO
+from cm_python_openapi_sdk.models.measure_dto import MeasureDTO
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.models.membership_paged_model_dto import MembershipPagedModelDTO
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+from cm_python_openapi_sdk.models.multi_select_filter_dto import MultiSelectFilterDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from cm_python_openapi_sdk.models.output_dto import OutputDTO
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.models.project_settings_content_dto import ProjectSettingsContentDTO
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+from cm_python_openapi_sdk.models.project_template_dto import ProjectTemplateDTO
+from cm_python_openapi_sdk.models.property_filter_compare_dto import PropertyFilterCompareDTO
+from cm_python_openapi_sdk.models.property_filter_in_dto import PropertyFilterInDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.relations_dto import RelationsDTO
+from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO
+from cm_python_openapi_sdk.models.single_select_filter_dto import SingleSelectFilterDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto import StaticScaleOptionDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+from cm_python_openapi_sdk.models.template_dataset_dto import TemplateDatasetDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.models.truncate_job_request import TruncateJobRequest
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+from cm_python_openapi_sdk.models.validate_job_request import ValidateJobRequest
+from cm_python_openapi_sdk.models.validate_request import ValidateRequest
+from cm_python_openapi_sdk.models.value_option_dto import ValueOptionDTO
+from cm_python_openapi_sdk.models.variable_dto import VariableDTO
+from cm_python_openapi_sdk.models.variable_type import VariableType
+from cm_python_openapi_sdk.models.variables_dto import VariablesDTO
+from cm_python_openapi_sdk.models.view_content_dto import ViewContentDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
diff --git a/openapi_client/models/active_date_filter_dto.py b/cm_python_openapi_sdk/models/active_date_filter_dto.py
similarity index 97%
rename from openapi_client/models/active_date_filter_dto.py
rename to cm_python_openapi_sdk/models/active_date_filter_dto.py
index 6b947bc..b54c564 100644
--- a/openapi_client/models/active_date_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_date_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List
from typing_extensions import Annotated
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_feature_filter_dto.py b/cm_python_openapi_sdk/models/active_feature_filter_dto.py
similarity index 97%
rename from openapi_client/models/active_feature_filter_dto.py
rename to cm_python_openapi_sdk/models/active_feature_filter_dto.py
index e51977b..6ae9ad1 100644
--- a/openapi_client/models/active_feature_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_feature_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.default_values_feature_dto import DefaultValuesFeatureDTO
+from cm_python_openapi_sdk.models.default_values_feature_dto import DefaultValuesFeatureDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_filter_abstract_type.py b/cm_python_openapi_sdk/models/active_filter_abstract_type.py
similarity index 93%
rename from openapi_client/models/active_filter_abstract_type.py
rename to cm_python_openapi_sdk/models/active_filter_abstract_type.py
index 2c71a5c..a128238 100644
--- a/openapi_client/models/active_filter_abstract_type.py
+++ b/cm_python_openapi_sdk/models/active_filter_abstract_type.py
@@ -17,13 +17,13 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.active_date_filter_dto import ActiveDateFilterDTO
-from openapi_client.models.active_feature_filter_dto import ActiveFeatureFilterDTO
-from openapi_client.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
-from openapi_client.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
-from openapi_client.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
-from openapi_client.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
-from openapi_client.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
+from cm_python_openapi_sdk.models.active_date_filter_dto import ActiveDateFilterDTO
+from cm_python_openapi_sdk.models.active_feature_filter_dto import ActiveFeatureFilterDTO
+from cm_python_openapi_sdk.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
+from cm_python_openapi_sdk.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
+from cm_python_openapi_sdk.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
+from cm_python_openapi_sdk.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
+from cm_python_openapi_sdk.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/active_global_date_filter_dto.py b/cm_python_openapi_sdk/models/active_global_date_filter_dto.py
similarity index 97%
rename from openapi_client/models/active_global_date_filter_dto.py
rename to cm_python_openapi_sdk/models/active_global_date_filter_dto.py
index 9cdd0c1..a1c694a 100644
--- a/openapi_client/models/active_global_date_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_global_date_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List
from typing_extensions import Annotated
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_histogram_filter_dto.py b/cm_python_openapi_sdk/models/active_histogram_filter_dto.py
similarity index 96%
rename from openapi_client/models/active_histogram_filter_dto.py
rename to cm_python_openapi_sdk/models/active_histogram_filter_dto.py
index da1fb6b..21f198a 100644
--- a/openapi_client/models/active_histogram_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_histogram_filter_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.default_values_histogram_dto import DefaultValuesHistogramDTO
-from openapi_client.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.default_values_histogram_dto import DefaultValuesHistogramDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_indicator_filter_dto.py b/cm_python_openapi_sdk/models/active_indicator_filter_dto.py
similarity index 97%
rename from openapi_client/models/active_indicator_filter_dto.py
rename to cm_python_openapi_sdk/models/active_indicator_filter_dto.py
index 129118c..3ed9dd4 100644
--- a/openapi_client/models/active_indicator_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_indicator_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
+from cm_python_openapi_sdk.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_multi_select_filter_dto.py b/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py
similarity index 96%
rename from openapi_client/models/active_multi_select_filter_dto.py
rename to cm_python_openapi_sdk/models/active_multi_select_filter_dto.py
index 4edd5c3..a635675 100644
--- a/openapi_client/models/active_multi_select_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/active_single_select_filter_dto.py b/cm_python_openapi_sdk/models/active_single_select_filter_dto.py
similarity index 96%
rename from openapi_client/models/active_single_select_filter_dto.py
rename to cm_python_openapi_sdk/models/active_single_select_filter_dto.py
index 64dafea..ad8ba6d 100644
--- a/openapi_client/models/active_single_select_filter_dto.py
+++ b/cm_python_openapi_sdk/models/active_single_select_filter_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/additional_series_link_dto.py b/cm_python_openapi_sdk/models/additional_series_link_dto.py
similarity index 100%
rename from openapi_client/models/additional_series_link_dto.py
rename to cm_python_openapi_sdk/models/additional_series_link_dto.py
diff --git a/openapi_client/models/annotation_link_dto.py b/cm_python_openapi_sdk/models/annotation_link_dto.py
similarity index 100%
rename from openapi_client/models/annotation_link_dto.py
rename to cm_python_openapi_sdk/models/annotation_link_dto.py
diff --git a/openapi_client/models/attribute_format_dto.py b/cm_python_openapi_sdk/models/attribute_format_dto.py
similarity index 100%
rename from openapi_client/models/attribute_format_dto.py
rename to cm_python_openapi_sdk/models/attribute_format_dto.py
diff --git a/cm_python_openapi_sdk/models/attribute_style_category_dto.py b/cm_python_openapi_sdk/models/attribute_style_category_dto.py
new file mode 100644
index 0000000..13b2a1c
--- /dev/null
+++ b/cm_python_openapi_sdk/models/attribute_style_category_dto.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AttributeStyleCategoryDTO(BaseModel):
+ """
+ AttributeStyleCategoryDTO
+ """ # noqa: E501
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ value: Optional[Any] = None
+ style: StyleDTO
+ __properties: ClassVar[List[str]] = ["title", "value", "style"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AttributeStyleCategoryDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of style
+ if self.style:
+ _dict['style'] = self.style.to_dict()
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict['value'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AttributeStyleCategoryDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "value": obj.get("value"),
+ "style": StyleDTO.from_dict(obj["style"]) if obj.get("style") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/attribute_style_content_dto.py b/cm_python_openapi_sdk/models/attribute_style_content_dto.py
new file mode 100644
index 0000000..a93e084
--- /dev/null
+++ b/cm_python_openapi_sdk/models/attribute_style_content_dto.py
@@ -0,0 +1,111 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.attribute_style_category_dto import AttributeStyleCategoryDTO
+from cm_python_openapi_sdk.models.attribute_style_fallback_category_dto import AttributeStyleFallbackCategoryDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AttributeStyleContentDTO(BaseModel):
+ """
+ AttributeStyleContentDTO
+ """ # noqa: E501
+ var_property: Annotated[str, Field(strict=True)] = Field(alias="property")
+ fallback_category: Optional[AttributeStyleFallbackCategoryDTO] = Field(default=None, alias="fallbackCategory")
+ categories: Optional[List[AttributeStyleCategoryDTO]] = None
+ __properties: ClassVar[List[str]] = ["property", "fallbackCategory", "categories"]
+
+ @field_validator('var_property')
+ def var_property_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*\.[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*\.[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AttributeStyleContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of fallback_category
+ if self.fallback_category:
+ _dict['fallbackCategory'] = self.fallback_category.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in categories (list)
+ _items = []
+ if self.categories:
+ for _item_categories in self.categories:
+ if _item_categories:
+ _items.append(_item_categories.to_dict())
+ _dict['categories'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AttributeStyleContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "property": obj.get("property"),
+ "fallbackCategory": AttributeStyleFallbackCategoryDTO.from_dict(obj["fallbackCategory"]) if obj.get("fallbackCategory") is not None else None,
+ "categories": [AttributeStyleCategoryDTO.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/attribute_style_dto.py b/cm_python_openapi_sdk/models/attribute_style_dto.py
new file mode 100644
index 0000000..f5972cd
--- /dev/null
+++ b/cm_python_openapi_sdk/models/attribute_style_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.attribute_style_content_dto import AttributeStyleContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AttributeStyleDTO(BaseModel):
+ """
+ AttributeStyleDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: AttributeStyleContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AttributeStyleDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AttributeStyleDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": AttributeStyleContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py b/cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py
new file mode 100644
index 0000000..1157dd3
--- /dev/null
+++ b/cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AttributeStyleFallbackCategoryDTO(BaseModel):
+ """
+ AttributeStyleFallbackCategoryDTO
+ """ # noqa: E501
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ style: StyleDTO
+ __properties: ClassVar[List[str]] = ["title", "style"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AttributeStyleFallbackCategoryDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of style
+ if self.style:
+ _dict['style'] = self.style.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AttributeStyleFallbackCategoryDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "style": StyleDTO.from_dict(obj["style"]) if obj.get("style") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py b/cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py
new file mode 100644
index 0000000..526e0b8
--- /dev/null
+++ b/cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class AttributeStylePagedModelDTO(BaseModel):
+ """
+ AttributeStylePagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[AttributeStyleDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of AttributeStylePagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of AttributeStylePagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [AttributeStyleDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/block_abstract_type.py b/cm_python_openapi_sdk/models/block_abstract_type.py
similarity index 95%
rename from openapi_client/models/block_abstract_type.py
rename to cm_python_openapi_sdk/models/block_abstract_type.py
index 39f7700..fa9dbcc 100644
--- a/openapi_client/models/block_abstract_type.py
+++ b/cm_python_openapi_sdk/models/block_abstract_type.py
@@ -17,10 +17,10 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.categories_dto import CategoriesDTO
-from openapi_client.models.distribution_dto import DistributionDTO
-from openapi_client.models.ranking_dto import RankingDTO
-from openapi_client.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/block_row_abstract_type.py b/cm_python_openapi_sdk/models/block_row_abstract_type.py
similarity index 94%
rename from openapi_client/models/block_row_abstract_type.py
rename to cm_python_openapi_sdk/models/block_row_abstract_type.py
index b3653bf..fa73a1d 100644
--- a/openapi_client/models/block_row_abstract_type.py
+++ b/cm_python_openapi_sdk/models/block_row_abstract_type.py
@@ -17,12 +17,12 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.block_row_dto import BlockRowDTO
-from openapi_client.models.categories_dto import CategoriesDTO
-from openapi_client.models.distribution_dto import DistributionDTO
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
-from openapi_client.models.ranking_dto import RankingDTO
-from openapi_client.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.block_row_dto import BlockRowDTO
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
@@ -203,7 +203,7 @@ def to_str(self) -> str:
"""Returns the string representation of the actual instance"""
return pprint.pformat(self.model_dump())
-from openapi_client.models.indicator_group_dto import IndicatorGroupDTO
+from cm_python_openapi_sdk.models.indicator_group_dto import IndicatorGroupDTO
# TODO: Rewrite to not use raise_errors
BlockRowAbstractType.model_rebuild(raise_errors=False)
diff --git a/openapi_client/models/block_row_dto.py b/cm_python_openapi_sdk/models/block_row_dto.py
similarity index 97%
rename from openapi_client/models/block_row_dto.py
rename to cm_python_openapi_sdk/models/block_row_dto.py
index 80e0f4c..8a0ed25 100644
--- a/openapi_client/models/block_row_dto.py
+++ b/cm_python_openapi_sdk/models/block_row_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_job_request.py b/cm_python_openapi_sdk/models/bulk_point_query_job_request.py
new file mode 100644
index 0000000..baacbfe
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.bulk_point_query_request import BulkPointQueryRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryJobRequest(BaseModel):
+ """
+ BulkPointQueryJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: BulkPointQueryRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": BulkPointQueryRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_isochrone.py b/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_isochrone.py
new file mode 100644
index 0000000..9053c78
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_isochrone.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryPointQueriesOptionIsochrone(BaseModel):
+ """
+ BulkPointQueryPointQueriesOptionIsochrone
+ """ # noqa: E501
+ profile: StrictStr
+ unit: StrictStr
+ amount: Annotated[int, Field(strict=True, ge=1)]
+ __properties: ClassVar[List[str]] = ["profile", "unit", "amount"]
+
+ @field_validator('profile')
+ def profile_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['car', 'bike', 'foot', 'air']):
+ raise ValueError("must be one of enum values ('car', 'bike', 'foot', 'air')")
+ return value
+
+ @field_validator('unit')
+ def unit_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['time', 'distance']):
+ raise ValueError("must be one of enum values ('time', 'distance')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryPointQueriesOptionIsochrone from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryPointQueriesOptionIsochrone from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "profile": obj.get("profile"),
+ "unit": obj.get("unit"),
+ "amount": obj.get("amount")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_nearest.py b/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_nearest.py
new file mode 100644
index 0000000..751373d
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_nearest.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryPointQueriesOptionNearest(BaseModel):
+ """
+ BulkPointQueryPointQueriesOptionNearest
+ """ # noqa: E501
+ limit: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["limit"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryPointQueriesOptionNearest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryPointQueriesOptionNearest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "limit": obj.get("limit")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request.py b/cm_python_openapi_sdk/models/bulk_point_query_request.py
new file mode 100644
index 0000000..d4bc585
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_request.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner import BulkPointQueryRequestPointQueriesInner
+from cm_python_openapi_sdk.models.bulk_point_query_request_points_inner import BulkPointQueryRequestPointsInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryRequest(BaseModel):
+ """
+ BulkPointQueryRequest
+ """ # noqa: E501
+ enable_billing: Optional[StrictBool] = Field(default=None, alias="enableBilling")
+ points: List[BulkPointQueryRequestPointsInner]
+ point_queries: List[BulkPointQueryRequestPointQueriesInner] = Field(alias="pointQueries")
+ __properties: ClassVar[List[str]] = ["enableBilling", "points", "pointQueries"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in points (list)
+ _items = []
+ if self.points:
+ for _item_points in self.points:
+ if _item_points:
+ _items.append(_item_points.to_dict())
+ _dict['points'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in point_queries (list)
+ _items = []
+ if self.point_queries:
+ for _item_point_queries in self.point_queries:
+ if _item_point_queries:
+ _items.append(_item_point_queries.to_dict())
+ _dict['pointQueries'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "enableBilling": obj.get("enableBilling"),
+ "points": [BulkPointQueryRequestPointsInner.from_dict(_item) for _item in obj["points"]] if obj.get("points") is not None else None,
+ "pointQueries": [BulkPointQueryRequestPointQueriesInner.from_dict(_item) for _item in obj["pointQueries"]] if obj.get("pointQueries") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner.py b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner.py
new file mode 100644
index 0000000..f5df3b1
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner.py
@@ -0,0 +1,120 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner_options import BulkPointQueryRequestPointQueriesInnerOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryRequestPointQueriesInner(BaseModel):
+ """
+ BulkPointQueryRequestPointQueriesInner
+ """ # noqa: E501
+ query_id: Optional[StrictStr] = Field(default=None, alias="queryId")
+ type: StrictStr
+ options: Optional[BulkPointQueryRequestPointQueriesInnerOptions] = None
+ dataset: StrictStr
+ execution_content: Optional[Dict[str, Any]] = Field(default=None, alias="executionContent")
+ properties: Optional[List[Dict[str, Any]]] = None
+ filter_by: Optional[List[Dict[str, Any]]] = Field(default=None, alias="filterBy")
+ result_set_filter: Optional[List[Dict[str, Any]]] = Field(default=None, alias="resultSetFilter")
+ having: Optional[List[Dict[str, Any]]] = None
+ order_by: Optional[List[Dict[str, Any]]] = Field(default=None, alias="orderBy")
+ variables: Optional[List[Dict[str, Any]]] = None
+ limit: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["queryId", "type", "options", "dataset", "executionContent", "properties", "filterBy", "resultSetFilter", "having", "orderBy", "variables", "limit"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['isochrone', 'nearest']):
+ raise ValueError("must be one of enum values ('isochrone', 'nearest')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequestPointQueriesInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequestPointQueriesInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "queryId": obj.get("queryId"),
+ "type": obj.get("type"),
+ "options": BulkPointQueryRequestPointQueriesInnerOptions.from_dict(obj["options"]) if obj.get("options") is not None else None,
+ "dataset": obj.get("dataset"),
+ "executionContent": obj.get("executionContent"),
+ "properties": obj.get("properties"),
+ "filterBy": obj.get("filterBy"),
+ "resultSetFilter": obj.get("resultSetFilter"),
+ "having": obj.get("having"),
+ "orderBy": obj.get("orderBy"),
+ "variables": obj.get("variables"),
+ "limit": obj.get("limit")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py
new file mode 100644
index 0000000..4dab399
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py
@@ -0,0 +1,137 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_isochrone import BulkPointQueryPointQueriesOptionIsochrone
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+BULKPOINTQUERYREQUESTPOINTQUERIESINNEROPTIONS_ONE_OF_SCHEMAS = ["BulkPointQueryPointQueriesOptionIsochrone", "BulkPointQueryPointQueriesOptionNearest"]
+
+class BulkPointQueryRequestPointQueriesInnerOptions(BaseModel):
+ """
+ BulkPointQueryRequestPointQueriesInnerOptions
+ """
+ # data type: BulkPointQueryPointQueriesOptionIsochrone
+ oneof_schema_1_validator: Optional[BulkPointQueryPointQueriesOptionIsochrone] = None
+ # data type: BulkPointQueryPointQueriesOptionNearest
+ oneof_schema_2_validator: Optional[BulkPointQueryPointQueriesOptionNearest] = None
+ actual_instance: Optional[Union[BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest]] = None
+ one_of_schemas: Set[str] = { "BulkPointQueryPointQueriesOptionIsochrone", "BulkPointQueryPointQueriesOptionNearest" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = BulkPointQueryRequestPointQueriesInnerOptions.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: BulkPointQueryPointQueriesOptionIsochrone
+ if not isinstance(v, BulkPointQueryPointQueriesOptionIsochrone):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryPointQueriesOptionIsochrone`")
+ else:
+ match += 1
+ # validate data type: BulkPointQueryPointQueriesOptionNearest
+ if not isinstance(v, BulkPointQueryPointQueriesOptionNearest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryPointQueriesOptionNearest`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in BulkPointQueryRequestPointQueriesInnerOptions with oneOf schemas: BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in BulkPointQueryRequestPointQueriesInnerOptions with oneOf schemas: BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into BulkPointQueryPointQueriesOptionIsochrone
+ try:
+ instance.actual_instance = BulkPointQueryPointQueriesOptionIsochrone.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into BulkPointQueryPointQueriesOptionNearest
+ try:
+ instance.actual_instance = BulkPointQueryPointQueriesOptionNearest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into BulkPointQueryRequestPointQueriesInnerOptions with oneOf schemas: BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into BulkPointQueryRequestPointQueriesInnerOptions with oneOf schemas: BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request_points_inner.py b/cm_python_openapi_sdk/models/bulk_point_query_request_points_inner.py
new file mode 100644
index 0000000..423e516
--- /dev/null
+++ b/cm_python_openapi_sdk/models/bulk_point_query_request_points_inner.py
@@ -0,0 +1,91 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BulkPointQueryRequestPointsInner(BaseModel):
+ """
+ BulkPointQueryRequestPointsInner
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ lat: Union[StrictFloat, StrictInt]
+ lng: Union[StrictFloat, StrictInt]
+ __properties: ClassVar[List[str]] = ["id", "lat", "lng"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequestPointsInner from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BulkPointQueryRequestPointsInner from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "lat": obj.get("lat"),
+ "lng": obj.get("lng")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/categories_dto.py b/cm_python_openapi_sdk/models/categories_dto.py
similarity index 99%
rename from openapi_client/models/categories_dto.py
rename to cm_python_openapi_sdk/models/categories_dto.py
index f74fe1c..f921b8e 100644
--- a/openapi_client/models/categories_dto.py
+++ b/cm_python_openapi_sdk/models/categories_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/category_dto.py b/cm_python_openapi_sdk/models/category_dto.py
new file mode 100644
index 0000000..3978c1e
--- /dev/null
+++ b/cm_python_openapi_sdk/models/category_dto.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.linked_layer_dto import LinkedLayerDTO
+from cm_python_openapi_sdk.models.marker_link_dto import MarkerLinkDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CategoryDTO(BaseModel):
+ """
+ CategoryDTO
+ """ # noqa: E501
+ dataset: Annotated[str, Field(strict=True)]
+ markers: Annotated[List[MarkerLinkDTO], Field(min_length=1)]
+ linked_layers: Optional[List[LinkedLayerDTO]] = Field(default=None, alias="linkedLayers")
+ __properties: ClassVar[List[str]] = ["dataset", "markers", "linkedLayers"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CategoryDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in markers (list)
+ _items = []
+ if self.markers:
+ for _item_markers in self.markers:
+ if _item_markers:
+ _items.append(_item_markers.to_dict())
+ _dict['markers'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in linked_layers (list)
+ _items = []
+ if self.linked_layers:
+ for _item_linked_layers in self.linked_layers:
+ if _item_linked_layers:
+ _items.append(_item_linked_layers.to_dict())
+ _dict['linkedLayers'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CategoryDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "markers": [MarkerLinkDTO.from_dict(_item) for _item in obj["markers"]] if obj.get("markers") is not None else None,
+ "linkedLayers": [LinkedLayerDTO.from_dict(_item) for _item in obj["linkedLayers"]] if obj.get("linkedLayers") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/center_dto.py b/cm_python_openapi_sdk/models/center_dto.py
similarity index 100%
rename from openapi_client/models/center_dto.py
rename to cm_python_openapi_sdk/models/center_dto.py
diff --git a/cm_python_openapi_sdk/models/create_invitation.py b/cm_python_openapi_sdk/models/create_invitation.py
new file mode 100644
index 0000000..0615dfa
--- /dev/null
+++ b/cm_python_openapi_sdk/models/create_invitation.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateInvitation(BaseModel):
+ """
+ CreateInvitation
+ """ # noqa: E501
+ email: StrictStr
+ role: StrictStr
+ __properties: ClassVar[List[str]] = ["email", "role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateInvitation from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateInvitation from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "email": obj.get("email"),
+ "role": obj.get("role")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/create_membership_dto.py b/cm_python_openapi_sdk/models/create_membership_dto.py
new file mode 100644
index 0000000..942eaff
--- /dev/null
+++ b/cm_python_openapi_sdk/models/create_membership_dto.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateMembershipDTO(BaseModel):
+ """
+ CreateMembershipDTO
+ """ # noqa: E501
+ account_id: StrictStr = Field(alias="accountId")
+ status: StrictStr
+ role: StrictStr
+ __properties: ClassVar[List[str]] = ["accountId", "status", "role"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ENABLED', 'DISABLED']):
+ raise ValueError("must be one of enum values ('ENABLED', 'DISABLED')")
+ return value
+
+ @field_validator('role')
+ def role_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER']):
+ raise ValueError("must be one of enum values ('ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateMembershipDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateMembershipDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "accountId": obj.get("accountId"),
+ "status": obj.get("status"),
+ "role": obj.get("role")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/create_organization_dto.py b/cm_python_openapi_sdk/models/create_organization_dto.py
new file mode 100644
index 0000000..6d95840
--- /dev/null
+++ b/cm_python_openapi_sdk/models/create_organization_dto.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateOrganizationDTO(BaseModel):
+ """
+ CreateOrganizationDTO
+ """ # noqa: E501
+ title: Annotated[str, Field(min_length=1, strict=True, max_length=255)]
+ invitation_email: Optional[StrictStr] = Field(default=None, alias="invitationEmail")
+ dwh_cluster_id: Annotated[str, Field(strict=True)] = Field(alias="dwhClusterId")
+ __properties: ClassVar[List[str]] = ["title", "invitationEmail", "dwhClusterId"]
+
+ @field_validator('dwh_cluster_id')
+ def dwh_cluster_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{6}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{6}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateOrganizationDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateOrganizationDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "invitationEmail": obj.get("invitationEmail"),
+ "dwhClusterId": obj.get("dwhClusterId")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/create_project_dto.py b/cm_python_openapi_sdk/models/create_project_dto.py
new file mode 100644
index 0000000..9dca8a3
--- /dev/null
+++ b/cm_python_openapi_sdk/models/create_project_dto.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class CreateProjectDTO(BaseModel):
+ """
+ CreateProjectDTO
+ """ # noqa: E501
+ title: Annotated[str, Field(min_length=1, strict=True, max_length=255)]
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ organization_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="organizationId")
+ __properties: ClassVar[List[str]] = ["title", "description", "organizationId"]
+
+ @field_validator('organization_id')
+ def organization_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of CreateProjectDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of CreateProjectDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "organizationId": obj.get("organizationId")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/cuzk_parcel_info_dto.py b/cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py
similarity index 100%
rename from openapi_client/models/cuzk_parcel_info_dto.py
rename to cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py
diff --git a/openapi_client/models/dashboard_content_dto.py b/cm_python_openapi_sdk/models/dashboard_content_dto.py
similarity index 95%
rename from openapi_client/models/dashboard_content_dto.py
rename to cm_python_openapi_sdk/models/dashboard_content_dto.py
index a2ab122..df04c3f 100644
--- a/openapi_client/models/dashboard_content_dto.py
+++ b/cm_python_openapi_sdk/models/dashboard_content_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
-from openapi_client.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/dashboard_dataset_properties_dto.py b/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py
similarity index 98%
rename from openapi_client/models/dashboard_dataset_properties_dto.py
rename to cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py
index 287929d..8e0fa95 100644
--- a/openapi_client/models/dashboard_dataset_properties_dto.py
+++ b/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/dashboard_dto.py b/cm_python_openapi_sdk/models/dashboard_dto.py
similarity index 98%
rename from openapi_client/models/dashboard_dto.py
rename to cm_python_openapi_sdk/models/dashboard_dto.py
index e9a38f2..bedfe19 100644
--- a/openapi_client/models/dashboard_dto.py
+++ b/cm_python_openapi_sdk/models/dashboard_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.dashboard_content_dto import DashboardContentDTO
+from cm_python_openapi_sdk.models.dashboard_content_dto import DashboardContentDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/dashboard_paged_model_dto.py b/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py
similarity index 95%
rename from openapi_client/models/dashboard_paged_model_dto.py
rename to cm_python_openapi_sdk/models/dashboard_paged_model_dto.py
index d6f1ef7..187f91d 100644
--- a/openapi_client/models/dashboard_paged_model_dto.py
+++ b/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/data_dump_job_request.py b/cm_python_openapi_sdk/models/data_dump_job_request.py
new file mode 100644
index 0000000..d0247f1
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_dump_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_dump_request import DataDumpRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataDumpJobRequest(BaseModel):
+ """
+ DataDumpJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: DataDumpRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataDumpJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataDumpJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": DataDumpRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_dump_request.py b/cm_python_openapi_sdk/models/data_dump_request.py
new file mode 100644
index 0000000..a43d25e
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_dump_request.py
@@ -0,0 +1,88 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataDumpRequest(BaseModel):
+ """
+ DataDumpRequest
+ """ # noqa: E501
+ dataset: Annotated[str, Field(min_length=1, strict=True)]
+ __properties: ClassVar[List[str]] = ["dataset"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataDumpRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataDumpRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_permission_content_dto.py b/cm_python_openapi_sdk/models/data_permission_content_dto.py
new file mode 100644
index 0000000..c54b7cb
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_permission_content_dto.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPermissionContentDTO(BaseModel):
+ """
+ DataPermissionContentDTO
+ """ # noqa: E501
+ account_id: Annotated[str, Field(strict=True)] = Field(alias="accountId")
+ filters: List[Any]
+ __properties: ClassVar[List[str]] = ["accountId", "filters"]
+
+ @field_validator('account_id')
+ def account_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z0-9]{20}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9]{20}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPermissionContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPermissionContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "accountId": obj.get("accountId"),
+ "filters": obj.get("filters")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_permission_dto.py b/cm_python_openapi_sdk/models/data_permission_dto.py
new file mode 100644
index 0000000..1edfba6
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_permission_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_permission_content_dto import DataPermissionContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPermissionDTO(BaseModel):
+ """
+ DataPermissionDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: DataPermissionContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPermissionDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPermissionDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": DataPermissionContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_permission_paged_model_dto.py b/cm_python_openapi_sdk/models/data_permission_paged_model_dto.py
new file mode 100644
index 0000000..96f6b19
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_permission_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPermissionPagedModelDTO(BaseModel):
+ """
+ DataPermissionPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[DataPermissionDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPermissionPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPermissionPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [DataPermissionDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_pull_job_request.py b/cm_python_openapi_sdk/models/data_pull_job_request.py
new file mode 100644
index 0000000..e9286ea
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_pull_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_pull_request import DataPullRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPullJobRequest(BaseModel):
+ """
+ DataPullJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: DataPullRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPullJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPullJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": DataPullRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_pull_request.py b/cm_python_openapi_sdk/models/data_pull_request.py
new file mode 100644
index 0000000..61e0329
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_pull_request.py
@@ -0,0 +1,128 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_pull_request_csv_options import DataPullRequestCsvOptions
+from cm_python_openapi_sdk.models.data_pull_request_https_upload import DataPullRequestHttpsUpload
+from cm_python_openapi_sdk.models.data_pull_request_s3_upload import DataPullRequestS3Upload
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPullRequest(BaseModel):
+ """
+ DataPullRequest
+ """ # noqa: E501
+ dataset: Annotated[str, Field(min_length=1, strict=True)]
+ mode: StrictStr
+ type: StrictStr
+ upload: Optional[StrictStr] = None
+ s3_upload: Optional[DataPullRequestS3Upload] = Field(default=None, alias="s3Upload")
+ https_upload: Optional[DataPullRequestHttpsUpload] = Field(default=None, alias="httpsUpload")
+ csv_options: Optional[DataPullRequestCsvOptions] = Field(default=None, alias="csvOptions")
+ skip_refreshing_materialized_views: Optional[StrictBool] = Field(default=None, alias="skipRefreshingMaterializedViews")
+ __properties: ClassVar[List[str]] = ["dataset", "mode", "type", "upload", "s3Upload", "httpsUpload", "csvOptions", "skipRefreshingMaterializedViews"]
+
+ @field_validator('mode')
+ def mode_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['full', 'incremental']):
+ raise ValueError("must be one of enum values ('full', 'incremental')")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['csv']):
+ raise ValueError("must be one of enum values ('csv')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPullRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of s3_upload
+ if self.s3_upload:
+ _dict['s3Upload'] = self.s3_upload.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of https_upload
+ if self.https_upload:
+ _dict['httpsUpload'] = self.https_upload.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of csv_options
+ if self.csv_options:
+ _dict['csvOptions'] = self.csv_options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPullRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "mode": obj.get("mode"),
+ "type": obj.get("type"),
+ "upload": obj.get("upload"),
+ "s3Upload": DataPullRequestS3Upload.from_dict(obj["s3Upload"]) if obj.get("s3Upload") is not None else None,
+ "httpsUpload": DataPullRequestHttpsUpload.from_dict(obj["httpsUpload"]) if obj.get("httpsUpload") is not None else None,
+ "csvOptions": DataPullRequestCsvOptions.from_dict(obj["csvOptions"]) if obj.get("csvOptions") is not None else None,
+ "skipRefreshingMaterializedViews": obj.get("skipRefreshingMaterializedViews")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_pull_request_csv_options.py b/cm_python_openapi_sdk/models/data_pull_request_csv_options.py
new file mode 100644
index 0000000..b40f8ef
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_pull_request_csv_options.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPullRequestCsvOptions(BaseModel):
+ """
+ DataPullRequestCsvOptions
+ """ # noqa: E501
+ header: Optional[StrictBool] = None
+ separator: Optional[StrictStr] = None
+ quote: Optional[StrictStr] = None
+ escape: Optional[StrictStr] = None
+ null: Optional[StrictStr] = None
+ force_null: Optional[List[StrictStr]] = Field(default=None, alias="forceNull")
+ __properties: ClassVar[List[str]] = ["header", "separator", "quote", "escape", "null", "forceNull"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPullRequestCsvOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPullRequestCsvOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "header": obj.get("header"),
+ "separator": obj.get("separator"),
+ "quote": obj.get("quote"),
+ "escape": obj.get("escape"),
+ "null": obj.get("null"),
+ "forceNull": obj.get("forceNull")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_pull_request_https_upload.py b/cm_python_openapi_sdk/models/data_pull_request_https_upload.py
new file mode 100644
index 0000000..8f0a0db
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_pull_request_https_upload.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPullRequestHttpsUpload(BaseModel):
+ """
+ Object specifying properties for dataPull from any HTTPS URL.
+ """ # noqa: E501
+ url: Optional[StrictStr] = Field(default=None, description="HTTPS URL (e.g. https://can-s3-dwh-pull-test.s3-eu-west-1.amazonaws.com/shops.csv).")
+ __properties: ClassVar[List[str]] = ["url"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPullRequestHttpsUpload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPullRequestHttpsUpload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "url": obj.get("url")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_pull_request_s3_upload.py b/cm_python_openapi_sdk/models/data_pull_request_s3_upload.py
new file mode 100644
index 0000000..7c20c84
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_pull_request_s3_upload.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataPullRequestS3Upload(BaseModel):
+ """
+ Object specifying properties for dataPull from any AWS S3.
+ """ # noqa: E501
+ uri: StrictStr = Field(description="AWS S3 URI (e.g. s3://can-s3-dwh-pull-test/shops.csv).")
+ access_key_id: Optional[StrictStr] = Field(default=None, description="AWS S3 Access Key ID with access to the file specified in 'uri'.", alias="accessKeyId")
+ secret_access_key: Optional[StrictStr] = Field(default=None, description="AWS S3 Secret Access Key with access to the file specified in 'uri'.", alias="secretAccessKey")
+ region: Optional[StrictStr] = Field(default=None, description="AWS S3 region of the file.")
+ endpoint_override: Optional[StrictStr] = Field(default=None, description="AWS S3 region of the file.", alias="endpointOverride")
+ force_path_style: Optional[StrictBool] = Field(default=None, description="If true, path style is forced for S3 URIs, otherwise virtual hosted style is used.", alias="forcePathStyle")
+ __properties: ClassVar[List[str]] = ["uri", "accessKeyId", "secretAccessKey", "region", "endpointOverride", "forcePathStyle"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataPullRequestS3Upload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataPullRequestS3Upload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "uri": obj.get("uri"),
+ "accessKeyId": obj.get("accessKeyId"),
+ "secretAccessKey": obj.get("secretAccessKey"),
+ "region": obj.get("region"),
+ "endpointOverride": obj.get("endpointOverride"),
+ "forcePathStyle": obj.get("forcePathStyle")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_source_dto.py b/cm_python_openapi_sdk/models/data_source_dto.py
new file mode 100644
index 0000000..2253686
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_source_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataSourceDTO(BaseModel):
+ """
+ DataSourceDTO
+ """ # noqa: E501
+ licence_holder: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="licenceHolder")
+ licence_holder_url: StrictStr = Field(alias="licenceHolderUrl")
+ licence_holder_logo: Optional[StrictStr] = Field(default=None, alias="licenceHolderLogo")
+ licence_url: Optional[StrictStr] = Field(default=None, alias="licenceUrl")
+ __properties: ClassVar[List[str]] = ["licenceHolder", "licenceHolderUrl", "licenceHolderLogo", "licenceUrl"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataSourceDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataSourceDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "licenceHolder": obj.get("licenceHolder"),
+ "licenceHolderUrl": obj.get("licenceHolderUrl"),
+ "licenceHolderLogo": obj.get("licenceHolderLogo"),
+ "licenceUrl": obj.get("licenceUrl")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/data_source_paged_model_dto.py b/cm_python_openapi_sdk/models/data_source_paged_model_dto.py
new file mode 100644
index 0000000..d93bb14
--- /dev/null
+++ b/cm_python_openapi_sdk/models/data_source_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataSourcePagedModelDTO(BaseModel):
+ """
+ DataSourcePagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[DataSourceDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataSourcePagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataSourcePagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [DataSourceDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_dto.py b/cm_python_openapi_sdk/models/dataset_dto.py
new file mode 100644
index 0000000..6aa335c
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_dto.py
@@ -0,0 +1,136 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+from cm_python_openapi_sdk.models.dataset_properties_dto import DatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dataset_type import DatasetType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetDTO(BaseModel):
+ """
+ DatasetDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: StrictStr
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ origin: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
+ properties: Optional[DatasetPropertiesDTO] = None
+ ref: DatasetType
+ data_sources: Optional[List[DataSourceDTO]] = Field(default=None, alias="dataSources")
+ content: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "origin", "properties", "ref", "dataSources", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of properties
+ if self.properties:
+ _dict['properties'] = self.properties.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of ref
+ if self.ref:
+ _dict['ref'] = self.ref.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in data_sources (list)
+ _items = []
+ if self.data_sources:
+ for _item_data_sources in self.data_sources:
+ if _item_data_sources:
+ _items.append(_item_data_sources.to_dict())
+ _dict['dataSources'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "origin": obj.get("origin"),
+ "properties": DatasetPropertiesDTO.from_dict(obj["properties"]) if obj.get("properties") is not None else None,
+ "ref": DatasetType.from_dict(obj["ref"]) if obj.get("ref") is not None else None,
+ "dataSources": [DataSourceDTO.from_dict(_item) for _item in obj["dataSources"]] if obj.get("dataSources") is not None else None,
+ "content": obj.get("content")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py b/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py
new file mode 100644
index 0000000..f9592a8
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py
@@ -0,0 +1,173 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.dataset_visualization_dto import DatasetVisualizationDTO
+from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetDwhTypeDTO(BaseModel):
+ """
+ DatasetDwhTypeDTO
+ """ # noqa: E501
+ type: StrictStr
+ subtype: StrictStr
+ geometry: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None
+ h3_geometries: Optional[List[Annotated[str, Field(strict=True)]]] = Field(default=None, alias="h3Geometries")
+ visualizations: Optional[List[DatasetVisualizationDTO]] = None
+ table: Optional[Annotated[str, Field(strict=True)]] = None
+ geometry_table: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="geometryTable")
+ primary_key: Annotated[str, Field(strict=True)] = Field(alias="primaryKey")
+ categorizable: Optional[StrictBool] = True
+ full_text_index: Optional[StrictBool] = Field(default=None, alias="fullTextIndex")
+ spatial_index: Optional[StrictBool] = Field(default=None, alias="spatialIndex")
+ properties: Annotated[List[DwhAbstractProperty], Field(min_length=1)]
+ zoom: Optional[ZoomDTO] = None
+ __properties: ClassVar[List[str]] = ["type", "subtype", "geometry", "h3Geometries", "visualizations", "table", "geometryTable", "primaryKey", "categorizable", "fullTextIndex", "spatialIndex", "properties", "zoom"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['dwh']):
+ raise ValueError("must be one of enum values ('dwh')")
+ return value
+
+ @field_validator('subtype')
+ def subtype_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['geometryPolygon', 'geometryPoint', 'geometryLine', 'basic', 'date']):
+ raise ValueError("must be one of enum values ('geometryPolygon', 'geometryPoint', 'geometryLine', 'basic', 'date')")
+ return value
+
+ @field_validator('table')
+ def table_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('geometry_table')
+ def geometry_table_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('primary_key')
+ def primary_key_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetDwhTypeDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in visualizations (list)
+ _items = []
+ if self.visualizations:
+ for _item_visualizations in self.visualizations:
+ if _item_visualizations:
+ _items.append(_item_visualizations.to_dict())
+ _dict['visualizations'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in properties (list)
+ _items = []
+ if self.properties:
+ for _item_properties in self.properties:
+ if _item_properties:
+ _items.append(_item_properties.to_dict())
+ _dict['properties'] = _items
+ # override the default output from pydantic by calling `to_dict()` of zoom
+ if self.zoom:
+ _dict['zoom'] = self.zoom.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetDwhTypeDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "subtype": obj.get("subtype"),
+ "geometry": obj.get("geometry"),
+ "h3Geometries": obj.get("h3Geometries"),
+ "visualizations": [DatasetVisualizationDTO.from_dict(_item) for _item in obj["visualizations"]] if obj.get("visualizations") is not None else None,
+ "table": obj.get("table"),
+ "geometryTable": obj.get("geometryTable"),
+ "primaryKey": obj.get("primaryKey"),
+ "categorizable": obj.get("categorizable") if obj.get("categorizable") is not None else True,
+ "fullTextIndex": obj.get("fullTextIndex"),
+ "spatialIndex": obj.get("spatialIndex"),
+ "properties": [DwhAbstractProperty.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None,
+ "zoom": ZoomDTO.from_dict(obj["zoom"]) if obj.get("zoom") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py b/cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py
new file mode 100644
index 0000000..27a1603
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetH3GridTypeDTO(BaseModel):
+ """
+ DatasetH3GridTypeDTO
+ """ # noqa: E501
+ type: StrictStr
+ resolution: Annotated[int, Field(le=11, strict=True, ge=2)]
+ zoom: Optional[ZoomDTO] = None
+ __properties: ClassVar[List[str]] = ["type", "resolution", "zoom"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['h3Grid']):
+ raise ValueError("must be one of enum values ('h3Grid')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetH3GridTypeDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of zoom
+ if self.zoom:
+ _dict['zoom'] = self.zoom.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetH3GridTypeDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "resolution": obj.get("resolution"),
+ "zoom": ZoomDTO.from_dict(obj["zoom"]) if obj.get("zoom") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_paged_model_dto.py b/cm_python_openapi_sdk/models/dataset_paged_model_dto.py
new file mode 100644
index 0000000..c58b355
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetPagedModelDTO(BaseModel):
+ """
+ DatasetPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[DatasetDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [DatasetDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_properties_dto.py b/cm_python_openapi_sdk/models/dataset_properties_dto.py
new file mode 100644
index 0000000..ee5774e
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_properties_dto.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_property_type import FeaturePropertyType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetPropertiesDTO(BaseModel):
+ """
+ DatasetPropertiesDTO
+ """ # noqa: E501
+ feature_title: Optional[FeaturePropertyType] = Field(default=None, alias="featureTitle")
+ feature_subtitle: Optional[FeaturePropertyType] = Field(default=None, alias="featureSubtitle")
+ feature_attributes: Optional[Annotated[List[FeatureAttributeDTO], Field(min_length=0)]] = Field(default=None, alias="featureAttributes")
+ __properties: ClassVar[List[str]] = ["featureTitle", "featureSubtitle", "featureAttributes"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetPropertiesDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of feature_title
+ if self.feature_title:
+ _dict['featureTitle'] = self.feature_title.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of feature_subtitle
+ if self.feature_subtitle:
+ _dict['featureSubtitle'] = self.feature_subtitle.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in feature_attributes (list)
+ _items = []
+ if self.feature_attributes:
+ for _item_feature_attributes in self.feature_attributes:
+ if _item_feature_attributes:
+ _items.append(_item_feature_attributes.to_dict())
+ _dict['featureAttributes'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetPropertiesDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "featureTitle": FeaturePropertyType.from_dict(obj["featureTitle"]) if obj.get("featureTitle") is not None else None,
+ "featureSubtitle": FeaturePropertyType.from_dict(obj["featureSubtitle"]) if obj.get("featureSubtitle") is not None else None,
+ "featureAttributes": [FeatureAttributeDTO.from_dict(_item) for _item in obj["featureAttributes"]] if obj.get("featureAttributes") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_type.py b/cm_python_openapi_sdk/models/dataset_type.py
new file mode 100644
index 0000000..9a8dcb2
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_type.py
@@ -0,0 +1,151 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.dataset_dwh_type_dto import DatasetDwhTypeDTO
+from cm_python_openapi_sdk.models.dataset_h3_grid_type_dto import DatasetH3GridTypeDTO
+from cm_python_openapi_sdk.models.dataset_vt_type_dto import DatasetVtTypeDTO
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+DATASETTYPE_ONE_OF_SCHEMAS = ["DatasetDwhTypeDTO", "DatasetH3GridTypeDTO", "DatasetVtTypeDTO"]
+
+class DatasetType(BaseModel):
+ """
+ DatasetType
+ """
+ # data type: DatasetDwhTypeDTO
+ oneof_schema_1_validator: Optional[DatasetDwhTypeDTO] = None
+ # data type: DatasetVtTypeDTO
+ oneof_schema_2_validator: Optional[DatasetVtTypeDTO] = None
+ # data type: DatasetH3GridTypeDTO
+ oneof_schema_3_validator: Optional[DatasetH3GridTypeDTO] = None
+ actual_instance: Optional[Union[DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO]] = None
+ one_of_schemas: Set[str] = { "DatasetDwhTypeDTO", "DatasetH3GridTypeDTO", "DatasetVtTypeDTO" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = DatasetType.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: DatasetDwhTypeDTO
+ if not isinstance(v, DatasetDwhTypeDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DatasetDwhTypeDTO`")
+ else:
+ match += 1
+ # validate data type: DatasetVtTypeDTO
+ if not isinstance(v, DatasetVtTypeDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DatasetVtTypeDTO`")
+ else:
+ match += 1
+ # validate data type: DatasetH3GridTypeDTO
+ if not isinstance(v, DatasetH3GridTypeDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DatasetH3GridTypeDTO`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in DatasetType with oneOf schemas: DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in DatasetType with oneOf schemas: DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into DatasetDwhTypeDTO
+ try:
+ instance.actual_instance = DatasetDwhTypeDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DatasetVtTypeDTO
+ try:
+ instance.actual_instance = DatasetVtTypeDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DatasetH3GridTypeDTO
+ try:
+ instance.actual_instance = DatasetH3GridTypeDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into DatasetType with oneOf schemas: DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into DatasetType with oneOf schemas: DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], DatasetDwhTypeDTO, DatasetH3GridTypeDTO, DatasetVtTypeDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_visualization_dto.py b/cm_python_openapi_sdk/models/dataset_visualization_dto.py
new file mode 100644
index 0000000..80a7399
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_visualization_dto.py
@@ -0,0 +1,100 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetVisualizationDTO(BaseModel):
+ """
+ DatasetVisualizationDTO
+ """ # noqa: E501
+ type: StrictStr
+ zoom: Optional[ZoomDTO] = None
+ __properties: ClassVar[List[str]] = ["type", "zoom"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['areas', 'grid', 'zones', 'line', 'dotmap', 'heatmap']):
+ raise ValueError("must be one of enum values ('areas', 'grid', 'zones', 'line', 'dotmap', 'heatmap')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetVisualizationDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of zoom
+ if self.zoom:
+ _dict['zoom'] = self.zoom.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetVisualizationDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "zoom": ZoomDTO.from_dict(obj["zoom"]) if obj.get("zoom") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dataset_vt_type_dto.py b/cm_python_openapi_sdk/models/dataset_vt_type_dto.py
new file mode 100644
index 0000000..dfab419
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dataset_vt_type_dto.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DatasetVtTypeDTO(BaseModel):
+ """
+ DatasetVtTypeDTO
+ """ # noqa: E501
+ type: StrictStr
+ url_template: StrictStr = Field(alias="urlTemplate")
+ zoom: Optional[ZoomDTO] = None
+ __properties: ClassVar[List[str]] = ["type", "urlTemplate", "zoom"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['vt']):
+ raise ValueError("must be one of enum values ('vt')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DatasetVtTypeDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of zoom
+ if self.zoom:
+ _dict['zoom'] = self.zoom.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DatasetVtTypeDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "urlTemplate": obj.get("urlTemplate"),
+ "zoom": ZoomDTO.from_dict(obj["zoom"]) if obj.get("zoom") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/date_filter_default_value_type.py b/cm_python_openapi_sdk/models/date_filter_default_value_type.py
similarity index 97%
rename from openapi_client/models/date_filter_default_value_type.py
rename to cm_python_openapi_sdk/models/date_filter_default_value_type.py
index 4a9b862..fa8d85b 100644
--- a/openapi_client/models/date_filter_default_value_type.py
+++ b/cm_python_openapi_sdk/models/date_filter_default_value_type.py
@@ -17,8 +17,8 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.date_range_function import DateRangeFunction
-from openapi_client.models.date_range_value import DateRangeValue
+from cm_python_openapi_sdk.models.date_range_function import DateRangeFunction
+from cm_python_openapi_sdk.models.date_range_value import DateRangeValue
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/date_filter_dto.py b/cm_python_openapi_sdk/models/date_filter_dto.py
similarity index 100%
rename from openapi_client/models/date_filter_dto.py
rename to cm_python_openapi_sdk/models/date_filter_dto.py
diff --git a/openapi_client/models/date_range_function.py b/cm_python_openapi_sdk/models/date_range_function.py
similarity index 100%
rename from openapi_client/models/date_range_function.py
rename to cm_python_openapi_sdk/models/date_range_function.py
diff --git a/openapi_client/models/date_range_value.py b/cm_python_openapi_sdk/models/date_range_value.py
similarity index 100%
rename from openapi_client/models/date_range_value.py
rename to cm_python_openapi_sdk/models/date_range_value.py
diff --git a/openapi_client/models/default_distribution_dto.py b/cm_python_openapi_sdk/models/default_distribution_dto.py
similarity index 100%
rename from openapi_client/models/default_distribution_dto.py
rename to cm_python_openapi_sdk/models/default_distribution_dto.py
diff --git a/openapi_client/models/default_selected_dto.py b/cm_python_openapi_sdk/models/default_selected_dto.py
similarity index 98%
rename from openapi_client/models/default_selected_dto.py
rename to cm_python_openapi_sdk/models/default_selected_dto.py
index be20aae..762062f 100644
--- a/openapi_client/models/default_selected_dto.py
+++ b/cm_python_openapi_sdk/models/default_selected_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/default_values_date_dto.py b/cm_python_openapi_sdk/models/default_values_date_dto.py
similarity index 97%
rename from openapi_client/models/default_values_date_dto.py
rename to cm_python_openapi_sdk/models/default_values_date_dto.py
index ca9557d..ab8d2d0 100644
--- a/openapi_client/models/default_values_date_dto.py
+++ b/cm_python_openapi_sdk/models/default_values_date_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.date_filter_default_value_type import DateFilterDefaultValueType
+from cm_python_openapi_sdk.models.date_filter_default_value_type import DateFilterDefaultValueType
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/default_values_feature_dto.py b/cm_python_openapi_sdk/models/default_values_feature_dto.py
similarity index 100%
rename from openapi_client/models/default_values_feature_dto.py
rename to cm_python_openapi_sdk/models/default_values_feature_dto.py
diff --git a/openapi_client/models/default_values_histogram_dto.py b/cm_python_openapi_sdk/models/default_values_histogram_dto.py
similarity index 100%
rename from openapi_client/models/default_values_histogram_dto.py
rename to cm_python_openapi_sdk/models/default_values_histogram_dto.py
diff --git a/openapi_client/models/default_values_indicator_dto.py b/cm_python_openapi_sdk/models/default_values_indicator_dto.py
similarity index 100%
rename from openapi_client/models/default_values_indicator_dto.py
rename to cm_python_openapi_sdk/models/default_values_indicator_dto.py
diff --git a/openapi_client/models/default_values_multi_select_dto.py b/cm_python_openapi_sdk/models/default_values_multi_select_dto.py
similarity index 100%
rename from openapi_client/models/default_values_multi_select_dto.py
rename to cm_python_openapi_sdk/models/default_values_multi_select_dto.py
diff --git a/openapi_client/models/default_values_single_select_dto.py b/cm_python_openapi_sdk/models/default_values_single_select_dto.py
similarity index 100%
rename from openapi_client/models/default_values_single_select_dto.py
rename to cm_python_openapi_sdk/models/default_values_single_select_dto.py
diff --git a/cm_python_openapi_sdk/models/display_options_dto.py b/cm_python_openapi_sdk/models/display_options_dto.py
new file mode 100644
index 0000000..3c578b2
--- /dev/null
+++ b/cm_python_openapi_sdk/models/display_options_dto.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.value_option_dto import ValueOptionDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DisplayOptionsDTO(BaseModel):
+ """
+ DisplayOptionsDTO
+ """ # noqa: E501
+ value_options: Optional[List[ValueOptionDTO]] = Field(default=None, alias="valueOptions")
+ __properties: ClassVar[List[str]] = ["valueOptions"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DisplayOptionsDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in value_options (list)
+ _items = []
+ if self.value_options:
+ for _item_value_options in self.value_options:
+ if _item_value_options:
+ _items.append(_item_value_options.to_dict())
+ _dict['valueOptions'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DisplayOptionsDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "valueOptions": [ValueOptionDTO.from_dict(_item) for _item in obj["valueOptions"]] if obj.get("valueOptions") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/distribution_dto.py b/cm_python_openapi_sdk/models/distribution_dto.py
similarity index 100%
rename from openapi_client/models/distribution_dto.py
rename to cm_python_openapi_sdk/models/distribution_dto.py
diff --git a/cm_python_openapi_sdk/models/dwh_abstract_property.py b/cm_python_openapi_sdk/models/dwh_abstract_property.py
new file mode 100644
index 0000000..9a5e0d6
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_abstract_property.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.display_options_dto import DisplayOptionsDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhAbstractProperty(BaseModel):
+ """
+ DwhAbstractProperty
+ """ # noqa: E501
+ name: Annotated[str, Field(strict=True)]
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ column: Annotated[str, Field(strict=True)]
+ type: StrictStr
+ filterable: Optional[StrictBool] = True
+ calculated: Optional[StrictBool] = None
+ display_options: Optional[DisplayOptionsDTO] = Field(default=None, alias="displayOptions")
+ geometry: Optional[Any]
+ foreign_key: Optional[Any] = Field(alias="foreignKey")
+ __properties: ClassVar[List[str]] = ["name", "title", "description", "column", "type", "filterable", "calculated", "displayOptions", "geometry", "foreignKey"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('column')
+ def column_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhAbstractProperty from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of display_options
+ if self.display_options:
+ _dict['displayOptions'] = self.display_options.to_dict()
+ # set to None if geometry (nullable) is None
+ # and model_fields_set contains the field
+ if self.geometry is None and "geometry" in self.model_fields_set:
+ _dict['geometry'] = None
+
+ # set to None if foreign_key (nullable) is None
+ # and model_fields_set contains the field
+ if self.foreign_key is None and "foreign_key" in self.model_fields_set:
+ _dict['foreignKey'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhAbstractProperty from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "name": obj.get("name"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "column": obj.get("column"),
+ "type": obj.get("type"),
+ "filterable": obj.get("filterable") if obj.get("filterable") is not None else True,
+ "calculated": obj.get("calculated"),
+ "displayOptions": DisplayOptionsDTO.from_dict(obj["displayOptions"]) if obj.get("displayOptions") is not None else None,
+ "geometry": obj.get("geometry"),
+ "foreignKey": obj.get("foreignKey")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_foreign_key_dto.py b/cm_python_openapi_sdk/models/dwh_foreign_key_dto.py
new file mode 100644
index 0000000..acbca50
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_foreign_key_dto.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhForeignKeyDTO(BaseModel):
+ """
+ DwhForeignKeyDTO
+ """ # noqa: E501
+ foreign_key: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="foreignKey")
+ geometry: Optional[Any] = None
+ __properties: ClassVar[List[str]] = ["foreignKey", "geometry"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhForeignKeyDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if geometry (nullable) is None
+ # and model_fields_set contains the field
+ if self.geometry is None and "geometry" in self.model_fields_set:
+ _dict['geometry'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhForeignKeyDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "foreignKey": obj.get("foreignKey"),
+ "geometry": obj.get("geometry")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_geometry_dto.py b/cm_python_openapi_sdk/models/dwh_geometry_dto.py
new file mode 100644
index 0000000..a4da645
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_geometry_dto.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhGeometryDTO(BaseModel):
+ """
+ DwhGeometryDTO
+ """ # noqa: E501
+ geometry: Annotated[str, Field(min_length=1, strict=True)]
+ foreign_key: Optional[Any] = Field(default=None, alias="foreignKey")
+ __properties: ClassVar[List[str]] = ["geometry", "foreignKey"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhGeometryDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if foreign_key (nullable) is None
+ # and model_fields_set contains the field
+ if self.foreign_key is None and "foreign_key" in self.model_fields_set:
+ _dict['foreignKey'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhGeometryDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "geometry": obj.get("geometry"),
+ "foreignKey": obj.get("foreignKey")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_property_dto.py b/cm_python_openapi_sdk/models/dwh_property_dto.py
new file mode 100644
index 0000000..50a2340
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_property_dto.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhPropertyDTO(BaseModel):
+ """
+ DwhPropertyDTO
+ """ # noqa: E501
+ geometry: Optional[Any] = None
+ foreign_key: Optional[Any] = Field(default=None, alias="foreignKey")
+ __properties: ClassVar[List[str]] = ["geometry", "foreignKey"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhPropertyDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if geometry (nullable) is None
+ # and model_fields_set contains the field
+ if self.geometry is None and "geometry" in self.model_fields_set:
+ _dict['geometry'] = None
+
+ # set to None if foreign_key (nullable) is None
+ # and model_fields_set contains the field
+ if self.foreign_key is None and "foreign_key" in self.model_fields_set:
+ _dict['foreignKey'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhPropertyDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "geometry": obj.get("geometry"),
+ "foreignKey": obj.get("foreignKey")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_query_function_types.py b/cm_python_openapi_sdk/models/dwh_query_function_types.py
new file mode 100644
index 0000000..961adfc
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_query_function_types.py
@@ -0,0 +1,361 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.dwh_query_metric_type import DwhQueryMetricType
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+from cm_python_openapi_sdk.models.dwh_query_property_type import DwhQueryPropertyType
+from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral
+from cm_python_openapi_sdk.models.function_arithm_type_general import FunctionArithmTypeGeneral
+from cm_python_openapi_sdk.models.function_condition_type_general import FunctionConditionTypeGeneral
+from cm_python_openapi_sdk.models.function_date_trunc import FunctionDateTrunc
+from cm_python_openapi_sdk.models.function_distance import FunctionDistance
+from cm_python_openapi_sdk.models.function_h3_grid import FunctionH3Grid
+from cm_python_openapi_sdk.models.function_interval import FunctionInterval
+from cm_python_openapi_sdk.models.function_ntile import FunctionNtile
+from cm_python_openapi_sdk.models.function_percent_to_total_type_general import FunctionPercentToTotalTypeGeneral
+from cm_python_openapi_sdk.models.function_percentile import FunctionPercentile
+from cm_python_openapi_sdk.models.function_rank import FunctionRank
+from cm_python_openapi_sdk.models.function_round_type_general import FunctionRoundTypeGeneral
+from cm_python_openapi_sdk.models.function_row_number import FunctionRowNumber
+from cm_python_openapi_sdk.models.function_today import FunctionToday
+from cm_python_openapi_sdk.models.variable_type import VariableType
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+DWHQUERYFUNCTIONTYPES_ONE_OF_SCHEMAS = ["DwhQueryMetricType", "DwhQueryNumberType", "DwhQueryPropertyType", "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionConditionTypeGeneral", "FunctionDateTrunc", "FunctionDistance", "FunctionH3Grid", "FunctionInterval", "FunctionNtile", "FunctionPercentToTotalTypeGeneral", "FunctionPercentile", "FunctionRank", "FunctionRoundTypeGeneral", "FunctionRowNumber", "FunctionToday", "VariableType"]
+
+class DwhQueryFunctionTypes(BaseModel):
+ """
+ DwhQueryFunctionTypes
+ """
+ # data type: DwhQueryNumberType
+ oneof_schema_1_validator: Optional[DwhQueryNumberType] = None
+ # data type: VariableType
+ oneof_schema_2_validator: Optional[VariableType] = None
+ # data type: DwhQueryPropertyType
+ oneof_schema_3_validator: Optional[DwhQueryPropertyType] = None
+ # data type: DwhQueryMetricType
+ oneof_schema_4_validator: Optional[DwhQueryMetricType] = None
+ # data type: FunctionArithmTypeGeneral
+ oneof_schema_5_validator: Optional[FunctionArithmTypeGeneral] = None
+ # data type: FunctionConditionTypeGeneral
+ oneof_schema_6_validator: Optional[FunctionConditionTypeGeneral] = None
+ # data type: FunctionAggTypeGeneral
+ oneof_schema_7_validator: Optional[FunctionAggTypeGeneral] = None
+ # data type: FunctionPercentToTotalTypeGeneral
+ oneof_schema_8_validator: Optional[FunctionPercentToTotalTypeGeneral] = None
+ # data type: FunctionNtile
+ oneof_schema_9_validator: Optional[FunctionNtile] = None
+ # data type: FunctionRank
+ oneof_schema_10_validator: Optional[FunctionRank] = None
+ # data type: FunctionPercentile
+ oneof_schema_11_validator: Optional[FunctionPercentile] = None
+ # data type: FunctionRowNumber
+ oneof_schema_12_validator: Optional[FunctionRowNumber] = None
+ # data type: FunctionRoundTypeGeneral
+ oneof_schema_13_validator: Optional[FunctionRoundTypeGeneral] = None
+ # data type: FunctionToday
+ oneof_schema_14_validator: Optional[FunctionToday] = None
+ # data type: FunctionDateTrunc
+ oneof_schema_15_validator: Optional[FunctionDateTrunc] = None
+ # data type: FunctionInterval
+ oneof_schema_16_validator: Optional[FunctionInterval] = None
+ # data type: FunctionH3Grid
+ oneof_schema_17_validator: Optional[FunctionH3Grid] = None
+ # data type: FunctionDistance
+ oneof_schema_18_validator: Optional[FunctionDistance] = None
+ actual_instance: Optional[Union[DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType]] = None
+ one_of_schemas: Set[str] = { "DwhQueryMetricType", "DwhQueryNumberType", "DwhQueryPropertyType", "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionConditionTypeGeneral", "FunctionDateTrunc", "FunctionDistance", "FunctionH3Grid", "FunctionInterval", "FunctionNtile", "FunctionPercentToTotalTypeGeneral", "FunctionPercentile", "FunctionRank", "FunctionRoundTypeGeneral", "FunctionRowNumber", "FunctionToday", "VariableType" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = DwhQueryFunctionTypes.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: DwhQueryNumberType
+ if not isinstance(v, DwhQueryNumberType):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DwhQueryNumberType`")
+ else:
+ match += 1
+ # validate data type: VariableType
+ if not isinstance(v, VariableType):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `VariableType`")
+ else:
+ match += 1
+ # validate data type: DwhQueryPropertyType
+ if not isinstance(v, DwhQueryPropertyType):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DwhQueryPropertyType`")
+ else:
+ match += 1
+ # validate data type: DwhQueryMetricType
+ if not isinstance(v, DwhQueryMetricType):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DwhQueryMetricType`")
+ else:
+ match += 1
+ # validate data type: FunctionArithmTypeGeneral
+ if not isinstance(v, FunctionArithmTypeGeneral):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionArithmTypeGeneral`")
+ else:
+ match += 1
+ # validate data type: FunctionConditionTypeGeneral
+ if not isinstance(v, FunctionConditionTypeGeneral):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionConditionTypeGeneral`")
+ else:
+ match += 1
+ # validate data type: FunctionAggTypeGeneral
+ if not isinstance(v, FunctionAggTypeGeneral):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionAggTypeGeneral`")
+ else:
+ match += 1
+ # validate data type: FunctionPercentToTotalTypeGeneral
+ if not isinstance(v, FunctionPercentToTotalTypeGeneral):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionPercentToTotalTypeGeneral`")
+ else:
+ match += 1
+ # validate data type: FunctionNtile
+ if not isinstance(v, FunctionNtile):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionNtile`")
+ else:
+ match += 1
+ # validate data type: FunctionRank
+ if not isinstance(v, FunctionRank):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionRank`")
+ else:
+ match += 1
+ # validate data type: FunctionPercentile
+ if not isinstance(v, FunctionPercentile):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionPercentile`")
+ else:
+ match += 1
+ # validate data type: FunctionRowNumber
+ if not isinstance(v, FunctionRowNumber):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionRowNumber`")
+ else:
+ match += 1
+ # validate data type: FunctionRoundTypeGeneral
+ if not isinstance(v, FunctionRoundTypeGeneral):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionRoundTypeGeneral`")
+ else:
+ match += 1
+ # validate data type: FunctionToday
+ if not isinstance(v, FunctionToday):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionToday`")
+ else:
+ match += 1
+ # validate data type: FunctionDateTrunc
+ if not isinstance(v, FunctionDateTrunc):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionDateTrunc`")
+ else:
+ match += 1
+ # validate data type: FunctionInterval
+ if not isinstance(v, FunctionInterval):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionInterval`")
+ else:
+ match += 1
+ # validate data type: FunctionH3Grid
+ if not isinstance(v, FunctionH3Grid):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionH3Grid`")
+ else:
+ match += 1
+ # validate data type: FunctionDistance
+ if not isinstance(v, FunctionDistance):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionDistance`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in DwhQueryFunctionTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in DwhQueryFunctionTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into DwhQueryNumberType
+ try:
+ instance.actual_instance = DwhQueryNumberType.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into VariableType
+ try:
+ instance.actual_instance = VariableType.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DwhQueryPropertyType
+ try:
+ instance.actual_instance = DwhQueryPropertyType.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DwhQueryMetricType
+ try:
+ instance.actual_instance = DwhQueryMetricType.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionArithmTypeGeneral
+ try:
+ instance.actual_instance = FunctionArithmTypeGeneral.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionConditionTypeGeneral
+ try:
+ instance.actual_instance = FunctionConditionTypeGeneral.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionAggTypeGeneral
+ try:
+ instance.actual_instance = FunctionAggTypeGeneral.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionPercentToTotalTypeGeneral
+ try:
+ instance.actual_instance = FunctionPercentToTotalTypeGeneral.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionNtile
+ try:
+ instance.actual_instance = FunctionNtile.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionRank
+ try:
+ instance.actual_instance = FunctionRank.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionPercentile
+ try:
+ instance.actual_instance = FunctionPercentile.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionRowNumber
+ try:
+ instance.actual_instance = FunctionRowNumber.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionRoundTypeGeneral
+ try:
+ instance.actual_instance = FunctionRoundTypeGeneral.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionToday
+ try:
+ instance.actual_instance = FunctionToday.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionDateTrunc
+ try:
+ instance.actual_instance = FunctionDateTrunc.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionInterval
+ try:
+ instance.actual_instance = FunctionInterval.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionH3Grid
+ try:
+ instance.actual_instance = FunctionH3Grid.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FunctionDistance
+ try:
+ instance.actual_instance = FunctionDistance.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into DwhQueryFunctionTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into DwhQueryFunctionTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionConditionTypeGeneral, FunctionDateTrunc, FunctionDistance, FunctionH3Grid, FunctionInterval, FunctionNtile, FunctionPercentToTotalTypeGeneral, FunctionPercentile, FunctionRank, FunctionRoundTypeGeneral, FunctionRowNumber, FunctionToday, VariableType]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_query_metric_type.py b/cm_python_openapi_sdk/models/dwh_query_metric_type.py
new file mode 100644
index 0000000..72849a1
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_query_metric_type.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhQueryMetricType(BaseModel):
+ """
+ DwhQueryMetricType
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ metric: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["id", "type", "metric"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['metric']):
+ raise ValueError("must be one of enum values ('metric')")
+ return value
+
+ @field_validator('metric')
+ def metric_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/metrics(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/metrics(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhQueryMetricType from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhQueryMetricType from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "metric": obj.get("metric")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_query_number_type.py b/cm_python_openapi_sdk/models/dwh_query_number_type.py
new file mode 100644
index 0000000..5c68a00
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_query_number_type.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhQueryNumberType(BaseModel):
+ """
+ DwhQueryNumberType
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ value: Union[StrictFloat, StrictInt]
+ __properties: ClassVar[List[str]] = ["id", "type", "value"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['number']):
+ raise ValueError("must be one of enum values ('number')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhQueryNumberType from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhQueryNumberType from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/dwh_query_property_type.py b/cm_python_openapi_sdk/models/dwh_query_property_type.py
new file mode 100644
index 0000000..6047221
--- /dev/null
+++ b/cm_python_openapi_sdk/models/dwh_query_property_type.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DwhQueryPropertyType(BaseModel):
+ """
+ DwhQueryPropertyType
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ value: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["id", "type", "value"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['property']):
+ raise ValueError("must be one of enum values ('property')")
+ return value
+
+ @field_validator('value')
+ def value_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*\.[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*\.[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DwhQueryPropertyType from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DwhQueryPropertyType from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/export_content_dto.py b/cm_python_openapi_sdk/models/export_content_dto.py
new file mode 100644
index 0000000..f5ed0e8
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_content_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.output_dto import OutputDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportContentDTO(BaseModel):
+ """
+ ExportContentDTO
+ """ # noqa: E501
+ properties: Optional[List[Annotated[str, Field(strict=True)]]] = None
+ output: Optional[OutputDTO] = None
+ __properties: ClassVar[List[str]] = ["properties", "output"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of output
+ if self.output:
+ _dict['output'] = self.output.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "properties": obj.get("properties"),
+ "output": OutputDTO.from_dict(obj["output"]) if obj.get("output") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/export_dto.py b/cm_python_openapi_sdk/models/export_dto.py
new file mode 100644
index 0000000..0b7a20e
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.export_content_dto import ExportContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportDTO(BaseModel):
+ """
+ ExportDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: ExportContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": ExportContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/export_job_request.py b/cm_python_openapi_sdk/models/export_job_request.py
new file mode 100644
index 0000000..a9346c6
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.export_request import ExportRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportJobRequest(BaseModel):
+ """
+ ExportJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: ExportRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": ExportRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/export_link_dto.py b/cm_python_openapi_sdk/models/export_link_dto.py
similarity index 100%
rename from openapi_client/models/export_link_dto.py
rename to cm_python_openapi_sdk/models/export_link_dto.py
diff --git a/cm_python_openapi_sdk/models/export_paged_model_dto.py b/cm_python_openapi_sdk/models/export_paged_model_dto.py
new file mode 100644
index 0000000..a74a393
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportPagedModelDTO(BaseModel):
+ """
+ ExportPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[ExportDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [ExportDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/export_request.py b/cm_python_openapi_sdk/models/export_request.py
new file mode 100644
index 0000000..1fffd26
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_request.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.export_request_csv_options import ExportRequestCsvOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportRequest(BaseModel):
+ """
+ ExportRequest
+ """ # noqa: E501
+ format: StrictStr
+ csv_header_format: Optional[StrictStr] = Field(default=None, alias="csvHeaderFormat")
+ query: Dict[str, Any]
+ csv_options: Optional[ExportRequestCsvOptions] = Field(default=None, alias="csvOptions")
+ xlsx_options: Optional[Dict[str, Any]] = Field(default=None, alias="xlsxOptions")
+ __properties: ClassVar[List[str]] = ["format", "csvHeaderFormat", "query", "csvOptions", "xlsxOptions"]
+
+ @field_validator('format')
+ def format_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['csv', 'xlsx']):
+ raise ValueError("must be one of enum values ('csv', 'xlsx')")
+ return value
+
+ @field_validator('csv_header_format')
+ def csv_header_format_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['basic', 'export', 'template']):
+ raise ValueError("must be one of enum values ('basic', 'export', 'template')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of csv_options
+ if self.csv_options:
+ _dict['csvOptions'] = self.csv_options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "format": obj.get("format"),
+ "csvHeaderFormat": obj.get("csvHeaderFormat"),
+ "query": obj.get("query"),
+ "csvOptions": ExportRequestCsvOptions.from_dict(obj["csvOptions"]) if obj.get("csvOptions") is not None else None,
+ "xlsxOptions": obj.get("xlsxOptions")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/export_request_csv_options.py b/cm_python_openapi_sdk/models/export_request_csv_options.py
new file mode 100644
index 0000000..0fd13cd
--- /dev/null
+++ b/cm_python_openapi_sdk/models/export_request_csv_options.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ExportRequestCsvOptions(BaseModel):
+ """
+ ExportRequestCsvOptions
+ """ # noqa: E501
+ header: Optional[StrictBool] = None
+ separator: Optional[StrictStr] = None
+ quote: Optional[StrictStr] = None
+ escape: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["header", "separator", "quote", "escape"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ExportRequestCsvOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ExportRequestCsvOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "header": obj.get("header"),
+ "separator": obj.get("separator"),
+ "quote": obj.get("quote"),
+ "escape": obj.get("escape")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/feature_attribute_dto.py b/cm_python_openapi_sdk/models/feature_attribute_dto.py
similarity index 97%
rename from openapi_client/models/feature_attribute_dto.py
rename to cm_python_openapi_sdk/models/feature_attribute_dto.py
index fb99ae2..ac3f81c 100644
--- a/openapi_client/models/feature_attribute_dto.py
+++ b/cm_python_openapi_sdk/models/feature_attribute_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.attribute_format_dto import AttributeFormatDTO
+from cm_python_openapi_sdk.models.attribute_format_dto import AttributeFormatDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/feature_filter_dto.py b/cm_python_openapi_sdk/models/feature_filter_dto.py
similarity index 100%
rename from openapi_client/models/feature_filter_dto.py
rename to cm_python_openapi_sdk/models/feature_filter_dto.py
diff --git a/cm_python_openapi_sdk/models/feature_function_dto.py b/cm_python_openapi_sdk/models/feature_function_dto.py
new file mode 100644
index 0000000..fb7cc55
--- /dev/null
+++ b/cm_python_openapi_sdk/models/feature_function_dto.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_property_type import FunctionPropertyType
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FeatureFunctionDTO(BaseModel):
+ """
+ FeatureFunctionDTO
+ """ # noqa: E501
+ type: StrictStr
+ value: StrictStr
+ content: Annotated[List[FunctionPropertyType], Field(min_length=2)]
+ __properties: ClassVar[List[str]] = ["type", "value", "content"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function']):
+ raise ValueError("must be one of enum values ('function')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FeatureFunctionDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FeatureFunctionDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "value": obj.get("value"),
+ "content": [FunctionPropertyType.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/feature_property_dto.py b/cm_python_openapi_sdk/models/feature_property_dto.py
new file mode 100644
index 0000000..f59e763
--- /dev/null
+++ b/cm_python_openapi_sdk/models/feature_property_dto.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FeaturePropertyDTO(BaseModel):
+ """
+ FeaturePropertyDTO
+ """ # noqa: E501
+ type: StrictStr
+ value: StrictStr
+ __properties: ClassVar[List[str]] = ["type", "value"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['property']):
+ raise ValueError("must be one of enum values ('property')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FeaturePropertyDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FeaturePropertyDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/feature_property_type.py b/cm_python_openapi_sdk/models/feature_property_type.py
new file mode 100644
index 0000000..da370ec
--- /dev/null
+++ b/cm_python_openapi_sdk/models/feature_property_type.py
@@ -0,0 +1,151 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.feature_function_dto import FeatureFunctionDTO
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+FEATUREPROPERTYTYPE_ONE_OF_SCHEMAS = ["FeatureFunctionDTO", "FeaturePropertyDTO", "FeatureTextDTO"]
+
+class FeaturePropertyType(BaseModel):
+ """
+ FeaturePropertyType
+ """
+ # data type: FeaturePropertyDTO
+ oneof_schema_1_validator: Optional[FeaturePropertyDTO] = None
+ # data type: FeatureFunctionDTO
+ oneof_schema_2_validator: Optional[FeatureFunctionDTO] = None
+ # data type: FeatureTextDTO
+ oneof_schema_3_validator: Optional[FeatureTextDTO] = None
+ actual_instance: Optional[Union[FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO]] = None
+ one_of_schemas: Set[str] = { "FeatureFunctionDTO", "FeaturePropertyDTO", "FeatureTextDTO" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = FeaturePropertyType.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: FeaturePropertyDTO
+ if not isinstance(v, FeaturePropertyDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FeaturePropertyDTO`")
+ else:
+ match += 1
+ # validate data type: FeatureFunctionDTO
+ if not isinstance(v, FeatureFunctionDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FeatureFunctionDTO`")
+ else:
+ match += 1
+ # validate data type: FeatureTextDTO
+ if not isinstance(v, FeatureTextDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FeatureTextDTO`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in FeaturePropertyType with oneOf schemas: FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in FeaturePropertyType with oneOf schemas: FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into FeaturePropertyDTO
+ try:
+ instance.actual_instance = FeaturePropertyDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FeatureFunctionDTO
+ try:
+ instance.actual_instance = FeatureFunctionDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FeatureTextDTO
+ try:
+ instance.actual_instance = FeatureTextDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into FeaturePropertyType with oneOf schemas: FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into FeaturePropertyType with oneOf schemas: FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], FeatureFunctionDTO, FeaturePropertyDTO, FeatureTextDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/feature_text_dto.py b/cm_python_openapi_sdk/models/feature_text_dto.py
new file mode 100644
index 0000000..e6ad759
--- /dev/null
+++ b/cm_python_openapi_sdk/models/feature_text_dto.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FeatureTextDTO(BaseModel):
+ """
+ FeatureTextDTO
+ """ # noqa: E501
+ type: StrictStr
+ value: StrictStr
+ __properties: ClassVar[List[str]] = ["type", "value"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['text']):
+ raise ValueError("must be one of enum values ('text')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FeatureTextDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FeatureTextDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/filter_abstract_type.py b/cm_python_openapi_sdk/models/filter_abstract_type.py
similarity index 94%
rename from openapi_client/models/filter_abstract_type.py
rename to cm_python_openapi_sdk/models/filter_abstract_type.py
index f35a274..b83f01d 100644
--- a/openapi_client/models/filter_abstract_type.py
+++ b/cm_python_openapi_sdk/models/filter_abstract_type.py
@@ -17,13 +17,13 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.date_filter_dto import DateFilterDTO
-from openapi_client.models.feature_filter_dto import FeatureFilterDTO
-from openapi_client.models.global_date_filter_dto import GlobalDateFilterDTO
-from openapi_client.models.histogram_filter_dto import HistogramFilterDTO
-from openapi_client.models.indicator_filter_dto import IndicatorFilterDTO
-from openapi_client.models.multi_select_filter_dto import MultiSelectFilterDTO
-from openapi_client.models.single_select_filter_dto import SingleSelectFilterDTO
+from cm_python_openapi_sdk.models.date_filter_dto import DateFilterDTO
+from cm_python_openapi_sdk.models.feature_filter_dto import FeatureFilterDTO
+from cm_python_openapi_sdk.models.global_date_filter_dto import GlobalDateFilterDTO
+from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO
+from cm_python_openapi_sdk.models.indicator_filter_dto import IndicatorFilterDTO
+from cm_python_openapi_sdk.models.multi_select_filter_dto import MultiSelectFilterDTO
+from cm_python_openapi_sdk.models.single_select_filter_dto import SingleSelectFilterDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/format_dto.py b/cm_python_openapi_sdk/models/format_dto.py
similarity index 100%
rename from openapi_client/models/format_dto.py
rename to cm_python_openapi_sdk/models/format_dto.py
diff --git a/cm_python_openapi_sdk/models/function_agg_type_general.py b/cm_python_openapi_sdk/models/function_agg_type_general.py
new file mode 100644
index 0000000..4474485
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_agg_type_general.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionAggTypeGeneral(BaseModel):
+ """
+ FunctionAggTypeGeneral
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1, max_length=1)]
+ options: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_avg', 'function_sum', 'function_count', 'function_count_dist', 'function_max', 'function_min', 'function_stddev_samp', 'function_stddev_pop', 'function_var_samp', 'function_var_pop']):
+ raise ValueError("must be one of enum values ('function_avg', 'function_sum', 'function_count', 'function_count_dist', 'function_max', 'function_min', 'function_stddev_samp', 'function_stddev_pop', 'function_var_samp', 'function_var_pop')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionAggTypeGeneral from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionAggTypeGeneral from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_arithm_type_general.py b/cm_python_openapi_sdk/models/function_arithm_type_general.py
new file mode 100644
index 0000000..197a77a
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_arithm_type_general.py
@@ -0,0 +1,111 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionArithmTypeGeneral(BaseModel):
+ """
+ FunctionArithmTypeGeneral
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=2)]
+ options: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_plus', 'function_minus', 'function_multiply', 'function_divide', 'function_modulo']):
+ raise ValueError("must be one of enum values ('function_plus', 'function_minus', 'function_multiply', 'function_divide', 'function_modulo')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionArithmTypeGeneral from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionArithmTypeGeneral from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_condition_type_general.py b/cm_python_openapi_sdk/models/function_condition_type_general.py
new file mode 100644
index 0000000..b2702ba
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_condition_type_general.py
@@ -0,0 +1,111 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionConditionTypeGeneral(BaseModel):
+ """
+ FunctionConditionTypeGeneral
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=2, max_length=2)]
+ options: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_ifnull']):
+ raise ValueError("must be one of enum values ('function_ifnull')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionConditionTypeGeneral from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionConditionTypeGeneral from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_date_trunc.py b/cm_python_openapi_sdk/models/function_date_trunc.py
new file mode 100644
index 0000000..96b2639
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_date_trunc.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionDateTrunc(BaseModel):
+ """
+ FunctionDateTrunc
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1, max_length=1)]
+ options: FunctionDateTruncOptions
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_date_trunc']):
+ raise ValueError("must be one of enum values ('function_date_trunc')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionDateTrunc from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionDateTrunc from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": FunctionDateTruncOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_date_trunc_options.py b/cm_python_openapi_sdk/models/function_date_trunc_options.py
new file mode 100644
index 0000000..f6ecf0d
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_date_trunc_options.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionDateTruncOptions(BaseModel):
+ """
+ FunctionDateTruncOptions
+ """ # noqa: E501
+ interval: StrictStr
+ __properties: ClassVar[List[str]] = ["interval"]
+
+ @field_validator('interval')
+ def interval_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['day', 'week', 'month', 'quarter', 'year']):
+ raise ValueError("must be one of enum values ('day', 'week', 'month', 'quarter', 'year')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionDateTruncOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionDateTruncOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "interval": obj.get("interval")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_distance.py b/cm_python_openapi_sdk/models/function_distance.py
new file mode 100644
index 0000000..176e2be
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_distance.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_distance_options import FunctionDistanceOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionDistance(BaseModel):
+ """
+ FunctionDistance
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ options: FunctionDistanceOptions
+ __properties: ClassVar[List[str]] = ["id", "type", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_distance']):
+ raise ValueError("must be one of enum values ('function_distance')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionDistance from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionDistance from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "options": FunctionDistanceOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_distance_options.py b/cm_python_openapi_sdk/models/function_distance_options.py
new file mode 100644
index 0000000..615fedc
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_distance_options.py
@@ -0,0 +1,101 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionDistanceOptions(BaseModel):
+ """
+ FunctionDistanceOptions
+ """ # noqa: E501
+ dataset: Annotated[str, Field(strict=True)]
+ central_point: FunctionDistanceOptionsCentralPoint = Field(alias="centralPoint")
+ __properties: ClassVar[List[str]] = ["dataset", "centralPoint"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionDistanceOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of central_point
+ if self.central_point:
+ _dict['centralPoint'] = self.central_point.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionDistanceOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "centralPoint": FunctionDistanceOptionsCentralPoint.from_dict(obj["centralPoint"]) if obj.get("centralPoint") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_distance_options_central_point.py b/cm_python_openapi_sdk/models/function_distance_options_central_point.py
new file mode 100644
index 0000000..0fb28fd
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_distance_options_central_point.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
+from typing import Any, ClassVar, Dict, List, Union
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionDistanceOptionsCentralPoint(BaseModel):
+ """
+ FunctionDistanceOptionsCentralPoint
+ """ # noqa: E501
+ lat: Union[StrictFloat, StrictInt]
+ lng: Union[StrictFloat, StrictInt]
+ __properties: ClassVar[List[str]] = ["lat", "lng"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionDistanceOptionsCentralPoint from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionDistanceOptionsCentralPoint from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "lat": obj.get("lat"),
+ "lng": obj.get("lng")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_h3_grid.py b/cm_python_openapi_sdk/models/function_h3_grid.py
new file mode 100644
index 0000000..f9ec829
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_h3_grid.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_h3_grid_options import FunctionH3GridOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionH3Grid(BaseModel):
+ """
+ FunctionH3Grid
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ options: FunctionH3GridOptions
+ __properties: ClassVar[List[str]] = ["id", "type", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_h3_grid']):
+ raise ValueError("must be one of enum values ('function_h3_grid')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionH3Grid from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionH3Grid from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "options": FunctionH3GridOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_h3_grid_options.py b/cm_python_openapi_sdk/models/function_h3_grid_options.py
new file mode 100644
index 0000000..cc27cb5
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_h3_grid_options.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionH3GridOptions(BaseModel):
+ """
+ FunctionH3GridOptions
+ """ # noqa: E501
+ dataset: Annotated[str, Field(strict=True)]
+ resolution: Annotated[int, Field(le=15, strict=True, ge=0)]
+ __properties: ClassVar[List[str]] = ["dataset", "resolution"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionH3GridOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionH3GridOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "resolution": obj.get("resolution")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_interval.py b/cm_python_openapi_sdk/models/function_interval.py
new file mode 100644
index 0000000..6ac8d29
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_interval.py
@@ -0,0 +1,123 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionInterval(BaseModel):
+ """
+ FunctionInterval
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[DwhQueryNumberType], Field(min_length=1, max_length=1)]
+ options: FunctionDateTruncOptions
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_interval']):
+ raise ValueError("must be one of enum values ('function_interval')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionInterval from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionInterval from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": [DwhQueryNumberType.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "options": FunctionDateTruncOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_ntile.py b/cm_python_openapi_sdk/models/function_ntile.py
new file mode 100644
index 0000000..ebdfc11
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_ntile.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionNtile(BaseModel):
+ """
+ FunctionNtile
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1)]
+ options: Optional[FunctionNtileOptions] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_ntile']):
+ raise ValueError("must be one of enum values ('function_ntile')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionNtile from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of options
+ if self.options:
+ _dict['options'] = self.options.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionNtile from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": FunctionNtileOptions.from_dict(obj["options"]) if obj.get("options") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_ntile_options.py b/cm_python_openapi_sdk/models/function_ntile_options.py
new file mode 100644
index 0000000..0dab79d
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_ntile_options.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionNtileOptions(BaseModel):
+ """
+ FunctionNtileOptions
+ """ # noqa: E501
+ sort: Optional[StrictStr] = 'asc'
+ buckets: StrictInt
+ partition_by: Optional[List[Annotated[str, Field(min_length=1, strict=True)]]] = Field(default=None, alias="partitionBy")
+ __properties: ClassVar[List[str]] = ["sort", "buckets", "partitionBy"]
+
+ @field_validator('sort')
+ def sort_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['asc', 'desc']):
+ raise ValueError("must be one of enum values ('asc', 'desc')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionNtileOptions from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionNtileOptions from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "sort": obj.get("sort") if obj.get("sort") is not None else 'asc',
+ "buckets": obj.get("buckets") if obj.get("buckets") is not None else 4,
+ "partitionBy": obj.get("partitionBy")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_percent_to_total_type_general.py b/cm_python_openapi_sdk/models/function_percent_to_total_type_general.py
new file mode 100644
index 0000000..359937c
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_percent_to_total_type_general.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionPercentToTotalTypeGeneral(BaseModel):
+ """
+ FunctionPercentToTotalTypeGeneral
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1, max_length=1)]
+ options: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_percent_to_total']):
+ raise ValueError("must be one of enum values ('function_percent_to_total')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionPercentToTotalTypeGeneral from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionPercentToTotalTypeGeneral from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_percentile.py b/cm_python_openapi_sdk/models/function_percentile.py
new file mode 100644
index 0000000..dd483d2
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_percentile.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionPercentile(BaseModel):
+ """
+ FunctionPercentile
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1)]
+ options: Optional[Dict[str, Any]]
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_percentile']):
+ raise ValueError("must be one of enum values ('function_percentile')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionPercentile from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionPercentile from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_property_type.py b/cm_python_openapi_sdk/models/function_property_type.py
new file mode 100644
index 0000000..0bb20da
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_property_type.py
@@ -0,0 +1,137 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+FUNCTIONPROPERTYTYPE_ONE_OF_SCHEMAS = ["FeaturePropertyDTO", "FeatureTextDTO"]
+
+class FunctionPropertyType(BaseModel):
+ """
+ FunctionPropertyType
+ """
+ # data type: FeaturePropertyDTO
+ oneof_schema_1_validator: Optional[FeaturePropertyDTO] = None
+ # data type: FeatureTextDTO
+ oneof_schema_2_validator: Optional[FeatureTextDTO] = None
+ actual_instance: Optional[Union[FeaturePropertyDTO, FeatureTextDTO]] = None
+ one_of_schemas: Set[str] = { "FeaturePropertyDTO", "FeatureTextDTO" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = FunctionPropertyType.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: FeaturePropertyDTO
+ if not isinstance(v, FeaturePropertyDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FeaturePropertyDTO`")
+ else:
+ match += 1
+ # validate data type: FeatureTextDTO
+ if not isinstance(v, FeatureTextDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `FeatureTextDTO`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in FunctionPropertyType with oneOf schemas: FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in FunctionPropertyType with oneOf schemas: FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into FeaturePropertyDTO
+ try:
+ instance.actual_instance = FeaturePropertyDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into FeatureTextDTO
+ try:
+ instance.actual_instance = FeatureTextDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into FunctionPropertyType with oneOf schemas: FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into FunctionPropertyType with oneOf schemas: FeaturePropertyDTO, FeatureTextDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], FeaturePropertyDTO, FeatureTextDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/function_rank.py b/cm_python_openapi_sdk/models/function_rank.py
new file mode 100644
index 0000000..b393c8d
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_rank.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionRank(BaseModel):
+ """
+ FunctionRank
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1)]
+ options: Optional[Dict[str, Any]]
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_rank']):
+ raise ValueError("must be one of enum values ('function_rank')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionRank from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionRank from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_round_type_general.py b/cm_python_openapi_sdk/models/function_round_type_general.py
new file mode 100644
index 0000000..27d2180
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_round_type_general.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionRoundTypeGeneral(BaseModel):
+ """
+ FunctionRoundTypeGeneral
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1, max_length=1)]
+ options: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_round']):
+ raise ValueError("must be one of enum values ('function_round')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionRoundTypeGeneral from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionRoundTypeGeneral from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_row_number.py b/cm_python_openapi_sdk/models/function_row_number.py
new file mode 100644
index 0000000..feaf0c9
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_row_number.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionRowNumber(BaseModel):
+ """
+ FunctionRowNumber
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ content: Annotated[List[Any], Field(min_length=1)]
+ options: Optional[Dict[str, Any]]
+ __properties: ClassVar[List[str]] = ["id", "type", "content", "options"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_row_number']):
+ raise ValueError("must be one of enum values ('function_row_number')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionRowNumber from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if options (nullable) is None
+ # and model_fields_set contains the field
+ if self.options is None and "options" in self.model_fields_set:
+ _dict['options'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionRowNumber from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "content": obj.get("content"),
+ "options": obj.get("options")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/function_today.py b/cm_python_openapi_sdk/models/function_today.py
new file mode 100644
index 0000000..45d52b0
--- /dev/null
+++ b/cm_python_openapi_sdk/models/function_today.py
@@ -0,0 +1,107 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class FunctionToday(BaseModel):
+ """
+ FunctionToday
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ __properties: ClassVar[List[str]] = ["id", "type"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['function_today']):
+ raise ValueError("must be one of enum values ('function_today')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of FunctionToday from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of FunctionToday from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/get_organizations200_response.py b/cm_python_openapi_sdk/models/get_organizations200_response.py
new file mode 100644
index 0000000..2578979
--- /dev/null
+++ b/cm_python_openapi_sdk/models/get_organizations200_response.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+from inspect import getfullargspec
+import json
+import pprint
+import re # noqa: F401
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Optional
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
+from typing_extensions import Literal, Self
+from pydantic import Field
+
+GETORGANIZATIONS200RESPONSE_ANY_OF_SCHEMAS = ["OrganizationPagedModelDTO", "OrganizationResponseDTO"]
+
+class GetOrganizations200Response(BaseModel):
+ """
+ GetOrganizations200Response
+ """
+
+ # data type: OrganizationPagedModelDTO
+ anyof_schema_1_validator: Optional[OrganizationPagedModelDTO] = None
+ # data type: OrganizationResponseDTO
+ anyof_schema_2_validator: Optional[OrganizationResponseDTO] = None
+ if TYPE_CHECKING:
+ actual_instance: Optional[Union[OrganizationPagedModelDTO, OrganizationResponseDTO]] = None
+ else:
+ actual_instance: Any = None
+ any_of_schemas: Set[str] = { "OrganizationPagedModelDTO", "OrganizationResponseDTO" }
+
+ model_config = {
+ "validate_assignment": True,
+ "protected_namespaces": (),
+ }
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_anyof(cls, v):
+ instance = GetOrganizations200Response.model_construct()
+ error_messages = []
+ # validate data type: OrganizationPagedModelDTO
+ if not isinstance(v, OrganizationPagedModelDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `OrganizationPagedModelDTO`")
+ else:
+ return v
+
+ # validate data type: OrganizationResponseDTO
+ if not isinstance(v, OrganizationResponseDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `OrganizationResponseDTO`")
+ else:
+ return v
+
+ if error_messages:
+ # no match
+ raise ValueError("No match found when setting the actual_instance in GetOrganizations200Response with anyOf schemas: OrganizationPagedModelDTO, OrganizationResponseDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Dict[str, Any]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ # anyof_schema_1_validator: Optional[OrganizationPagedModelDTO] = None
+ try:
+ instance.actual_instance = OrganizationPagedModelDTO.from_json(json_str)
+ return instance
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # anyof_schema_2_validator: Optional[OrganizationResponseDTO] = None
+ try:
+ instance.actual_instance = OrganizationResponseDTO.from_json(json_str)
+ return instance
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if error_messages:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into GetOrganizations200Response with anyOf schemas: OrganizationPagedModelDTO, OrganizationResponseDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], OrganizationPagedModelDTO, OrganizationResponseDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/get_project_members200_response.py b/cm_python_openapi_sdk/models/get_project_members200_response.py
new file mode 100644
index 0000000..ff3d466
--- /dev/null
+++ b/cm_python_openapi_sdk/models/get_project_members200_response.py
@@ -0,0 +1,134 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+from inspect import getfullargspec
+import json
+import pprint
+import re # noqa: F401
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Optional
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.models.membership_paged_model_dto import MembershipPagedModelDTO
+from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict
+from typing_extensions import Literal, Self
+from pydantic import Field
+
+GETPROJECTMEMBERS200RESPONSE_ANY_OF_SCHEMAS = ["MembershipDTO", "MembershipPagedModelDTO"]
+
+class GetProjectMembers200Response(BaseModel):
+ """
+ GetProjectMembers200Response
+ """
+
+ # data type: MembershipPagedModelDTO
+ anyof_schema_1_validator: Optional[MembershipPagedModelDTO] = None
+ # data type: MembershipDTO
+ anyof_schema_2_validator: Optional[MembershipDTO] = None
+ if TYPE_CHECKING:
+ actual_instance: Optional[Union[MembershipDTO, MembershipPagedModelDTO]] = None
+ else:
+ actual_instance: Any = None
+ any_of_schemas: Set[str] = { "MembershipDTO", "MembershipPagedModelDTO" }
+
+ model_config = {
+ "validate_assignment": True,
+ "protected_namespaces": (),
+ }
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_anyof(cls, v):
+ instance = GetProjectMembers200Response.model_construct()
+ error_messages = []
+ # validate data type: MembershipPagedModelDTO
+ if not isinstance(v, MembershipPagedModelDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `MembershipPagedModelDTO`")
+ else:
+ return v
+
+ # validate data type: MembershipDTO
+ if not isinstance(v, MembershipDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `MembershipDTO`")
+ else:
+ return v
+
+ if error_messages:
+ # no match
+ raise ValueError("No match found when setting the actual_instance in GetProjectMembers200Response with anyOf schemas: MembershipDTO, MembershipPagedModelDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Dict[str, Any]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ # anyof_schema_1_validator: Optional[MembershipPagedModelDTO] = None
+ try:
+ instance.actual_instance = MembershipPagedModelDTO.from_json(json_str)
+ return instance
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # anyof_schema_2_validator: Optional[MembershipDTO] = None
+ try:
+ instance.actual_instance = MembershipDTO.from_json(json_str)
+ return instance
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if error_messages:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into GetProjectMembers200Response with anyOf schemas: MembershipDTO, MembershipPagedModelDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], MembershipDTO, MembershipPagedModelDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/openapi_client/models/global_date_filter_dto.py b/cm_python_openapi_sdk/models/global_date_filter_dto.py
similarity index 100%
rename from openapi_client/models/global_date_filter_dto.py
rename to cm_python_openapi_sdk/models/global_date_filter_dto.py
diff --git a/openapi_client/models/google_earth_dto.py b/cm_python_openapi_sdk/models/google_earth_dto.py
similarity index 100%
rename from openapi_client/models/google_earth_dto.py
rename to cm_python_openapi_sdk/models/google_earth_dto.py
diff --git a/openapi_client/models/google_satellite_dto.py b/cm_python_openapi_sdk/models/google_satellite_dto.py
similarity index 100%
rename from openapi_client/models/google_satellite_dto.py
rename to cm_python_openapi_sdk/models/google_satellite_dto.py
diff --git a/openapi_client/models/google_street_view_dto.py b/cm_python_openapi_sdk/models/google_street_view_dto.py
similarity index 100%
rename from openapi_client/models/google_street_view_dto.py
rename to cm_python_openapi_sdk/models/google_street_view_dto.py
diff --git a/cm_python_openapi_sdk/models/granularity_category_dto.py b/cm_python_openapi_sdk/models/granularity_category_dto.py
new file mode 100644
index 0000000..31a95f7
--- /dev/null
+++ b/cm_python_openapi_sdk/models/granularity_category_dto.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class GranularityCategoryDTO(BaseModel):
+ """
+ GranularityCategoryDTO
+ """ # noqa: E501
+ dataset: Annotated[str, Field(strict=True)]
+ split_property_name: Annotated[str, Field(strict=True)] = Field(alias="splitPropertyName")
+ style_type: StrictStr = Field(alias="styleType")
+ __properties: ClassVar[List[str]] = ["dataset", "splitPropertyName", "styleType"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ @field_validator('split_property_name')
+ def split_property_name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9_-]+$/")
+ return value
+
+ @field_validator('style_type')
+ def style_type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['color', 'pattern', 'weight']):
+ raise ValueError("must be one of enum values ('color', 'pattern', 'weight')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of GranularityCategoryDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of GranularityCategoryDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "splitPropertyName": obj.get("splitPropertyName"),
+ "styleType": obj.get("styleType")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/histogram_filter_dto.py b/cm_python_openapi_sdk/models/histogram_filter_dto.py
similarity index 98%
rename from openapi_client/models/histogram_filter_dto.py
rename to cm_python_openapi_sdk/models/histogram_filter_dto.py
index 2193d99..a4cfb02 100644
--- a/openapi_client/models/histogram_filter_dto.py
+++ b/cm_python_openapi_sdk/models/histogram_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/import_project_job_request.py b/cm_python_openapi_sdk/models/import_project_job_request.py
new file mode 100644
index 0000000..316d679
--- /dev/null
+++ b/cm_python_openapi_sdk/models/import_project_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.import_project_request import ImportProjectRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ImportProjectJobRequest(BaseModel):
+ """
+ ImportProjectJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: ImportProjectRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ImportProjectJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ImportProjectJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": ImportProjectRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/import_project_request.py b/cm_python_openapi_sdk/models/import_project_request.py
new file mode 100644
index 0000000..729c3e6
--- /dev/null
+++ b/cm_python_openapi_sdk/models/import_project_request.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ImportProjectRequest(BaseModel):
+ """
+ ImportProjectRequest
+ """ # noqa: E501
+ force: StrictBool
+ source_project_id: StrictStr = Field(alias="sourceProjectId")
+ cascade_from: Optional[StrictStr] = Field(default=None, alias="cascadeFrom")
+ prefix: Optional[StrictStr] = None
+ attribute_styles: Optional[StrictBool] = Field(default=False, alias="attributeStyles")
+ dashboard: Optional[StrictBool] = False
+ data_permissions: Optional[StrictBool] = Field(default=False, alias="dataPermissions")
+ datasets: Optional[StrictBool] = False
+ exports: Optional[StrictBool] = False
+ indicators: Optional[StrictBool] = False
+ indicator_drills: Optional[StrictBool] = Field(default=False, alias="indicatorDrills")
+ maps: Optional[StrictBool] = False
+ markers: Optional[StrictBool] = False
+ marker_selectors: Optional[StrictBool] = Field(default=False, alias="markerSelectors")
+ metrics: Optional[StrictBool] = False
+ project_settings: Optional[StrictBool] = Field(default=False, alias="projectSettings")
+ views: Optional[StrictBool] = False
+ skip_data: Optional[StrictBool] = Field(default=False, alias="skipData")
+ __properties: ClassVar[List[str]] = ["force", "sourceProjectId", "cascadeFrom", "prefix", "attributeStyles", "dashboard", "dataPermissions", "datasets", "exports", "indicators", "indicatorDrills", "maps", "markers", "markerSelectors", "metrics", "projectSettings", "views", "skipData"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ImportProjectRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ImportProjectRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "force": obj.get("force"),
+ "sourceProjectId": obj.get("sourceProjectId"),
+ "cascadeFrom": obj.get("cascadeFrom"),
+ "prefix": obj.get("prefix"),
+ "attributeStyles": obj.get("attributeStyles") if obj.get("attributeStyles") is not None else False,
+ "dashboard": obj.get("dashboard") if obj.get("dashboard") is not None else False,
+ "dataPermissions": obj.get("dataPermissions") if obj.get("dataPermissions") is not None else False,
+ "datasets": obj.get("datasets") if obj.get("datasets") is not None else False,
+ "exports": obj.get("exports") if obj.get("exports") is not None else False,
+ "indicators": obj.get("indicators") if obj.get("indicators") is not None else False,
+ "indicatorDrills": obj.get("indicatorDrills") if obj.get("indicatorDrills") is not None else False,
+ "maps": obj.get("maps") if obj.get("maps") is not None else False,
+ "markers": obj.get("markers") if obj.get("markers") is not None else False,
+ "markerSelectors": obj.get("markerSelectors") if obj.get("markerSelectors") is not None else False,
+ "metrics": obj.get("metrics") if obj.get("metrics") is not None else False,
+ "projectSettings": obj.get("projectSettings") if obj.get("projectSettings") is not None else False,
+ "views": obj.get("views") if obj.get("views") is not None else False,
+ "skipData": obj.get("skipData") if obj.get("skipData") is not None else False
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/indicator_content_dto.py b/cm_python_openapi_sdk/models/indicator_content_dto.py
similarity index 95%
rename from openapi_client/models/indicator_content_dto.py
rename to cm_python_openapi_sdk/models/indicator_content_dto.py
index 8d0836a..1127bcd 100644
--- a/openapi_client/models/indicator_content_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_content_dto.py
@@ -20,10 +20,10 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.format_dto import FormatDTO
-from openapi_client.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
-from openapi_client.models.relations_dto import RelationsDTO
-from openapi_client.models.scale_options_dto import ScaleOptionsDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
+from cm_python_openapi_sdk.models.relations_dto import RelationsDTO
+from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_drill_content_dto.py b/cm_python_openapi_sdk/models/indicator_drill_content_dto.py
similarity index 97%
rename from openapi_client/models/indicator_drill_content_dto.py
rename to cm_python_openapi_sdk/models/indicator_drill_content_dto.py
index 64f14cc..78011ba 100644
--- a/openapi_client/models/indicator_drill_content_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_drill_content_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.block_abstract_type import BlockAbstractType
+from cm_python_openapi_sdk.models.block_abstract_type import BlockAbstractType
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_drill_dto.py b/cm_python_openapi_sdk/models/indicator_drill_dto.py
similarity index 97%
rename from openapi_client/models/indicator_drill_dto.py
rename to cm_python_openapi_sdk/models/indicator_drill_dto.py
index 775e437..c1b4eee 100644
--- a/openapi_client/models/indicator_drill_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_drill_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.indicator_drill_content_dto import IndicatorDrillContentDTO
+from cm_python_openapi_sdk.models.indicator_drill_content_dto import IndicatorDrillContentDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_drill_paged_model_dto.py b/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py
similarity index 94%
rename from openapi_client/models/indicator_drill_paged_model_dto.py
rename to cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py
index 34e6ba1..b90d232 100644
--- a/openapi_client/models/indicator_drill_paged_model_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_dto.py b/cm_python_openapi_sdk/models/indicator_dto.py
similarity index 98%
rename from openapi_client/models/indicator_dto.py
rename to cm_python_openapi_sdk/models/indicator_dto.py
index f89655b..9bdbeb6 100644
--- a/openapi_client/models/indicator_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.indicator_content_dto import IndicatorContentDTO
+from cm_python_openapi_sdk.models.indicator_content_dto import IndicatorContentDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_filter_dto.py b/cm_python_openapi_sdk/models/indicator_filter_dto.py
similarity index 100%
rename from openapi_client/models/indicator_filter_dto.py
rename to cm_python_openapi_sdk/models/indicator_filter_dto.py
diff --git a/openapi_client/models/indicator_group_dto.py b/cm_python_openapi_sdk/models/indicator_group_dto.py
similarity index 97%
rename from openapi_client/models/indicator_group_dto.py
rename to cm_python_openapi_sdk/models/indicator_group_dto.py
index 57608c0..0255822 100644
--- a/openapi_client/models/indicator_group_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_group_dto.py
@@ -107,7 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
})
return _obj
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
# TODO: Rewrite to not use raise_errors
IndicatorGroupDTO.model_rebuild(raise_errors=False)
diff --git a/openapi_client/models/indicator_link_dto.py b/cm_python_openapi_sdk/models/indicator_link_dto.py
similarity index 97%
rename from openapi_client/models/indicator_link_dto.py
rename to cm_python_openapi_sdk/models/indicator_link_dto.py
index 9ef8dc5..60e10c7 100644
--- a/openapi_client/models/indicator_link_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_link_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
+from cm_python_openapi_sdk.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_link_dto_block_rows_inner.py b/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py
similarity index 95%
rename from openapi_client/models/indicator_link_dto_block_rows_inner.py
rename to cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py
index 18665f8..a748d3a 100644
--- a/openapi_client/models/indicator_link_dto_block_rows_inner.py
+++ b/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py
@@ -17,10 +17,10 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.categories_dto import CategoriesDTO
-from openapi_client.models.distribution_dto import DistributionDTO
-from openapi_client.models.ranking_dto import RankingDTO
-from openapi_client.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/indicator_paged_model_dto.py b/cm_python_openapi_sdk/models/indicator_paged_model_dto.py
similarity index 95%
rename from openapi_client/models/indicator_paged_model_dto.py
rename to cm_python_openapi_sdk/models/indicator_paged_model_dto.py
index 5159033..6a10b5f 100644
--- a/openapi_client/models/indicator_paged_model_dto.py
+++ b/cm_python_openapi_sdk/models/indicator_paged_model_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/indicator_visualizations_dto.py b/cm_python_openapi_sdk/models/indicator_visualizations_dto.py
similarity index 100%
rename from openapi_client/models/indicator_visualizations_dto.py
rename to cm_python_openapi_sdk/models/indicator_visualizations_dto.py
diff --git a/cm_python_openapi_sdk/models/invitation_dto.py b/cm_python_openapi_sdk/models/invitation_dto.py
new file mode 100644
index 0000000..ca3fcdc
--- /dev/null
+++ b/cm_python_openapi_sdk/models/invitation_dto.py
@@ -0,0 +1,113 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InvitationDTO(BaseModel):
+ """
+ InvitationDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ email: StrictStr
+ status: StrictStr
+ role: StrictStr
+ created_at: StrictStr = Field(alias="createdAt")
+ modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt")
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ __properties: ClassVar[List[str]] = ["id", "email", "status", "role", "createdAt", "modifiedAt", "links"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['PENDING', 'ACCEPTED', 'CANCELED', 'EXPIRED']):
+ raise ValueError("must be one of enum values ('PENDING', 'ACCEPTED', 'CANCELED', 'EXPIRED')")
+ return value
+
+ @field_validator('role')
+ def role_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER']):
+ raise ValueError("must be one of enum values ('ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InvitationDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InvitationDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "email": obj.get("email"),
+ "status": obj.get("status"),
+ "role": obj.get("role"),
+ "createdAt": obj.get("createdAt"),
+ "modifiedAt": obj.get("modifiedAt"),
+ "links": obj.get("links")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/invitation_paged_model_dto.py b/cm_python_openapi_sdk/models/invitation_paged_model_dto.py
new file mode 100644
index 0000000..2c1a76f
--- /dev/null
+++ b/cm_python_openapi_sdk/models/invitation_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class InvitationPagedModelDTO(BaseModel):
+ """
+ InvitationPagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[InvitationDTO]] = None
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of InvitationPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of InvitationPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": [InvitationDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/isochrone_dto.py b/cm_python_openapi_sdk/models/isochrone_dto.py
similarity index 93%
rename from openapi_client/models/isochrone_dto.py
rename to cm_python_openapi_sdk/models/isochrone_dto.py
index e9e8a5d..33a5e65 100644
--- a/openapi_client/models/isochrone_dto.py
+++ b/cm_python_openapi_sdk/models/isochrone_dto.py
@@ -32,7 +32,7 @@ class IsochroneDTO(BaseModel):
profile: Optional[StrictStr] = None
unit: Optional[StrictStr] = None
amount: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
- geometry: Optional[Any] = None
+ geometry: Optional[Dict[str, Any]] = None
__properties: ClassVar[List[str]] = ["lat", "lng", "profile", "unit", "amount", "geometry"]
@field_validator('profile')
@@ -94,11 +94,6 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # set to None if geometry (nullable) is None
- # and model_fields_set contains the field
- if self.geometry is None and "geometry" in self.model_fields_set:
- _dict['geometry'] = None
-
return _dict
@classmethod
diff --git a/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py b/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py
new file mode 100644
index 0000000..cbd9b34
--- /dev/null
+++ b/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from typing import Optional, Set
+from typing_extensions import Self
+
+class IsochronePagedModelDTO(BaseModel):
+ """
+ IsochronePagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[IsochroneDTO]] = None
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of IsochronePagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of IsochronePagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": [IsochroneDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/job_detail_response.py b/cm_python_openapi_sdk/models/job_detail_response.py
new file mode 100644
index 0000000..7f5bbf3
--- /dev/null
+++ b/cm_python_openapi_sdk/models/job_detail_response.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class JobDetailResponse(BaseModel):
+ """
+ JobDetailResponse
+ """ # noqa: E501
+ id: Annotated[str, Field(min_length=1, strict=True)]
+ type: Annotated[str, Field(min_length=1, strict=True)]
+ status: StrictStr
+ start_date: Optional[Dict[str, Any]] = Field(default=None, alias="startDate")
+ end_date: Optional[Dict[str, Any]] = Field(default=None, alias="endDate")
+ message: Optional[StrictStr] = None
+ result: Optional[Dict[str, Any]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ __properties: ClassVar[List[str]] = ["id", "type", "status", "startDate", "endDate", "message", "result", "links"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['RUNNING', 'SUCCEEDED', 'FAILED', 'TIMED_OUT', 'ABORTED']):
+ raise ValueError("must be one of enum values ('RUNNING', 'SUCCEEDED', 'FAILED', 'TIMED_OUT', 'ABORTED')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of JobDetailResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of JobDetailResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "status": obj.get("status"),
+ "startDate": obj.get("startDate"),
+ "endDate": obj.get("endDate"),
+ "message": obj.get("message"),
+ "result": obj.get("result"),
+ "links": obj.get("links")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/job_history_paged_model_dto.py b/cm_python_openapi_sdk/models/job_history_paged_model_dto.py
new file mode 100644
index 0000000..0ff8fa9
--- /dev/null
+++ b/cm_python_openapi_sdk/models/job_history_paged_model_dto.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class JobHistoryPagedModelDTO(BaseModel):
+ """
+ JobHistoryPagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[Any]] = None
+ page: Optional[Any] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of JobHistoryPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if page (nullable) is None
+ # and model_fields_set contains the field
+ if self.page is None and "page" in self.model_fields_set:
+ _dict['page'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of JobHistoryPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": obj.get("content"),
+ "page": obj.get("page")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/layer_dto.py b/cm_python_openapi_sdk/models/layer_dto.py
similarity index 97%
rename from openapi_client/models/layer_dto.py
rename to cm_python_openapi_sdk/models/layer_dto.py
index 965d750..cb7a32d 100644
--- a/openapi_client/models/layer_dto.py
+++ b/cm_python_openapi_sdk/models/layer_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.layer_dto_datasets_inner import LayerDTODatasetsInner
-from openapi_client.models.style_dto import StyleDTO
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner import LayerDTODatasetsInner
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/layer_dto_datasets_inner.py b/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py
similarity index 97%
rename from openapi_client/models/layer_dto_datasets_inner.py
rename to cm_python_openapi_sdk/models/layer_dto_datasets_inner.py
index b9898cc..f8bd777 100644
--- a/openapi_client/models/layer_dto_datasets_inner.py
+++ b/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/layer_dto_datasets_inner_attribute_styles_inner.py b/cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py
similarity index 100%
rename from openapi_client/models/layer_dto_datasets_inner_attribute_styles_inner.py
rename to cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py
diff --git a/cm_python_openapi_sdk/models/linked_layer_dto.py b/cm_python_openapi_sdk/models/linked_layer_dto.py
new file mode 100644
index 0000000..fda9a13
--- /dev/null
+++ b/cm_python_openapi_sdk/models/linked_layer_dto.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class LinkedLayerDTO(BaseModel):
+ """
+ LinkedLayerDTO
+ """ # noqa: E501
+ dataset: Annotated[str, Field(strict=True)]
+ style: Optional[Annotated[str, Field(strict=True, max_length=50)]] = None
+ visible: Optional[StrictBool] = True
+ __properties: ClassVar[List[str]] = ["dataset", "style", "visible"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ @field_validator('style')
+ def style_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of LinkedLayerDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of LinkedLayerDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset"),
+ "style": obj.get("style"),
+ "visible": obj.get("visible") if obj.get("visible") is not None else True
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/mandatory_keys_for_pagable_response.py b/cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py
similarity index 100%
rename from openapi_client/models/mandatory_keys_for_pagable_response.py
rename to cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py
diff --git a/openapi_client/models/map_content_dto.py b/cm_python_openapi_sdk/models/map_content_dto.py
similarity index 92%
rename from openapi_client/models/map_content_dto.py
rename to cm_python_openapi_sdk/models/map_content_dto.py
index d9cfc07..b419f35 100644
--- a/openapi_client/models/map_content_dto.py
+++ b/cm_python_openapi_sdk/models/map_content_dto.py
@@ -19,10 +19,10 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.layer_dto import LayerDTO
-from openapi_client.models.map_content_dto_base_layer import MapContentDTOBaseLayer
-from openapi_client.models.map_content_dto_options import MapContentDTOOptions
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.layer_dto import LayerDTO
+from cm_python_openapi_sdk.models.map_content_dto_base_layer import MapContentDTOBaseLayer
+from cm_python_openapi_sdk.models.map_content_dto_options import MapContentDTOOptions
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/map_content_dto_base_layer.py b/cm_python_openapi_sdk/models/map_content_dto_base_layer.py
similarity index 100%
rename from openapi_client/models/map_content_dto_base_layer.py
rename to cm_python_openapi_sdk/models/map_content_dto_base_layer.py
diff --git a/openapi_client/models/map_content_dto_options.py b/cm_python_openapi_sdk/models/map_content_dto_options.py
similarity index 98%
rename from openapi_client/models/map_content_dto_options.py
rename to cm_python_openapi_sdk/models/map_content_dto_options.py
index 74d9aad..0f9169d 100644
--- a/openapi_client/models/map_content_dto_options.py
+++ b/cm_python_openapi_sdk/models/map_content_dto_options.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/map_context_menu_dto.py b/cm_python_openapi_sdk/models/map_context_menu_dto.py
similarity index 96%
rename from openapi_client/models/map_context_menu_dto.py
rename to cm_python_openapi_sdk/models/map_context_menu_dto.py
index 3e20d5f..2ed5045 100644
--- a/openapi_client/models/map_context_menu_dto.py
+++ b/cm_python_openapi_sdk/models/map_context_menu_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
+from cm_python_openapi_sdk.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/map_context_menu_item_abstract_type.py b/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py
similarity index 94%
rename from openapi_client/models/map_context_menu_item_abstract_type.py
rename to cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py
index 89be69a..c5a78a6 100644
--- a/openapi_client/models/map_context_menu_item_abstract_type.py
+++ b/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py
@@ -17,12 +17,12 @@
import pprint
from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
from typing import Any, List, Optional
-from openapi_client.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
-from openapi_client.models.google_earth_dto import GoogleEarthDTO
-from openapi_client.models.google_satellite_dto import GoogleSatelliteDTO
-from openapi_client.models.google_street_view_dto import GoogleStreetViewDTO
-from openapi_client.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
-from openapi_client.models.mapycz_panorama_dto import MapyczPanoramaDTO
+from cm_python_openapi_sdk.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
+from cm_python_openapi_sdk.models.google_earth_dto import GoogleEarthDTO
+from cm_python_openapi_sdk.models.google_satellite_dto import GoogleSatelliteDTO
+from cm_python_openapi_sdk.models.google_street_view_dto import GoogleStreetViewDTO
+from cm_python_openapi_sdk.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
+from cm_python_openapi_sdk.models.mapycz_panorama_dto import MapyczPanoramaDTO
from pydantic import StrictStr, Field
from typing import Union, List, Set, Optional, Dict
from typing_extensions import Literal, Self
diff --git a/openapi_client/models/map_dto.py b/cm_python_openapi_sdk/models/map_dto.py
similarity index 98%
rename from openapi_client/models/map_dto.py
rename to cm_python_openapi_sdk/models/map_dto.py
index f7597b8..94272aa 100644
--- a/openapi_client/models/map_dto.py
+++ b/cm_python_openapi_sdk/models/map_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.map_content_dto import MapContentDTO
+from cm_python_openapi_sdk.models.map_content_dto import MapContentDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/map_options_dto.py b/cm_python_openapi_sdk/models/map_options_dto.py
similarity index 96%
rename from openapi_client/models/map_options_dto.py
rename to cm_python_openapi_sdk/models/map_options_dto.py
index 0787d6d..64f9445 100644
--- a/openapi_client/models/map_options_dto.py
+++ b/cm_python_openapi_sdk/models/map_options_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.center_dto import CenterDTO
-from openapi_client.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/map_options_dto_custom_tile_layer.py b/cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py
similarity index 100%
rename from openapi_client/models/map_options_dto_custom_tile_layer.py
rename to cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py
diff --git a/openapi_client/models/map_paged_model_dto.py b/cm_python_openapi_sdk/models/map_paged_model_dto.py
similarity index 95%
rename from openapi_client/models/map_paged_model_dto.py
rename to cm_python_openapi_sdk/models/map_paged_model_dto.py
index 36cb011..4c9450c 100644
--- a/openapi_client/models/map_paged_model_dto.py
+++ b/cm_python_openapi_sdk/models/map_paged_model_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
-from openapi_client.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.map_dto import MapDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/mapycz_ortophoto_dto.py b/cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py
similarity index 100%
rename from openapi_client/models/mapycz_ortophoto_dto.py
rename to cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py
diff --git a/openapi_client/models/mapycz_panorama_dto.py b/cm_python_openapi_sdk/models/mapycz_panorama_dto.py
similarity index 100%
rename from openapi_client/models/mapycz_panorama_dto.py
rename to cm_python_openapi_sdk/models/mapycz_panorama_dto.py
diff --git a/cm_python_openapi_sdk/models/marker_content_dto.py b/cm_python_openapi_sdk/models/marker_content_dto.py
new file mode 100644
index 0000000..38f4adf
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_content_dto.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.marker_content_dto_property_filters_inner import MarkerContentDTOPropertyFiltersInner
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerContentDTO(BaseModel):
+ """
+ MarkerContentDTO
+ """ # noqa: E501
+ style: Annotated[str, Field(strict=True)]
+ property_filters: Optional[List[MarkerContentDTOPropertyFiltersInner]] = Field(default=None, alias="propertyFilters")
+ __properties: ClassVar[List[str]] = ["style", "propertyFilters"]
+
+ @field_validator('style')
+ def style_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z-]+$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in property_filters (list)
+ _items = []
+ if self.property_filters:
+ for _item_property_filters in self.property_filters:
+ if _item_property_filters:
+ _items.append(_item_property_filters.to_dict())
+ _dict['propertyFilters'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "style": obj.get("style"),
+ "propertyFilters": [MarkerContentDTOPropertyFiltersInner.from_dict(_item) for _item in obj["propertyFilters"]] if obj.get("propertyFilters") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_content_dto_property_filters_inner.py b/cm_python_openapi_sdk/models/marker_content_dto_property_filters_inner.py
new file mode 100644
index 0000000..8ccb681
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_content_dto_property_filters_inner.py
@@ -0,0 +1,137 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.property_filter_compare_dto import PropertyFilterCompareDTO
+from cm_python_openapi_sdk.models.property_filter_in_dto import PropertyFilterInDTO
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+MARKERCONTENTDTOPROPERTYFILTERSINNER_ONE_OF_SCHEMAS = ["PropertyFilterCompareDTO", "PropertyFilterInDTO"]
+
+class MarkerContentDTOPropertyFiltersInner(BaseModel):
+ """
+ MarkerContentDTOPropertyFiltersInner
+ """
+ # data type: PropertyFilterCompareDTO
+ oneof_schema_1_validator: Optional[PropertyFilterCompareDTO] = None
+ # data type: PropertyFilterInDTO
+ oneof_schema_2_validator: Optional[PropertyFilterInDTO] = None
+ actual_instance: Optional[Union[PropertyFilterCompareDTO, PropertyFilterInDTO]] = None
+ one_of_schemas: Set[str] = { "PropertyFilterCompareDTO", "PropertyFilterInDTO" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = MarkerContentDTOPropertyFiltersInner.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: PropertyFilterCompareDTO
+ if not isinstance(v, PropertyFilterCompareDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `PropertyFilterCompareDTO`")
+ else:
+ match += 1
+ # validate data type: PropertyFilterInDTO
+ if not isinstance(v, PropertyFilterInDTO):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `PropertyFilterInDTO`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in MarkerContentDTOPropertyFiltersInner with oneOf schemas: PropertyFilterCompareDTO, PropertyFilterInDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in MarkerContentDTOPropertyFiltersInner with oneOf schemas: PropertyFilterCompareDTO, PropertyFilterInDTO. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into PropertyFilterCompareDTO
+ try:
+ instance.actual_instance = PropertyFilterCompareDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into PropertyFilterInDTO
+ try:
+ instance.actual_instance = PropertyFilterInDTO.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into MarkerContentDTOPropertyFiltersInner with oneOf schemas: PropertyFilterCompareDTO, PropertyFilterInDTO. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into MarkerContentDTOPropertyFiltersInner with oneOf schemas: PropertyFilterCompareDTO, PropertyFilterInDTO. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], PropertyFilterCompareDTO, PropertyFilterInDTO]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/marker_dto.py b/cm_python_openapi_sdk/models/marker_dto.py
new file mode 100644
index 0000000..bc23126
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.marker_content_dto import MarkerContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerDTO(BaseModel):
+ """
+ MarkerDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True, max_length=50)]
+ type: Optional[StrictStr] = None
+ title: Annotated[str, Field(min_length=1, strict=True, max_length=255)]
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: MarkerContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": MarkerContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_link_dto.py b/cm_python_openapi_sdk/models/marker_link_dto.py
new file mode 100644
index 0000000..808e104
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_link_dto.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerLinkDTO(BaseModel):
+ """
+ MarkerLinkDTO
+ """ # noqa: E501
+ marker: Annotated[str, Field(strict=True)]
+ visible: StrictBool
+ add_on_expand: Optional[StrictBool] = Field(default=None, alias="addOnExpand")
+ __properties: ClassVar[List[str]] = ["marker", "visible", "addOnExpand"]
+
+ @field_validator('marker')
+ def marker_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/markers(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/markers(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerLinkDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerLinkDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "marker": obj.get("marker"),
+ "visible": obj.get("visible") if obj.get("visible") is not None else True,
+ "addOnExpand": obj.get("addOnExpand")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_paged_model_dto.py b/cm_python_openapi_sdk/models/marker_paged_model_dto.py
new file mode 100644
index 0000000..0e6cef0
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerPagedModelDTO(BaseModel):
+ """
+ MarkerPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[MarkerDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [MarkerDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_selector_content_dto.py b/cm_python_openapi_sdk/models/marker_selector_content_dto.py
new file mode 100644
index 0000000..a4bf002
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_selector_content_dto.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.category_dto import CategoryDTO
+from cm_python_openapi_sdk.models.granularity_category_dto import GranularityCategoryDTO
+from cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered import MarkerSelectorContentDTOKeepFiltered
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerSelectorContentDTO(BaseModel):
+ """
+ MarkerSelectorContentDTO
+ """ # noqa: E501
+ categories: Optional[List[CategoryDTO]] = None
+ granularity_categories: Optional[List[GranularityCategoryDTO]] = Field(default=None, alias="granularityCategories")
+ hide_granularity: Optional[StrictBool] = Field(default=None, alias="hideGranularity")
+ keep_filtered: Optional[MarkerSelectorContentDTOKeepFiltered] = Field(default=None, alias="keepFiltered")
+ show_indicator_values_on_map: Optional[StrictBool] = Field(default=None, alias="showIndicatorValuesOnMap")
+ cluster_markers: Optional[StrictBool] = Field(default=None, alias="clusterMarkers")
+ __properties: ClassVar[List[str]] = ["categories", "granularityCategories", "hideGranularity", "keepFiltered", "showIndicatorValuesOnMap", "clusterMarkers"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerSelectorContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in categories (list)
+ _items = []
+ if self.categories:
+ for _item_categories in self.categories:
+ if _item_categories:
+ _items.append(_item_categories.to_dict())
+ _dict['categories'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in granularity_categories (list)
+ _items = []
+ if self.granularity_categories:
+ for _item_granularity_categories in self.granularity_categories:
+ if _item_granularity_categories:
+ _items.append(_item_granularity_categories.to_dict())
+ _dict['granularityCategories'] = _items
+ # override the default output from pydantic by calling `to_dict()` of keep_filtered
+ if self.keep_filtered:
+ _dict['keepFiltered'] = self.keep_filtered.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerSelectorContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "categories": [CategoryDTO.from_dict(_item) for _item in obj["categories"]] if obj.get("categories") is not None else None,
+ "granularityCategories": [GranularityCategoryDTO.from_dict(_item) for _item in obj["granularityCategories"]] if obj.get("granularityCategories") is not None else None,
+ "hideGranularity": obj.get("hideGranularity"),
+ "keepFiltered": MarkerSelectorContentDTOKeepFiltered.from_dict(obj["keepFiltered"]) if obj.get("keepFiltered") is not None else None,
+ "showIndicatorValuesOnMap": obj.get("showIndicatorValuesOnMap"),
+ "clusterMarkers": obj.get("clusterMarkers")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_selector_content_dto_keep_filtered.py b/cm_python_openapi_sdk/models/marker_selector_content_dto_keep_filtered.py
new file mode 100644
index 0000000..9e79dee
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_selector_content_dto_keep_filtered.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerSelectorContentDTOKeepFiltered(BaseModel):
+ """
+ MarkerSelectorContentDTOKeepFiltered
+ """ # noqa: E501
+ granularity: Optional[StrictBool] = None
+ markers: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["granularity", "markers"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerSelectorContentDTOKeepFiltered from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerSelectorContentDTOKeepFiltered from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "granularity": obj.get("granularity"),
+ "markers": obj.get("markers")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_selector_dto.py b/cm_python_openapi_sdk/models/marker_selector_dto.py
new file mode 100644
index 0000000..51168f1
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_selector_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.marker_selector_content_dto import MarkerSelectorContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerSelectorDTO(BaseModel):
+ """
+ MarkerSelectorDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: MarkerSelectorContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerSelectorDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerSelectorDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": MarkerSelectorContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py b/cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py
new file mode 100644
index 0000000..451233b
--- /dev/null
+++ b/cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MarkerSelectorPagedModelDTO(BaseModel):
+ """
+ MarkerSelectorPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[MarkerSelectorDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MarkerSelectorPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MarkerSelectorPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [MarkerSelectorDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/max_value_dto.py b/cm_python_openapi_sdk/models/max_value_dto.py
similarity index 100%
rename from openapi_client/models/max_value_dto.py
rename to cm_python_openapi_sdk/models/max_value_dto.py
diff --git a/openapi_client/models/measure_dto.py b/cm_python_openapi_sdk/models/measure_dto.py
similarity index 98%
rename from openapi_client/models/measure_dto.py
rename to cm_python_openapi_sdk/models/measure_dto.py
index 562965d..5007ff9 100644
--- a/openapi_client/models/measure_dto.py
+++ b/cm_python_openapi_sdk/models/measure_dto.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/membership_dto.py b/cm_python_openapi_sdk/models/membership_dto.py
new file mode 100644
index 0000000..5b31185
--- /dev/null
+++ b/cm_python_openapi_sdk/models/membership_dto.py
@@ -0,0 +1,115 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MembershipDTO(BaseModel):
+ """
+ MembershipDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ account_id: Optional[StrictStr] = Field(default=None, alias="accountId")
+ status: StrictStr
+ role: StrictStr
+ created_at: Optional[StrictStr] = Field(default=None, alias="createdAt")
+ modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt")
+ account: Optional[Dict[str, Any]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ __properties: ClassVar[List[str]] = ["id", "accountId", "status", "role", "createdAt", "modifiedAt", "account", "links"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ENABLED', 'DISABLED']):
+ raise ValueError("must be one of enum values ('ENABLED', 'DISABLED')")
+ return value
+
+ @field_validator('role')
+ def role_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER']):
+ raise ValueError("must be one of enum values ('ANONYMOUS', 'VIEWER', 'VIEW_CREATOR', 'EDITOR', 'DATA_EDITOR', 'ADMIN', 'LOAD_DATA', 'DUMP_DATA', 'LOCATION_API_CONSUMER')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MembershipDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MembershipDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "accountId": obj.get("accountId"),
+ "status": obj.get("status"),
+ "role": obj.get("role"),
+ "createdAt": obj.get("createdAt"),
+ "modifiedAt": obj.get("modifiedAt"),
+ "account": obj.get("account"),
+ "links": obj.get("links")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/membership_paged_model_dto.py b/cm_python_openapi_sdk/models/membership_paged_model_dto.py
new file mode 100644
index 0000000..0e621b3
--- /dev/null
+++ b/cm_python_openapi_sdk/models/membership_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MembershipPagedModelDTO(BaseModel):
+ """
+ MembershipPagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[MembershipDTO]] = None
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MembershipPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MembershipPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": [MembershipDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/metric_dto.py b/cm_python_openapi_sdk/models/metric_dto.py
new file mode 100644
index 0000000..68a626d
--- /dev/null
+++ b/cm_python_openapi_sdk/models/metric_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.dwh_query_function_types import DwhQueryFunctionTypes
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MetricDTO(BaseModel):
+ """
+ MetricDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(min_length=1, strict=True, max_length=50)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ content: DwhQueryFunctionTypes
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MetricDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MetricDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": DwhQueryFunctionTypes.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/metric_paged_model_dto.py b/cm_python_openapi_sdk/models/metric_paged_model_dto.py
new file mode 100644
index 0000000..c10abc2
--- /dev/null
+++ b/cm_python_openapi_sdk/models/metric_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class MetricPagedModelDTO(BaseModel):
+ """
+ MetricPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[MetricDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of MetricPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of MetricPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [MetricDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/multi_select_filter_dto.py b/cm_python_openapi_sdk/models/multi_select_filter_dto.py
similarity index 98%
rename from openapi_client/models/multi_select_filter_dto.py
rename to cm_python_openapi_sdk/models/multi_select_filter_dto.py
index a685845..3ffb8df 100644
--- a/openapi_client/models/multi_select_filter_dto.py
+++ b/cm_python_openapi_sdk/models/multi_select_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/order_by_dto.py b/cm_python_openapi_sdk/models/order_by_dto.py
similarity index 100%
rename from openapi_client/models/order_by_dto.py
rename to cm_python_openapi_sdk/models/order_by_dto.py
diff --git a/cm_python_openapi_sdk/models/organization_paged_model_dto.py b/cm_python_openapi_sdk/models/organization_paged_model_dto.py
new file mode 100644
index 0000000..12e6a32
--- /dev/null
+++ b/cm_python_openapi_sdk/models/organization_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationPagedModelDTO(BaseModel):
+ """
+ OrganizationPagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[OrganizationResponseDTO]] = None
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": [OrganizationResponseDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/organization_response_dto.py b/cm_python_openapi_sdk/models/organization_response_dto.py
new file mode 100644
index 0000000..123872c
--- /dev/null
+++ b/cm_python_openapi_sdk/models/organization_response_dto.py
@@ -0,0 +1,120 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OrganizationResponseDTO(BaseModel):
+ """
+ OrganizationResponseDTO
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(strict=True)]] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ invitation_email: Optional[StrictStr] = Field(default=None, alias="invitationEmail")
+ dwh_cluster_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="dwhClusterId")
+ created_at: Optional[StrictStr] = Field(default=None, alias="createdAt")
+ modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt")
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ __properties: ClassVar[List[str]] = ["id", "title", "invitationEmail", "dwhClusterId", "createdAt", "modifiedAt", "links"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ @field_validator('dwh_cluster_id')
+ def dwh_cluster_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z0-9]{6}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{6}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OrganizationResponseDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OrganizationResponseDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "title": obj.get("title"),
+ "invitationEmail": obj.get("invitationEmail"),
+ "dwhClusterId": obj.get("dwhClusterId"),
+ "createdAt": obj.get("createdAt"),
+ "modifiedAt": obj.get("modifiedAt"),
+ "links": obj.get("links")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/output_dto.py b/cm_python_openapi_sdk/models/output_dto.py
new file mode 100644
index 0000000..bf6dd60
--- /dev/null
+++ b/cm_python_openapi_sdk/models/output_dto.py
@@ -0,0 +1,128 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class OutputDTO(BaseModel):
+ """
+ OutputDTO
+ """ # noqa: E501
+ type: StrictStr
+ format: StrictStr
+ filename: Optional[Annotated[str, Field(strict=True)]] = None
+ header: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["type", "format", "filename", "header"]
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['file']):
+ raise ValueError("must be one of enum values ('file')")
+ return value
+
+ @field_validator('format')
+ def format_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['csv', 'xlsx']):
+ raise ValueError("must be one of enum values ('csv', 'xlsx')")
+ return value
+
+ @field_validator('filename')
+ def filename_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-zA-Z0-9 _-]*(.csv|.xlsx)$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9 _-]*(.csv|.xlsx)$/")
+ return value
+
+ @field_validator('header')
+ def header_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['basic', 'export', 'template']):
+ raise ValueError("must be one of enum values ('basic', 'export', 'template')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of OutputDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of OutputDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "format": obj.get("format"),
+ "filename": obj.get("filename"),
+ "header": obj.get("header")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_paged_model_dto.py b/cm_python_openapi_sdk/models/project_paged_model_dto.py
new file mode 100644
index 0000000..e94b845
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectPagedModelDTO(BaseModel):
+ """
+ ProjectPagedModelDTO
+ """ # noqa: E501
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ content: Optional[List[ProjectResponseDTO]] = None
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["links", "content", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "links": obj.get("links"),
+ "content": [ProjectResponseDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_response_dto.py b/cm_python_openapi_sdk/models/project_response_dto.py
new file mode 100644
index 0000000..c1b0647
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_response_dto.py
@@ -0,0 +1,140 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectResponseDTO(BaseModel):
+ """
+ ProjectResponseDTO
+ """ # noqa: E501
+ id: Annotated[str, Field(strict=True)]
+ title: Annotated[str, Field(min_length=1, strict=True, max_length=255)]
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ organization_id: Annotated[str, Field(strict=True)] = Field(alias="organizationId")
+ status: StrictStr
+ share: StrictStr
+ created_at: StrictStr = Field(alias="createdAt")
+ modified_at: Optional[StrictStr] = Field(default=None, alias="modifiedAt")
+ membership: Optional[MembershipDTO] = None
+ services: Optional[Dict[str, Any]] = None
+ links: List[Dict[str, Any]] = Field(description="define keys links and page that are mandatory for all pageble responses")
+ __properties: ClassVar[List[str]] = ["id", "title", "description", "organizationId", "status", "share", "createdAt", "modifiedAt", "membership", "services", "links"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ @field_validator('organization_id')
+ def organization_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['ENABLED', 'DISABLED']):
+ raise ValueError("must be one of enum values ('ENABLED', 'DISABLED')")
+ return value
+
+ @field_validator('share')
+ def share_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['PRIVATE', 'PUBLIC', 'DEMO', 'DIMENSION', 'TEMPLATE']):
+ raise ValueError("must be one of enum values ('PRIVATE', 'PUBLIC', 'DEMO', 'DIMENSION', 'TEMPLATE')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectResponseDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of membership
+ if self.membership:
+ _dict['membership'] = self.membership.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectResponseDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "organizationId": obj.get("organizationId"),
+ "status": obj.get("status"),
+ "share": obj.get("share"),
+ "createdAt": obj.get("createdAt"),
+ "modifiedAt": obj.get("modifiedAt"),
+ "membership": MembershipDTO.from_dict(obj["membership"]) if obj.get("membership") is not None else None,
+ "services": obj.get("services"),
+ "links": obj.get("links")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_settings_content_dto.py b/cm_python_openapi_sdk/models/project_settings_content_dto.py
new file mode 100644
index 0000000..c97c986
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_settings_content_dto.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.project_template_dto import ProjectTemplateDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectSettingsContentDTO(BaseModel):
+ """
+ ProjectSettingsContentDTO
+ """ # noqa: E501
+ geo_search_countries: Optional[List[Annotated[str, Field(strict=True)]]] = Field(default=None, description="Array of country codes, as defined by ISO 3166 alpha-2, to limit the geographical search.", alias="geoSearchCountries")
+ geo_search_providers: List[StrictStr] = Field(description="Array of geographical search providers.", alias="geoSearchProviders")
+ project_template: Optional[ProjectTemplateDTO] = Field(default=None, alias="projectTemplate")
+ trusted_origins: Optional[List[StrictStr]] = Field(default=None, alias="trustedOrigins")
+ allow_unsecured_origins: Optional[StrictBool] = Field(default=False, alias="allowUnsecuredOrigins")
+ default_views: Optional[List[Annotated[str, Field(strict=True)]]] = Field(default=None, alias="defaultViews")
+ __properties: ClassVar[List[str]] = ["geoSearchCountries", "geoSearchProviders", "projectTemplate", "trustedOrigins", "allowUnsecuredOrigins", "defaultViews"]
+
+ @field_validator('geo_search_providers')
+ def geo_search_providers_validate_enum(cls, value):
+ """Validates the enum"""
+ for i in value:
+ if i not in set(['Mapbox', 'LocationIQ']):
+ raise ValueError("each list item must be one of ('Mapbox', 'LocationIQ')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectSettingsContentDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of project_template
+ if self.project_template:
+ _dict['projectTemplate'] = self.project_template.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectSettingsContentDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "geoSearchCountries": obj.get("geoSearchCountries"),
+ "geoSearchProviders": obj.get("geoSearchProviders"),
+ "projectTemplate": ProjectTemplateDTO.from_dict(obj["projectTemplate"]) if obj.get("projectTemplate") is not None else None,
+ "trustedOrigins": obj.get("trustedOrigins"),
+ "allowUnsecuredOrigins": obj.get("allowUnsecuredOrigins") if obj.get("allowUnsecuredOrigins") is not None else False,
+ "defaultViews": obj.get("defaultViews")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_settings_dto.py b/cm_python_openapi_sdk/models/project_settings_dto.py
new file mode 100644
index 0000000..c761937
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_settings_dto.py
@@ -0,0 +1,119 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.project_settings_content_dto import ProjectSettingsContentDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectSettingsDTO(BaseModel):
+ """
+ ProjectSettingsDTO
+ """ # noqa: E501
+ id: Optional[StrictStr] = None
+ name: Annotated[str, Field(strict=True)]
+ type: Optional[StrictStr] = None
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=2000)]] = None
+ content: ProjectSettingsContentDTO
+ __properties: ClassVar[List[str]] = ["id", "name", "type", "title", "description", "content"]
+
+ @field_validator('name')
+ def name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle']):
+ raise ValueError("must be one of enum values ('dataset', 'view', 'dashboard', 'indicatorDrill', 'indicator', 'metric', 'marker', 'markerSelector', 'export', 'dataPermission', 'projectSettings', 'share', 'map', 'attributeStyle')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectSettingsDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectSettingsDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "name": obj.get("name"),
+ "type": obj.get("type"),
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "content": ProjectSettingsContentDTO.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_settings_paged_model_dto.py b/cm_python_openapi_sdk/models/project_settings_paged_model_dto.py
new file mode 100644
index 0000000..3bdefb7
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_settings_paged_model_dto.py
@@ -0,0 +1,103 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectSettingsPagedModelDTO(BaseModel):
+ """
+ ProjectSettingsPagedModelDTO
+ """ # noqa: E501
+ content: Optional[List[ProjectSettingsDTO]] = None
+ links: Optional[List[Dict[str, Any]]] = Field(default=None, description="define keys links and page that are mandatory for all pageble responses")
+ page: Optional[MandatoryKeysForPagableResponse] = None
+ __properties: ClassVar[List[str]] = ["content", "links", "page"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectSettingsPagedModelDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in content (list)
+ _items = []
+ if self.content:
+ for _item_content in self.content:
+ if _item_content:
+ _items.append(_item_content.to_dict())
+ _dict['content'] = _items
+ # override the default output from pydantic by calling `to_dict()` of page
+ if self.page:
+ _dict['page'] = self.page.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectSettingsPagedModelDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "content": [ProjectSettingsDTO.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None,
+ "links": obj.get("links"),
+ "page": MandatoryKeysForPagableResponse.from_dict(obj["page"]) if obj.get("page") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/project_template_dto.py b/cm_python_openapi_sdk/models/project_template_dto.py
new file mode 100644
index 0000000..0bc76ba
--- /dev/null
+++ b/cm_python_openapi_sdk/models/project_template_dto.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from cm_python_openapi_sdk.models.template_dataset_dto import TemplateDatasetDTO
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ProjectTemplateDTO(BaseModel):
+ """
+ Object containing properties related to project templates.
+ """ # noqa: E501
+ template_datasets: Optional[List[TemplateDatasetDTO]] = Field(default=None, description="Array of links to datasets which will be marked as available to load with custom data.", alias="templateDatasets")
+ __properties: ClassVar[List[str]] = ["templateDatasets"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ProjectTemplateDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in template_datasets (list)
+ _items = []
+ if self.template_datasets:
+ for _item_template_datasets in self.template_datasets:
+ if _item_template_datasets:
+ _items.append(_item_template_datasets.to_dict())
+ _dict['templateDatasets'] = _items
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ProjectTemplateDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "templateDatasets": [TemplateDatasetDTO.from_dict(_item) for _item in obj["templateDatasets"]] if obj.get("templateDatasets") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/property_filter_compare_dto.py b/cm_python_openapi_sdk/models/property_filter_compare_dto.py
new file mode 100644
index 0000000..887318b
--- /dev/null
+++ b/cm_python_openapi_sdk/models/property_filter_compare_dto.py
@@ -0,0 +1,114 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PropertyFilterCompareDTO(BaseModel):
+ """
+ PropertyFilterCompareDTO
+ """ # noqa: E501
+ property_name: Annotated[str, Field(strict=True)] = Field(alias="propertyName")
+ value: Optional[Any]
+ operator: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["propertyName", "value", "operator"]
+
+ @field_validator('property_name')
+ def property_name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('operator')
+ def operator_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['eq', 'ne', 'lt', 'lte', 'gte', 'gt']):
+ raise ValueError("must be one of enum values ('eq', 'ne', 'lt', 'lte', 'gte', 'gt')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PropertyFilterCompareDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict['value'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PropertyFilterCompareDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "propertyName": obj.get("propertyName"),
+ "value": obj.get("value"),
+ "operator": obj.get("operator")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/property_filter_in_dto.py b/cm_python_openapi_sdk/models/property_filter_in_dto.py
new file mode 100644
index 0000000..d86403b
--- /dev/null
+++ b/cm_python_openapi_sdk/models/property_filter_in_dto.py
@@ -0,0 +1,109 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class PropertyFilterInDTO(BaseModel):
+ """
+ PropertyFilterInDTO
+ """ # noqa: E501
+ property_name: Annotated[str, Field(strict=True)] = Field(alias="propertyName")
+ value: Optional[List[Any]] = None
+ operator: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["propertyName", "value", "operator"]
+
+ @field_validator('property_name')
+ def property_name_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ @field_validator('operator')
+ def operator_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['in']):
+ raise ValueError("must be one of enum values ('in')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of PropertyFilterInDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of PropertyFilterInDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "propertyName": obj.get("propertyName"),
+ "value": obj.get("value"),
+ "operator": obj.get("operator")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/ranking_dto.py b/cm_python_openapi_sdk/models/ranking_dto.py
similarity index 100%
rename from openapi_client/models/ranking_dto.py
rename to cm_python_openapi_sdk/models/ranking_dto.py
diff --git a/openapi_client/models/relations_dto.py b/cm_python_openapi_sdk/models/relations_dto.py
similarity index 100%
rename from openapi_client/models/relations_dto.py
rename to cm_python_openapi_sdk/models/relations_dto.py
diff --git a/openapi_client/models/scale_options_dto.py b/cm_python_openapi_sdk/models/scale_options_dto.py
similarity index 95%
rename from openapi_client/models/scale_options_dto.py
rename to cm_python_openapi_sdk/models/scale_options_dto.py
index 1d46358..31b3f63 100644
--- a/openapi_client/models/scale_options_dto.py
+++ b/cm_python_openapi_sdk/models/scale_options_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.default_distribution_dto import DefaultDistributionDTO
-from openapi_client.models.static_scale_option_dto import StaticScaleOptionDTO
+from cm_python_openapi_sdk.models.default_distribution_dto import DefaultDistributionDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto import StaticScaleOptionDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/single_select_filter_dto.py b/cm_python_openapi_sdk/models/single_select_filter_dto.py
similarity index 98%
rename from openapi_client/models/single_select_filter_dto.py
rename to cm_python_openapi_sdk/models/single_select_filter_dto.py
index 9e0bae2..2eb7751 100644
--- a/openapi_client/models/single_select_filter_dto.py
+++ b/cm_python_openapi_sdk/models/single_select_filter_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/static_scale_option_dto.py b/cm_python_openapi_sdk/models/static_scale_option_dto.py
similarity index 96%
rename from openapi_client/models/static_scale_option_dto.py
rename to cm_python_openapi_sdk/models/static_scale_option_dto.py
index 0f4e975..fcab5eb 100644
--- a/openapi_client/models/static_scale_option_dto.py
+++ b/cm_python_openapi_sdk/models/static_scale_option_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.max_value_dto import MaxValueDTO
-from openapi_client.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
+from cm_python_openapi_sdk.models.max_value_dto import MaxValueDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/static_scale_option_dto_breaks.py b/cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py
similarity index 100%
rename from openapi_client/models/static_scale_option_dto_breaks.py
rename to cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py
diff --git a/openapi_client/models/style_dto.py b/cm_python_openapi_sdk/models/style_dto.py
similarity index 100%
rename from openapi_client/models/style_dto.py
rename to cm_python_openapi_sdk/models/style_dto.py
diff --git a/cm_python_openapi_sdk/models/submit_job_execution_request.py b/cm_python_openapi_sdk/models/submit_job_execution_request.py
new file mode 100644
index 0000000..348ce65
--- /dev/null
+++ b/cm_python_openapi_sdk/models/submit_job_execution_request.py
@@ -0,0 +1,210 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import json
+import pprint
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, ValidationError, field_validator
+from typing import Any, List, Optional
+from cm_python_openapi_sdk.models.bulk_point_query_job_request import BulkPointQueryJobRequest
+from cm_python_openapi_sdk.models.data_dump_job_request import DataDumpJobRequest
+from cm_python_openapi_sdk.models.data_pull_job_request import DataPullJobRequest
+from cm_python_openapi_sdk.models.export_job_request import ExportJobRequest
+from cm_python_openapi_sdk.models.import_project_job_request import ImportProjectJobRequest
+from cm_python_openapi_sdk.models.truncate_job_request import TruncateJobRequest
+from cm_python_openapi_sdk.models.validate_job_request import ValidateJobRequest
+from pydantic import StrictStr, Field
+from typing import Union, List, Set, Optional, Dict
+from typing_extensions import Literal, Self
+
+SUBMITJOBEXECUTIONREQUEST_ONE_OF_SCHEMAS = ["BulkPointQueryJobRequest", "DataDumpJobRequest", "DataPullJobRequest", "ExportJobRequest", "ImportProjectJobRequest", "TruncateJobRequest", "ValidateJobRequest"]
+
+class SubmitJobExecutionRequest(BaseModel):
+ """
+ SubmitJobExecutionRequest
+ """
+ # data type: ImportProjectJobRequest
+ oneof_schema_1_validator: Optional[ImportProjectJobRequest] = None
+ # data type: ValidateJobRequest
+ oneof_schema_2_validator: Optional[ValidateJobRequest] = None
+ # data type: TruncateJobRequest
+ oneof_schema_3_validator: Optional[TruncateJobRequest] = None
+ # data type: DataDumpJobRequest
+ oneof_schema_4_validator: Optional[DataDumpJobRequest] = None
+ # data type: DataPullJobRequest
+ oneof_schema_5_validator: Optional[DataPullJobRequest] = None
+ # data type: BulkPointQueryJobRequest
+ oneof_schema_6_validator: Optional[BulkPointQueryJobRequest] = None
+ # data type: ExportJobRequest
+ oneof_schema_7_validator: Optional[ExportJobRequest] = None
+ actual_instance: Optional[Union[BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest]] = None
+ one_of_schemas: Set[str] = { "BulkPointQueryJobRequest", "DataDumpJobRequest", "DataPullJobRequest", "ExportJobRequest", "ImportProjectJobRequest", "TruncateJobRequest", "ValidateJobRequest" }
+
+ model_config = ConfigDict(
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ discriminator_value_class_map: Dict[str, str] = {
+ }
+
+ def __init__(self, *args, **kwargs) -> None:
+ if args:
+ if len(args) > 1:
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
+ if kwargs:
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
+ super().__init__(actual_instance=args[0])
+ else:
+ super().__init__(**kwargs)
+
+ @field_validator('actual_instance')
+ def actual_instance_must_validate_oneof(cls, v):
+ instance = SubmitJobExecutionRequest.model_construct()
+ error_messages = []
+ match = 0
+ # validate data type: ImportProjectJobRequest
+ if not isinstance(v, ImportProjectJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ImportProjectJobRequest`")
+ else:
+ match += 1
+ # validate data type: ValidateJobRequest
+ if not isinstance(v, ValidateJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ValidateJobRequest`")
+ else:
+ match += 1
+ # validate data type: TruncateJobRequest
+ if not isinstance(v, TruncateJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `TruncateJobRequest`")
+ else:
+ match += 1
+ # validate data type: DataDumpJobRequest
+ if not isinstance(v, DataDumpJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DataDumpJobRequest`")
+ else:
+ match += 1
+ # validate data type: DataPullJobRequest
+ if not isinstance(v, DataPullJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `DataPullJobRequest`")
+ else:
+ match += 1
+ # validate data type: BulkPointQueryJobRequest
+ if not isinstance(v, BulkPointQueryJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryJobRequest`")
+ else:
+ match += 1
+ # validate data type: ExportJobRequest
+ if not isinstance(v, ExportJobRequest):
+ error_messages.append(f"Error! Input type `{type(v)}` is not `ExportJobRequest`")
+ else:
+ match += 1
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when setting `actual_instance` in SubmitJobExecutionRequest with oneOf schemas: BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when setting `actual_instance` in SubmitJobExecutionRequest with oneOf schemas: BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest. Details: " + ", ".join(error_messages))
+ else:
+ return v
+
+ @classmethod
+ def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self:
+ return cls.from_json(json.dumps(obj))
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Self:
+ """Returns the object represented by the json string"""
+ instance = cls.model_construct()
+ error_messages = []
+ match = 0
+
+ # deserialize data into ImportProjectJobRequest
+ try:
+ instance.actual_instance = ImportProjectJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into ValidateJobRequest
+ try:
+ instance.actual_instance = ValidateJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into TruncateJobRequest
+ try:
+ instance.actual_instance = TruncateJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DataDumpJobRequest
+ try:
+ instance.actual_instance = DataDumpJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into DataPullJobRequest
+ try:
+ instance.actual_instance = DataPullJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into BulkPointQueryJobRequest
+ try:
+ instance.actual_instance = BulkPointQueryJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+ # deserialize data into ExportJobRequest
+ try:
+ instance.actual_instance = ExportJobRequest.from_json(json_str)
+ match += 1
+ except (ValidationError, ValueError) as e:
+ error_messages.append(str(e))
+
+ if match > 1:
+ # more than 1 match
+ raise ValueError("Multiple matches found when deserializing the JSON string into SubmitJobExecutionRequest with oneOf schemas: BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest. Details: " + ", ".join(error_messages))
+ elif match == 0:
+ # no match
+ raise ValueError("No match found when deserializing the JSON string into SubmitJobExecutionRequest with oneOf schemas: BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest. Details: " + ", ".join(error_messages))
+ else:
+ return instance
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the actual instance"""
+ if self.actual_instance is None:
+ return "null"
+
+ if hasattr(self.actual_instance, "to_json") and callable(self.actual_instance.to_json):
+ return self.actual_instance.to_json()
+ else:
+ return json.dumps(self.actual_instance)
+
+ def to_dict(self) -> Optional[Union[Dict[str, Any], BulkPointQueryJobRequest, DataDumpJobRequest, DataPullJobRequest, ExportJobRequest, ImportProjectJobRequest, TruncateJobRequest, ValidateJobRequest]]:
+ """Returns the dict representation of the actual instance"""
+ if self.actual_instance is None:
+ return None
+
+ if hasattr(self.actual_instance, "to_dict") and callable(self.actual_instance.to_dict):
+ return self.actual_instance.to_dict()
+ else:
+ # primitive type
+ return self.actual_instance
+
+ def to_str(self) -> str:
+ """Returns the string representation of the actual instance"""
+ return pprint.pformat(self.model_dump())
+
+
diff --git a/cm_python_openapi_sdk/models/template_dataset_dto.py b/cm_python_openapi_sdk/models/template_dataset_dto.py
new file mode 100644
index 0000000..ec04de5
--- /dev/null
+++ b/cm_python_openapi_sdk/models/template_dataset_dto.py
@@ -0,0 +1,98 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class TemplateDatasetDTO(BaseModel):
+ """
+ TemplateDatasetDTO
+ """ # noqa: E501
+ dataset: Optional[Annotated[str, Field(strict=True)]] = None
+ __properties: ClassVar[List[str]] = ["dataset"]
+
+ @field_validator('dataset')
+ def dataset_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$", value):
+ raise ValueError(r"must validate the regular expression /^\/rest\/projects\/(\$projectId|[a-z0-9]{16})\/md\/datasets(\?name=[a-z0-9_-]+|\/[a-z0-9]+)$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TemplateDatasetDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TemplateDatasetDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "dataset": obj.get("dataset")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/time_series_dto.py b/cm_python_openapi_sdk/models/time_series_dto.py
similarity index 97%
rename from openapi_client/models/time_series_dto.py
rename to cm_python_openapi_sdk/models/time_series_dto.py
index d301ec8..d882d7f 100644
--- a/openapi_client/models/time_series_dto.py
+++ b/cm_python_openapi_sdk/models/time_series_dto.py
@@ -20,8 +20,8 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.additional_series_link_dto import AdditionalSeriesLinkDTO
-from openapi_client.models.annotation_link_dto import AnnotationLinkDTO
+from cm_python_openapi_sdk.models.additional_series_link_dto import AdditionalSeriesLinkDTO
+from cm_python_openapi_sdk.models.annotation_link_dto import AnnotationLinkDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/token_request_dto.py b/cm_python_openapi_sdk/models/token_request_dto.py
similarity index 100%
rename from openapi_client/models/token_request_dto.py
rename to cm_python_openapi_sdk/models/token_request_dto.py
diff --git a/openapi_client/models/token_response_dto.py b/cm_python_openapi_sdk/models/token_response_dto.py
similarity index 100%
rename from openapi_client/models/token_response_dto.py
rename to cm_python_openapi_sdk/models/token_response_dto.py
diff --git a/cm_python_openapi_sdk/models/truncate_job_request.py b/cm_python_openapi_sdk/models/truncate_job_request.py
new file mode 100644
index 0000000..eb1145b
--- /dev/null
+++ b/cm_python_openapi_sdk/models/truncate_job_request.py
@@ -0,0 +1,106 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class TruncateJobRequest(BaseModel):
+ """
+ TruncateJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TruncateJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TruncateJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": obj.get("content")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/update_invitation.py b/cm_python_openapi_sdk/models/update_invitation.py
new file mode 100644
index 0000000..6f5eedb
--- /dev/null
+++ b/cm_python_openapi_sdk/models/update_invitation.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateInvitation(BaseModel):
+ """
+ UpdateInvitation
+ """ # noqa: E501
+ status: StrictStr
+ __properties: ClassVar[List[str]] = ["status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateInvitation from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateInvitation from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/update_membership.py b/cm_python_openapi_sdk/models/update_membership.py
new file mode 100644
index 0000000..e6e3c01
--- /dev/null
+++ b/cm_python_openapi_sdk/models/update_membership.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictStr
+from typing import Any, ClassVar, Dict, List
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateMembership(BaseModel):
+ """
+ UpdateMembership
+ """ # noqa: E501
+ status: StrictStr
+ role: StrictStr
+ __properties: ClassVar[List[str]] = ["status", "role"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateMembership from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateMembership from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "status": obj.get("status"),
+ "role": obj.get("role")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/update_organization_dto.py b/cm_python_openapi_sdk/models/update_organization_dto.py
new file mode 100644
index 0000000..abc5779
--- /dev/null
+++ b/cm_python_openapi_sdk/models/update_organization_dto.py
@@ -0,0 +1,99 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateOrganizationDTO(BaseModel):
+ """
+ UpdateOrganizationDTO
+ """ # noqa: E501
+ title: Annotated[str, Field(min_length=1, strict=True, max_length=255)]
+ invitation_email: Optional[StrictStr] = Field(default=None, alias="invitationEmail")
+ dwh_cluster_id: Annotated[str, Field(strict=True)] = Field(alias="dwhClusterId")
+ __properties: ClassVar[List[str]] = ["title", "invitationEmail", "dwhClusterId"]
+
+ @field_validator('dwh_cluster_id')
+ def dwh_cluster_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{6}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{6}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateOrganizationDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "invitationEmail": obj.get("invitationEmail"),
+ "dwhClusterId": obj.get("dwhClusterId")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/update_project_dto.py b/cm_python_openapi_sdk/models/update_project_dto.py
new file mode 100644
index 0000000..0e04f57
--- /dev/null
+++ b/cm_python_openapi_sdk/models/update_project_dto.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateProjectDTO(BaseModel):
+ """
+ UpdateProjectDTO
+ """ # noqa: E501
+ title: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=255)]] = None
+ description: Optional[Annotated[str, Field(strict=True, max_length=2000)]] = None
+ organization_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="organizationId")
+ status: Optional[StrictStr] = None
+ services: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["title", "description", "organizationId", "status", "services"]
+
+ @field_validator('organization_id')
+ def organization_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['ENABLED', 'DISABLED']):
+ raise ValueError("must be one of enum values ('ENABLED', 'DISABLED')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateProjectDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateProjectDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "title": obj.get("title"),
+ "description": obj.get("description"),
+ "organizationId": obj.get("organizationId"),
+ "status": obj.get("status"),
+ "services": obj.get("services")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/validate_job_request.py b/cm_python_openapi_sdk/models/validate_job_request.py
new file mode 100644
index 0000000..3734862
--- /dev/null
+++ b/cm_python_openapi_sdk/models/validate_job_request.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, field_validator
+from typing import Any, ClassVar, Dict, List
+from typing_extensions import Annotated
+from cm_python_openapi_sdk.models.validate_request import ValidateRequest
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ValidateJobRequest(BaseModel):
+ """
+ ValidateJobRequest
+ """ # noqa: E501
+ type: Annotated[str, Field(strict=True)]
+ project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId")
+ content: ValidateRequest
+ __properties: ClassVar[List[str]] = ["type", "projectId", "content"]
+
+ @field_validator('type')
+ def type_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-zA-Z]+$", value):
+ raise ValueError(r"must validate the regular expression /^[a-zA-Z]+$/")
+ return value
+
+ @field_validator('project_id')
+ def project_id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z0-9]{16}$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z0-9]{16}$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ValidateJobRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of content
+ if self.content:
+ _dict['content'] = self.content.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ValidateJobRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "type": obj.get("type"),
+ "projectId": obj.get("projectId"),
+ "content": ValidateRequest.from_dict(obj["content"]) if obj.get("content") is not None else None
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/validate_request.py b/cm_python_openapi_sdk/models/validate_request.py
new file mode 100644
index 0000000..71b774b
--- /dev/null
+++ b/cm_python_openapi_sdk/models/validate_request.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ValidateRequest(BaseModel):
+ """
+ ValidateRequest
+ """ # noqa: E501
+ model_validator: Optional[Dict[str, Any]] = Field(default=None, alias="modelValidator")
+ data_validator: Optional[Dict[str, Any]] = Field(default=None, alias="dataValidator")
+ __properties: ClassVar[List[str]] = ["modelValidator", "dataValidator"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ValidateRequest from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ValidateRequest from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "modelValidator": obj.get("modelValidator"),
+ "dataValidator": obj.get("dataValidator")
+ })
+ return _obj
+
+
diff --git a/cm_python_openapi_sdk/models/value_option_dto.py b/cm_python_openapi_sdk/models/value_option_dto.py
new file mode 100644
index 0000000..4bbe9ce
--- /dev/null
+++ b/cm_python_openapi_sdk/models/value_option_dto.py
@@ -0,0 +1,121 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional, Union
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ValueOptionDTO(BaseModel):
+ """
+ ValueOptionDTO
+ """ # noqa: E501
+ value: Optional[Any]
+ color: Optional[StrictStr] = None
+ hex_color: Optional[Annotated[str, Field(min_length=7, strict=True, max_length=7)]] = Field(default=None, alias="hexColor")
+ weight: Optional[Union[StrictFloat, StrictInt]] = None
+ pattern: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["value", "color", "hexColor", "weight", "pattern"]
+
+ @field_validator('color')
+ def color_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['purple', 'green', 'orange', 'blue', 'turquoise', 'pink', 'red', 'lime', 'brown', 'yellow']):
+ raise ValueError("must be one of enum values ('purple', 'green', 'orange', 'blue', 'turquoise', 'pink', 'red', 'lime', 'brown', 'yellow')")
+ return value
+
+ @field_validator('pattern')
+ def pattern_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['solid', 'dot', 'dash', 'longdash', 'dotdash']):
+ raise ValueError("must be one of enum values ('solid', 'dot', 'dash', 'longdash', 'dotdash')")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ValueOptionDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # set to None if value (nullable) is None
+ # and model_fields_set contains the field
+ if self.value is None and "value" in self.model_fields_set:
+ _dict['value'] = None
+
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ValueOptionDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "value": obj.get("value"),
+ "color": obj.get("color"),
+ "hexColor": obj.get("hexColor"),
+ "weight": obj.get("weight"),
+ "pattern": obj.get("pattern")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/variable_dto.py b/cm_python_openapi_sdk/models/variable_dto.py
similarity index 98%
rename from openapi_client/models/variable_dto.py
rename to cm_python_openapi_sdk/models/variable_dto.py
index ea5c007..27137c1 100644
--- a/openapi_client/models/variable_dto.py
+++ b/cm_python_openapi_sdk/models/variable_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictFloat, StrictInt, field_validator
from typing import Any, ClassVar, Dict, List, Union
from typing_extensions import Annotated
-from openapi_client.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/variable_type.py b/cm_python_openapi_sdk/models/variable_type.py
new file mode 100644
index 0000000..2450d16
--- /dev/null
+++ b/cm_python_openapi_sdk/models/variable_type.py
@@ -0,0 +1,116 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class VariableType(BaseModel):
+ """
+ VariableType
+ """ # noqa: E501
+ id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = None
+ type: StrictStr
+ value: Annotated[str, Field(strict=True)]
+ __properties: ClassVar[List[str]] = ["id", "type", "value"]
+
+ @field_validator('id')
+ def id_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if value is None:
+ return value
+
+ if not re.match(r"^[\w_-]+$", value):
+ raise ValueError(r"must validate the regular expression /^[\w_-]+$/")
+ return value
+
+ @field_validator('type')
+ def type_validate_enum(cls, value):
+ """Validates the enum"""
+ if value not in set(['variable']):
+ raise ValueError("must be one of enum values ('variable')")
+ return value
+
+ @field_validator('value')
+ def value_validate_regular_expression(cls, value):
+ """Validates the regular expression"""
+ if not re.match(r"^[a-z][a-z0-9_-]*$", value):
+ raise ValueError(r"must validate the regular expression /^[a-z][a-z0-9_-]*$/")
+ return value
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of VariableType from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of VariableType from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "id": obj.get("id"),
+ "type": obj.get("type"),
+ "value": obj.get("value")
+ })
+ return _obj
+
+
diff --git a/openapi_client/models/variables_dto.py b/cm_python_openapi_sdk/models/variables_dto.py
similarity index 98%
rename from openapi_client/models/variables_dto.py
rename to cm_python_openapi_sdk/models/variables_dto.py
index 5d330e9..c6cc992 100644
--- a/openapi_client/models/variables_dto.py
+++ b/cm_python_openapi_sdk/models/variables_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, field_validator
from typing import Any, ClassVar, Dict, List
from typing_extensions import Annotated
-from openapi_client.models.variable_dto import VariableDTO
+from cm_python_openapi_sdk.models.variable_dto import VariableDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/view_content_dto.py b/cm_python_openapi_sdk/models/view_content_dto.py
similarity index 95%
rename from openapi_client/models/view_content_dto.py
rename to cm_python_openapi_sdk/models/view_content_dto.py
index 8deaf0c..7d2802a 100644
--- a/openapi_client/models/view_content_dto.py
+++ b/cm_python_openapi_sdk/models/view_content_dto.py
@@ -20,15 +20,15 @@
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.active_filter_abstract_type import ActiveFilterAbstractType
-from openapi_client.models.default_selected_dto import DefaultSelectedDTO
-from openapi_client.models.export_link_dto import ExportLinkDTO
-from openapi_client.models.filter_abstract_type import FilterAbstractType
-from openapi_client.models.isochrone_dto import IsochroneDTO
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
-from openapi_client.models.map_options_dto import MapOptionsDTO
-from openapi_client.models.measure_dto import MeasureDTO
-from openapi_client.models.variables_dto import VariablesDTO
+from cm_python_openapi_sdk.models.active_filter_abstract_type import ActiveFilterAbstractType
+from cm_python_openapi_sdk.models.default_selected_dto import DefaultSelectedDTO
+from cm_python_openapi_sdk.models.export_link_dto import ExportLinkDTO
+from cm_python_openapi_sdk.models.filter_abstract_type import FilterAbstractType
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.map_options_dto import MapOptionsDTO
+from cm_python_openapi_sdk.models.measure_dto import MeasureDTO
+from cm_python_openapi_sdk.models.variables_dto import VariablesDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/view_dto.py b/cm_python_openapi_sdk/models/view_dto.py
similarity index 98%
rename from openapi_client/models/view_dto.py
rename to cm_python_openapi_sdk/models/view_dto.py
index 5518952..5bf76a7 100644
--- a/openapi_client/models/view_dto.py
+++ b/cm_python_openapi_sdk/models/view_dto.py
@@ -20,7 +20,7 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing_extensions import Annotated
-from openapi_client.models.view_content_dto import ViewContentDTO
+from cm_python_openapi_sdk.models.view_content_dto import ViewContentDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/openapi_client/models/view_paged_model_dto.py b/cm_python_openapi_sdk/models/view_paged_model_dto.py
similarity index 95%
rename from openapi_client/models/view_paged_model_dto.py
rename to cm_python_openapi_sdk/models/view_paged_model_dto.py
index 73074bc..cac95a7 100644
--- a/openapi_client/models/view_paged_model_dto.py
+++ b/cm_python_openapi_sdk/models/view_paged_model_dto.py
@@ -19,8 +19,8 @@
from pydantic import BaseModel, ConfigDict, Field
from typing import Any, ClassVar, Dict, List, Optional
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
-from openapi_client.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
from typing import Optional, Set
from typing_extensions import Self
diff --git a/cm_python_openapi_sdk/models/zoom_dto.py b/cm_python_openapi_sdk/models/zoom_dto.py
new file mode 100644
index 0000000..2702246
--- /dev/null
+++ b/cm_python_openapi_sdk/models/zoom_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, Field
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ZoomDTO(BaseModel):
+ """
+ ZoomDTO
+ """ # noqa: E501
+ min: Annotated[int, Field(le=18, strict=True, ge=2)]
+ optimal: Annotated[int, Field(le=18, strict=True, ge=2)]
+ max: Annotated[int, Field(le=18, strict=True, ge=2)]
+ visible_from: Optional[Annotated[int, Field(le=18, strict=True, ge=2)]] = Field(default=None, alias="visibleFrom")
+ __properties: ClassVar[List[str]] = ["min", "optimal", "max", "visibleFrom"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ZoomDTO from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ZoomDTO from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "min": obj.get("min"),
+ "optimal": obj.get("optimal"),
+ "max": obj.get("max"),
+ "visibleFrom": obj.get("visibleFrom")
+ })
+ return _obj
+
+
diff --git a/openapi_client/py.typed b/cm_python_openapi_sdk/py.typed
similarity index 100%
rename from openapi_client/py.typed
rename to cm_python_openapi_sdk/py.typed
diff --git a/openapi_client/rest.py b/cm_python_openapi_sdk/rest.py
similarity index 99%
rename from openapi_client/rest.py
rename to cm_python_openapi_sdk/rest.py
index 3077106..913f69d 100644
--- a/openapi_client/rest.py
+++ b/cm_python_openapi_sdk/rest.py
@@ -19,7 +19,7 @@
import urllib3
-from openapi_client.exceptions import ApiException, ApiValueError
+from cm_python_openapi_sdk.exceptions import ApiException, ApiValueError
SUPPORTED_SOCKS_PROXIES = {"socks5", "socks5h", "socks4", "socks4a"}
RESTResponseType = urllib3.HTTPResponse
diff --git a/docs/ActiveDateFilterDTO.md b/docs/ActiveDateFilterDTO.md
index 9349f61..7d03acb 100644
--- a/docs/ActiveDateFilterDTO.md
+++ b/docs/ActiveDateFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_date_filter_dto import ActiveDateFilterDTO
+from cm_python_openapi_sdk.models.active_date_filter_dto import ActiveDateFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveFeatureFilterDTO.md b/docs/ActiveFeatureFilterDTO.md
index c32f7c5..58918b4 100644
--- a/docs/ActiveFeatureFilterDTO.md
+++ b/docs/ActiveFeatureFilterDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_feature_filter_dto import ActiveFeatureFilterDTO
+from cm_python_openapi_sdk.models.active_feature_filter_dto import ActiveFeatureFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveFilterAbstractType.md b/docs/ActiveFilterAbstractType.md
index d1e19fb..48fc5b0 100644
--- a/docs/ActiveFilterAbstractType.md
+++ b/docs/ActiveFilterAbstractType.md
@@ -18,7 +18,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_filter_abstract_type import ActiveFilterAbstractType
+from cm_python_openapi_sdk.models.active_filter_abstract_type import ActiveFilterAbstractType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveGlobalDateFilterDTO.md b/docs/ActiveGlobalDateFilterDTO.md
index 66f7c46..acc97e9 100644
--- a/docs/ActiveGlobalDateFilterDTO.md
+++ b/docs/ActiveGlobalDateFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
+from cm_python_openapi_sdk.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveHistogramFilterDTO.md b/docs/ActiveHistogramFilterDTO.md
index 5697b85..0118ec6 100644
--- a/docs/ActiveHistogramFilterDTO.md
+++ b/docs/ActiveHistogramFilterDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
+from cm_python_openapi_sdk.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveIndicatorFilterDTO.md b/docs/ActiveIndicatorFilterDTO.md
index e9e0ecb..a4f9b87 100644
--- a/docs/ActiveIndicatorFilterDTO.md
+++ b/docs/ActiveIndicatorFilterDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
+from cm_python_openapi_sdk.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveMultiSelectFilterDTO.md b/docs/ActiveMultiSelectFilterDTO.md
index 9cd044f..d4e73da 100644
--- a/docs/ActiveMultiSelectFilterDTO.md
+++ b/docs/ActiveMultiSelectFilterDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
+from cm_python_openapi_sdk.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ActiveSingleSelectFilterDTO.md b/docs/ActiveSingleSelectFilterDTO.md
index 744d6dc..ae12895 100644
--- a/docs/ActiveSingleSelectFilterDTO.md
+++ b/docs/ActiveSingleSelectFilterDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
+from cm_python_openapi_sdk.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/AdditionalSeriesLinkDTO.md b/docs/AdditionalSeriesLinkDTO.md
index ab6f14e..058d1cc 100644
--- a/docs/AdditionalSeriesLinkDTO.md
+++ b/docs/AdditionalSeriesLinkDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.additional_series_link_dto import AdditionalSeriesLinkDTO
+from cm_python_openapi_sdk.models.additional_series_link_dto import AdditionalSeriesLinkDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/AnnotationLinkDTO.md b/docs/AnnotationLinkDTO.md
index 2d21ba1..098eb13 100644
--- a/docs/AnnotationLinkDTO.md
+++ b/docs/AnnotationLinkDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.annotation_link_dto import AnnotationLinkDTO
+from cm_python_openapi_sdk.models.annotation_link_dto import AnnotationLinkDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/AttributeFormatDTO.md b/docs/AttributeFormatDTO.md
index c319a3b..6992337 100644
--- a/docs/AttributeFormatDTO.md
+++ b/docs/AttributeFormatDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.attribute_format_dto import AttributeFormatDTO
+from cm_python_openapi_sdk.models.attribute_format_dto import AttributeFormatDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/AttributeStyleCategoryDTO.md b/docs/AttributeStyleCategoryDTO.md
new file mode 100644
index 0000000..31032d8
--- /dev/null
+++ b/docs/AttributeStyleCategoryDTO.md
@@ -0,0 +1,31 @@
+# AttributeStyleCategoryDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | | [optional]
+**value** | **object** | | [optional]
+**style** | [**StyleDTO**](StyleDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.attribute_style_category_dto import AttributeStyleCategoryDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttributeStyleCategoryDTO from a JSON string
+attribute_style_category_dto_instance = AttributeStyleCategoryDTO.from_json(json)
+# print the JSON string representation of the object
+print(AttributeStyleCategoryDTO.to_json())
+
+# convert the object into a dict
+attribute_style_category_dto_dict = attribute_style_category_dto_instance.to_dict()
+# create an instance of AttributeStyleCategoryDTO from a dict
+attribute_style_category_dto_from_dict = AttributeStyleCategoryDTO.from_dict(attribute_style_category_dto_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)
+
+
diff --git a/docs/AttributeStyleContentDTO.md b/docs/AttributeStyleContentDTO.md
new file mode 100644
index 0000000..d3bb40a
--- /dev/null
+++ b/docs/AttributeStyleContentDTO.md
@@ -0,0 +1,31 @@
+# AttributeStyleContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**var_property** | **str** | |
+**fallback_category** | [**AttributeStyleFallbackCategoryDTO**](AttributeStyleFallbackCategoryDTO.md) | | [optional]
+**categories** | [**List[AttributeStyleCategoryDTO]**](AttributeStyleCategoryDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.attribute_style_content_dto import AttributeStyleContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttributeStyleContentDTO from a JSON string
+attribute_style_content_dto_instance = AttributeStyleContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(AttributeStyleContentDTO.to_json())
+
+# convert the object into a dict
+attribute_style_content_dto_dict = attribute_style_content_dto_instance.to_dict()
+# create an instance of AttributeStyleContentDTO from a dict
+attribute_style_content_dto_from_dict = AttributeStyleContentDTO.from_dict(attribute_style_content_dto_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)
+
+
diff --git a/docs/AttributeStyleDTO.md b/docs/AttributeStyleDTO.md
new file mode 100644
index 0000000..b5b2e86
--- /dev/null
+++ b/docs/AttributeStyleDTO.md
@@ -0,0 +1,34 @@
+# AttributeStyleDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**AttributeStyleContentDTO**](AttributeStyleContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttributeStyleDTO from a JSON string
+attribute_style_dto_instance = AttributeStyleDTO.from_json(json)
+# print the JSON string representation of the object
+print(AttributeStyleDTO.to_json())
+
+# convert the object into a dict
+attribute_style_dto_dict = attribute_style_dto_instance.to_dict()
+# create an instance of AttributeStyleDTO from a dict
+attribute_style_dto_from_dict = AttributeStyleDTO.from_dict(attribute_style_dto_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)
+
+
diff --git a/docs/AttributeStyleFallbackCategoryDTO.md b/docs/AttributeStyleFallbackCategoryDTO.md
new file mode 100644
index 0000000..b7422ab
--- /dev/null
+++ b/docs/AttributeStyleFallbackCategoryDTO.md
@@ -0,0 +1,30 @@
+# AttributeStyleFallbackCategoryDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | | [optional]
+**style** | [**StyleDTO**](StyleDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.attribute_style_fallback_category_dto import AttributeStyleFallbackCategoryDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttributeStyleFallbackCategoryDTO from a JSON string
+attribute_style_fallback_category_dto_instance = AttributeStyleFallbackCategoryDTO.from_json(json)
+# print the JSON string representation of the object
+print(AttributeStyleFallbackCategoryDTO.to_json())
+
+# convert the object into a dict
+attribute_style_fallback_category_dto_dict = attribute_style_fallback_category_dto_instance.to_dict()
+# create an instance of AttributeStyleFallbackCategoryDTO from a dict
+attribute_style_fallback_category_dto_from_dict = AttributeStyleFallbackCategoryDTO.from_dict(attribute_style_fallback_category_dto_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)
+
+
diff --git a/docs/AttributeStylePagedModelDTO.md b/docs/AttributeStylePagedModelDTO.md
new file mode 100644
index 0000000..afcd623
--- /dev/null
+++ b/docs/AttributeStylePagedModelDTO.md
@@ -0,0 +1,31 @@
+# AttributeStylePagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[AttributeStyleDTO]**](AttributeStyleDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttributeStylePagedModelDTO from a JSON string
+attribute_style_paged_model_dto_instance = AttributeStylePagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(AttributeStylePagedModelDTO.to_json())
+
+# convert the object into a dict
+attribute_style_paged_model_dto_dict = attribute_style_paged_model_dto_instance.to_dict()
+# create an instance of AttributeStylePagedModelDTO from a dict
+attribute_style_paged_model_dto_from_dict = AttributeStylePagedModelDTO.from_dict(attribute_style_paged_model_dto_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)
+
+
diff --git a/docs/AttributeStylesApi.md b/docs/AttributeStylesApi.md
new file mode 100644
index 0000000..f6e6ea1
--- /dev/null
+++ b/docs/AttributeStylesApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.AttributeStylesApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_attribute_style**](AttributeStylesApi.md#create_attribute_style) | **POST** /projects/{projectId}/md/attributeStyles | Creates new attribute style
+[**delete_attribute_style_by_id**](AttributeStylesApi.md#delete_attribute_style_by_id) | **DELETE** /projects/{projectId}/md/attributeStyles/{id} | Deletes attribute style by id
+[**get_all_attribute_styles**](AttributeStylesApi.md#get_all_attribute_styles) | **GET** /projects/{projectId}/md/attributeStyles | Returns paged collection of all Attribute Styles in a project
+[**get_attribute_style_by_id**](AttributeStylesApi.md#get_attribute_style_by_id) | **GET** /projects/{projectId}/md/attributeStyles/{id} | Gets attribute style by id
+[**update_attribute_style_by_id**](AttributeStylesApi.md#update_attribute_style_by_id) | **PUT** /projects/{projectId}/md/attributeStyles/{id} | Updates attribute style by id
+
+
+# **create_attribute_style**
+> AttributeStyleDTO create_attribute_style(project_id, attribute_style_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new attribute style
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ attribute_style_dto = cm_python_openapi_sdk.AttributeStyleDTO() # AttributeStyleDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new attribute style
+ api_response = api_instance.create_attribute_style(project_id, attribute_style_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of AttributeStylesApi->create_attribute_style:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AttributeStylesApi->create_attribute_style: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **attribute_style_dto** | [**AttributeStyleDTO**](AttributeStyleDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**AttributeStyleDTO**](AttributeStyleDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Attribute style was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Attribute style with the same name or id already exists | - |
+
+[[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)
+
+# **delete_attribute_style_by_id**
+> delete_attribute_style_by_id(project_id, id)
+
+Deletes attribute style by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the attribute style
+
+ try:
+ # Deletes attribute style by id
+ api_instance.delete_attribute_style_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling AttributeStylesApi->delete_attribute_style_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the attribute style |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Attribute style was successfully deleted | - |
+**404** | Attribute style not found | - |
+
+[[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)
+
+# **get_all_attribute_styles**
+> AttributeStylePagedModelDTO get_all_attribute_styles(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Attribute Styles in a project
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Attribute Styles in a project
+ api_response = api_instance.get_all_attribute_styles(project_id, page=page, size=size, sort=sort)
+ print("The response of AttributeStylesApi->get_all_attribute_styles:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AttributeStylesApi->get_all_attribute_styles: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**AttributeStylePagedModelDTO**](AttributeStylePagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_attribute_style_by_id**
+> AttributeStyleDTO get_attribute_style_by_id(project_id, id)
+
+Gets attribute style by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the attribute style
+
+ try:
+ # Gets attribute style by id
+ api_response = api_instance.get_attribute_style_by_id(project_id, id)
+ print("The response of AttributeStylesApi->get_attribute_style_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AttributeStylesApi->get_attribute_style_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the attribute style |
+
+### Return type
+
+[**AttributeStyleDTO**](AttributeStyleDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Attribute style not found | - |
+
+[[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)
+
+# **update_attribute_style_by_id**
+> AttributeStyleDTO update_attribute_style_by_id(project_id, id, if_match, attribute_style_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates attribute style by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.AttributeStylesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the attribute style
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ attribute_style_dto = cm_python_openapi_sdk.AttributeStyleDTO() # AttributeStyleDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates attribute style by id
+ api_response = api_instance.update_attribute_style_by_id(project_id, id, if_match, attribute_style_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of AttributeStylesApi->update_attribute_style_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AttributeStylesApi->update_attribute_style_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the attribute style |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **attribute_style_dto** | [**AttributeStyleDTO**](AttributeStyleDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**AttributeStyleDTO**](AttributeStyleDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Attribute style was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Attribute style not found | - |
+**409** | Attribute style with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/AuthenticationApi.md b/docs/AuthenticationApi.md
index 4818082..5a98050 100644
--- a/docs/AuthenticationApi.md
+++ b/docs/AuthenticationApi.md
@@ -1,4 +1,4 @@
-# openapi_client.AuthenticationApi
+# cm_python_openapi_sdk.AuthenticationApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -18,24 +18,24 @@ The token endpoint is used to obtain a Bearer token by presenting a valid Access
```python
-import openapi_client
-from openapi_client.models.token_request_dto import TokenRequestDTO
-from openapi_client.models.token_response_dto import TokenResponseDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.AuthenticationApi(api_client)
- token_request_dto = openapi_client.TokenRequestDTO() # TokenRequestDTO | (optional)
+ api_instance = cm_python_openapi_sdk.AuthenticationApi(api_client)
+ token_request_dto = cm_python_openapi_sdk.TokenRequestDTO() # TokenRequestDTO | (optional)
try:
# Get bearer token
diff --git a/docs/BlockAbstractType.md b/docs/BlockAbstractType.md
index e4e8aa6..fbd8994 100644
--- a/docs/BlockAbstractType.md
+++ b/docs/BlockAbstractType.md
@@ -33,7 +33,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.block_abstract_type import BlockAbstractType
+from cm_python_openapi_sdk.models.block_abstract_type import BlockAbstractType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/BlockRowAbstractType.md b/docs/BlockRowAbstractType.md
index d4895e7..70eca9a 100644
--- a/docs/BlockRowAbstractType.md
+++ b/docs/BlockRowAbstractType.md
@@ -37,7 +37,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/BlockRowDTO.md b/docs/BlockRowDTO.md
index 4803177..46cc9c6 100644
--- a/docs/BlockRowDTO.md
+++ b/docs/BlockRowDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.block_row_dto import BlockRowDTO
+from cm_python_openapi_sdk.models.block_row_dto import BlockRowDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/BulkPointQueryJobRequest.md b/docs/BulkPointQueryJobRequest.md
new file mode 100644
index 0000000..a36641e
--- /dev/null
+++ b/docs/BulkPointQueryJobRequest.md
@@ -0,0 +1,31 @@
+# BulkPointQueryJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**BulkPointQueryRequest**](BulkPointQueryRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_job_request import BulkPointQueryJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryJobRequest from a JSON string
+bulk_point_query_job_request_instance = BulkPointQueryJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryJobRequest.to_json())
+
+# convert the object into a dict
+bulk_point_query_job_request_dict = bulk_point_query_job_request_instance.to_dict()
+# create an instance of BulkPointQueryJobRequest from a dict
+bulk_point_query_job_request_from_dict = BulkPointQueryJobRequest.from_dict(bulk_point_query_job_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)
+
+
diff --git a/docs/BulkPointQueryPointQueriesOptionIsochrone.md b/docs/BulkPointQueryPointQueriesOptionIsochrone.md
new file mode 100644
index 0000000..86c71f5
--- /dev/null
+++ b/docs/BulkPointQueryPointQueriesOptionIsochrone.md
@@ -0,0 +1,31 @@
+# BulkPointQueryPointQueriesOptionIsochrone
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**profile** | **str** | |
+**unit** | **str** | |
+**amount** | **int** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_isochrone import BulkPointQueryPointQueriesOptionIsochrone
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryPointQueriesOptionIsochrone from a JSON string
+bulk_point_query_point_queries_option_isochrone_instance = BulkPointQueryPointQueriesOptionIsochrone.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryPointQueriesOptionIsochrone.to_json())
+
+# convert the object into a dict
+bulk_point_query_point_queries_option_isochrone_dict = bulk_point_query_point_queries_option_isochrone_instance.to_dict()
+# create an instance of BulkPointQueryPointQueriesOptionIsochrone from a dict
+bulk_point_query_point_queries_option_isochrone_from_dict = BulkPointQueryPointQueriesOptionIsochrone.from_dict(bulk_point_query_point_queries_option_isochrone_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)
+
+
diff --git a/docs/BulkPointQueryPointQueriesOptionNearest.md b/docs/BulkPointQueryPointQueriesOptionNearest.md
new file mode 100644
index 0000000..019ac79
--- /dev/null
+++ b/docs/BulkPointQueryPointQueriesOptionNearest.md
@@ -0,0 +1,29 @@
+# BulkPointQueryPointQueriesOptionNearest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**limit** | **int** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryPointQueriesOptionNearest from a JSON string
+bulk_point_query_point_queries_option_nearest_instance = BulkPointQueryPointQueriesOptionNearest.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryPointQueriesOptionNearest.to_json())
+
+# convert the object into a dict
+bulk_point_query_point_queries_option_nearest_dict = bulk_point_query_point_queries_option_nearest_instance.to_dict()
+# create an instance of BulkPointQueryPointQueriesOptionNearest from a dict
+bulk_point_query_point_queries_option_nearest_from_dict = BulkPointQueryPointQueriesOptionNearest.from_dict(bulk_point_query_point_queries_option_nearest_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)
+
+
diff --git a/docs/BulkPointQueryRequest.md b/docs/BulkPointQueryRequest.md
new file mode 100644
index 0000000..72a3306
--- /dev/null
+++ b/docs/BulkPointQueryRequest.md
@@ -0,0 +1,31 @@
+# BulkPointQueryRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**enable_billing** | **bool** | | [optional]
+**points** | [**List[BulkPointQueryRequestPointsInner]**](BulkPointQueryRequestPointsInner.md) | |
+**point_queries** | [**List[BulkPointQueryRequestPointQueriesInner]**](BulkPointQueryRequestPointQueriesInner.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_request import BulkPointQueryRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryRequest from a JSON string
+bulk_point_query_request_instance = BulkPointQueryRequest.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryRequest.to_json())
+
+# convert the object into a dict
+bulk_point_query_request_dict = bulk_point_query_request_instance.to_dict()
+# create an instance of BulkPointQueryRequest from a dict
+bulk_point_query_request_from_dict = BulkPointQueryRequest.from_dict(bulk_point_query_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)
+
+
diff --git a/docs/BulkPointQueryRequestPointQueriesInner.md b/docs/BulkPointQueryRequestPointQueriesInner.md
new file mode 100644
index 0000000..8f52f36
--- /dev/null
+++ b/docs/BulkPointQueryRequestPointQueriesInner.md
@@ -0,0 +1,40 @@
+# BulkPointQueryRequestPointQueriesInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**query_id** | **str** | | [optional]
+**type** | **str** | |
+**options** | [**BulkPointQueryRequestPointQueriesInnerOptions**](BulkPointQueryRequestPointQueriesInnerOptions.md) | | [optional]
+**dataset** | **str** | |
+**execution_content** | **object** | | [optional]
+**properties** | **List[object]** | | [optional]
+**filter_by** | **List[object]** | | [optional]
+**result_set_filter** | **List[object]** | | [optional]
+**having** | **List[object]** | | [optional]
+**order_by** | **List[object]** | | [optional]
+**variables** | **List[object]** | | [optional]
+**limit** | **int** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner import BulkPointQueryRequestPointQueriesInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryRequestPointQueriesInner from a JSON string
+bulk_point_query_request_point_queries_inner_instance = BulkPointQueryRequestPointQueriesInner.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryRequestPointQueriesInner.to_json())
+
+# convert the object into a dict
+bulk_point_query_request_point_queries_inner_dict = bulk_point_query_request_point_queries_inner_instance.to_dict()
+# create an instance of BulkPointQueryRequestPointQueriesInner from a dict
+bulk_point_query_request_point_queries_inner_from_dict = BulkPointQueryRequestPointQueriesInner.from_dict(bulk_point_query_request_point_queries_inner_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)
+
+
diff --git a/docs/BulkPointQueryRequestPointQueriesInnerOptions.md b/docs/BulkPointQueryRequestPointQueriesInnerOptions.md
new file mode 100644
index 0000000..8f92521
--- /dev/null
+++ b/docs/BulkPointQueryRequestPointQueriesInnerOptions.md
@@ -0,0 +1,32 @@
+# BulkPointQueryRequestPointQueriesInnerOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**profile** | **str** | |
+**unit** | **str** | |
+**amount** | **int** | |
+**limit** | **int** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner_options import BulkPointQueryRequestPointQueriesInnerOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryRequestPointQueriesInnerOptions from a JSON string
+bulk_point_query_request_point_queries_inner_options_instance = BulkPointQueryRequestPointQueriesInnerOptions.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryRequestPointQueriesInnerOptions.to_json())
+
+# convert the object into a dict
+bulk_point_query_request_point_queries_inner_options_dict = bulk_point_query_request_point_queries_inner_options_instance.to_dict()
+# create an instance of BulkPointQueryRequestPointQueriesInnerOptions from a dict
+bulk_point_query_request_point_queries_inner_options_from_dict = BulkPointQueryRequestPointQueriesInnerOptions.from_dict(bulk_point_query_request_point_queries_inner_options_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)
+
+
diff --git a/docs/BulkPointQueryRequestPointsInner.md b/docs/BulkPointQueryRequestPointsInner.md
new file mode 100644
index 0000000..4982c87
--- /dev/null
+++ b/docs/BulkPointQueryRequestPointsInner.md
@@ -0,0 +1,31 @@
+# BulkPointQueryRequestPointsInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**lat** | **float** | |
+**lng** | **float** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.bulk_point_query_request_points_inner import BulkPointQueryRequestPointsInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BulkPointQueryRequestPointsInner from a JSON string
+bulk_point_query_request_points_inner_instance = BulkPointQueryRequestPointsInner.from_json(json)
+# print the JSON string representation of the object
+print(BulkPointQueryRequestPointsInner.to_json())
+
+# convert the object into a dict
+bulk_point_query_request_points_inner_dict = bulk_point_query_request_points_inner_instance.to_dict()
+# create an instance of BulkPointQueryRequestPointsInner from a dict
+bulk_point_query_request_points_inner_from_dict = BulkPointQueryRequestPointsInner.from_dict(bulk_point_query_request_points_inner_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)
+
+
diff --git a/docs/CategoriesDTO.md b/docs/CategoriesDTO.md
index d848207..1a394e0 100644
--- a/docs/CategoriesDTO.md
+++ b/docs/CategoriesDTO.md
@@ -26,7 +26,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/CategoryDTO.md b/docs/CategoryDTO.md
new file mode 100644
index 0000000..634d590
--- /dev/null
+++ b/docs/CategoryDTO.md
@@ -0,0 +1,31 @@
+# CategoryDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**markers** | [**List[MarkerLinkDTO]**](MarkerLinkDTO.md) | |
+**linked_layers** | [**List[LinkedLayerDTO]**](LinkedLayerDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.category_dto import CategoryDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CategoryDTO from a JSON string
+category_dto_instance = CategoryDTO.from_json(json)
+# print the JSON string representation of the object
+print(CategoryDTO.to_json())
+
+# convert the object into a dict
+category_dto_dict = category_dto_instance.to_dict()
+# create an instance of CategoryDTO from a dict
+category_dto_from_dict = CategoryDTO.from_dict(category_dto_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)
+
+
diff --git a/docs/CenterDTO.md b/docs/CenterDTO.md
index 980d2a7..50a2ee9 100644
--- a/docs/CenterDTO.md
+++ b/docs/CenterDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/CreateInvitation.md b/docs/CreateInvitation.md
new file mode 100644
index 0000000..706d2dd
--- /dev/null
+++ b/docs/CreateInvitation.md
@@ -0,0 +1,30 @@
+# CreateInvitation
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**email** | **str** | |
+**role** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateInvitation from a JSON string
+create_invitation_instance = CreateInvitation.from_json(json)
+# print the JSON string representation of the object
+print(CreateInvitation.to_json())
+
+# convert the object into a dict
+create_invitation_dict = create_invitation_instance.to_dict()
+# create an instance of CreateInvitation from a dict
+create_invitation_from_dict = CreateInvitation.from_dict(create_invitation_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)
+
+
diff --git a/docs/CreateMembershipDTO.md b/docs/CreateMembershipDTO.md
new file mode 100644
index 0000000..e2d42c2
--- /dev/null
+++ b/docs/CreateMembershipDTO.md
@@ -0,0 +1,31 @@
+# CreateMembershipDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**account_id** | **str** | |
+**status** | **str** | |
+**role** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateMembershipDTO from a JSON string
+create_membership_dto_instance = CreateMembershipDTO.from_json(json)
+# print the JSON string representation of the object
+print(CreateMembershipDTO.to_json())
+
+# convert the object into a dict
+create_membership_dto_dict = create_membership_dto_instance.to_dict()
+# create an instance of CreateMembershipDTO from a dict
+create_membership_dto_from_dict = CreateMembershipDTO.from_dict(create_membership_dto_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)
+
+
diff --git a/docs/CreateOrganizationDTO.md b/docs/CreateOrganizationDTO.md
new file mode 100644
index 0000000..18b0c7c
--- /dev/null
+++ b/docs/CreateOrganizationDTO.md
@@ -0,0 +1,31 @@
+# CreateOrganizationDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | |
+**invitation_email** | **str** | | [optional]
+**dwh_cluster_id** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateOrganizationDTO from a JSON string
+create_organization_dto_instance = CreateOrganizationDTO.from_json(json)
+# print the JSON string representation of the object
+print(CreateOrganizationDTO.to_json())
+
+# convert the object into a dict
+create_organization_dto_dict = create_organization_dto_instance.to_dict()
+# create an instance of CreateOrganizationDTO from a dict
+create_organization_dto_from_dict = CreateOrganizationDTO.from_dict(create_organization_dto_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)
+
+
diff --git a/docs/CreateProjectDTO.md b/docs/CreateProjectDTO.md
new file mode 100644
index 0000000..b67a278
--- /dev/null
+++ b/docs/CreateProjectDTO.md
@@ -0,0 +1,31 @@
+# CreateProjectDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | |
+**description** | **str** | | [optional]
+**organization_id** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateProjectDTO from a JSON string
+create_project_dto_instance = CreateProjectDTO.from_json(json)
+# print the JSON string representation of the object
+print(CreateProjectDTO.to_json())
+
+# convert the object into a dict
+create_project_dto_dict = create_project_dto_instance.to_dict()
+# create an instance of CreateProjectDTO from a dict
+create_project_dto_from_dict = CreateProjectDTO.from_dict(create_project_dto_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)
+
+
diff --git a/docs/CuzkParcelInfoDTO.md b/docs/CuzkParcelInfoDTO.md
index 4731f67..e942728 100644
--- a/docs/CuzkParcelInfoDTO.md
+++ b/docs/CuzkParcelInfoDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
+from cm_python_openapi_sdk.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DashboardContentDTO.md b/docs/DashboardContentDTO.md
index 6bb08e1..7a50d98 100644
--- a/docs/DashboardContentDTO.md
+++ b/docs/DashboardContentDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.dashboard_content_dto import DashboardContentDTO
+from cm_python_openapi_sdk.models.dashboard_content_dto import DashboardContentDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DashboardDTO.md b/docs/DashboardDTO.md
index 84aa224..5edb4be 100644
--- a/docs/DashboardDTO.md
+++ b/docs/DashboardDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DashboardDatasetPropertiesDTO.md b/docs/DashboardDatasetPropertiesDTO.md
index acb8781..cc42c35 100644
--- a/docs/DashboardDatasetPropertiesDTO.md
+++ b/docs/DashboardDatasetPropertiesDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DashboardPagedModelDTO.md b/docs/DashboardPagedModelDTO.md
index 8a6dcc7..0111059 100644
--- a/docs/DashboardPagedModelDTO.md
+++ b/docs/DashboardPagedModelDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DashboardsApi.md b/docs/DashboardsApi.md
index 74e2b95..efaa07e 100644
--- a/docs/DashboardsApi.md
+++ b/docs/DashboardsApi.md
@@ -1,4 +1,4 @@
-# openapi_client.DashboardsApi
+# cm_python_openapi_sdk.DashboardsApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -12,7 +12,7 @@ Method | HTTP request | Description
# **create_dashboard**
-> DashboardDTO create_dashboard(project_id, dashboard_dto)
+> DashboardDTO create_dashboard(project_id, dashboard_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Creates new dashboard
@@ -23,14 +23,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -40,20 +40,21 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.DashboardsApi(api_client)
+ api_instance = cm_python_openapi_sdk.DashboardsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
- dashboard_dto = openapi_client.DashboardDTO() # DashboardDTO |
+ dashboard_dto = cm_python_openapi_sdk.DashboardDTO() # DashboardDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Creates new dashboard
- api_response = api_instance.create_dashboard(project_id, dashboard_dto)
+ api_response = api_instance.create_dashboard(project_id, dashboard_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of DashboardsApi->create_dashboard:\n")
pprint(api_response)
except Exception as e:
@@ -69,6 +70,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Id of the project |
**dashboard_dto** | [**DashboardDTO**](DashboardDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
@@ -105,13 +107,13 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -121,14 +123,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.DashboardsApi(api_client)
+ api_instance = cm_python_openapi_sdk.DashboardsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the dashboard
@@ -181,14 +183,14 @@ Returns paged collection of all Dashboards in a project
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -198,14 +200,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.DashboardsApi(api_client)
+ api_instance = cm_python_openapi_sdk.DashboardsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
page = 0 # int | Number of the page (optional) (default to 0)
size = 100 # int | The count of records to return for one page (optional) (default to 100)
@@ -263,14 +265,14 @@ Gets dashboard by id
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -280,14 +282,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.DashboardsApi(api_client)
+ api_instance = cm_python_openapi_sdk.DashboardsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the dashboard
@@ -333,7 +335,7 @@ Name | Type | Description | Notes
[[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)
# **update_dashboard_by_id**
-> DashboardDTO update_dashboard_by_id(project_id, id, if_match, dashboard_dto)
+> DashboardDTO update_dashboard_by_id(project_id, id, if_match, dashboard_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Updates dashboard by id
@@ -344,14 +346,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -361,22 +363,23 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.DashboardsApi(api_client)
+ api_instance = cm_python_openapi_sdk.DashboardsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the dashboard
if_match = 'if_match_example' # str | ETag value used for conditional updates
- dashboard_dto = openapi_client.DashboardDTO() # DashboardDTO |
+ dashboard_dto = cm_python_openapi_sdk.DashboardDTO() # DashboardDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Updates dashboard by id
- api_response = api_instance.update_dashboard_by_id(project_id, id, if_match, dashboard_dto)
+ api_response = api_instance.update_dashboard_by_id(project_id, id, if_match, dashboard_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of DashboardsApi->update_dashboard_by_id:\n")
pprint(api_response)
except Exception as e:
@@ -394,6 +397,7 @@ Name | Type | Description | Notes
**id** | **str**| Id of the dashboard |
**if_match** | **str**| ETag value used for conditional updates |
**dashboard_dto** | [**DashboardDTO**](DashboardDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
diff --git a/docs/DataDumpJobRequest.md b/docs/DataDumpJobRequest.md
new file mode 100644
index 0000000..30aa56f
--- /dev/null
+++ b/docs/DataDumpJobRequest.md
@@ -0,0 +1,31 @@
+# DataDumpJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**DataDumpRequest**](DataDumpRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_dump_job_request import DataDumpJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataDumpJobRequest from a JSON string
+data_dump_job_request_instance = DataDumpJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(DataDumpJobRequest.to_json())
+
+# convert the object into a dict
+data_dump_job_request_dict = data_dump_job_request_instance.to_dict()
+# create an instance of DataDumpJobRequest from a dict
+data_dump_job_request_from_dict = DataDumpJobRequest.from_dict(data_dump_job_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)
+
+
diff --git a/docs/DataDumpRequest.md b/docs/DataDumpRequest.md
new file mode 100644
index 0000000..ee22aa1
--- /dev/null
+++ b/docs/DataDumpRequest.md
@@ -0,0 +1,29 @@
+# DataDumpRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_dump_request import DataDumpRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataDumpRequest from a JSON string
+data_dump_request_instance = DataDumpRequest.from_json(json)
+# print the JSON string representation of the object
+print(DataDumpRequest.to_json())
+
+# convert the object into a dict
+data_dump_request_dict = data_dump_request_instance.to_dict()
+# create an instance of DataDumpRequest from a dict
+data_dump_request_from_dict = DataDumpRequest.from_dict(data_dump_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)
+
+
diff --git a/docs/DataPermissionContentDTO.md b/docs/DataPermissionContentDTO.md
new file mode 100644
index 0000000..507bf8c
--- /dev/null
+++ b/docs/DataPermissionContentDTO.md
@@ -0,0 +1,30 @@
+# DataPermissionContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**account_id** | **str** | |
+**filters** | **List[object]** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_permission_content_dto import DataPermissionContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPermissionContentDTO from a JSON string
+data_permission_content_dto_instance = DataPermissionContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(DataPermissionContentDTO.to_json())
+
+# convert the object into a dict
+data_permission_content_dto_dict = data_permission_content_dto_instance.to_dict()
+# create an instance of DataPermissionContentDTO from a dict
+data_permission_content_dto_from_dict = DataPermissionContentDTO.from_dict(data_permission_content_dto_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)
+
+
diff --git a/docs/DataPermissionDTO.md b/docs/DataPermissionDTO.md
new file mode 100644
index 0000000..62f75e3
--- /dev/null
+++ b/docs/DataPermissionDTO.md
@@ -0,0 +1,34 @@
+# DataPermissionDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**DataPermissionContentDTO**](DataPermissionContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPermissionDTO from a JSON string
+data_permission_dto_instance = DataPermissionDTO.from_json(json)
+# print the JSON string representation of the object
+print(DataPermissionDTO.to_json())
+
+# convert the object into a dict
+data_permission_dto_dict = data_permission_dto_instance.to_dict()
+# create an instance of DataPermissionDTO from a dict
+data_permission_dto_from_dict = DataPermissionDTO.from_dict(data_permission_dto_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)
+
+
diff --git a/docs/DataPermissionPagedModelDTO.md b/docs/DataPermissionPagedModelDTO.md
new file mode 100644
index 0000000..2b63446
--- /dev/null
+++ b/docs/DataPermissionPagedModelDTO.md
@@ -0,0 +1,31 @@
+# DataPermissionPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[DataPermissionDTO]**](DataPermissionDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPermissionPagedModelDTO from a JSON string
+data_permission_paged_model_dto_instance = DataPermissionPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(DataPermissionPagedModelDTO.to_json())
+
+# convert the object into a dict
+data_permission_paged_model_dto_dict = data_permission_paged_model_dto_instance.to_dict()
+# create an instance of DataPermissionPagedModelDTO from a dict
+data_permission_paged_model_dto_from_dict = DataPermissionPagedModelDTO.from_dict(data_permission_paged_model_dto_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)
+
+
diff --git a/docs/DataPermissionsApi.md b/docs/DataPermissionsApi.md
new file mode 100644
index 0000000..88423c8
--- /dev/null
+++ b/docs/DataPermissionsApi.md
@@ -0,0 +1,431 @@
+# cm_python_openapi_sdk.DataPermissionsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_data_permission**](DataPermissionsApi.md#create_data_permission) | **POST** /projects/{projectId}/md/dataPermissions | Creates new data permission
+[**delete_data_permission_by_id**](DataPermissionsApi.md#delete_data_permission_by_id) | **DELETE** /projects/{projectId}/md/dataPermissions/{id} | Deletes data permission by id
+[**get_all_data_permissions**](DataPermissionsApi.md#get_all_data_permissions) | **GET** /projects/{projectId}/md/dataPermissions | Returns paged collection of all data permissions in a project
+[**get_data_permission_by_id**](DataPermissionsApi.md#get_data_permission_by_id) | **GET** /projects/{projectId}/md/dataPermissions/{id} | Gets data permission by id
+[**update_data_permission_by_id**](DataPermissionsApi.md#update_data_permission_by_id) | **PUT** /projects/{projectId}/md/dataPermissions/{id} | Updates data permission by id
+
+
+# **create_data_permission**
+> DataPermissionDTO create_data_permission(project_id, data_permission_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new data permission
+
+Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataPermissionsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ data_permission_dto = cm_python_openapi_sdk.DataPermissionDTO() # DataPermissionDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new data permission
+ api_response = api_instance.create_data_permission(project_id, data_permission_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of DataPermissionsApi->create_data_permission:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DataPermissionsApi->create_data_permission: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **data_permission_dto** | [**DataPermissionDTO**](DataPermissionDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**DataPermissionDTO**](DataPermissionDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Data permission was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Data permission with the same name or id already exists | - |
+
+[[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)
+
+# **delete_data_permission_by_id**
+> delete_data_permission_by_id(project_id, id)
+
+Deletes data permission by id
+
+Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataPermissionsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the data permission
+
+ try:
+ # Deletes data permission by id
+ api_instance.delete_data_permission_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling DataPermissionsApi->delete_data_permission_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the data permission |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Data permission was successfully deleted | - |
+**404** | Data permission not found | - |
+
+[[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)
+
+# **get_all_data_permissions**
+> DataPermissionPagedModelDTO get_all_data_permissions(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all data permissions in a project
+
+Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataPermissionsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all data permissions in a project
+ api_response = api_instance.get_all_data_permissions(project_id, page=page, size=size, sort=sort)
+ print("The response of DataPermissionsApi->get_all_data_permissions:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DataPermissionsApi->get_all_data_permissions: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**DataPermissionPagedModelDTO**](DataPermissionPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_data_permission_by_id**
+> DataPermissionDTO get_data_permission_by_id(project_id, id)
+
+Gets data permission by id
+
+Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataPermissionsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the data permission
+
+ try:
+ # Gets data permission by id
+ api_response = api_instance.get_data_permission_by_id(project_id, id)
+ print("The response of DataPermissionsApi->get_data_permission_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DataPermissionsApi->get_data_permission_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the data permission |
+
+### Return type
+
+[**DataPermissionDTO**](DataPermissionDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Data permission not found | - |
+
+[[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)
+
+# **update_data_permission_by_id**
+> DataPermissionDTO update_data_permission_by_id(project_id, id, if_match, data_permission_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates data permission by id
+
+Restricted to ADMIN project role that has the permission to update data permissions of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataPermissionsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the data permission
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ data_permission_dto = cm_python_openapi_sdk.DataPermissionDTO() # DataPermissionDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates data permission by id
+ api_response = api_instance.update_data_permission_by_id(project_id, id, if_match, data_permission_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of DataPermissionsApi->update_data_permission_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DataPermissionsApi->update_data_permission_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the data permission |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **data_permission_dto** | [**DataPermissionDTO**](DataPermissionDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**DataPermissionDTO**](DataPermissionDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Data permission was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Data permission not found | - |
+**409** | Data permission with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/DataPullJobRequest.md b/docs/DataPullJobRequest.md
new file mode 100644
index 0000000..80e8fa5
--- /dev/null
+++ b/docs/DataPullJobRequest.md
@@ -0,0 +1,31 @@
+# DataPullJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**DataPullRequest**](DataPullRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_pull_job_request import DataPullJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPullJobRequest from a JSON string
+data_pull_job_request_instance = DataPullJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(DataPullJobRequest.to_json())
+
+# convert the object into a dict
+data_pull_job_request_dict = data_pull_job_request_instance.to_dict()
+# create an instance of DataPullJobRequest from a dict
+data_pull_job_request_from_dict = DataPullJobRequest.from_dict(data_pull_job_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)
+
+
diff --git a/docs/DataPullRequest.md b/docs/DataPullRequest.md
new file mode 100644
index 0000000..51322b9
--- /dev/null
+++ b/docs/DataPullRequest.md
@@ -0,0 +1,36 @@
+# DataPullRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**mode** | **str** | |
+**type** | **str** | |
+**upload** | **str** | | [optional]
+**s3_upload** | [**DataPullRequestS3Upload**](DataPullRequestS3Upload.md) | | [optional]
+**https_upload** | [**DataPullRequestHttpsUpload**](DataPullRequestHttpsUpload.md) | | [optional]
+**csv_options** | [**DataPullRequestCsvOptions**](DataPullRequestCsvOptions.md) | | [optional]
+**skip_refreshing_materialized_views** | **bool** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_pull_request import DataPullRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPullRequest from a JSON string
+data_pull_request_instance = DataPullRequest.from_json(json)
+# print the JSON string representation of the object
+print(DataPullRequest.to_json())
+
+# convert the object into a dict
+data_pull_request_dict = data_pull_request_instance.to_dict()
+# create an instance of DataPullRequest from a dict
+data_pull_request_from_dict = DataPullRequest.from_dict(data_pull_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)
+
+
diff --git a/docs/DataPullRequestCsvOptions.md b/docs/DataPullRequestCsvOptions.md
new file mode 100644
index 0000000..d02c997
--- /dev/null
+++ b/docs/DataPullRequestCsvOptions.md
@@ -0,0 +1,34 @@
+# DataPullRequestCsvOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**header** | **bool** | | [optional]
+**separator** | **str** | | [optional]
+**quote** | **str** | | [optional]
+**escape** | **str** | | [optional]
+**null** | **str** | | [optional]
+**force_null** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_pull_request_csv_options import DataPullRequestCsvOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPullRequestCsvOptions from a JSON string
+data_pull_request_csv_options_instance = DataPullRequestCsvOptions.from_json(json)
+# print the JSON string representation of the object
+print(DataPullRequestCsvOptions.to_json())
+
+# convert the object into a dict
+data_pull_request_csv_options_dict = data_pull_request_csv_options_instance.to_dict()
+# create an instance of DataPullRequestCsvOptions from a dict
+data_pull_request_csv_options_from_dict = DataPullRequestCsvOptions.from_dict(data_pull_request_csv_options_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)
+
+
diff --git a/docs/DataPullRequestHttpsUpload.md b/docs/DataPullRequestHttpsUpload.md
new file mode 100644
index 0000000..87edaa5
--- /dev/null
+++ b/docs/DataPullRequestHttpsUpload.md
@@ -0,0 +1,30 @@
+# DataPullRequestHttpsUpload
+
+Object specifying properties for dataPull from any HTTPS URL.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**url** | **str** | HTTPS URL (e.g. https://can-s3-dwh-pull-test.s3-eu-west-1.amazonaws.com/shops.csv). | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_pull_request_https_upload import DataPullRequestHttpsUpload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPullRequestHttpsUpload from a JSON string
+data_pull_request_https_upload_instance = DataPullRequestHttpsUpload.from_json(json)
+# print the JSON string representation of the object
+print(DataPullRequestHttpsUpload.to_json())
+
+# convert the object into a dict
+data_pull_request_https_upload_dict = data_pull_request_https_upload_instance.to_dict()
+# create an instance of DataPullRequestHttpsUpload from a dict
+data_pull_request_https_upload_from_dict = DataPullRequestHttpsUpload.from_dict(data_pull_request_https_upload_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)
+
+
diff --git a/docs/DataPullRequestS3Upload.md b/docs/DataPullRequestS3Upload.md
new file mode 100644
index 0000000..c9f300a
--- /dev/null
+++ b/docs/DataPullRequestS3Upload.md
@@ -0,0 +1,35 @@
+# DataPullRequestS3Upload
+
+Object specifying properties for dataPull from any AWS S3.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**uri** | **str** | AWS S3 URI (e.g. s3://can-s3-dwh-pull-test/shops.csv). |
+**access_key_id** | **str** | AWS S3 Access Key ID with access to the file specified in 'uri'. | [optional]
+**secret_access_key** | **str** | AWS S3 Secret Access Key with access to the file specified in 'uri'. | [optional]
+**region** | **str** | AWS S3 region of the file. | [optional]
+**endpoint_override** | **str** | AWS S3 region of the file. | [optional]
+**force_path_style** | **bool** | If true, path style is forced for S3 URIs, otherwise virtual hosted style is used. | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_pull_request_s3_upload import DataPullRequestS3Upload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataPullRequestS3Upload from a JSON string
+data_pull_request_s3_upload_instance = DataPullRequestS3Upload.from_json(json)
+# print the JSON string representation of the object
+print(DataPullRequestS3Upload.to_json())
+
+# convert the object into a dict
+data_pull_request_s3_upload_dict = data_pull_request_s3_upload_instance.to_dict()
+# create an instance of DataPullRequestS3Upload from a dict
+data_pull_request_s3_upload_from_dict = DataPullRequestS3Upload.from_dict(data_pull_request_s3_upload_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)
+
+
diff --git a/docs/DataSourceDTO.md b/docs/DataSourceDTO.md
new file mode 100644
index 0000000..3933331
--- /dev/null
+++ b/docs/DataSourceDTO.md
@@ -0,0 +1,32 @@
+# DataSourceDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**licence_holder** | **str** | |
+**licence_holder_url** | **str** | |
+**licence_holder_logo** | **str** | | [optional]
+**licence_url** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataSourceDTO from a JSON string
+data_source_dto_instance = DataSourceDTO.from_json(json)
+# print the JSON string representation of the object
+print(DataSourceDTO.to_json())
+
+# convert the object into a dict
+data_source_dto_dict = data_source_dto_instance.to_dict()
+# create an instance of DataSourceDTO from a dict
+data_source_dto_from_dict = DataSourceDTO.from_dict(data_source_dto_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)
+
+
diff --git a/docs/DataSourcePagedModelDTO.md b/docs/DataSourcePagedModelDTO.md
new file mode 100644
index 0000000..e0e97f8
--- /dev/null
+++ b/docs/DataSourcePagedModelDTO.md
@@ -0,0 +1,31 @@
+# DataSourcePagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[DataSourceDTO]**](DataSourceDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataSourcePagedModelDTO from a JSON string
+data_source_paged_model_dto_instance = DataSourcePagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(DataSourcePagedModelDTO.to_json())
+
+# convert the object into a dict
+data_source_paged_model_dto_dict = data_source_paged_model_dto_instance.to_dict()
+# create an instance of DataSourcePagedModelDTO from a dict
+data_source_paged_model_dto_from_dict = DataSourcePagedModelDTO.from_dict(data_source_paged_model_dto_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)
+
+
diff --git a/docs/DataSourcesApi.md b/docs/DataSourcesApi.md
new file mode 100644
index 0000000..8e879e7
--- /dev/null
+++ b/docs/DataSourcesApi.md
@@ -0,0 +1,89 @@
+# cm_python_openapi_sdk.DataSourcesApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_all_data_sources**](DataSourcesApi.md#get_all_data_sources) | **GET** /projects/{projectId}/md/dataSources | Return list of all unique data sources specified in datasets of a project
+
+
+# **get_all_data_sources**
+> DataSourcePagedModelDTO get_all_data_sources(project_id, page=page, size=size)
+
+Return list of all unique data sources specified in datasets of a project
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DataSourcesApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+
+ try:
+ # Return list of all unique data sources specified in datasets of a project
+ api_response = api_instance.get_all_data_sources(project_id, page=page, size=size)
+ print("The response of DataSourcesApi->get_all_data_sources:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DataSourcesApi->get_all_data_sources: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+
+### Return type
+
+[**DataSourcePagedModelDTO**](DataSourcePagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
diff --git a/docs/DatasetDTO.md b/docs/DatasetDTO.md
new file mode 100644
index 0000000..043b0a2
--- /dev/null
+++ b/docs/DatasetDTO.md
@@ -0,0 +1,38 @@
+# DatasetDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | |
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**origin** | **str** | | [optional]
+**properties** | [**DatasetPropertiesDTO**](DatasetPropertiesDTO.md) | | [optional]
+**ref** | [**DatasetType**](DatasetType.md) | |
+**data_sources** | [**List[DataSourceDTO]**](DataSourceDTO.md) | | [optional]
+**content** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetDTO from a JSON string
+dataset_dto_instance = DatasetDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetDTO.to_json())
+
+# convert the object into a dict
+dataset_dto_dict = dataset_dto_instance.to_dict()
+# create an instance of DatasetDTO from a dict
+dataset_dto_from_dict = DatasetDTO.from_dict(dataset_dto_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)
+
+
diff --git a/docs/DatasetDwhTypeDTO.md b/docs/DatasetDwhTypeDTO.md
new file mode 100644
index 0000000..0bacc00
--- /dev/null
+++ b/docs/DatasetDwhTypeDTO.md
@@ -0,0 +1,41 @@
+# DatasetDwhTypeDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**subtype** | **str** | |
+**geometry** | **str** | | [optional]
+**h3_geometries** | **List[str]** | | [optional]
+**visualizations** | [**List[DatasetVisualizationDTO]**](DatasetVisualizationDTO.md) | | [optional]
+**table** | **str** | | [optional]
+**geometry_table** | **str** | | [optional]
+**primary_key** | **str** | |
+**categorizable** | **bool** | | [optional] [default to True]
+**full_text_index** | **bool** | | [optional]
+**spatial_index** | **bool** | | [optional]
+**properties** | [**List[DwhAbstractProperty]**](DwhAbstractProperty.md) | |
+**zoom** | [**ZoomDTO**](ZoomDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_dwh_type_dto import DatasetDwhTypeDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetDwhTypeDTO from a JSON string
+dataset_dwh_type_dto_instance = DatasetDwhTypeDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetDwhTypeDTO.to_json())
+
+# convert the object into a dict
+dataset_dwh_type_dto_dict = dataset_dwh_type_dto_instance.to_dict()
+# create an instance of DatasetDwhTypeDTO from a dict
+dataset_dwh_type_dto_from_dict = DatasetDwhTypeDTO.from_dict(dataset_dwh_type_dto_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)
+
+
diff --git a/docs/DatasetH3GridTypeDTO.md b/docs/DatasetH3GridTypeDTO.md
new file mode 100644
index 0000000..cc2bde1
--- /dev/null
+++ b/docs/DatasetH3GridTypeDTO.md
@@ -0,0 +1,31 @@
+# DatasetH3GridTypeDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**resolution** | **int** | |
+**zoom** | [**ZoomDTO**](ZoomDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_h3_grid_type_dto import DatasetH3GridTypeDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetH3GridTypeDTO from a JSON string
+dataset_h3_grid_type_dto_instance = DatasetH3GridTypeDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetH3GridTypeDTO.to_json())
+
+# convert the object into a dict
+dataset_h3_grid_type_dto_dict = dataset_h3_grid_type_dto_instance.to_dict()
+# create an instance of DatasetH3GridTypeDTO from a dict
+dataset_h3_grid_type_dto_from_dict = DatasetH3GridTypeDTO.from_dict(dataset_h3_grid_type_dto_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)
+
+
diff --git a/docs/DatasetPagedModelDTO.md b/docs/DatasetPagedModelDTO.md
new file mode 100644
index 0000000..85bb20a
--- /dev/null
+++ b/docs/DatasetPagedModelDTO.md
@@ -0,0 +1,31 @@
+# DatasetPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[DatasetDTO]**](DatasetDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetPagedModelDTO from a JSON string
+dataset_paged_model_dto_instance = DatasetPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetPagedModelDTO.to_json())
+
+# convert the object into a dict
+dataset_paged_model_dto_dict = dataset_paged_model_dto_instance.to_dict()
+# create an instance of DatasetPagedModelDTO from a dict
+dataset_paged_model_dto_from_dict = DatasetPagedModelDTO.from_dict(dataset_paged_model_dto_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)
+
+
diff --git a/docs/DatasetPropertiesDTO.md b/docs/DatasetPropertiesDTO.md
new file mode 100644
index 0000000..7e716da
--- /dev/null
+++ b/docs/DatasetPropertiesDTO.md
@@ -0,0 +1,31 @@
+# DatasetPropertiesDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**feature_title** | [**FeaturePropertyType**](FeaturePropertyType.md) | | [optional]
+**feature_subtitle** | [**FeaturePropertyType**](FeaturePropertyType.md) | | [optional]
+**feature_attributes** | [**List[FeatureAttributeDTO]**](FeatureAttributeDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_properties_dto import DatasetPropertiesDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetPropertiesDTO from a JSON string
+dataset_properties_dto_instance = DatasetPropertiesDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetPropertiesDTO.to_json())
+
+# convert the object into a dict
+dataset_properties_dto_dict = dataset_properties_dto_instance.to_dict()
+# create an instance of DatasetPropertiesDTO from a dict
+dataset_properties_dto_from_dict = DatasetPropertiesDTO.from_dict(dataset_properties_dto_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)
+
+
diff --git a/docs/DatasetType.md b/docs/DatasetType.md
new file mode 100644
index 0000000..f11696b
--- /dev/null
+++ b/docs/DatasetType.md
@@ -0,0 +1,43 @@
+# DatasetType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**subtype** | **str** | |
+**geometry** | **str** | | [optional]
+**h3_geometries** | **List[str]** | | [optional]
+**visualizations** | [**List[DatasetVisualizationDTO]**](DatasetVisualizationDTO.md) | | [optional]
+**table** | **str** | | [optional]
+**geometry_table** | **str** | | [optional]
+**primary_key** | **str** | |
+**categorizable** | **bool** | | [optional] [default to True]
+**full_text_index** | **bool** | | [optional]
+**spatial_index** | **bool** | | [optional]
+**properties** | [**List[DwhAbstractProperty]**](DwhAbstractProperty.md) | |
+**zoom** | [**ZoomDTO**](ZoomDTO.md) | | [optional]
+**url_template** | **str** | |
+**resolution** | **int** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_type import DatasetType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetType from a JSON string
+dataset_type_instance = DatasetType.from_json(json)
+# print the JSON string representation of the object
+print(DatasetType.to_json())
+
+# convert the object into a dict
+dataset_type_dict = dataset_type_instance.to_dict()
+# create an instance of DatasetType from a dict
+dataset_type_from_dict = DatasetType.from_dict(dataset_type_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)
+
+
diff --git a/docs/DatasetVisualizationDTO.md b/docs/DatasetVisualizationDTO.md
new file mode 100644
index 0000000..d6b5bd7
--- /dev/null
+++ b/docs/DatasetVisualizationDTO.md
@@ -0,0 +1,30 @@
+# DatasetVisualizationDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**zoom** | [**ZoomDTO**](ZoomDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_visualization_dto import DatasetVisualizationDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetVisualizationDTO from a JSON string
+dataset_visualization_dto_instance = DatasetVisualizationDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetVisualizationDTO.to_json())
+
+# convert the object into a dict
+dataset_visualization_dto_dict = dataset_visualization_dto_instance.to_dict()
+# create an instance of DatasetVisualizationDTO from a dict
+dataset_visualization_dto_from_dict = DatasetVisualizationDTO.from_dict(dataset_visualization_dto_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)
+
+
diff --git a/docs/DatasetVtTypeDTO.md b/docs/DatasetVtTypeDTO.md
new file mode 100644
index 0000000..0ce1c30
--- /dev/null
+++ b/docs/DatasetVtTypeDTO.md
@@ -0,0 +1,31 @@
+# DatasetVtTypeDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**url_template** | **str** | |
+**zoom** | [**ZoomDTO**](ZoomDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dataset_vt_type_dto import DatasetVtTypeDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DatasetVtTypeDTO from a JSON string
+dataset_vt_type_dto_instance = DatasetVtTypeDTO.from_json(json)
+# print the JSON string representation of the object
+print(DatasetVtTypeDTO.to_json())
+
+# convert the object into a dict
+dataset_vt_type_dto_dict = dataset_vt_type_dto_instance.to_dict()
+# create an instance of DatasetVtTypeDTO from a dict
+dataset_vt_type_dto_from_dict = DatasetVtTypeDTO.from_dict(dataset_vt_type_dto_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)
+
+
diff --git a/docs/DatasetsApi.md b/docs/DatasetsApi.md
new file mode 100644
index 0000000..4950144
--- /dev/null
+++ b/docs/DatasetsApi.md
@@ -0,0 +1,527 @@
+# cm_python_openapi_sdk.DatasetsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_dataset**](DatasetsApi.md#create_dataset) | **POST** /projects/{projectId}/md/datasets | Creates new dataset
+[**delete_dataset_by_id**](DatasetsApi.md#delete_dataset_by_id) | **DELETE** /projects/{projectId}/md/datasets/{id} | Deletes dataset by id
+[**generate_dataset_from_csv**](DatasetsApi.md#generate_dataset_from_csv) | **POST** /projects/{projectId}/md/datasets/generateDataset | Generate dataset from CSV
+[**get_all_datasets**](DatasetsApi.md#get_all_datasets) | **GET** /projects/{projectId}/md/datasets | Returns paged collection of all datasets in a project
+[**get_dataset_by_id**](DatasetsApi.md#get_dataset_by_id) | **GET** /projects/{projectId}/md/datasets/{id} | Gets dataset by id
+[**update_dataset_by_id**](DatasetsApi.md#update_dataset_by_id) | **PUT** /projects/{projectId}/md/datasets/{id} | Updates dataset by id
+
+
+# **create_dataset**
+> DatasetDTO create_dataset(project_id, dataset_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new dataset
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ dataset_dto = cm_python_openapi_sdk.DatasetDTO() # DatasetDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new dataset
+ api_response = api_instance.create_dataset(project_id, dataset_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of DatasetsApi->create_dataset:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->create_dataset: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **dataset_dto** | [**DatasetDTO**](DatasetDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**DatasetDTO**](DatasetDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Dataset was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Datasets with the same name or id already exists | - |
+
+[[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)
+
+# **delete_dataset_by_id**
+> delete_dataset_by_id(project_id, id)
+
+Deletes dataset by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the dataset
+
+ try:
+ # Deletes dataset by id
+ api_instance.delete_dataset_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->delete_dataset_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the dataset |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Dataset was successfully deleted | - |
+**404** | Dataset not found | - |
+
+[[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)
+
+# **generate_dataset_from_csv**
+> DatasetDTO generate_dataset_from_csv(project_id, name, body, subtype=subtype, primary_key=primary_key, geometry=geometry, csv_separator=csv_separator, csv_quote=csv_quote, csv_escape=csv_escape)
+
+Generate dataset from CSV
+
+Generate dataset metadata object from a CSV file with a header. The CSV body must not be longer than 10 lines.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ name = 'baskets' # str | Name of the dataset
+ body = 'body_example' # str |
+ subtype = 'basic' # str | Subtype of the dataset (optional) (default to 'basic')
+ primary_key = 'basic_id' # str | Name of the property that will be marked as primary key (optional)
+ geometry = 'geometry_example' # str | Name of the geometry key for geometryPolygon dataset subtype (optional)
+ csv_separator = ',' # str | Custom CSV column separator character (optional) (default to ',')
+ csv_quote = '"' # str | Custom CSV quote character (optional) (default to '"')
+ csv_escape = '\\' # str | Custom CSV escape character (optional) (default to '\\')
+
+ try:
+ # Generate dataset from CSV
+ api_response = api_instance.generate_dataset_from_csv(project_id, name, body, subtype=subtype, primary_key=primary_key, geometry=geometry, csv_separator=csv_separator, csv_quote=csv_quote, csv_escape=csv_escape)
+ print("The response of DatasetsApi->generate_dataset_from_csv:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->generate_dataset_from_csv: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **name** | **str**| Name of the dataset |
+ **body** | **str**| |
+ **subtype** | **str**| Subtype of the dataset | [optional] [default to 'basic']
+ **primary_key** | **str**| Name of the property that will be marked as primary key | [optional]
+ **geometry** | **str**| Name of the geometry key for geometryPolygon dataset subtype | [optional]
+ **csv_separator** | **str**| Custom CSV column separator character | [optional] [default to ',']
+ **csv_quote** | **str**| Custom CSV quote character | [optional] [default to '"']
+ **csv_escape** | **str**| Custom CSV escape character | [optional] [default to '\\']
+
+### Return type
+
+[**DatasetDTO**](DatasetDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: text/csv
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**400** | When a parameter is invalid, or CSV body parsing fails, or the CSV does not contain specific columns | - |
+**409** | When the specified name of the dataset already exists | - |
+**413** | When the CSV body is larger than 10 lines | - |
+
+[[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)
+
+# **get_all_datasets**
+> DatasetPagedModelDTO get_all_datasets(project_id, page=page, size=size, sort=sort, type=type)
+
+Returns paged collection of all datasets in a project
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+ type = 'type_example' # str | Returns only collection of datasets of given type. (optional)
+
+ try:
+ # Returns paged collection of all datasets in a project
+ api_response = api_instance.get_all_datasets(project_id, page=page, size=size, sort=sort, type=type)
+ print("The response of DatasetsApi->get_all_datasets:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->get_all_datasets: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+ **type** | **str**| Returns only collection of datasets of given type. | [optional]
+
+### Return type
+
+[**DatasetPagedModelDTO**](DatasetPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_dataset_by_id**
+> DatasetDTO get_dataset_by_id(project_id, id)
+
+Gets dataset by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the dataset
+
+ try:
+ # Gets dataset by id
+ api_response = api_instance.get_dataset_by_id(project_id, id)
+ print("The response of DatasetsApi->get_dataset_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->get_dataset_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the dataset |
+
+### Return type
+
+[**DatasetDTO**](DatasetDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Dataset not found | - |
+
+[[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)
+
+# **update_dataset_by_id**
+> DatasetDTO update_dataset_by_id(project_id, id, if_match, dataset_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates dataset by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.DatasetsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the dataset
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ dataset_dto = cm_python_openapi_sdk.DatasetDTO() # DatasetDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates dataset by id
+ api_response = api_instance.update_dataset_by_id(project_id, id, if_match, dataset_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of DatasetsApi->update_dataset_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling DatasetsApi->update_dataset_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the dataset |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **dataset_dto** | [**DatasetDTO**](DatasetDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**DatasetDTO**](DatasetDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Dataset was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Dataset not found | - |
+**409** | Dataset with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/DateFilterDTO.md b/docs/DateFilterDTO.md
index 5492b32..ab5eb32 100644
--- a/docs/DateFilterDTO.md
+++ b/docs/DateFilterDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.date_filter_dto import DateFilterDTO
+from cm_python_openapi_sdk.models.date_filter_dto import DateFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DateFilterDefaultValueType.md b/docs/DateFilterDefaultValueType.md
index c82494f..631b768 100644
--- a/docs/DateFilterDefaultValueType.md
+++ b/docs/DateFilterDefaultValueType.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.date_filter_default_value_type import DateFilterDefaultValueType
+from cm_python_openapi_sdk.models.date_filter_default_value_type import DateFilterDefaultValueType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DateRangeFunction.md b/docs/DateRangeFunction.md
index 67aec50..8d25c3e 100644
--- a/docs/DateRangeFunction.md
+++ b/docs/DateRangeFunction.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.date_range_function import DateRangeFunction
+from cm_python_openapi_sdk.models.date_range_function import DateRangeFunction
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DateRangeValue.md b/docs/DateRangeValue.md
index 6f2e496..01ebdbd 100644
--- a/docs/DateRangeValue.md
+++ b/docs/DateRangeValue.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.date_range_value import DateRangeValue
+from cm_python_openapi_sdk.models.date_range_value import DateRangeValue
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultDistributionDTO.md b/docs/DefaultDistributionDTO.md
index 7cdf0d3..b5c06c7 100644
--- a/docs/DefaultDistributionDTO.md
+++ b/docs/DefaultDistributionDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_distribution_dto import DefaultDistributionDTO
+from cm_python_openapi_sdk.models.default_distribution_dto import DefaultDistributionDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultSelectedDTO.md b/docs/DefaultSelectedDTO.md
index c12b63f..d35362e 100644
--- a/docs/DefaultSelectedDTO.md
+++ b/docs/DefaultSelectedDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_selected_dto import DefaultSelectedDTO
+from cm_python_openapi_sdk.models.default_selected_dto import DefaultSelectedDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesDateDTO.md b/docs/DefaultValuesDateDTO.md
index 8caf7d6..92c65c4 100644
--- a/docs/DefaultValuesDateDTO.md
+++ b/docs/DefaultValuesDateDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesFeatureDTO.md b/docs/DefaultValuesFeatureDTO.md
index de70a72..26fd3a3 100644
--- a/docs/DefaultValuesFeatureDTO.md
+++ b/docs/DefaultValuesFeatureDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_feature_dto import DefaultValuesFeatureDTO
+from cm_python_openapi_sdk.models.default_values_feature_dto import DefaultValuesFeatureDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesHistogramDTO.md b/docs/DefaultValuesHistogramDTO.md
index ae4656e..1eb6257 100644
--- a/docs/DefaultValuesHistogramDTO.md
+++ b/docs/DefaultValuesHistogramDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_histogram_dto import DefaultValuesHistogramDTO
+from cm_python_openapi_sdk.models.default_values_histogram_dto import DefaultValuesHistogramDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesIndicatorDTO.md b/docs/DefaultValuesIndicatorDTO.md
index d35e651..de2ca00 100644
--- a/docs/DefaultValuesIndicatorDTO.md
+++ b/docs/DefaultValuesIndicatorDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
+from cm_python_openapi_sdk.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesMultiSelectDTO.md b/docs/DefaultValuesMultiSelectDTO.md
index 3b57d2e..c4534f3 100644
--- a/docs/DefaultValuesMultiSelectDTO.md
+++ b/docs/DefaultValuesMultiSelectDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
+from cm_python_openapi_sdk.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DefaultValuesSingleSelectDTO.md b/docs/DefaultValuesSingleSelectDTO.md
index bc81886..f2e7bce 100644
--- a/docs/DefaultValuesSingleSelectDTO.md
+++ b/docs/DefaultValuesSingleSelectDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
+from cm_python_openapi_sdk.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DisplayOptionsDTO.md b/docs/DisplayOptionsDTO.md
new file mode 100644
index 0000000..ac11655
--- /dev/null
+++ b/docs/DisplayOptionsDTO.md
@@ -0,0 +1,29 @@
+# DisplayOptionsDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value_options** | [**List[ValueOptionDTO]**](ValueOptionDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.display_options_dto import DisplayOptionsDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DisplayOptionsDTO from a JSON string
+display_options_dto_instance = DisplayOptionsDTO.from_json(json)
+# print the JSON string representation of the object
+print(DisplayOptionsDTO.to_json())
+
+# convert the object into a dict
+display_options_dto_dict = display_options_dto_instance.to_dict()
+# create an instance of DisplayOptionsDTO from a dict
+display_options_dto_from_dict = DisplayOptionsDTO.from_dict(display_options_dto_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)
+
+
diff --git a/docs/DistributionDTO.md b/docs/DistributionDTO.md
index 154cc0f..39ecb39 100644
--- a/docs/DistributionDTO.md
+++ b/docs/DistributionDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/DwhAbstractProperty.md b/docs/DwhAbstractProperty.md
new file mode 100644
index 0000000..6bfc165
--- /dev/null
+++ b/docs/DwhAbstractProperty.md
@@ -0,0 +1,38 @@
+# DwhAbstractProperty
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **str** | |
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**column** | **str** | |
+**type** | **str** | |
+**filterable** | **bool** | | [optional] [default to True]
+**calculated** | **bool** | | [optional]
+**display_options** | [**DisplayOptionsDTO**](DisplayOptionsDTO.md) | | [optional]
+**geometry** | **object** | |
+**foreign_key** | **object** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhAbstractProperty from a JSON string
+dwh_abstract_property_instance = DwhAbstractProperty.from_json(json)
+# print the JSON string representation of the object
+print(DwhAbstractProperty.to_json())
+
+# convert the object into a dict
+dwh_abstract_property_dict = dwh_abstract_property_instance.to_dict()
+# create an instance of DwhAbstractProperty from a dict
+dwh_abstract_property_from_dict = DwhAbstractProperty.from_dict(dwh_abstract_property_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)
+
+
diff --git a/docs/DwhForeignKeyDTO.md b/docs/DwhForeignKeyDTO.md
new file mode 100644
index 0000000..9a86b08
--- /dev/null
+++ b/docs/DwhForeignKeyDTO.md
@@ -0,0 +1,30 @@
+# DwhForeignKeyDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**foreign_key** | **str** | |
+**geometry** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_foreign_key_dto import DwhForeignKeyDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhForeignKeyDTO from a JSON string
+dwh_foreign_key_dto_instance = DwhForeignKeyDTO.from_json(json)
+# print the JSON string representation of the object
+print(DwhForeignKeyDTO.to_json())
+
+# convert the object into a dict
+dwh_foreign_key_dto_dict = dwh_foreign_key_dto_instance.to_dict()
+# create an instance of DwhForeignKeyDTO from a dict
+dwh_foreign_key_dto_from_dict = DwhForeignKeyDTO.from_dict(dwh_foreign_key_dto_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)
+
+
diff --git a/docs/DwhGeometryDTO.md b/docs/DwhGeometryDTO.md
new file mode 100644
index 0000000..ab829e4
--- /dev/null
+++ b/docs/DwhGeometryDTO.md
@@ -0,0 +1,30 @@
+# DwhGeometryDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | **str** | |
+**foreign_key** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_geometry_dto import DwhGeometryDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhGeometryDTO from a JSON string
+dwh_geometry_dto_instance = DwhGeometryDTO.from_json(json)
+# print the JSON string representation of the object
+print(DwhGeometryDTO.to_json())
+
+# convert the object into a dict
+dwh_geometry_dto_dict = dwh_geometry_dto_instance.to_dict()
+# create an instance of DwhGeometryDTO from a dict
+dwh_geometry_dto_from_dict = DwhGeometryDTO.from_dict(dwh_geometry_dto_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)
+
+
diff --git a/docs/DwhPropertyDTO.md b/docs/DwhPropertyDTO.md
new file mode 100644
index 0000000..dbf24d4
--- /dev/null
+++ b/docs/DwhPropertyDTO.md
@@ -0,0 +1,30 @@
+# DwhPropertyDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geometry** | **object** | | [optional]
+**foreign_key** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhPropertyDTO from a JSON string
+dwh_property_dto_instance = DwhPropertyDTO.from_json(json)
+# print the JSON string representation of the object
+print(DwhPropertyDTO.to_json())
+
+# convert the object into a dict
+dwh_property_dto_dict = dwh_property_dto_instance.to_dict()
+# create an instance of DwhPropertyDTO from a dict
+dwh_property_dto_from_dict = DwhPropertyDTO.from_dict(dwh_property_dto_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)
+
+
diff --git a/docs/DwhQueryFunctionTypes.md b/docs/DwhQueryFunctionTypes.md
new file mode 100644
index 0000000..46dc477
--- /dev/null
+++ b/docs/DwhQueryFunctionTypes.md
@@ -0,0 +1,34 @@
+# DwhQueryFunctionTypes
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**value** | **str** | |
+**metric** | **str** | |
+**content** | [**List[DwhQueryNumberType]**](DwhQueryNumberType.md) | |
+**options** | [**FunctionDistanceOptions**](FunctionDistanceOptions.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_query_function_types import DwhQueryFunctionTypes
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhQueryFunctionTypes from a JSON string
+dwh_query_function_types_instance = DwhQueryFunctionTypes.from_json(json)
+# print the JSON string representation of the object
+print(DwhQueryFunctionTypes.to_json())
+
+# convert the object into a dict
+dwh_query_function_types_dict = dwh_query_function_types_instance.to_dict()
+# create an instance of DwhQueryFunctionTypes from a dict
+dwh_query_function_types_from_dict = DwhQueryFunctionTypes.from_dict(dwh_query_function_types_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)
+
+
diff --git a/docs/DwhQueryMetricType.md b/docs/DwhQueryMetricType.md
new file mode 100644
index 0000000..2327ff0
--- /dev/null
+++ b/docs/DwhQueryMetricType.md
@@ -0,0 +1,31 @@
+# DwhQueryMetricType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**metric** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_query_metric_type import DwhQueryMetricType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhQueryMetricType from a JSON string
+dwh_query_metric_type_instance = DwhQueryMetricType.from_json(json)
+# print the JSON string representation of the object
+print(DwhQueryMetricType.to_json())
+
+# convert the object into a dict
+dwh_query_metric_type_dict = dwh_query_metric_type_instance.to_dict()
+# create an instance of DwhQueryMetricType from a dict
+dwh_query_metric_type_from_dict = DwhQueryMetricType.from_dict(dwh_query_metric_type_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)
+
+
diff --git a/docs/DwhQueryNumberType.md b/docs/DwhQueryNumberType.md
new file mode 100644
index 0000000..3e8c911
--- /dev/null
+++ b/docs/DwhQueryNumberType.md
@@ -0,0 +1,31 @@
+# DwhQueryNumberType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**value** | **float** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhQueryNumberType from a JSON string
+dwh_query_number_type_instance = DwhQueryNumberType.from_json(json)
+# print the JSON string representation of the object
+print(DwhQueryNumberType.to_json())
+
+# convert the object into a dict
+dwh_query_number_type_dict = dwh_query_number_type_instance.to_dict()
+# create an instance of DwhQueryNumberType from a dict
+dwh_query_number_type_from_dict = DwhQueryNumberType.from_dict(dwh_query_number_type_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)
+
+
diff --git a/docs/DwhQueryPropertyType.md b/docs/DwhQueryPropertyType.md
new file mode 100644
index 0000000..27752c4
--- /dev/null
+++ b/docs/DwhQueryPropertyType.md
@@ -0,0 +1,31 @@
+# DwhQueryPropertyType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**value** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.dwh_query_property_type import DwhQueryPropertyType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DwhQueryPropertyType from a JSON string
+dwh_query_property_type_instance = DwhQueryPropertyType.from_json(json)
+# print the JSON string representation of the object
+print(DwhQueryPropertyType.to_json())
+
+# convert the object into a dict
+dwh_query_property_type_dict = dwh_query_property_type_instance.to_dict()
+# create an instance of DwhQueryPropertyType from a dict
+dwh_query_property_type_from_dict = DwhQueryPropertyType.from_dict(dwh_query_property_type_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)
+
+
diff --git a/docs/ExportContentDTO.md b/docs/ExportContentDTO.md
new file mode 100644
index 0000000..24eeb2b
--- /dev/null
+++ b/docs/ExportContentDTO.md
@@ -0,0 +1,30 @@
+# ExportContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**properties** | **List[str]** | | [optional]
+**output** | [**OutputDTO**](OutputDTO.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_content_dto import ExportContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportContentDTO from a JSON string
+export_content_dto_instance = ExportContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(ExportContentDTO.to_json())
+
+# convert the object into a dict
+export_content_dto_dict = export_content_dto_instance.to_dict()
+# create an instance of ExportContentDTO from a dict
+export_content_dto_from_dict = ExportContentDTO.from_dict(export_content_dto_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)
+
+
diff --git a/docs/ExportDTO.md b/docs/ExportDTO.md
new file mode 100644
index 0000000..b306c26
--- /dev/null
+++ b/docs/ExportDTO.md
@@ -0,0 +1,34 @@
+# ExportDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**ExportContentDTO**](ExportContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportDTO from a JSON string
+export_dto_instance = ExportDTO.from_json(json)
+# print the JSON string representation of the object
+print(ExportDTO.to_json())
+
+# convert the object into a dict
+export_dto_dict = export_dto_instance.to_dict()
+# create an instance of ExportDTO from a dict
+export_dto_from_dict = ExportDTO.from_dict(export_dto_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)
+
+
diff --git a/docs/ExportJobRequest.md b/docs/ExportJobRequest.md
new file mode 100644
index 0000000..bdf319f
--- /dev/null
+++ b/docs/ExportJobRequest.md
@@ -0,0 +1,31 @@
+# ExportJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**ExportRequest**](ExportRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_job_request import ExportJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportJobRequest from a JSON string
+export_job_request_instance = ExportJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(ExportJobRequest.to_json())
+
+# convert the object into a dict
+export_job_request_dict = export_job_request_instance.to_dict()
+# create an instance of ExportJobRequest from a dict
+export_job_request_from_dict = ExportJobRequest.from_dict(export_job_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)
+
+
diff --git a/docs/ExportLinkDTO.md b/docs/ExportLinkDTO.md
index b014ba1..73653c1 100644
--- a/docs/ExportLinkDTO.md
+++ b/docs/ExportLinkDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.export_link_dto import ExportLinkDTO
+from cm_python_openapi_sdk.models.export_link_dto import ExportLinkDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ExportPagedModelDTO.md b/docs/ExportPagedModelDTO.md
new file mode 100644
index 0000000..1c3d15a
--- /dev/null
+++ b/docs/ExportPagedModelDTO.md
@@ -0,0 +1,31 @@
+# ExportPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[ExportDTO]**](ExportDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportPagedModelDTO from a JSON string
+export_paged_model_dto_instance = ExportPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(ExportPagedModelDTO.to_json())
+
+# convert the object into a dict
+export_paged_model_dto_dict = export_paged_model_dto_instance.to_dict()
+# create an instance of ExportPagedModelDTO from a dict
+export_paged_model_dto_from_dict = ExportPagedModelDTO.from_dict(export_paged_model_dto_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)
+
+
diff --git a/docs/ExportRequest.md b/docs/ExportRequest.md
new file mode 100644
index 0000000..dd18d53
--- /dev/null
+++ b/docs/ExportRequest.md
@@ -0,0 +1,33 @@
+# ExportRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**format** | **str** | |
+**csv_header_format** | **str** | | [optional]
+**query** | **object** | |
+**csv_options** | [**ExportRequestCsvOptions**](ExportRequestCsvOptions.md) | | [optional]
+**xlsx_options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_request import ExportRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportRequest from a JSON string
+export_request_instance = ExportRequest.from_json(json)
+# print the JSON string representation of the object
+print(ExportRequest.to_json())
+
+# convert the object into a dict
+export_request_dict = export_request_instance.to_dict()
+# create an instance of ExportRequest from a dict
+export_request_from_dict = ExportRequest.from_dict(export_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)
+
+
diff --git a/docs/ExportRequestCsvOptions.md b/docs/ExportRequestCsvOptions.md
new file mode 100644
index 0000000..6ea2bbe
--- /dev/null
+++ b/docs/ExportRequestCsvOptions.md
@@ -0,0 +1,32 @@
+# ExportRequestCsvOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**header** | **bool** | | [optional]
+**separator** | **str** | | [optional]
+**quote** | **str** | | [optional]
+**escape** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.export_request_csv_options import ExportRequestCsvOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ExportRequestCsvOptions from a JSON string
+export_request_csv_options_instance = ExportRequestCsvOptions.from_json(json)
+# print the JSON string representation of the object
+print(ExportRequestCsvOptions.to_json())
+
+# convert the object into a dict
+export_request_csv_options_dict = export_request_csv_options_instance.to_dict()
+# create an instance of ExportRequestCsvOptions from a dict
+export_request_csv_options_from_dict = ExportRequestCsvOptions.from_dict(export_request_csv_options_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)
+
+
diff --git a/docs/ExportsApi.md b/docs/ExportsApi.md
new file mode 100644
index 0000000..753e2ed
--- /dev/null
+++ b/docs/ExportsApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.ExportsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_export**](ExportsApi.md#create_export) | **POST** /projects/{projectId}/md/exports | Creates new export
+[**delete_export_by_id**](ExportsApi.md#delete_export_by_id) | **DELETE** /projects/{projectId}/md/exports/{id} | Deletes export by id
+[**get_all_exports**](ExportsApi.md#get_all_exports) | **GET** /projects/{projectId}/md/exports | Returns paged collection of all Exports in a project
+[**get_export_by_id**](ExportsApi.md#get_export_by_id) | **GET** /projects/{projectId}/md/exports/{id} | Gets export by id
+[**update_export_by_id**](ExportsApi.md#update_export_by_id) | **PUT** /projects/{projectId}/md/exports/{id} | Updates export by id
+
+
+# **create_export**
+> ExportDTO create_export(project_id, export_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new export
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ExportsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ export_dto = cm_python_openapi_sdk.ExportDTO() # ExportDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new export
+ api_response = api_instance.create_export(project_id, export_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of ExportsApi->create_export:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ExportsApi->create_export: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **export_dto** | [**ExportDTO**](ExportDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**ExportDTO**](ExportDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Export was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Export with the same name or id already exists | - |
+
+[[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)
+
+# **delete_export_by_id**
+> delete_export_by_id(project_id, id)
+
+Deletes export by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ExportsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the export
+
+ try:
+ # Deletes export by id
+ api_instance.delete_export_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling ExportsApi->delete_export_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the export |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Export was successfully deleted | - |
+**404** | Export not found | - |
+
+[[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)
+
+# **get_all_exports**
+> ExportPagedModelDTO get_all_exports(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Exports in a project
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ExportsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Exports in a project
+ api_response = api_instance.get_all_exports(project_id, page=page, size=size, sort=sort)
+ print("The response of ExportsApi->get_all_exports:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ExportsApi->get_all_exports: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**ExportPagedModelDTO**](ExportPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_export_by_id**
+> ExportDTO get_export_by_id(project_id, id)
+
+Gets export by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ExportsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the export
+
+ try:
+ # Gets export by id
+ api_response = api_instance.get_export_by_id(project_id, id)
+ print("The response of ExportsApi->get_export_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ExportsApi->get_export_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the export |
+
+### Return type
+
+[**ExportDTO**](ExportDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Export not found | - |
+
+[[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)
+
+# **update_export_by_id**
+> ExportDTO update_export_by_id(project_id, id, if_match, export_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates export by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ExportsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the export
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ export_dto = cm_python_openapi_sdk.ExportDTO() # ExportDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates export by id
+ api_response = api_instance.update_export_by_id(project_id, id, if_match, export_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of ExportsApi->update_export_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ExportsApi->update_export_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the export |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **export_dto** | [**ExportDTO**](ExportDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**ExportDTO**](ExportDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Export was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Export not found | - |
+**409** | Export with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/FeatureAttributeDTO.md b/docs/FeatureAttributeDTO.md
index 1be3fbd..9d18e98 100644
--- a/docs/FeatureAttributeDTO.md
+++ b/docs/FeatureAttributeDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/FeatureFilterDTO.md b/docs/FeatureFilterDTO.md
index c9699a0..1bb59ac 100644
--- a/docs/FeatureFilterDTO.md
+++ b/docs/FeatureFilterDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.feature_filter_dto import FeatureFilterDTO
+from cm_python_openapi_sdk.models.feature_filter_dto import FeatureFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/FeatureFunctionDTO.md b/docs/FeatureFunctionDTO.md
new file mode 100644
index 0000000..b50dd21
--- /dev/null
+++ b/docs/FeatureFunctionDTO.md
@@ -0,0 +1,31 @@
+# FeatureFunctionDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**value** | **str** | |
+**content** | [**List[FunctionPropertyType]**](FunctionPropertyType.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.feature_function_dto import FeatureFunctionDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FeatureFunctionDTO from a JSON string
+feature_function_dto_instance = FeatureFunctionDTO.from_json(json)
+# print the JSON string representation of the object
+print(FeatureFunctionDTO.to_json())
+
+# convert the object into a dict
+feature_function_dto_dict = feature_function_dto_instance.to_dict()
+# create an instance of FeatureFunctionDTO from a dict
+feature_function_dto_from_dict = FeatureFunctionDTO.from_dict(feature_function_dto_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)
+
+
diff --git a/docs/FeaturePropertyDTO.md b/docs/FeaturePropertyDTO.md
new file mode 100644
index 0000000..ecb871f
--- /dev/null
+++ b/docs/FeaturePropertyDTO.md
@@ -0,0 +1,30 @@
+# FeaturePropertyDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**value** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FeaturePropertyDTO from a JSON string
+feature_property_dto_instance = FeaturePropertyDTO.from_json(json)
+# print the JSON string representation of the object
+print(FeaturePropertyDTO.to_json())
+
+# convert the object into a dict
+feature_property_dto_dict = feature_property_dto_instance.to_dict()
+# create an instance of FeaturePropertyDTO from a dict
+feature_property_dto_from_dict = FeaturePropertyDTO.from_dict(feature_property_dto_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)
+
+
diff --git a/docs/FeaturePropertyType.md b/docs/FeaturePropertyType.md
new file mode 100644
index 0000000..5dda25b
--- /dev/null
+++ b/docs/FeaturePropertyType.md
@@ -0,0 +1,31 @@
+# FeaturePropertyType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**value** | **str** | |
+**content** | [**List[FunctionPropertyType]**](FunctionPropertyType.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.feature_property_type import FeaturePropertyType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FeaturePropertyType from a JSON string
+feature_property_type_instance = FeaturePropertyType.from_json(json)
+# print the JSON string representation of the object
+print(FeaturePropertyType.to_json())
+
+# convert the object into a dict
+feature_property_type_dict = feature_property_type_instance.to_dict()
+# create an instance of FeaturePropertyType from a dict
+feature_property_type_from_dict = FeaturePropertyType.from_dict(feature_property_type_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)
+
+
diff --git a/docs/FeatureTextDTO.md b/docs/FeatureTextDTO.md
new file mode 100644
index 0000000..3a47724
--- /dev/null
+++ b/docs/FeatureTextDTO.md
@@ -0,0 +1,30 @@
+# FeatureTextDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**value** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FeatureTextDTO from a JSON string
+feature_text_dto_instance = FeatureTextDTO.from_json(json)
+# print the JSON string representation of the object
+print(FeatureTextDTO.to_json())
+
+# convert the object into a dict
+feature_text_dto_dict = feature_text_dto_instance.to_dict()
+# create an instance of FeatureTextDTO from a dict
+feature_text_dto_from_dict = FeatureTextDTO.from_dict(feature_text_dto_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)
+
+
diff --git a/docs/FilterAbstractType.md b/docs/FilterAbstractType.md
index c5cdccc..e925c78 100644
--- a/docs/FilterAbstractType.md
+++ b/docs/FilterAbstractType.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.filter_abstract_type import FilterAbstractType
+from cm_python_openapi_sdk.models.filter_abstract_type import FilterAbstractType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/FormatDTO.md b/docs/FormatDTO.md
index e5df108..014e1b1 100644
--- a/docs/FormatDTO.md
+++ b/docs/FormatDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/FunctionAggTypeGeneral.md b/docs/FunctionAggTypeGeneral.md
new file mode 100644
index 0000000..54afce9
--- /dev/null
+++ b/docs/FunctionAggTypeGeneral.md
@@ -0,0 +1,32 @@
+# FunctionAggTypeGeneral
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionAggTypeGeneral from a JSON string
+function_agg_type_general_instance = FunctionAggTypeGeneral.from_json(json)
+# print the JSON string representation of the object
+print(FunctionAggTypeGeneral.to_json())
+
+# convert the object into a dict
+function_agg_type_general_dict = function_agg_type_general_instance.to_dict()
+# create an instance of FunctionAggTypeGeneral from a dict
+function_agg_type_general_from_dict = FunctionAggTypeGeneral.from_dict(function_agg_type_general_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)
+
+
diff --git a/docs/FunctionArithmTypeGeneral.md b/docs/FunctionArithmTypeGeneral.md
new file mode 100644
index 0000000..49fe909
--- /dev/null
+++ b/docs/FunctionArithmTypeGeneral.md
@@ -0,0 +1,32 @@
+# FunctionArithmTypeGeneral
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_arithm_type_general import FunctionArithmTypeGeneral
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionArithmTypeGeneral from a JSON string
+function_arithm_type_general_instance = FunctionArithmTypeGeneral.from_json(json)
+# print the JSON string representation of the object
+print(FunctionArithmTypeGeneral.to_json())
+
+# convert the object into a dict
+function_arithm_type_general_dict = function_arithm_type_general_instance.to_dict()
+# create an instance of FunctionArithmTypeGeneral from a dict
+function_arithm_type_general_from_dict = FunctionArithmTypeGeneral.from_dict(function_arithm_type_general_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)
+
+
diff --git a/docs/FunctionConditionTypeGeneral.md b/docs/FunctionConditionTypeGeneral.md
new file mode 100644
index 0000000..90befce
--- /dev/null
+++ b/docs/FunctionConditionTypeGeneral.md
@@ -0,0 +1,32 @@
+# FunctionConditionTypeGeneral
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_condition_type_general import FunctionConditionTypeGeneral
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionConditionTypeGeneral from a JSON string
+function_condition_type_general_instance = FunctionConditionTypeGeneral.from_json(json)
+# print the JSON string representation of the object
+print(FunctionConditionTypeGeneral.to_json())
+
+# convert the object into a dict
+function_condition_type_general_dict = function_condition_type_general_instance.to_dict()
+# create an instance of FunctionConditionTypeGeneral from a dict
+function_condition_type_general_from_dict = FunctionConditionTypeGeneral.from_dict(function_condition_type_general_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)
+
+
diff --git a/docs/FunctionDateTrunc.md b/docs/FunctionDateTrunc.md
new file mode 100644
index 0000000..1b91ff8
--- /dev/null
+++ b/docs/FunctionDateTrunc.md
@@ -0,0 +1,32 @@
+# FunctionDateTrunc
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | [**FunctionDateTruncOptions**](FunctionDateTruncOptions.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_date_trunc import FunctionDateTrunc
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionDateTrunc from a JSON string
+function_date_trunc_instance = FunctionDateTrunc.from_json(json)
+# print the JSON string representation of the object
+print(FunctionDateTrunc.to_json())
+
+# convert the object into a dict
+function_date_trunc_dict = function_date_trunc_instance.to_dict()
+# create an instance of FunctionDateTrunc from a dict
+function_date_trunc_from_dict = FunctionDateTrunc.from_dict(function_date_trunc_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)
+
+
diff --git a/docs/FunctionDateTruncOptions.md b/docs/FunctionDateTruncOptions.md
new file mode 100644
index 0000000..edcb6d5
--- /dev/null
+++ b/docs/FunctionDateTruncOptions.md
@@ -0,0 +1,29 @@
+# FunctionDateTruncOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**interval** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionDateTruncOptions from a JSON string
+function_date_trunc_options_instance = FunctionDateTruncOptions.from_json(json)
+# print the JSON string representation of the object
+print(FunctionDateTruncOptions.to_json())
+
+# convert the object into a dict
+function_date_trunc_options_dict = function_date_trunc_options_instance.to_dict()
+# create an instance of FunctionDateTruncOptions from a dict
+function_date_trunc_options_from_dict = FunctionDateTruncOptions.from_dict(function_date_trunc_options_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)
+
+
diff --git a/docs/FunctionDistance.md b/docs/FunctionDistance.md
new file mode 100644
index 0000000..859409b
--- /dev/null
+++ b/docs/FunctionDistance.md
@@ -0,0 +1,31 @@
+# FunctionDistance
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**options** | [**FunctionDistanceOptions**](FunctionDistanceOptions.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_distance import FunctionDistance
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionDistance from a JSON string
+function_distance_instance = FunctionDistance.from_json(json)
+# print the JSON string representation of the object
+print(FunctionDistance.to_json())
+
+# convert the object into a dict
+function_distance_dict = function_distance_instance.to_dict()
+# create an instance of FunctionDistance from a dict
+function_distance_from_dict = FunctionDistance.from_dict(function_distance_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)
+
+
diff --git a/docs/FunctionDistanceOptions.md b/docs/FunctionDistanceOptions.md
new file mode 100644
index 0000000..d6df90e
--- /dev/null
+++ b/docs/FunctionDistanceOptions.md
@@ -0,0 +1,30 @@
+# FunctionDistanceOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**central_point** | [**FunctionDistanceOptionsCentralPoint**](FunctionDistanceOptionsCentralPoint.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_distance_options import FunctionDistanceOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionDistanceOptions from a JSON string
+function_distance_options_instance = FunctionDistanceOptions.from_json(json)
+# print the JSON string representation of the object
+print(FunctionDistanceOptions.to_json())
+
+# convert the object into a dict
+function_distance_options_dict = function_distance_options_instance.to_dict()
+# create an instance of FunctionDistanceOptions from a dict
+function_distance_options_from_dict = FunctionDistanceOptions.from_dict(function_distance_options_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)
+
+
diff --git a/docs/FunctionDistanceOptionsCentralPoint.md b/docs/FunctionDistanceOptionsCentralPoint.md
new file mode 100644
index 0000000..3823be7
--- /dev/null
+++ b/docs/FunctionDistanceOptionsCentralPoint.md
@@ -0,0 +1,30 @@
+# FunctionDistanceOptionsCentralPoint
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**lat** | **float** | |
+**lng** | **float** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionDistanceOptionsCentralPoint from a JSON string
+function_distance_options_central_point_instance = FunctionDistanceOptionsCentralPoint.from_json(json)
+# print the JSON string representation of the object
+print(FunctionDistanceOptionsCentralPoint.to_json())
+
+# convert the object into a dict
+function_distance_options_central_point_dict = function_distance_options_central_point_instance.to_dict()
+# create an instance of FunctionDistanceOptionsCentralPoint from a dict
+function_distance_options_central_point_from_dict = FunctionDistanceOptionsCentralPoint.from_dict(function_distance_options_central_point_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)
+
+
diff --git a/docs/FunctionH3Grid.md b/docs/FunctionH3Grid.md
new file mode 100644
index 0000000..2847465
--- /dev/null
+++ b/docs/FunctionH3Grid.md
@@ -0,0 +1,31 @@
+# FunctionH3Grid
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**options** | [**FunctionH3GridOptions**](FunctionH3GridOptions.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_h3_grid import FunctionH3Grid
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionH3Grid from a JSON string
+function_h3_grid_instance = FunctionH3Grid.from_json(json)
+# print the JSON string representation of the object
+print(FunctionH3Grid.to_json())
+
+# convert the object into a dict
+function_h3_grid_dict = function_h3_grid_instance.to_dict()
+# create an instance of FunctionH3Grid from a dict
+function_h3_grid_from_dict = FunctionH3Grid.from_dict(function_h3_grid_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)
+
+
diff --git a/docs/FunctionH3GridOptions.md b/docs/FunctionH3GridOptions.md
new file mode 100644
index 0000000..0c152a7
--- /dev/null
+++ b/docs/FunctionH3GridOptions.md
@@ -0,0 +1,30 @@
+# FunctionH3GridOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**resolution** | **int** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_h3_grid_options import FunctionH3GridOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionH3GridOptions from a JSON string
+function_h3_grid_options_instance = FunctionH3GridOptions.from_json(json)
+# print the JSON string representation of the object
+print(FunctionH3GridOptions.to_json())
+
+# convert the object into a dict
+function_h3_grid_options_dict = function_h3_grid_options_instance.to_dict()
+# create an instance of FunctionH3GridOptions from a dict
+function_h3_grid_options_from_dict = FunctionH3GridOptions.from_dict(function_h3_grid_options_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)
+
+
diff --git a/docs/FunctionInterval.md b/docs/FunctionInterval.md
new file mode 100644
index 0000000..c28ad51
--- /dev/null
+++ b/docs/FunctionInterval.md
@@ -0,0 +1,32 @@
+# FunctionInterval
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | [**List[DwhQueryNumberType]**](DwhQueryNumberType.md) | |
+**options** | [**FunctionDateTruncOptions**](FunctionDateTruncOptions.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_interval import FunctionInterval
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionInterval from a JSON string
+function_interval_instance = FunctionInterval.from_json(json)
+# print the JSON string representation of the object
+print(FunctionInterval.to_json())
+
+# convert the object into a dict
+function_interval_dict = function_interval_instance.to_dict()
+# create an instance of FunctionInterval from a dict
+function_interval_from_dict = FunctionInterval.from_dict(function_interval_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)
+
+
diff --git a/docs/FunctionNtile.md b/docs/FunctionNtile.md
new file mode 100644
index 0000000..4213ff1
--- /dev/null
+++ b/docs/FunctionNtile.md
@@ -0,0 +1,32 @@
+# FunctionNtile
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | [**FunctionNtileOptions**](FunctionNtileOptions.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_ntile import FunctionNtile
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionNtile from a JSON string
+function_ntile_instance = FunctionNtile.from_json(json)
+# print the JSON string representation of the object
+print(FunctionNtile.to_json())
+
+# convert the object into a dict
+function_ntile_dict = function_ntile_instance.to_dict()
+# create an instance of FunctionNtile from a dict
+function_ntile_from_dict = FunctionNtile.from_dict(function_ntile_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)
+
+
diff --git a/docs/FunctionNtileOptions.md b/docs/FunctionNtileOptions.md
new file mode 100644
index 0000000..49e63da
--- /dev/null
+++ b/docs/FunctionNtileOptions.md
@@ -0,0 +1,31 @@
+# FunctionNtileOptions
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**sort** | **str** | | [optional] [default to 'asc']
+**buckets** | **int** | | [default to 4]
+**partition_by** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionNtileOptions from a JSON string
+function_ntile_options_instance = FunctionNtileOptions.from_json(json)
+# print the JSON string representation of the object
+print(FunctionNtileOptions.to_json())
+
+# convert the object into a dict
+function_ntile_options_dict = function_ntile_options_instance.to_dict()
+# create an instance of FunctionNtileOptions from a dict
+function_ntile_options_from_dict = FunctionNtileOptions.from_dict(function_ntile_options_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)
+
+
diff --git a/docs/FunctionPercentToTotalTypeGeneral.md b/docs/FunctionPercentToTotalTypeGeneral.md
new file mode 100644
index 0000000..dd8673a
--- /dev/null
+++ b/docs/FunctionPercentToTotalTypeGeneral.md
@@ -0,0 +1,32 @@
+# FunctionPercentToTotalTypeGeneral
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_percent_to_total_type_general import FunctionPercentToTotalTypeGeneral
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionPercentToTotalTypeGeneral from a JSON string
+function_percent_to_total_type_general_instance = FunctionPercentToTotalTypeGeneral.from_json(json)
+# print the JSON string representation of the object
+print(FunctionPercentToTotalTypeGeneral.to_json())
+
+# convert the object into a dict
+function_percent_to_total_type_general_dict = function_percent_to_total_type_general_instance.to_dict()
+# create an instance of FunctionPercentToTotalTypeGeneral from a dict
+function_percent_to_total_type_general_from_dict = FunctionPercentToTotalTypeGeneral.from_dict(function_percent_to_total_type_general_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)
+
+
diff --git a/docs/FunctionPercentile.md b/docs/FunctionPercentile.md
new file mode 100644
index 0000000..8f1b961
--- /dev/null
+++ b/docs/FunctionPercentile.md
@@ -0,0 +1,32 @@
+# FunctionPercentile
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_percentile import FunctionPercentile
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionPercentile from a JSON string
+function_percentile_instance = FunctionPercentile.from_json(json)
+# print the JSON string representation of the object
+print(FunctionPercentile.to_json())
+
+# convert the object into a dict
+function_percentile_dict = function_percentile_instance.to_dict()
+# create an instance of FunctionPercentile from a dict
+function_percentile_from_dict = FunctionPercentile.from_dict(function_percentile_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)
+
+
diff --git a/docs/FunctionPropertyType.md b/docs/FunctionPropertyType.md
new file mode 100644
index 0000000..cef41eb
--- /dev/null
+++ b/docs/FunctionPropertyType.md
@@ -0,0 +1,30 @@
+# FunctionPropertyType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**value** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_property_type import FunctionPropertyType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionPropertyType from a JSON string
+function_property_type_instance = FunctionPropertyType.from_json(json)
+# print the JSON string representation of the object
+print(FunctionPropertyType.to_json())
+
+# convert the object into a dict
+function_property_type_dict = function_property_type_instance.to_dict()
+# create an instance of FunctionPropertyType from a dict
+function_property_type_from_dict = FunctionPropertyType.from_dict(function_property_type_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)
+
+
diff --git a/docs/FunctionRank.md b/docs/FunctionRank.md
new file mode 100644
index 0000000..8f6d556
--- /dev/null
+++ b/docs/FunctionRank.md
@@ -0,0 +1,32 @@
+# FunctionRank
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_rank import FunctionRank
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionRank from a JSON string
+function_rank_instance = FunctionRank.from_json(json)
+# print the JSON string representation of the object
+print(FunctionRank.to_json())
+
+# convert the object into a dict
+function_rank_dict = function_rank_instance.to_dict()
+# create an instance of FunctionRank from a dict
+function_rank_from_dict = FunctionRank.from_dict(function_rank_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)
+
+
diff --git a/docs/FunctionRoundTypeGeneral.md b/docs/FunctionRoundTypeGeneral.md
new file mode 100644
index 0000000..8bafd51
--- /dev/null
+++ b/docs/FunctionRoundTypeGeneral.md
@@ -0,0 +1,32 @@
+# FunctionRoundTypeGeneral
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_round_type_general import FunctionRoundTypeGeneral
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionRoundTypeGeneral from a JSON string
+function_round_type_general_instance = FunctionRoundTypeGeneral.from_json(json)
+# print the JSON string representation of the object
+print(FunctionRoundTypeGeneral.to_json())
+
+# convert the object into a dict
+function_round_type_general_dict = function_round_type_general_instance.to_dict()
+# create an instance of FunctionRoundTypeGeneral from a dict
+function_round_type_general_from_dict = FunctionRoundTypeGeneral.from_dict(function_round_type_general_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)
+
+
diff --git a/docs/FunctionRowNumber.md b/docs/FunctionRowNumber.md
new file mode 100644
index 0000000..04649f1
--- /dev/null
+++ b/docs/FunctionRowNumber.md
@@ -0,0 +1,32 @@
+# FunctionRowNumber
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**content** | **List[object]** | |
+**options** | **object** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_row_number import FunctionRowNumber
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionRowNumber from a JSON string
+function_row_number_instance = FunctionRowNumber.from_json(json)
+# print the JSON string representation of the object
+print(FunctionRowNumber.to_json())
+
+# convert the object into a dict
+function_row_number_dict = function_row_number_instance.to_dict()
+# create an instance of FunctionRowNumber from a dict
+function_row_number_from_dict = FunctionRowNumber.from_dict(function_row_number_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)
+
+
diff --git a/docs/FunctionToday.md b/docs/FunctionToday.md
new file mode 100644
index 0000000..5140be1
--- /dev/null
+++ b/docs/FunctionToday.md
@@ -0,0 +1,30 @@
+# FunctionToday
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.function_today import FunctionToday
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FunctionToday from a JSON string
+function_today_instance = FunctionToday.from_json(json)
+# print the JSON string representation of the object
+print(FunctionToday.to_json())
+
+# convert the object into a dict
+function_today_dict = function_today_instance.to_dict()
+# create an instance of FunctionToday from a dict
+function_today_from_dict = FunctionToday.from_dict(function_today_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)
+
+
diff --git a/docs/GetOrganizations200Response.md b/docs/GetOrganizations200Response.md
new file mode 100644
index 0000000..f093d8f
--- /dev/null
+++ b/docs/GetOrganizations200Response.md
@@ -0,0 +1,37 @@
+# GetOrganizations200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[OrganizationResponseDTO]**](OrganizationResponseDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+**id** | **str** | | [optional]
+**title** | **str** | | [optional]
+**invitation_email** | **str** | | [optional]
+**dwh_cluster_id** | **str** | | [optional]
+**created_at** | **str** | | [optional]
+**modified_at** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetOrganizations200Response from a JSON string
+get_organizations200_response_instance = GetOrganizations200Response.from_json(json)
+# print the JSON string representation of the object
+print(GetOrganizations200Response.to_json())
+
+# convert the object into a dict
+get_organizations200_response_dict = get_organizations200_response_instance.to_dict()
+# create an instance of GetOrganizations200Response from a dict
+get_organizations200_response_from_dict = GetOrganizations200Response.from_dict(get_organizations200_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)
+
+
diff --git a/docs/GetProjectMembers200Response.md b/docs/GetProjectMembers200Response.md
new file mode 100644
index 0000000..c8af8e4
--- /dev/null
+++ b/docs/GetProjectMembers200Response.md
@@ -0,0 +1,38 @@
+# GetProjectMembers200Response
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[MembershipDTO]**](MembershipDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+**id** | **str** | | [optional]
+**account_id** | **str** | | [optional]
+**status** | **str** | |
+**role** | **str** | |
+**created_at** | **str** | | [optional]
+**modified_at** | **str** | | [optional]
+**account** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetProjectMembers200Response from a JSON string
+get_project_members200_response_instance = GetProjectMembers200Response.from_json(json)
+# print the JSON string representation of the object
+print(GetProjectMembers200Response.to_json())
+
+# convert the object into a dict
+get_project_members200_response_dict = get_project_members200_response_instance.to_dict()
+# create an instance of GetProjectMembers200Response from a dict
+get_project_members200_response_from_dict = GetProjectMembers200Response.from_dict(get_project_members200_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)
+
+
diff --git a/docs/GlobalDateFilterDTO.md b/docs/GlobalDateFilterDTO.md
index 8110fdb..ee95ddb 100644
--- a/docs/GlobalDateFilterDTO.md
+++ b/docs/GlobalDateFilterDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.global_date_filter_dto import GlobalDateFilterDTO
+from cm_python_openapi_sdk.models.global_date_filter_dto import GlobalDateFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/GoogleEarthDTO.md b/docs/GoogleEarthDTO.md
index 43eed53..28d620c 100644
--- a/docs/GoogleEarthDTO.md
+++ b/docs/GoogleEarthDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.google_earth_dto import GoogleEarthDTO
+from cm_python_openapi_sdk.models.google_earth_dto import GoogleEarthDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/GoogleSatelliteDTO.md b/docs/GoogleSatelliteDTO.md
index a12b31d..346b873 100644
--- a/docs/GoogleSatelliteDTO.md
+++ b/docs/GoogleSatelliteDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.google_satellite_dto import GoogleSatelliteDTO
+from cm_python_openapi_sdk.models.google_satellite_dto import GoogleSatelliteDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/GoogleStreetViewDTO.md b/docs/GoogleStreetViewDTO.md
index 42de04f..b0cab20 100644
--- a/docs/GoogleStreetViewDTO.md
+++ b/docs/GoogleStreetViewDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.google_street_view_dto import GoogleStreetViewDTO
+from cm_python_openapi_sdk.models.google_street_view_dto import GoogleStreetViewDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/GranularityCategoryDTO.md b/docs/GranularityCategoryDTO.md
new file mode 100644
index 0000000..76c94a7
--- /dev/null
+++ b/docs/GranularityCategoryDTO.md
@@ -0,0 +1,31 @@
+# GranularityCategoryDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**split_property_name** | **str** | |
+**style_type** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.granularity_category_dto import GranularityCategoryDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GranularityCategoryDTO from a JSON string
+granularity_category_dto_instance = GranularityCategoryDTO.from_json(json)
+# print the JSON string representation of the object
+print(GranularityCategoryDTO.to_json())
+
+# convert the object into a dict
+granularity_category_dto_dict = granularity_category_dto_instance.to_dict()
+# create an instance of GranularityCategoryDTO from a dict
+granularity_category_dto_from_dict = GranularityCategoryDTO.from_dict(granularity_category_dto_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)
+
+
diff --git a/docs/HistogramFilterDTO.md b/docs/HistogramFilterDTO.md
index 01407f8..a5f30b0 100644
--- a/docs/HistogramFilterDTO.md
+++ b/docs/HistogramFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.histogram_filter_dto import HistogramFilterDTO
+from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ImportProjectJobRequest.md b/docs/ImportProjectJobRequest.md
new file mode 100644
index 0000000..208d3d2
--- /dev/null
+++ b/docs/ImportProjectJobRequest.md
@@ -0,0 +1,31 @@
+# ImportProjectJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**ImportProjectRequest**](ImportProjectRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.import_project_job_request import ImportProjectJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ImportProjectJobRequest from a JSON string
+import_project_job_request_instance = ImportProjectJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(ImportProjectJobRequest.to_json())
+
+# convert the object into a dict
+import_project_job_request_dict = import_project_job_request_instance.to_dict()
+# create an instance of ImportProjectJobRequest from a dict
+import_project_job_request_from_dict = ImportProjectJobRequest.from_dict(import_project_job_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)
+
+
diff --git a/docs/ImportProjectRequest.md b/docs/ImportProjectRequest.md
new file mode 100644
index 0000000..82802ba
--- /dev/null
+++ b/docs/ImportProjectRequest.md
@@ -0,0 +1,46 @@
+# ImportProjectRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**force** | **bool** | |
+**source_project_id** | **str** | |
+**cascade_from** | **str** | | [optional]
+**prefix** | **str** | | [optional]
+**attribute_styles** | **bool** | | [optional] [default to False]
+**dashboard** | **bool** | | [optional] [default to False]
+**data_permissions** | **bool** | | [optional] [default to False]
+**datasets** | **bool** | | [optional] [default to False]
+**exports** | **bool** | | [optional] [default to False]
+**indicators** | **bool** | | [optional] [default to False]
+**indicator_drills** | **bool** | | [optional] [default to False]
+**maps** | **bool** | | [optional] [default to False]
+**markers** | **bool** | | [optional] [default to False]
+**marker_selectors** | **bool** | | [optional] [default to False]
+**metrics** | **bool** | | [optional] [default to False]
+**project_settings** | **bool** | | [optional] [default to False]
+**views** | **bool** | | [optional] [default to False]
+**skip_data** | **bool** | | [optional] [default to False]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.import_project_request import ImportProjectRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ImportProjectRequest from a JSON string
+import_project_request_instance = ImportProjectRequest.from_json(json)
+# print the JSON string representation of the object
+print(ImportProjectRequest.to_json())
+
+# convert the object into a dict
+import_project_request_dict = import_project_request_instance.to_dict()
+# create an instance of ImportProjectRequest from a dict
+import_project_request_from_dict = ImportProjectRequest.from_dict(import_project_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)
+
+
diff --git a/docs/IndicatorContentDTO.md b/docs/IndicatorContentDTO.md
index 1c12858..bee07f2 100644
--- a/docs/IndicatorContentDTO.md
+++ b/docs/IndicatorContentDTO.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_content_dto import IndicatorContentDTO
+from cm_python_openapi_sdk.models.indicator_content_dto import IndicatorContentDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorDTO.md b/docs/IndicatorDTO.md
index 211d668..7f20538 100644
--- a/docs/IndicatorDTO.md
+++ b/docs/IndicatorDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorDrillContentDTO.md b/docs/IndicatorDrillContentDTO.md
index dcb7e23..c1cbefd 100644
--- a/docs/IndicatorDrillContentDTO.md
+++ b/docs/IndicatorDrillContentDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_drill_content_dto import IndicatorDrillContentDTO
+from cm_python_openapi_sdk.models.indicator_drill_content_dto import IndicatorDrillContentDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorDrillDTO.md b/docs/IndicatorDrillDTO.md
index 6adb0dc..093f620 100644
--- a/docs/IndicatorDrillDTO.md
+++ b/docs/IndicatorDrillDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorDrillPagedModelDTO.md b/docs/IndicatorDrillPagedModelDTO.md
index 48f0ca3..7b25896 100644
--- a/docs/IndicatorDrillPagedModelDTO.md
+++ b/docs/IndicatorDrillPagedModelDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorDrillsApi.md b/docs/IndicatorDrillsApi.md
index 387bb9c..4ca4d26 100644
--- a/docs/IndicatorDrillsApi.md
+++ b/docs/IndicatorDrillsApi.md
@@ -1,4 +1,4 @@
-# openapi_client.IndicatorDrillsApi
+# cm_python_openapi_sdk.IndicatorDrillsApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -12,7 +12,7 @@ Method | HTTP request | Description
# **create_indicator_drill**
-> IndicatorDrillDTO create_indicator_drill(project_id, indicator_drill_dto)
+> IndicatorDrillDTO create_indicator_drill(project_id, indicator_drill_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Creates new Indicator Drill.
@@ -23,14 +23,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -40,20 +40,21 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorDrillsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorDrillsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
- indicator_drill_dto = openapi_client.IndicatorDrillDTO() # IndicatorDrillDTO |
+ indicator_drill_dto = cm_python_openapi_sdk.IndicatorDrillDTO() # IndicatorDrillDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Creates new Indicator Drill.
- api_response = api_instance.create_indicator_drill(project_id, indicator_drill_dto)
+ api_response = api_instance.create_indicator_drill(project_id, indicator_drill_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of IndicatorDrillsApi->create_indicator_drill:\n")
pprint(api_response)
except Exception as e:
@@ -69,6 +70,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Id of the project |
**indicator_drill_dto** | [**IndicatorDrillDTO**](IndicatorDrillDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
@@ -105,13 +107,13 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -121,14 +123,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorDrillsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorDrillsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator drill
@@ -181,14 +183,14 @@ Returns paged collection of all Indicator Drills in a project.
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -198,14 +200,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorDrillsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorDrillsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
page = 0 # int | Number of the page (optional) (default to 0)
size = 100 # int | The count of records to return for one page (optional) (default to 100)
@@ -263,14 +265,14 @@ Gets indicator drill by id
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -280,14 +282,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorDrillsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorDrillsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator drill
@@ -333,7 +335,7 @@ Name | Type | Description | Notes
[[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)
# **update_indicator_drill_by_id**
-> IndicatorDrillDTO update_indicator_drill_by_id(project_id, id, if_match, indicator_drill_dto)
+> IndicatorDrillDTO update_indicator_drill_by_id(project_id, id, if_match, indicator_drill_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Updates indicator drill by id
@@ -344,14 +346,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -361,22 +363,23 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorDrillsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorDrillsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator drill
if_match = 'if_match_example' # str | ETag value used for conditional updates
- indicator_drill_dto = openapi_client.IndicatorDrillDTO() # IndicatorDrillDTO |
+ indicator_drill_dto = cm_python_openapi_sdk.IndicatorDrillDTO() # IndicatorDrillDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Updates indicator drill by id
- api_response = api_instance.update_indicator_drill_by_id(project_id, id, if_match, indicator_drill_dto)
+ api_response = api_instance.update_indicator_drill_by_id(project_id, id, if_match, indicator_drill_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of IndicatorDrillsApi->update_indicator_drill_by_id:\n")
pprint(api_response)
except Exception as e:
@@ -394,6 +397,7 @@ Name | Type | Description | Notes
**id** | **str**| Id of the indicator drill |
**if_match** | **str**| ETag value used for conditional updates |
**indicator_drill_dto** | [**IndicatorDrillDTO**](IndicatorDrillDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
diff --git a/docs/IndicatorFilterDTO.md b/docs/IndicatorFilterDTO.md
index 088c77f..2d88fb2 100644
--- a/docs/IndicatorFilterDTO.md
+++ b/docs/IndicatorFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_filter_dto import IndicatorFilterDTO
+from cm_python_openapi_sdk.models.indicator_filter_dto import IndicatorFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorGroupDTO.md b/docs/IndicatorGroupDTO.md
index 09db7e1..6daba47 100644
--- a/docs/IndicatorGroupDTO.md
+++ b/docs/IndicatorGroupDTO.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_group_dto import IndicatorGroupDTO
+from cm_python_openapi_sdk.models.indicator_group_dto import IndicatorGroupDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorLinkDTO.md b/docs/IndicatorLinkDTO.md
index 3e7d560..4c41cff 100644
--- a/docs/IndicatorLinkDTO.md
+++ b/docs/IndicatorLinkDTO.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorLinkDTOBlockRowsInner.md b/docs/IndicatorLinkDTOBlockRowsInner.md
index 6b87913..3cc7efd 100644
--- a/docs/IndicatorLinkDTOBlockRowsInner.md
+++ b/docs/IndicatorLinkDTOBlockRowsInner.md
@@ -33,7 +33,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
+from cm_python_openapi_sdk.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorPagedModelDTO.md b/docs/IndicatorPagedModelDTO.md
index f37da0f..bd9fc7f 100644
--- a/docs/IndicatorPagedModelDTO.md
+++ b/docs/IndicatorPagedModelDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorVisualizationsDTO.md b/docs/IndicatorVisualizationsDTO.md
index def9a8a..074bb65 100644
--- a/docs/IndicatorVisualizationsDTO.md
+++ b/docs/IndicatorVisualizationsDTO.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
+from cm_python_openapi_sdk.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IndicatorsApi.md b/docs/IndicatorsApi.md
index a17eda0..1d7896a 100644
--- a/docs/IndicatorsApi.md
+++ b/docs/IndicatorsApi.md
@@ -1,4 +1,4 @@
-# openapi_client.IndicatorsApi
+# cm_python_openapi_sdk.IndicatorsApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -12,7 +12,7 @@ Method | HTTP request | Description
# **create_indicator**
-> IndicatorDTO create_indicator(project_id, indicator_dto)
+> IndicatorDTO create_indicator(project_id, indicator_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Creates new Indicator.
@@ -23,14 +23,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -40,20 +40,21 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
- indicator_dto = openapi_client.IndicatorDTO() # IndicatorDTO |
+ indicator_dto = cm_python_openapi_sdk.IndicatorDTO() # IndicatorDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Creates new Indicator.
- api_response = api_instance.create_indicator(project_id, indicator_dto)
+ api_response = api_instance.create_indicator(project_id, indicator_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of IndicatorsApi->create_indicator:\n")
pprint(api_response)
except Exception as e:
@@ -69,6 +70,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Id of the project |
**indicator_dto** | [**IndicatorDTO**](IndicatorDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
@@ -105,13 +107,13 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -121,14 +123,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator
@@ -181,14 +183,14 @@ Returns paged collection of all Indicators in a project.
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -198,14 +200,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
page = 0 # int | Number of the page (optional) (default to 0)
size = 100 # int | The count of records to return for one page (optional) (default to 100)
@@ -263,14 +265,14 @@ Gets indicator by id
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -280,14 +282,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator
@@ -333,7 +335,7 @@ Name | Type | Description | Notes
[[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)
# **update_indicator_by_id**
-> IndicatorDTO update_indicator_by_id(project_id, id, if_match, indicator_dto)
+> IndicatorDTO update_indicator_by_id(project_id, id, if_match, indicator_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Updates indicator by id
@@ -344,14 +346,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -361,22 +363,23 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.IndicatorsApi(api_client)
+ api_instance = cm_python_openapi_sdk.IndicatorsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the indicator
if_match = 'if_match_example' # str | ETag value used for conditional updates
- indicator_dto = openapi_client.IndicatorDTO() # IndicatorDTO |
+ indicator_dto = cm_python_openapi_sdk.IndicatorDTO() # IndicatorDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Updates indicator by id
- api_response = api_instance.update_indicator_by_id(project_id, id, if_match, indicator_dto)
+ api_response = api_instance.update_indicator_by_id(project_id, id, if_match, indicator_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of IndicatorsApi->update_indicator_by_id:\n")
pprint(api_response)
except Exception as e:
@@ -394,6 +397,7 @@ Name | Type | Description | Notes
**id** | **str**| Id of the indicator |
**if_match** | **str**| ETag value used for conditional updates |
**indicator_dto** | [**IndicatorDTO**](IndicatorDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
diff --git a/docs/InvitationDTO.md b/docs/InvitationDTO.md
new file mode 100644
index 0000000..695c01b
--- /dev/null
+++ b/docs/InvitationDTO.md
@@ -0,0 +1,35 @@
+# InvitationDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**email** | **str** | |
+**status** | **str** | |
+**role** | **str** | |
+**created_at** | **str** | |
+**modified_at** | **str** | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InvitationDTO from a JSON string
+invitation_dto_instance = InvitationDTO.from_json(json)
+# print the JSON string representation of the object
+print(InvitationDTO.to_json())
+
+# convert the object into a dict
+invitation_dto_dict = invitation_dto_instance.to_dict()
+# create an instance of InvitationDTO from a dict
+invitation_dto_from_dict = InvitationDTO.from_dict(invitation_dto_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)
+
+
diff --git a/docs/InvitationPagedModelDTO.md b/docs/InvitationPagedModelDTO.md
new file mode 100644
index 0000000..f016019
--- /dev/null
+++ b/docs/InvitationPagedModelDTO.md
@@ -0,0 +1,31 @@
+# InvitationPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[InvitationDTO]**](InvitationDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of InvitationPagedModelDTO from a JSON string
+invitation_paged_model_dto_instance = InvitationPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(InvitationPagedModelDTO.to_json())
+
+# convert the object into a dict
+invitation_paged_model_dto_dict = invitation_paged_model_dto_instance.to_dict()
+# create an instance of InvitationPagedModelDTO from a dict
+invitation_paged_model_dto_from_dict = InvitationPagedModelDTO.from_dict(invitation_paged_model_dto_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)
+
+
diff --git a/docs/IsochroneApi.md b/docs/IsochroneApi.md
new file mode 100644
index 0000000..dcdf3bc
--- /dev/null
+++ b/docs/IsochroneApi.md
@@ -0,0 +1,98 @@
+# cm_python_openapi_sdk.IsochroneApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_isochrone**](IsochroneApi.md#get_isochrone) | **GET** /isochrone |
+
+
+# **get_isochrone**
+> IsochronePagedModelDTO get_isochrone(lat, lng, profile, unit, amount, size=size, page=page)
+
+
+
+Calculates a list of isochrones for the given point(s). An **isochrone** is a line that connects points of equal travel time around a given location. It can be calculated as: - **Travel Time-Based Isochrone**: Represents the area reachable within a specified amount of time. Supported for the following travel modes: - `car` - `bike` - `foot` - **Distance-Based Isochrone**: Represents a circular area defined by a specified distance (in meters) from a point. Supported for the `air` travel mode. Endpoint accepts multiple points split by comma. For each point you must also define profile, unit and amount, split by comma. E.g. for two points - profile=foot,car unit=time,time amount=5.20
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.IsochroneApi(api_client)
+ lat = '49.198004,48.234569' # str | Latitude of the isochrone starting location. Accepts multiple values split by comma.
+ lng = '19.698104,18.357981' # str | Longitude of the isochrone starting location. Accepts multiple values split by comma.
+ profile = 'car,foot' # str | Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma.
+ unit = 'time,time' # str | Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma.
+ amount = '5,20' # str | The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma.
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ page = 0 # int | Number of the page (optional) (default to 0)
+
+ try:
+ api_response = api_instance.get_isochrone(lat, lng, profile, unit, amount, size=size, page=page)
+ print("The response of IsochroneApi->get_isochrone:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling IsochroneApi->get_isochrone: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **lat** | **str**| Latitude of the isochrone starting location. Accepts multiple values split by comma. |
+ **lng** | **str**| Longitude of the isochrone starting location. Accepts multiple values split by comma. |
+ **profile** | **str**| Profiles of the isochrone, available types: car, bike, foot, air. Accepts multiple values split by comma. |
+ **unit** | **str**| Unit of the isochrone result, available types: time (for car, bike and foot profiles) or distance (for air profile). Accepts multiple values split by comma. |
+ **amount** | **str**| The amount of either time (minutes for car, bike and foot profiles) or distance (meters for air profile). Accepts multiple values split by comma. |
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **page** | **int**| Number of the page | [optional] [default to 0]
+
+### Return type
+
+[**IsochronePagedModelDTO**](IsochronePagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Paged isochrones for given points | - |
+
+[[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)
+
diff --git a/docs/IsochroneDTO.md b/docs/IsochroneDTO.md
index 4e34c0e..e34ea7d 100644
--- a/docs/IsochroneDTO.md
+++ b/docs/IsochroneDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/IsochronePagedModelDTO.md b/docs/IsochronePagedModelDTO.md
new file mode 100644
index 0000000..df9f54b
--- /dev/null
+++ b/docs/IsochronePagedModelDTO.md
@@ -0,0 +1,31 @@
+# IsochronePagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[IsochroneDTO]**](IsochroneDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of IsochronePagedModelDTO from a JSON string
+isochrone_paged_model_dto_instance = IsochronePagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(IsochronePagedModelDTO.to_json())
+
+# convert the object into a dict
+isochrone_paged_model_dto_dict = isochrone_paged_model_dto_instance.to_dict()
+# create an instance of IsochronePagedModelDTO from a dict
+isochrone_paged_model_dto_from_dict = IsochronePagedModelDTO.from_dict(isochrone_paged_model_dto_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)
+
+
diff --git a/docs/JobDetailResponse.md b/docs/JobDetailResponse.md
new file mode 100644
index 0000000..a03ebe3
--- /dev/null
+++ b/docs/JobDetailResponse.md
@@ -0,0 +1,36 @@
+# JobDetailResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**type** | **str** | |
+**status** | **str** | |
+**start_date** | **object** | | [optional]
+**end_date** | **object** | | [optional]
+**message** | **str** | | [optional]
+**result** | **object** | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of JobDetailResponse from a JSON string
+job_detail_response_instance = JobDetailResponse.from_json(json)
+# print the JSON string representation of the object
+print(JobDetailResponse.to_json())
+
+# convert the object into a dict
+job_detail_response_dict = job_detail_response_instance.to_dict()
+# create an instance of JobDetailResponse from a dict
+job_detail_response_from_dict = JobDetailResponse.from_dict(job_detail_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)
+
+
diff --git a/docs/JobHistoryPagedModelDTO.md b/docs/JobHistoryPagedModelDTO.md
new file mode 100644
index 0000000..21d445d
--- /dev/null
+++ b/docs/JobHistoryPagedModelDTO.md
@@ -0,0 +1,31 @@
+# JobHistoryPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | **List[object]** | | [optional]
+**page** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of JobHistoryPagedModelDTO from a JSON string
+job_history_paged_model_dto_instance = JobHistoryPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(JobHistoryPagedModelDTO.to_json())
+
+# convert the object into a dict
+job_history_paged_model_dto_dict = job_history_paged_model_dto_instance.to_dict()
+# create an instance of JobHistoryPagedModelDTO from a dict
+job_history_paged_model_dto_from_dict = JobHistoryPagedModelDTO.from_dict(job_history_paged_model_dto_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)
+
+
diff --git a/docs/JobsApi.md b/docs/JobsApi.md
new file mode 100644
index 0000000..c74d7ea
--- /dev/null
+++ b/docs/JobsApi.md
@@ -0,0 +1,257 @@
+# cm_python_openapi_sdk.JobsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_job_status**](JobsApi.md#get_job_status) | **GET** /jobs/{jobId} |
+[**get_jobs_history**](JobsApi.md#get_jobs_history) | **GET** /jobs/history |
+[**submit_job_execution**](JobsApi.md#submit_job_execution) | **POST** /jobs |
+
+
+# **get_job_status**
+> JobDetailResponse get_job_status(job_id, type)
+
+
+
+Checks the current status of a given job. ### Job Statuses - **RUNNING**: The job is currently running or waiting in the queue. - **SUCCEEDED**: The job was successfully processed. - **FAILED**: The job execution failed. - **TIMED_OUT**: The job execution exceeded the allowed time limit. - **ABORTED**: The job execution was manually or systemically aborted.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.JobsApi(api_client)
+ job_id = '15e41178-3933-422b-81fe-6ee9f48adab1' # str | job id is generated when submitting the job
+ type = 'dataDump' # str | Jobs type
+
+ try:
+ api_response = api_instance.get_job_status(job_id, type)
+ print("The response of JobsApi->get_job_status:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling JobsApi->get_job_status: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **job_id** | **str**| job id is generated when submitting the job |
+ **type** | **str**| Jobs type |
+
+### Return type
+
+[**JobDetailResponse**](JobDetailResponse.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Job successfully submitted | - |
+
+[[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)
+
+# **get_jobs_history**
+> JobHistoryPagedModelDTO get_jobs_history(project_id, account_id=account_id, type=type, dataset=dataset, last_evaluated_timestamp=last_evaluated_timestamp, size=size, sort_direction=sort_direction)
+
+
+
+Retrieves the job history for a project. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude). - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning).
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.JobsApi(api_client)
+ project_id = 'vb2b3d8v91jao331' # str | projectId for which to retrieve jobs history
+ account_id = '00ubfu6dpmnTMIQKs0h7' # str | AccountId that started the job executions (optional)
+ type = 'export' # str | Jobs type (optional)
+ dataset = 'dataset_example' # str | (optional)
+ last_evaluated_timestamp = '2020-11-18T08:39:56,199' # str | Last evaluated timestamp when requesting next page (UTC timestamp format) (optional)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort_direction = 'ASC' # str | Sort direction (optional)
+
+ try:
+ api_response = api_instance.get_jobs_history(project_id, account_id=account_id, type=type, dataset=dataset, last_evaluated_timestamp=last_evaluated_timestamp, size=size, sort_direction=sort_direction)
+ print("The response of JobsApi->get_jobs_history:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling JobsApi->get_jobs_history: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| projectId for which to retrieve jobs history |
+ **account_id** | **str**| AccountId that started the job executions | [optional]
+ **type** | **str**| Jobs type | [optional]
+ **dataset** | **str**| | [optional]
+ **last_evaluated_timestamp** | **str**| Last evaluated timestamp when requesting next page (UTC timestamp format) | [optional]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort_direction** | **str**| Sort direction | [optional]
+
+### Return type
+
+[**JobHistoryPagedModelDTO**](JobHistoryPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Job history | - |
+
+[[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)
+
+# **submit_job_execution**
+> JobDetailResponse submit_job_execution(submit_job_execution_request)
+
+
+
+Starts the execution of a new project task. Tasks are processed asynchronously, and all jobs are added to a queue. ### Supported Job Types - **dataPull**: Loads a CSV file into a dataset. - **dataDump**: Dumps a dataset to a CSV file. - **export**: Executes a DWH query and exports the result as a CSV file. - **bulkPointQuery**: Executes DWH queries for a given list of points (latitude, longitude); limited to 1,000 points per request. - **validate**: Validates the project. - **truncate**: Truncates the project's data, dropping all DWH, metadata, and full-text search data. - **importProject**: Imports a project into another one (server-side cloning). ### Security - **dataPull, importProject**: Requires `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles. - **dataDump, truncate**: Requires the `ADMIN` project role. - **export, bulkPointQuery**: Requires `VIEWER`, `VIEW_CREATOR`, `METADATA_EDITOR`, `DATA_EDITOR`, `VIEW_CREATOR`, or `ADMIN` project roles. - **validate**: Requires `METADATA_EDITOR`, `LOAD_DATA`, `DATA_EDITOR`, or `ADMIN` project roles.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.JobsApi(api_client)
+ submit_job_execution_request = cm_python_openapi_sdk.SubmitJobExecutionRequest() # SubmitJobExecutionRequest | Successful response
+
+ try:
+ api_response = api_instance.submit_job_execution(submit_job_execution_request)
+ print("The response of JobsApi->submit_job_execution:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling JobsApi->submit_job_execution: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **submit_job_execution_request** | [**SubmitJobExecutionRequest**](SubmitJobExecutionRequest.md)| Successful response |
+
+### Return type
+
+[**JobDetailResponse**](JobDetailResponse.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**202** | Job successfully submitted | - |
+
+[[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)
+
diff --git a/docs/LayerDTO.md b/docs/LayerDTO.md
index f3395ae..6902dbb 100644
--- a/docs/LayerDTO.md
+++ b/docs/LayerDTO.md
@@ -19,7 +19,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.layer_dto import LayerDTO
+from cm_python_openapi_sdk.models.layer_dto import LayerDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/LayerDTODatasetsInner.md b/docs/LayerDTODatasetsInner.md
index 929baee..51a3c78 100644
--- a/docs/LayerDTODatasetsInner.md
+++ b/docs/LayerDTODatasetsInner.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.layer_dto_datasets_inner import LayerDTODatasetsInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner import LayerDTODatasetsInner
# TODO update the JSON string below
json = "{}"
diff --git a/docs/LayerDTODatasetsInnerAttributeStylesInner.md b/docs/LayerDTODatasetsInnerAttributeStylesInner.md
index 2ad26e7..0324c21 100644
--- a/docs/LayerDTODatasetsInnerAttributeStylesInner.md
+++ b/docs/LayerDTODatasetsInnerAttributeStylesInner.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
# TODO update the JSON string below
json = "{}"
diff --git a/docs/LinkedLayerDTO.md b/docs/LinkedLayerDTO.md
new file mode 100644
index 0000000..ac8b6ad
--- /dev/null
+++ b/docs/LinkedLayerDTO.md
@@ -0,0 +1,31 @@
+# LinkedLayerDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | |
+**style** | **str** | | [optional]
+**visible** | **bool** | | [optional] [default to True]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.linked_layer_dto import LinkedLayerDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of LinkedLayerDTO from a JSON string
+linked_layer_dto_instance = LinkedLayerDTO.from_json(json)
+# print the JSON string representation of the object
+print(LinkedLayerDTO.to_json())
+
+# convert the object into a dict
+linked_layer_dto_dict = linked_layer_dto_instance.to_dict()
+# create an instance of LinkedLayerDTO from a dict
+linked_layer_dto_from_dict = LinkedLayerDTO.from_dict(linked_layer_dto_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)
+
+
diff --git a/docs/MandatoryKeysForPagableResponse.md b/docs/MandatoryKeysForPagableResponse.md
index 27c932e..470d7fa 100644
--- a/docs/MandatoryKeysForPagableResponse.md
+++ b/docs/MandatoryKeysForPagableResponse.md
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapContentDTO.md b/docs/MapContentDTO.md
index 5c7f56f..19d0d24 100644
--- a/docs/MapContentDTO.md
+++ b/docs/MapContentDTO.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_content_dto import MapContentDTO
+from cm_python_openapi_sdk.models.map_content_dto import MapContentDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapContentDTOBaseLayer.md b/docs/MapContentDTOBaseLayer.md
index 755a607..74c6617 100644
--- a/docs/MapContentDTOBaseLayer.md
+++ b/docs/MapContentDTOBaseLayer.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_content_dto_base_layer import MapContentDTOBaseLayer
+from cm_python_openapi_sdk.models.map_content_dto_base_layer import MapContentDTOBaseLayer
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapContentDTOOptions.md b/docs/MapContentDTOOptions.md
index 07ea974..24a2527 100644
--- a/docs/MapContentDTOOptions.md
+++ b/docs/MapContentDTOOptions.md
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_content_dto_options import MapContentDTOOptions
+from cm_python_openapi_sdk.models.map_content_dto_options import MapContentDTOOptions
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapContextMenuDTO.md b/docs/MapContextMenuDTO.md
index dace39e..a442b9d 100644
--- a/docs/MapContextMenuDTO.md
+++ b/docs/MapContextMenuDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapContextMenuItemAbstractType.md b/docs/MapContextMenuItemAbstractType.md
index 01b6999..4cb4cc4 100644
--- a/docs/MapContextMenuItemAbstractType.md
+++ b/docs/MapContextMenuItemAbstractType.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
+from cm_python_openapi_sdk.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapDTO.md b/docs/MapDTO.md
index 59eec1d..146eb07 100644
--- a/docs/MapDTO.md
+++ b/docs/MapDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.map_dto import MapDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapOptionsDTO.md b/docs/MapOptionsDTO.md
index 8562da4..60a6bbe 100644
--- a/docs/MapOptionsDTO.md
+++ b/docs/MapOptionsDTO.md
@@ -16,7 +16,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_options_dto import MapOptionsDTO
+from cm_python_openapi_sdk.models.map_options_dto import MapOptionsDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapOptionsDTOCustomTileLayer.md b/docs/MapOptionsDTOCustomTileLayer.md
index c89fa86..e35854b 100644
--- a/docs/MapOptionsDTOCustomTileLayer.md
+++ b/docs/MapOptionsDTOCustomTileLayer.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
+from cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapPagedModelDTO.md b/docs/MapPagedModelDTO.md
index 47ca8bc..aa529cf 100644
--- a/docs/MapPagedModelDTO.md
+++ b/docs/MapPagedModelDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapsApi.md b/docs/MapsApi.md
index 80defdf..7b5a72a 100644
--- a/docs/MapsApi.md
+++ b/docs/MapsApi.md
@@ -1,4 +1,4 @@
-# openapi_client.MapsApi
+# cm_python_openapi_sdk.MapsApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -12,7 +12,7 @@ Method | HTTP request | Description
# **create_map**
-> MapDTO create_map(project_id, map_dto)
+> MapDTO create_map(project_id, map_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Creates new Map.
@@ -23,14 +23,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -40,20 +40,21 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.MapsApi(api_client)
+ api_instance = cm_python_openapi_sdk.MapsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
- map_dto = openapi_client.MapDTO() # MapDTO |
+ map_dto = cm_python_openapi_sdk.MapDTO() # MapDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Creates new Map.
- api_response = api_instance.create_map(project_id, map_dto)
+ api_response = api_instance.create_map(project_id, map_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of MapsApi->create_map:\n")
pprint(api_response)
except Exception as e:
@@ -69,6 +70,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Id of the project |
**map_dto** | [**MapDTO**](MapDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
@@ -105,13 +107,13 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -121,14 +123,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.MapsApi(api_client)
+ api_instance = cm_python_openapi_sdk.MapsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the map
@@ -181,14 +183,14 @@ Returns paged collection of all Maps in a project.
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -198,14 +200,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.MapsApi(api_client)
+ api_instance = cm_python_openapi_sdk.MapsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
page = 0 # int | Number of the page (optional) (default to 0)
size = 100 # int | The count of records to return for one page (optional) (default to 100)
@@ -263,14 +265,14 @@ Gets map by id
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -280,14 +282,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.MapsApi(api_client)
+ api_instance = cm_python_openapi_sdk.MapsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the map
@@ -333,7 +335,7 @@ Name | Type | Description | Notes
[[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)
# **update_map_by_id**
-> MapDTO update_map_by_id(project_id, id, if_match, map_dto)
+> MapDTO update_map_by_id(project_id, id, if_match, map_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Updates map by id
@@ -344,14 +346,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.map_dto import MapDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -361,22 +363,23 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.MapsApi(api_client)
+ api_instance = cm_python_openapi_sdk.MapsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the map
if_match = 'if_match_example' # str | ETag value used for conditional updates
- map_dto = openapi_client.MapDTO() # MapDTO |
+ map_dto = cm_python_openapi_sdk.MapDTO() # MapDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Updates map by id
- api_response = api_instance.update_map_by_id(project_id, id, if_match, map_dto)
+ api_response = api_instance.update_map_by_id(project_id, id, if_match, map_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of MapsApi->update_map_by_id:\n")
pprint(api_response)
except Exception as e:
@@ -394,6 +397,7 @@ Name | Type | Description | Notes
**id** | **str**| Id of the map |
**if_match** | **str**| ETag value used for conditional updates |
**map_dto** | [**MapDTO**](MapDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
diff --git a/docs/MapyczOrtophotoDTO.md b/docs/MapyczOrtophotoDTO.md
index 8b87c2b..d5cad58 100644
--- a/docs/MapyczOrtophotoDTO.md
+++ b/docs/MapyczOrtophotoDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
+from cm_python_openapi_sdk.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MapyczPanoramaDTO.md b/docs/MapyczPanoramaDTO.md
index 68f7bfe..0d30951 100644
--- a/docs/MapyczPanoramaDTO.md
+++ b/docs/MapyczPanoramaDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.mapycz_panorama_dto import MapyczPanoramaDTO
+from cm_python_openapi_sdk.models.mapycz_panorama_dto import MapyczPanoramaDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MarkerContentDTO.md b/docs/MarkerContentDTO.md
new file mode 100644
index 0000000..9fed67d
--- /dev/null
+++ b/docs/MarkerContentDTO.md
@@ -0,0 +1,30 @@
+# MarkerContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**style** | **str** | |
+**property_filters** | [**List[MarkerContentDTOPropertyFiltersInner]**](MarkerContentDTOPropertyFiltersInner.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_content_dto import MarkerContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerContentDTO from a JSON string
+marker_content_dto_instance = MarkerContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerContentDTO.to_json())
+
+# convert the object into a dict
+marker_content_dto_dict = marker_content_dto_instance.to_dict()
+# create an instance of MarkerContentDTO from a dict
+marker_content_dto_from_dict = MarkerContentDTO.from_dict(marker_content_dto_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)
+
+
diff --git a/docs/MarkerContentDTOPropertyFiltersInner.md b/docs/MarkerContentDTOPropertyFiltersInner.md
new file mode 100644
index 0000000..d855f6e
--- /dev/null
+++ b/docs/MarkerContentDTOPropertyFiltersInner.md
@@ -0,0 +1,31 @@
+# MarkerContentDTOPropertyFiltersInner
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**property_name** | **str** | |
+**value** | **List[object]** | |
+**operator** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_content_dto_property_filters_inner import MarkerContentDTOPropertyFiltersInner
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerContentDTOPropertyFiltersInner from a JSON string
+marker_content_dto_property_filters_inner_instance = MarkerContentDTOPropertyFiltersInner.from_json(json)
+# print the JSON string representation of the object
+print(MarkerContentDTOPropertyFiltersInner.to_json())
+
+# convert the object into a dict
+marker_content_dto_property_filters_inner_dict = marker_content_dto_property_filters_inner_instance.to_dict()
+# create an instance of MarkerContentDTOPropertyFiltersInner from a dict
+marker_content_dto_property_filters_inner_from_dict = MarkerContentDTOPropertyFiltersInner.from_dict(marker_content_dto_property_filters_inner_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)
+
+
diff --git a/docs/MarkerDTO.md b/docs/MarkerDTO.md
new file mode 100644
index 0000000..9c29d56
--- /dev/null
+++ b/docs/MarkerDTO.md
@@ -0,0 +1,34 @@
+# MarkerDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | |
+**description** | **str** | | [optional]
+**content** | [**MarkerContentDTO**](MarkerContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerDTO from a JSON string
+marker_dto_instance = MarkerDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerDTO.to_json())
+
+# convert the object into a dict
+marker_dto_dict = marker_dto_instance.to_dict()
+# create an instance of MarkerDTO from a dict
+marker_dto_from_dict = MarkerDTO.from_dict(marker_dto_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)
+
+
diff --git a/docs/MarkerLinkDTO.md b/docs/MarkerLinkDTO.md
new file mode 100644
index 0000000..058fe2e
--- /dev/null
+++ b/docs/MarkerLinkDTO.md
@@ -0,0 +1,31 @@
+# MarkerLinkDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**marker** | **str** | |
+**visible** | **bool** | | [default to True]
+**add_on_expand** | **bool** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_link_dto import MarkerLinkDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerLinkDTO from a JSON string
+marker_link_dto_instance = MarkerLinkDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerLinkDTO.to_json())
+
+# convert the object into a dict
+marker_link_dto_dict = marker_link_dto_instance.to_dict()
+# create an instance of MarkerLinkDTO from a dict
+marker_link_dto_from_dict = MarkerLinkDTO.from_dict(marker_link_dto_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)
+
+
diff --git a/docs/MarkerPagedModelDTO.md b/docs/MarkerPagedModelDTO.md
new file mode 100644
index 0000000..23d130b
--- /dev/null
+++ b/docs/MarkerPagedModelDTO.md
@@ -0,0 +1,31 @@
+# MarkerPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[MarkerDTO]**](MarkerDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerPagedModelDTO from a JSON string
+marker_paged_model_dto_instance = MarkerPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerPagedModelDTO.to_json())
+
+# convert the object into a dict
+marker_paged_model_dto_dict = marker_paged_model_dto_instance.to_dict()
+# create an instance of MarkerPagedModelDTO from a dict
+marker_paged_model_dto_from_dict = MarkerPagedModelDTO.from_dict(marker_paged_model_dto_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)
+
+
diff --git a/docs/MarkerSelectorContentDTO.md b/docs/MarkerSelectorContentDTO.md
new file mode 100644
index 0000000..88f73ac
--- /dev/null
+++ b/docs/MarkerSelectorContentDTO.md
@@ -0,0 +1,34 @@
+# MarkerSelectorContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**categories** | [**List[CategoryDTO]**](CategoryDTO.md) | | [optional]
+**granularity_categories** | [**List[GranularityCategoryDTO]**](GranularityCategoryDTO.md) | | [optional]
+**hide_granularity** | **bool** | | [optional]
+**keep_filtered** | [**MarkerSelectorContentDTOKeepFiltered**](MarkerSelectorContentDTOKeepFiltered.md) | | [optional]
+**show_indicator_values_on_map** | **bool** | | [optional]
+**cluster_markers** | **bool** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_selector_content_dto import MarkerSelectorContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerSelectorContentDTO from a JSON string
+marker_selector_content_dto_instance = MarkerSelectorContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerSelectorContentDTO.to_json())
+
+# convert the object into a dict
+marker_selector_content_dto_dict = marker_selector_content_dto_instance.to_dict()
+# create an instance of MarkerSelectorContentDTO from a dict
+marker_selector_content_dto_from_dict = MarkerSelectorContentDTO.from_dict(marker_selector_content_dto_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)
+
+
diff --git a/docs/MarkerSelectorContentDTOKeepFiltered.md b/docs/MarkerSelectorContentDTOKeepFiltered.md
new file mode 100644
index 0000000..3e2160c
--- /dev/null
+++ b/docs/MarkerSelectorContentDTOKeepFiltered.md
@@ -0,0 +1,30 @@
+# MarkerSelectorContentDTOKeepFiltered
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**granularity** | **bool** | | [optional]
+**markers** | **bool** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered import MarkerSelectorContentDTOKeepFiltered
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerSelectorContentDTOKeepFiltered from a JSON string
+marker_selector_content_dto_keep_filtered_instance = MarkerSelectorContentDTOKeepFiltered.from_json(json)
+# print the JSON string representation of the object
+print(MarkerSelectorContentDTOKeepFiltered.to_json())
+
+# convert the object into a dict
+marker_selector_content_dto_keep_filtered_dict = marker_selector_content_dto_keep_filtered_instance.to_dict()
+# create an instance of MarkerSelectorContentDTOKeepFiltered from a dict
+marker_selector_content_dto_keep_filtered_from_dict = MarkerSelectorContentDTOKeepFiltered.from_dict(marker_selector_content_dto_keep_filtered_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)
+
+
diff --git a/docs/MarkerSelectorDTO.md b/docs/MarkerSelectorDTO.md
new file mode 100644
index 0000000..f062cee
--- /dev/null
+++ b/docs/MarkerSelectorDTO.md
@@ -0,0 +1,34 @@
+# MarkerSelectorDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**MarkerSelectorContentDTO**](MarkerSelectorContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerSelectorDTO from a JSON string
+marker_selector_dto_instance = MarkerSelectorDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerSelectorDTO.to_json())
+
+# convert the object into a dict
+marker_selector_dto_dict = marker_selector_dto_instance.to_dict()
+# create an instance of MarkerSelectorDTO from a dict
+marker_selector_dto_from_dict = MarkerSelectorDTO.from_dict(marker_selector_dto_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)
+
+
diff --git a/docs/MarkerSelectorPagedModelDTO.md b/docs/MarkerSelectorPagedModelDTO.md
new file mode 100644
index 0000000..e148d44
--- /dev/null
+++ b/docs/MarkerSelectorPagedModelDTO.md
@@ -0,0 +1,31 @@
+# MarkerSelectorPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[MarkerSelectorDTO]**](MarkerSelectorDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MarkerSelectorPagedModelDTO from a JSON string
+marker_selector_paged_model_dto_instance = MarkerSelectorPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(MarkerSelectorPagedModelDTO.to_json())
+
+# convert the object into a dict
+marker_selector_paged_model_dto_dict = marker_selector_paged_model_dto_instance.to_dict()
+# create an instance of MarkerSelectorPagedModelDTO from a dict
+marker_selector_paged_model_dto_from_dict = MarkerSelectorPagedModelDTO.from_dict(marker_selector_paged_model_dto_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)
+
+
diff --git a/docs/MarkerSelectorsApi.md b/docs/MarkerSelectorsApi.md
new file mode 100644
index 0000000..c4c6386
--- /dev/null
+++ b/docs/MarkerSelectorsApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.MarkerSelectorsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_marker_selector**](MarkerSelectorsApi.md#create_marker_selector) | **POST** /projects/{projectId}/md/markerSelectors | Creates new Marker Selector.
+[**delete_marker_selector_by_id**](MarkerSelectorsApi.md#delete_marker_selector_by_id) | **DELETE** /projects/{projectId}/md/markerSelectors/{id} | Deletes marker selector by id
+[**get_all_marker_selectors**](MarkerSelectorsApi.md#get_all_marker_selectors) | **GET** /projects/{projectId}/md/markerSelectors | Returns paged collection of all Marker Selectors in a project.
+[**get_marker_selector_by_id**](MarkerSelectorsApi.md#get_marker_selector_by_id) | **GET** /projects/{projectId}/md/markerSelectors/{id} | Gets marker selector by id
+[**update_marker_selector_by_id**](MarkerSelectorsApi.md#update_marker_selector_by_id) | **PUT** /projects/{projectId}/md/markerSelectors/{id} | Updates marker selector by id
+
+
+# **create_marker_selector**
+> MarkerSelectorDTO create_marker_selector(project_id, marker_selector_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new Marker Selector.
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkerSelectorsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ marker_selector_dto = cm_python_openapi_sdk.MarkerSelectorDTO() # MarkerSelectorDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new Marker Selector.
+ api_response = api_instance.create_marker_selector(project_id, marker_selector_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MarkerSelectorsApi->create_marker_selector:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkerSelectorsApi->create_marker_selector: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **marker_selector_dto** | [**MarkerSelectorDTO**](MarkerSelectorDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MarkerSelectorDTO**](MarkerSelectorDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Marker selector was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Marker selector with the same name or id already exists | - |
+
+[[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)
+
+# **delete_marker_selector_by_id**
+> delete_marker_selector_by_id(project_id, id)
+
+Deletes marker selector by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkerSelectorsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker selector
+
+ try:
+ # Deletes marker selector by id
+ api_instance.delete_marker_selector_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling MarkerSelectorsApi->delete_marker_selector_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker selector |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Marker selector was successfully deleted | - |
+**404** | Marker selector not found | - |
+
+[[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)
+
+# **get_all_marker_selectors**
+> MarkerSelectorPagedModelDTO get_all_marker_selectors(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Marker Selectors in a project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkerSelectorsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Marker Selectors in a project.
+ api_response = api_instance.get_all_marker_selectors(project_id, page=page, size=size, sort=sort)
+ print("The response of MarkerSelectorsApi->get_all_marker_selectors:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkerSelectorsApi->get_all_marker_selectors: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**MarkerSelectorPagedModelDTO**](MarkerSelectorPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_marker_selector_by_id**
+> MarkerSelectorDTO get_marker_selector_by_id(project_id, id)
+
+Gets marker selector by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkerSelectorsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker selector
+
+ try:
+ # Gets marker selector by id
+ api_response = api_instance.get_marker_selector_by_id(project_id, id)
+ print("The response of MarkerSelectorsApi->get_marker_selector_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkerSelectorsApi->get_marker_selector_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker selector |
+
+### Return type
+
+[**MarkerSelectorDTO**](MarkerSelectorDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Marker selector not found | - |
+
+[[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)
+
+# **update_marker_selector_by_id**
+> MarkerSelectorDTO update_marker_selector_by_id(project_id, id, if_match, marker_selector_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates marker selector by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkerSelectorsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker selector
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ marker_selector_dto = cm_python_openapi_sdk.MarkerSelectorDTO() # MarkerSelectorDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates marker selector by id
+ api_response = api_instance.update_marker_selector_by_id(project_id, id, if_match, marker_selector_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MarkerSelectorsApi->update_marker_selector_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkerSelectorsApi->update_marker_selector_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker selector |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **marker_selector_dto** | [**MarkerSelectorDTO**](MarkerSelectorDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MarkerSelectorDTO**](MarkerSelectorDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Marker selector was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Marker selector not found | - |
+**409** | Marker selector with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/MarkersApi.md b/docs/MarkersApi.md
new file mode 100644
index 0000000..3050d48
--- /dev/null
+++ b/docs/MarkersApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.MarkersApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_marker**](MarkersApi.md#create_marker) | **POST** /projects/{projectId}/md/markers | Creates new Marker.
+[**delete_marker_by_id**](MarkersApi.md#delete_marker_by_id) | **DELETE** /projects/{projectId}/md/markers/{id} | Deletes marker by id
+[**get_all_markers**](MarkersApi.md#get_all_markers) | **GET** /projects/{projectId}/md/markers | Returns paged collection of all Markers in a project.
+[**get_marker_by_id**](MarkersApi.md#get_marker_by_id) | **GET** /projects/{projectId}/md/markers/{id} | Gets marker by id
+[**update_marker_by_id**](MarkersApi.md#update_marker_by_id) | **PUT** /projects/{projectId}/md/markers/{id} | Updates marker by id
+
+
+# **create_marker**
+> MarkerDTO create_marker(project_id, marker_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new Marker.
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ marker_dto = cm_python_openapi_sdk.MarkerDTO() # MarkerDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new Marker.
+ api_response = api_instance.create_marker(project_id, marker_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MarkersApi->create_marker:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkersApi->create_marker: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **marker_dto** | [**MarkerDTO**](MarkerDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MarkerDTO**](MarkerDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Marker was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Marker with the same name or id already exists | - |
+
+[[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)
+
+# **delete_marker_by_id**
+> delete_marker_by_id(project_id, id)
+
+Deletes marker by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker
+
+ try:
+ # Deletes marker by id
+ api_instance.delete_marker_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling MarkersApi->delete_marker_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Marker was successfully deleted | - |
+**404** | Marker not found | - |
+
+[[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)
+
+# **get_all_markers**
+> MarkerPagedModelDTO get_all_markers(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Markers in a project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Markers in a project.
+ api_response = api_instance.get_all_markers(project_id, page=page, size=size, sort=sort)
+ print("The response of MarkersApi->get_all_markers:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkersApi->get_all_markers: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**MarkerPagedModelDTO**](MarkerPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_marker_by_id**
+> MarkerDTO get_marker_by_id(project_id, id)
+
+Gets marker by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker
+
+ try:
+ # Gets marker by id
+ api_response = api_instance.get_marker_by_id(project_id, id)
+ print("The response of MarkersApi->get_marker_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkersApi->get_marker_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker |
+
+### Return type
+
+[**MarkerDTO**](MarkerDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Marker not found | - |
+
+[[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)
+
+# **update_marker_by_id**
+> MarkerDTO update_marker_by_id(project_id, id, if_match, marker_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates marker by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MarkersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the marker
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ marker_dto = cm_python_openapi_sdk.MarkerDTO() # MarkerDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates marker by id
+ api_response = api_instance.update_marker_by_id(project_id, id, if_match, marker_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MarkersApi->update_marker_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MarkersApi->update_marker_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the marker |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **marker_dto** | [**MarkerDTO**](MarkerDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MarkerDTO**](MarkerDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Marker was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Marker not found | - |
+**409** | Marker with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/MaxValueDTO.md b/docs/MaxValueDTO.md
index 891f8f7..9f5b79d 100644
--- a/docs/MaxValueDTO.md
+++ b/docs/MaxValueDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.max_value_dto import MaxValueDTO
+from cm_python_openapi_sdk.models.max_value_dto import MaxValueDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MeasureDTO.md b/docs/MeasureDTO.md
index c5c87c7..05a75ec 100644
--- a/docs/MeasureDTO.md
+++ b/docs/MeasureDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.measure_dto import MeasureDTO
+from cm_python_openapi_sdk.models.measure_dto import MeasureDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/MembersApi.md b/docs/MembersApi.md
new file mode 100644
index 0000000..473271c
--- /dev/null
+++ b/docs/MembersApi.md
@@ -0,0 +1,424 @@
+# cm_python_openapi_sdk.MembersApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**add_project_member**](MembersApi.md#add_project_member) | **POST** /projects/{projectId}/members | Add new project member and assign a role.
+[**delete_membership**](MembersApi.md#delete_membership) | **DELETE** /projects/{projectId}/members/{membershipId} | Deletes membership of user in project.
+[**get_membership_by_id**](MembersApi.md#get_membership_by_id) | **GET** /projects/{projectId}/members/{membershipId} | Get detail of user membership in project by membership id.
+[**get_project_members**](MembersApi.md#get_project_members) | **GET** /projects/{projectId}/members | Get list of project members.
+[**update_membership**](MembersApi.md#update_membership) | **PUT** /projects/{projectId}/members/{membershipId} | Update membership by changing role or status in project.
+
+
+# **add_project_member**
+> MembershipDTO add_project_member(project_id, create_membership_dto)
+
+Add new project member and assign a role.
+
+The user is added into the project without any cooperation (acknowledgement) with invited user. See the Project Invitation resource too. It allows to invite a new member by email address and sends an invitation email. **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MembersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ create_membership_dto = cm_python_openapi_sdk.CreateMembershipDTO() # CreateMembershipDTO |
+
+ try:
+ # Add new project member and assign a role.
+ api_response = api_instance.add_project_member(project_id, create_membership_dto)
+ print("The response of MembersApi->add_project_member:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MembersApi->add_project_member: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **create_membership_dto** | [**CreateMembershipDTO**](CreateMembershipDTO.md)| |
+
+### Return type
+
+[**MembershipDTO**](MembershipDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+
+[[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)
+
+# **delete_membership**
+> delete_membership(project_id, membership_id)
+
+Deletes membership of user in project.
+
+The user will be not able to access the project anymore. **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MembersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ membership_id = 'membership_id_example' # str | Id of the membership
+
+ try:
+ # Deletes membership of user in project.
+ api_instance.delete_membership(project_id, membership_id)
+ except Exception as e:
+ print("Exception when calling MembersApi->delete_membership: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **membership_id** | **str**| Id of the membership |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Membership was successfully deleted | - |
+**400** | Code 400005 means delete of the last project ADMIN denied. There always needs to be at least one user in ADMIN role in each project. | - |
+
+[[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)
+
+# **get_membership_by_id**
+> MembershipDTO get_membership_by_id(project_id, membership_id)
+
+Get detail of user membership in project by membership id.
+
+**Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MembersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ membership_id = 'membership_id_example' # str | Id of the membership
+
+ try:
+ # Get detail of user membership in project by membership id.
+ api_response = api_instance.get_membership_by_id(project_id, membership_id)
+ print("The response of MembersApi->get_membership_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MembersApi->get_membership_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **membership_id** | **str**| Id of the membership |
+
+### Return type
+
+[**MembershipDTO**](MembershipDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_project_members**
+> GetProjectMembers200Response get_project_members(project_id, size=size, page=page, sort=sort, expand=expand, account_id=account_id)
+
+Get list of project members.
+
+See list of user role: https://docs.clevermaps.io/docs/projects-and-users#UserrolesandPermissions-Userroles **Security:** Restricted to ADMIN project role, unless `accountId` is provided. See Constraints for more info Constraints: - If `accountId` is provided, other query parameters (`size`, `sort`, etc.) must NOT be used. Also endpoint will return single member.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MembersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ page = 0 # int | Number of the page (optional) (default to 0)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+ expand = 'expand_example' # str | Expand selected attribute(s) to minimalize roundtrips. (optional)
+ account_id = 'account_id_example' # str | Id of the account, used in query parameters (optional)
+
+ try:
+ # Get list of project members.
+ api_response = api_instance.get_project_members(project_id, size=size, page=page, sort=sort, expand=expand, account_id=account_id)
+ print("The response of MembersApi->get_project_members:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MembersApi->get_project_members: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+ **expand** | **str**| Expand selected attribute(s) to minimalize roundtrips. | [optional]
+ **account_id** | **str**| Id of the account, used in query parameters | [optional]
+
+### Return type
+
+[**GetProjectMembers200Response**](GetProjectMembers200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **update_membership**
+> MembershipDTO update_membership(project_id, membership_id, update_membership)
+
+Update membership by changing role or status in project.
+
+**Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MembersApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ membership_id = 'membership_id_example' # str | Id of the membership
+ update_membership = cm_python_openapi_sdk.UpdateMembership() # UpdateMembership |
+
+ try:
+ # Update membership by changing role or status in project.
+ api_response = api_instance.update_membership(project_id, membership_id, update_membership)
+ print("The response of MembersApi->update_membership:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MembersApi->update_membership: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **membership_id** | **str**| Id of the membership |
+ **update_membership** | [**UpdateMembership**](UpdateMembership.md)| |
+
+### Return type
+
+[**MembershipDTO**](MembershipDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+**400** | Code 400005 means update of the last project ADMIN denied. There always needs to be at least one user in ADMIN role in each project. | - |
+
+[[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)
+
diff --git a/docs/MembershipDTO.md b/docs/MembershipDTO.md
new file mode 100644
index 0000000..252ce14
--- /dev/null
+++ b/docs/MembershipDTO.md
@@ -0,0 +1,36 @@
+# MembershipDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**account_id** | **str** | | [optional]
+**status** | **str** | |
+**role** | **str** | |
+**created_at** | **str** | | [optional]
+**modified_at** | **str** | | [optional]
+**account** | **object** | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MembershipDTO from a JSON string
+membership_dto_instance = MembershipDTO.from_json(json)
+# print the JSON string representation of the object
+print(MembershipDTO.to_json())
+
+# convert the object into a dict
+membership_dto_dict = membership_dto_instance.to_dict()
+# create an instance of MembershipDTO from a dict
+membership_dto_from_dict = MembershipDTO.from_dict(membership_dto_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)
+
+
diff --git a/docs/MembershipPagedModelDTO.md b/docs/MembershipPagedModelDTO.md
new file mode 100644
index 0000000..2fe08c6
--- /dev/null
+++ b/docs/MembershipPagedModelDTO.md
@@ -0,0 +1,31 @@
+# MembershipPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[MembershipDTO]**](MembershipDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.membership_paged_model_dto import MembershipPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MembershipPagedModelDTO from a JSON string
+membership_paged_model_dto_instance = MembershipPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(MembershipPagedModelDTO.to_json())
+
+# convert the object into a dict
+membership_paged_model_dto_dict = membership_paged_model_dto_instance.to_dict()
+# create an instance of MembershipPagedModelDTO from a dict
+membership_paged_model_dto_from_dict = MembershipPagedModelDTO.from_dict(membership_paged_model_dto_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)
+
+
diff --git a/docs/MetricDTO.md b/docs/MetricDTO.md
new file mode 100644
index 0000000..86b9af2
--- /dev/null
+++ b/docs/MetricDTO.md
@@ -0,0 +1,34 @@
+# MetricDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**DwhQueryFunctionTypes**](DwhQueryFunctionTypes.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MetricDTO from a JSON string
+metric_dto_instance = MetricDTO.from_json(json)
+# print the JSON string representation of the object
+print(MetricDTO.to_json())
+
+# convert the object into a dict
+metric_dto_dict = metric_dto_instance.to_dict()
+# create an instance of MetricDTO from a dict
+metric_dto_from_dict = MetricDTO.from_dict(metric_dto_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)
+
+
diff --git a/docs/MetricPagedModelDTO.md b/docs/MetricPagedModelDTO.md
new file mode 100644
index 0000000..a8aeb20
--- /dev/null
+++ b/docs/MetricPagedModelDTO.md
@@ -0,0 +1,31 @@
+# MetricPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[MetricDTO]**](MetricDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MetricPagedModelDTO from a JSON string
+metric_paged_model_dto_instance = MetricPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(MetricPagedModelDTO.to_json())
+
+# convert the object into a dict
+metric_paged_model_dto_dict = metric_paged_model_dto_instance.to_dict()
+# create an instance of MetricPagedModelDTO from a dict
+metric_paged_model_dto_from_dict = MetricPagedModelDTO.from_dict(metric_paged_model_dto_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)
+
+
diff --git a/docs/MetricsApi.md b/docs/MetricsApi.md
new file mode 100644
index 0000000..697a8e6
--- /dev/null
+++ b/docs/MetricsApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.MetricsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_metric**](MetricsApi.md#create_metric) | **POST** /projects/{projectId}/md/metrics | Creates new metric.
+[**delete_metric_by_id**](MetricsApi.md#delete_metric_by_id) | **DELETE** /projects/{projectId}/md/metrics/{id} | Deletes metric by id
+[**get_all_metrics**](MetricsApi.md#get_all_metrics) | **GET** /projects/{projectId}/md/metrics | Returns paged collection of all Metrics in a project.
+[**get_metric_by_id**](MetricsApi.md#get_metric_by_id) | **GET** /projects/{projectId}/md/metrics/{id} | Gets metric by id
+[**update_metric_by_id**](MetricsApi.md#update_metric_by_id) | **PUT** /projects/{projectId}/md/metrics/{id} | Updates metric by id
+
+
+# **create_metric**
+> MetricDTO create_metric(project_id, metric_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new metric.
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MetricsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ metric_dto = cm_python_openapi_sdk.MetricDTO() # MetricDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new metric.
+ api_response = api_instance.create_metric(project_id, metric_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MetricsApi->create_metric:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MetricsApi->create_metric: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **metric_dto** | [**MetricDTO**](MetricDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MetricDTO**](MetricDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Metric was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Metric with the same name or id already exists | - |
+
+[[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)
+
+# **delete_metric_by_id**
+> delete_metric_by_id(project_id, id)
+
+Deletes metric by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MetricsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the metric
+
+ try:
+ # Deletes metric by id
+ api_instance.delete_metric_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling MetricsApi->delete_metric_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the metric |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Metric was successfully deleted | - |
+**404** | Metric not found | - |
+
+[[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)
+
+# **get_all_metrics**
+> MetricPagedModelDTO get_all_metrics(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Metrics in a project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MetricsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Metrics in a project.
+ api_response = api_instance.get_all_metrics(project_id, page=page, size=size, sort=sort)
+ print("The response of MetricsApi->get_all_metrics:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MetricsApi->get_all_metrics: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**MetricPagedModelDTO**](MetricPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_metric_by_id**
+> MetricDTO get_metric_by_id(project_id, id)
+
+Gets metric by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MetricsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the metric
+
+ try:
+ # Gets metric by id
+ api_response = api_instance.get_metric_by_id(project_id, id)
+ print("The response of MetricsApi->get_metric_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MetricsApi->get_metric_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the metric |
+
+### Return type
+
+[**MetricDTO**](MetricDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Metric not found | - |
+
+[[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)
+
+# **update_metric_by_id**
+> MetricDTO update_metric_by_id(project_id, id, if_match, metric_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates metric by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.MetricsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the metric
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ metric_dto = cm_python_openapi_sdk.MetricDTO() # MetricDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates metric by id
+ api_response = api_instance.update_metric_by_id(project_id, id, if_match, metric_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of MetricsApi->update_metric_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling MetricsApi->update_metric_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the metric |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **metric_dto** | [**MetricDTO**](MetricDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**MetricDTO**](MetricDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Metric was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Metric not found | - |
+**409** | Metric with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/MultiSelectFilterDTO.md b/docs/MultiSelectFilterDTO.md
index b0a5ed0..eb62100 100644
--- a/docs/MultiSelectFilterDTO.md
+++ b/docs/MultiSelectFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.multi_select_filter_dto import MultiSelectFilterDTO
+from cm_python_openapi_sdk.models.multi_select_filter_dto import MultiSelectFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/OrderByDTO.md b/docs/OrderByDTO.md
index 267852c..1d553d2 100644
--- a/docs/OrderByDTO.md
+++ b/docs/OrderByDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/OrganizationPagedModelDTO.md b/docs/OrganizationPagedModelDTO.md
new file mode 100644
index 0000000..c9f7389
--- /dev/null
+++ b/docs/OrganizationPagedModelDTO.md
@@ -0,0 +1,31 @@
+# OrganizationPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[OrganizationResponseDTO]**](OrganizationResponseDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationPagedModelDTO from a JSON string
+organization_paged_model_dto_instance = OrganizationPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationPagedModelDTO.to_json())
+
+# convert the object into a dict
+organization_paged_model_dto_dict = organization_paged_model_dto_instance.to_dict()
+# create an instance of OrganizationPagedModelDTO from a dict
+organization_paged_model_dto_from_dict = OrganizationPagedModelDTO.from_dict(organization_paged_model_dto_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)
+
+
diff --git a/docs/OrganizationResponseDTO.md b/docs/OrganizationResponseDTO.md
new file mode 100644
index 0000000..1dde837
--- /dev/null
+++ b/docs/OrganizationResponseDTO.md
@@ -0,0 +1,35 @@
+# OrganizationResponseDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**title** | **str** | | [optional]
+**invitation_email** | **str** | | [optional]
+**dwh_cluster_id** | **str** | | [optional]
+**created_at** | **str** | | [optional]
+**modified_at** | **str** | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OrganizationResponseDTO from a JSON string
+organization_response_dto_instance = OrganizationResponseDTO.from_json(json)
+# print the JSON string representation of the object
+print(OrganizationResponseDTO.to_json())
+
+# convert the object into a dict
+organization_response_dto_dict = organization_response_dto_instance.to_dict()
+# create an instance of OrganizationResponseDTO from a dict
+organization_response_dto_from_dict = OrganizationResponseDTO.from_dict(organization_response_dto_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)
+
+
diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md
new file mode 100644
index 0000000..7bbaf2b
--- /dev/null
+++ b/docs/OrganizationsApi.md
@@ -0,0 +1,404 @@
+# cm_python_openapi_sdk.OrganizationsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_organization**](OrganizationsApi.md#create_organization) | **POST** /organizations | Creates a new organization.
+[**delete_organization**](OrganizationsApi.md#delete_organization) | **DELETE** /organizations/{organizationId} | Delete an organization.
+[**get_organization_by_id**](OrganizationsApi.md#get_organization_by_id) | **GET** /organizations/{organizationId} | Get organization detail.
+[**get_organizations**](OrganizationsApi.md#get_organizations) | **GET** /organizations | Get all organizations available for authenticated user.
+[**update_organization**](OrganizationsApi.md#update_organization) | **PUT** /organizations/{organizationId} | Update organization.
+
+
+# **create_organization**
+> OrganizationPagedModelDTO create_organization(create_organization_dto)
+
+Creates a new organization.
+
+**Security:** Creating of organization is restricted to CleverMaps platform administrators.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.OrganizationsApi(api_client)
+ create_organization_dto = cm_python_openapi_sdk.CreateOrganizationDTO() # CreateOrganizationDTO |
+
+ try:
+ # Creates a new organization.
+ api_response = api_instance.create_organization(create_organization_dto)
+ print("The response of OrganizationsApi->create_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->create_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_organization_dto** | [**CreateOrganizationDTO**](CreateOrganizationDTO.md)| |
+
+### Return type
+
+[**OrganizationPagedModelDTO**](OrganizationPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization was successfully created | - |
+
+[[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)
+
+# **delete_organization**
+> delete_organization(organization_id)
+
+Delete an organization.
+
+**Security:** Deleting of organization is restricted to CleverMaps platform administrators.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.OrganizationsApi(api_client)
+ organization_id = 'organization_id_example' # str | Id of the organization
+
+ try:
+ # Delete an organization.
+ api_instance.delete_organization(organization_id)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->delete_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_id** | **str**| Id of the organization |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Organization was successfully deleted | - |
+
+[[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)
+
+# **get_organization_by_id**
+> OrganizationResponseDTO get_organization_by_id(organization_id)
+
+Get organization detail.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.OrganizationsApi(api_client)
+ organization_id = 'organization_id_example' # str | Id of the organization
+
+ try:
+ # Get organization detail.
+ api_response = api_instance.get_organization_by_id(organization_id)
+ print("The response of OrganizationsApi->get_organization_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organization_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_id** | **str**| Id of the organization |
+
+### Return type
+
+[**OrganizationResponseDTO**](OrganizationResponseDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_organizations**
+> GetOrganizations200Response get_organizations(page=page, size=size, project_id=project_id)
+
+Get all organizations available for authenticated user.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.OrganizationsApi(api_client)
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ project_id = 'project_id_example' # str | Id of the project, used in query parameters (optional)
+
+ try:
+ # Get all organizations available for authenticated user.
+ api_response = api_instance.get_organizations(page=page, size=size, project_id=project_id)
+ print("The response of OrganizationsApi->get_organizations:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->get_organizations: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **project_id** | **str**| Id of the project, used in query parameters | [optional]
+
+### Return type
+
+[**GetOrganizations200Response**](GetOrganizations200Response.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **update_organization**
+> OrganizationResponseDTO update_organization(organization_id, update_organization_dto)
+
+Update organization.
+
+**Security:** Updating of organization is restricted to CleverMaps platform administrators.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.OrganizationsApi(api_client)
+ organization_id = 'organization_id_example' # str | Id of the organization
+ update_organization_dto = cm_python_openapi_sdk.UpdateOrganizationDTO() # UpdateOrganizationDTO |
+
+ try:
+ # Update organization.
+ api_response = api_instance.update_organization(organization_id, update_organization_dto)
+ print("The response of OrganizationsApi->update_organization:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling OrganizationsApi->update_organization: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_id** | **str**| Id of the organization |
+ **update_organization_dto** | [**UpdateOrganizationDTO**](UpdateOrganizationDTO.md)| |
+
+### Return type
+
+[**OrganizationResponseDTO**](OrganizationResponseDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Organization was successfully updated | - |
+
+[[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)
+
diff --git a/docs/OutputDTO.md b/docs/OutputDTO.md
new file mode 100644
index 0000000..40b049b
--- /dev/null
+++ b/docs/OutputDTO.md
@@ -0,0 +1,32 @@
+# OutputDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**format** | **str** | |
+**filename** | **str** | | [optional]
+**header** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.output_dto import OutputDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of OutputDTO from a JSON string
+output_dto_instance = OutputDTO.from_json(json)
+# print the JSON string representation of the object
+print(OutputDTO.to_json())
+
+# convert the object into a dict
+output_dto_dict = output_dto_instance.to_dict()
+# create an instance of OutputDTO from a dict
+output_dto_from_dict = OutputDTO.from_dict(output_dto_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)
+
+
diff --git a/docs/ProjectInvitationsApi.md b/docs/ProjectInvitationsApi.md
new file mode 100644
index 0000000..2ec3764
--- /dev/null
+++ b/docs/ProjectInvitationsApi.md
@@ -0,0 +1,424 @@
+# cm_python_openapi_sdk.ProjectInvitationsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_invitation**](ProjectInvitationsApi.md#create_invitation) | **POST** /projects/{projectId}/invitations | Create new invitation to the project for a user.
+[**delete_invitation**](ProjectInvitationsApi.md#delete_invitation) | **DELETE** /projects/{projectId}/invitations/{invitationId} | Delete invitation.
+[**get_invitation_by_id**](ProjectInvitationsApi.md#get_invitation_by_id) | **GET** /projects/{projectId}/invitations/{invitationId} | Get detail of an invitation.
+[**get_invitations**](ProjectInvitationsApi.md#get_invitations) | **GET** /projects/{projectId}/invitations | Get list of project invitations.
+[**update_invitation**](ProjectInvitationsApi.md#update_invitation) | **PUT** /projects/{projectId}/invitations/{invitationId} | Update invitation.
+
+
+# **create_invitation**
+> InvitationDTO create_invitation(project_id, create_invitation)
+
+Create new invitation to the project for a user.
+
+User is specified by email address and invitation contains a project role. **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectInvitationsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ create_invitation = cm_python_openapi_sdk.CreateInvitation() # CreateInvitation |
+
+ try:
+ # Create new invitation to the project for a user.
+ api_response = api_instance.create_invitation(project_id, create_invitation)
+ print("The response of ProjectInvitationsApi->create_invitation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectInvitationsApi->create_invitation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **create_invitation** | [**CreateInvitation**](CreateInvitation.md)| |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | New invitation was created and sent to email. | - |
+
+[[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)
+
+# **delete_invitation**
+> InvitationDTO delete_invitation(project_id, invitation_id)
+
+Delete invitation.
+
+If an invitation has status `PENDING`, project Admin can cancel it by calling the `DELETE` method. Calling the `DELETE` method is equivalent to sending a `PUT` request with the status `CANCELED` as described above. **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectInvitationsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ invitation_id = 'invitation_id_example' # str | Id of the invitation
+
+ try:
+ # Delete invitation.
+ api_response = api_instance.delete_invitation(project_id, invitation_id)
+ print("The response of ProjectInvitationsApi->delete_invitation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectInvitationsApi->delete_invitation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **invitation_id** | **str**| Id of the invitation |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+
+[[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)
+
+# **get_invitation_by_id**
+> InvitationDTO get_invitation_by_id(project_id, invitation_id)
+
+Get detail of an invitation.
+
+An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectInvitationsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ invitation_id = 'invitation_id_example' # str | Id of the invitation
+
+ try:
+ # Get detail of an invitation.
+ api_response = api_instance.get_invitation_by_id(project_id, invitation_id)
+ print("The response of ProjectInvitationsApi->get_invitation_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectInvitationsApi->get_invitation_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **invitation_id** | **str**| Id of the invitation |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_invitations**
+> InvitationPagedModelDTO get_invitations(project_id, size=size, page=page, sort=sort, status=status)
+
+Get list of project invitations.
+
+**Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectInvitationsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ page = 0 # int | Number of the page (optional) (default to 0)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+ status = 'ACCEPTED' # str | Filter invitations by status attribute. (optional)
+
+ try:
+ # Get list of project invitations.
+ api_response = api_instance.get_invitations(project_id, size=size, page=page, sort=sort, status=status)
+ print("The response of ProjectInvitationsApi->get_invitations:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectInvitationsApi->get_invitations: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+ **status** | **str**| Filter invitations by status attribute. | [optional]
+
+### Return type
+
+[**InvitationPagedModelDTO**](InvitationPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **update_invitation**
+> InvitationDTO update_invitation(project_id, invitation_id, update_invitation)
+
+Update invitation.
+
+Cancel or resend project invitation. If an invitation has status `PENDING`, project Admin can cancel it. If the invitation has status `CANCELED`, `EXPIRED` or `PENDING`, user can activate it or resend the invitation email by PUTing the status `PENDING`. Invitations with status `ACCEPTED` cannot be updated anymore. **Allowed status transitions:** | Original Status | PUT Request | New Status | |---------------|------------|------------| | CANCELED | PENDING | PENDING | | EXPIRED | PENDING | PENDING | | PENDING | CANCELED | CANCELED | **Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectInvitationsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ invitation_id = 'invitation_id_example' # str | Id of the invitation
+ update_invitation = cm_python_openapi_sdk.UpdateInvitation() # UpdateInvitation |
+
+ try:
+ # Update invitation.
+ api_response = api_instance.update_invitation(project_id, invitation_id, update_invitation)
+ print("The response of ProjectInvitationsApi->update_invitation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectInvitationsApi->update_invitation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **invitation_id** | **str**| Id of the invitation |
+ **update_invitation** | [**UpdateInvitation**](UpdateInvitation.md)| |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+**400** | Invitation cannot be updated (unexpected invitation state - already accepted, canceled) | - |
+
+[[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)
+
diff --git a/docs/ProjectPagedModelDTO.md b/docs/ProjectPagedModelDTO.md
new file mode 100644
index 0000000..fdd741c
--- /dev/null
+++ b/docs/ProjectPagedModelDTO.md
@@ -0,0 +1,31 @@
+# ProjectPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**content** | [**List[ProjectResponseDTO]**](ProjectResponseDTO.md) | | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectPagedModelDTO from a JSON string
+project_paged_model_dto_instance = ProjectPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectPagedModelDTO.to_json())
+
+# convert the object into a dict
+project_paged_model_dto_dict = project_paged_model_dto_instance.to_dict()
+# create an instance of ProjectPagedModelDTO from a dict
+project_paged_model_dto_from_dict = ProjectPagedModelDTO.from_dict(project_paged_model_dto_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)
+
+
diff --git a/docs/ProjectResponseDTO.md b/docs/ProjectResponseDTO.md
new file mode 100644
index 0000000..28f5802
--- /dev/null
+++ b/docs/ProjectResponseDTO.md
@@ -0,0 +1,39 @@
+# ProjectResponseDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | |
+**title** | **str** | |
+**description** | **str** | | [optional]
+**organization_id** | **str** | |
+**status** | **str** | |
+**share** | **str** | |
+**created_at** | **str** | |
+**modified_at** | **str** | | [optional]
+**membership** | [**MembershipDTO**](MembershipDTO.md) | | [optional]
+**services** | **object** | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectResponseDTO from a JSON string
+project_response_dto_instance = ProjectResponseDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectResponseDTO.to_json())
+
+# convert the object into a dict
+project_response_dto_dict = project_response_dto_instance.to_dict()
+# create an instance of ProjectResponseDTO from a dict
+project_response_dto_from_dict = ProjectResponseDTO.from_dict(project_response_dto_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)
+
+
diff --git a/docs/ProjectSettingsApi.md b/docs/ProjectSettingsApi.md
new file mode 100644
index 0000000..f79933b
--- /dev/null
+++ b/docs/ProjectSettingsApi.md
@@ -0,0 +1,427 @@
+# cm_python_openapi_sdk.ProjectSettingsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_project_settings**](ProjectSettingsApi.md#create_project_settings) | **POST** /projects/{projectId}/md/projectSettings | Creates new project settings
+[**delete_project_settings_by_id**](ProjectSettingsApi.md#delete_project_settings_by_id) | **DELETE** /projects/{projectId}/md/projectSettings/{id} | Deletes project settings by id
+[**get_all_project_settings**](ProjectSettingsApi.md#get_all_project_settings) | **GET** /projects/{projectId}/md/projectSettings | Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+[**get_project_settings_by_id**](ProjectSettingsApi.md#get_project_settings_by_id) | **GET** /projects/{projectId}/md/projectSettings/{id} | Gets project settings by id
+[**update_project_settings_by_id**](ProjectSettingsApi.md#update_project_settings_by_id) | **PUT** /projects/{projectId}/md/projectSettings/{id} | Updates project settings by id
+
+
+# **create_project_settings**
+> ProjectSettingsDTO create_project_settings(project_id, project_settings_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Creates new project settings
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectSettingsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ project_settings_dto = cm_python_openapi_sdk.ProjectSettingsDTO() # ProjectSettingsDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Creates new project settings
+ api_response = api_instance.create_project_settings(project_id, project_settings_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of ProjectSettingsApi->create_project_settings:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectSettingsApi->create_project_settings: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **project_settings_dto** | [**ProjectSettingsDTO**](ProjectSettingsDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**ProjectSettingsDTO**](ProjectSettingsDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Project settings was successfully created | - |
+**400** | Syntax errors or validation violations | - |
+**409** | Project Settings object already exists in the project | - |
+
+[[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)
+
+# **delete_project_settings_by_id**
+> delete_project_settings_by_id(project_id, id)
+
+Deletes project settings by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectSettingsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the project settings
+
+ try:
+ # Deletes project settings by id
+ api_instance.delete_project_settings_by_id(project_id, id)
+ except Exception as e:
+ print("Exception when calling ProjectSettingsApi->delete_project_settings_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the project settings |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Project settings was successfully deleted | - |
+**404** | Project settings not found | - |
+
+[[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)
+
+# **get_all_project_settings**
+> ProjectSettingsPagedModelDTO get_all_project_settings(project_id, page=page, size=size, sort=sort)
+
+Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectSettingsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+
+ try:
+ # Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+ api_response = api_instance.get_all_project_settings(project_id, page=page, size=size, sort=sort)
+ print("The response of ProjectSettingsApi->get_all_project_settings:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectSettingsApi->get_all_project_settings: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+
+### Return type
+
+[**ProjectSettingsPagedModelDTO**](ProjectSettingsPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_project_settings_by_id**
+> ProjectSettingsDTO get_project_settings_by_id(project_id, id)
+
+Gets project settings by id
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectSettingsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the project settings
+
+ try:
+ # Gets project settings by id
+ api_response = api_instance.get_project_settings_by_id(project_id, id)
+ print("The response of ProjectSettingsApi->get_project_settings_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectSettingsApi->get_project_settings_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the project settings |
+
+### Return type
+
+[**ProjectSettingsDTO**](ProjectSettingsDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+**404** | Project settings not found | - |
+
+[[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)
+
+# **update_project_settings_by_id**
+> ProjectSettingsDTO update_project_settings_by_id(project_id, id, if_match, project_settings_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+
+Updates project settings by id
+
+Restricted to EDITOR project role that has the permission to update metadata of the project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectSettingsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ id = 'id_example' # str | Id of the project settings
+ if_match = 'if_match_example' # str | ETag value used for conditional updates
+ project_settings_dto = cm_python_openapi_sdk.ProjectSettingsDTO() # ProjectSettingsDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
+
+ try:
+ # Updates project settings by id
+ api_response = api_instance.update_project_settings_by_id(project_id, id, if_match, project_settings_dto, x_can_strict_json_validation=x_can_strict_json_validation)
+ print("The response of ProjectSettingsApi->update_project_settings_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectSettingsApi->update_project_settings_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **id** | **str**| Id of the project settings |
+ **if_match** | **str**| ETag value used for conditional updates |
+ **project_settings_dto** | [**ProjectSettingsDTO**](ProjectSettingsDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
+
+### Return type
+
+[**ProjectSettingsDTO**](ProjectSettingsDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Project settings was successfully updated | - |
+**400** | Syntax error or validation violations | - |
+**404** | Project settings not found | - |
+**409** | Project settings with the same name or id already exists | - |
+**412** | Version provided in If-Match header is outdated | - |
+**428** | Version was not provided in If-Match header | - |
+
+[[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)
+
diff --git a/docs/ProjectSettingsContentDTO.md b/docs/ProjectSettingsContentDTO.md
new file mode 100644
index 0000000..c1bd7bb
--- /dev/null
+++ b/docs/ProjectSettingsContentDTO.md
@@ -0,0 +1,34 @@
+# ProjectSettingsContentDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**geo_search_countries** | **List[str]** | Array of country codes, as defined by ISO 3166 alpha-2, to limit the geographical search. | [optional]
+**geo_search_providers** | **List[str]** | Array of geographical search providers. | [default to [Mapbox]]
+**project_template** | [**ProjectTemplateDTO**](ProjectTemplateDTO.md) | | [optional]
+**trusted_origins** | **List[str]** | | [optional]
+**allow_unsecured_origins** | **bool** | | [optional] [default to False]
+**default_views** | **List[str]** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_settings_content_dto import ProjectSettingsContentDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectSettingsContentDTO from a JSON string
+project_settings_content_dto_instance = ProjectSettingsContentDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectSettingsContentDTO.to_json())
+
+# convert the object into a dict
+project_settings_content_dto_dict = project_settings_content_dto_instance.to_dict()
+# create an instance of ProjectSettingsContentDTO from a dict
+project_settings_content_dto_from_dict = ProjectSettingsContentDTO.from_dict(project_settings_content_dto_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)
+
+
diff --git a/docs/ProjectSettingsDTO.md b/docs/ProjectSettingsDTO.md
new file mode 100644
index 0000000..d1077cc
--- /dev/null
+++ b/docs/ProjectSettingsDTO.md
@@ -0,0 +1,34 @@
+# ProjectSettingsDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**name** | **str** | |
+**type** | **str** | | [optional]
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**content** | [**ProjectSettingsContentDTO**](ProjectSettingsContentDTO.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectSettingsDTO from a JSON string
+project_settings_dto_instance = ProjectSettingsDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectSettingsDTO.to_json())
+
+# convert the object into a dict
+project_settings_dto_dict = project_settings_dto_instance.to_dict()
+# create an instance of ProjectSettingsDTO from a dict
+project_settings_dto_from_dict = ProjectSettingsDTO.from_dict(project_settings_dto_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)
+
+
diff --git a/docs/ProjectSettingsPagedModelDTO.md b/docs/ProjectSettingsPagedModelDTO.md
new file mode 100644
index 0000000..5707e90
--- /dev/null
+++ b/docs/ProjectSettingsPagedModelDTO.md
@@ -0,0 +1,31 @@
+# ProjectSettingsPagedModelDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**content** | [**List[ProjectSettingsDTO]**](ProjectSettingsDTO.md) | | [optional]
+**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional]
+**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectSettingsPagedModelDTO from a JSON string
+project_settings_paged_model_dto_instance = ProjectSettingsPagedModelDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectSettingsPagedModelDTO.to_json())
+
+# convert the object into a dict
+project_settings_paged_model_dto_dict = project_settings_paged_model_dto_instance.to_dict()
+# create an instance of ProjectSettingsPagedModelDTO from a dict
+project_settings_paged_model_dto_from_dict = ProjectSettingsPagedModelDTO.from_dict(project_settings_paged_model_dto_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)
+
+
diff --git a/docs/ProjectTemplateDTO.md b/docs/ProjectTemplateDTO.md
new file mode 100644
index 0000000..00ab9c5
--- /dev/null
+++ b/docs/ProjectTemplateDTO.md
@@ -0,0 +1,30 @@
+# ProjectTemplateDTO
+
+Object containing properties related to project templates.
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**template_datasets** | [**List[TemplateDatasetDTO]**](TemplateDatasetDTO.md) | Array of links to datasets which will be marked as available to load with custom data. | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.project_template_dto import ProjectTemplateDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ProjectTemplateDTO from a JSON string
+project_template_dto_instance = ProjectTemplateDTO.from_json(json)
+# print the JSON string representation of the object
+print(ProjectTemplateDTO.to_json())
+
+# convert the object into a dict
+project_template_dto_dict = project_template_dto_instance.to_dict()
+# create an instance of ProjectTemplateDTO from a dict
+project_template_dto_from_dict = ProjectTemplateDTO.from_dict(project_template_dto_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)
+
+
diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md
new file mode 100644
index 0000000..2c99aa2
--- /dev/null
+++ b/docs/ProjectsApi.md
@@ -0,0 +1,416 @@
+# cm_python_openapi_sdk.ProjectsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_project**](ProjectsApi.md#create_project) | **POST** /projects | Create new project
+[**delete_project**](ProjectsApi.md#delete_project) | **DELETE** /projects/{projectId} | Delete project.
+[**get_all_projects**](ProjectsApi.md#get_all_projects) | **GET** /projects | Get list of projects for authenticated account.
+[**get_project_by_id**](ProjectsApi.md#get_project_by_id) | **GET** /projects/{projectId} | Get project by given project id.
+[**update_project**](ProjectsApi.md#update_project) | **PUT** /projects/{projectId} | Update the project.
+
+
+# **create_project**
+> ProjectResponseDTO create_project(create_project_dto)
+
+Create new project
+
+Create new project and set the authenticated user as the project member in ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectsApi(api_client)
+ create_project_dto = cm_python_openapi_sdk.CreateProjectDTO() # CreateProjectDTO |
+
+ try:
+ # Create new project
+ api_response = api_instance.create_project(create_project_dto)
+ print("The response of ProjectsApi->create_project:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectsApi->create_project: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **create_project_dto** | [**CreateProjectDTO**](CreateProjectDTO.md)| |
+
+### Return type
+
+[**ProjectResponseDTO**](ProjectResponseDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Project was successfully created | - |
+
+[[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)
+
+# **delete_project**
+> delete_project(project_id)
+
+Delete project.
+
+**Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+
+ try:
+ # Delete project.
+ api_instance.delete_project(project_id)
+ except Exception as e:
+ print("Exception when calling ProjectsApi->delete_project: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**204** | Project was successfully deleted | - |
+
+[[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)
+
+# **get_all_projects**
+> ProjectPagedModelDTO get_all_projects(organization_id=organization_id, page=page, size=size, sort=sort, share=share, expand=expand)
+
+Get list of projects for authenticated account.
+
+**Security:** Resource returns only those projects where the authenticated user is a member.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectsApi(api_client)
+ organization_id = 'organization_id_example' # str | Id of the organization, used in query parameters (optional)
+ page = 0 # int | Number of the page (optional) (default to 0)
+ size = 100 # int | The count of records to return for one page (optional) (default to 100)
+ sort = 'name,desc' # str | Name of the attribute to use for sorting the results, together with direction (asc or desc) (optional)
+ share = 'demo' # str | Filter project list by share attribute. (optional)
+ expand = 'expand_example' # str | Expand selected attribute(s) to minimalize roundtrips. (optional)
+
+ try:
+ # Get list of projects for authenticated account.
+ api_response = api_instance.get_all_projects(organization_id=organization_id, page=page, size=size, sort=sort, share=share, expand=expand)
+ print("The response of ProjectsApi->get_all_projects:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectsApi->get_all_projects: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **organization_id** | **str**| Id of the organization, used in query parameters | [optional]
+ **page** | **int**| Number of the page | [optional] [default to 0]
+ **size** | **int**| The count of records to return for one page | [optional] [default to 100]
+ **sort** | **str**| Name of the attribute to use for sorting the results, together with direction (asc or desc) | [optional]
+ **share** | **str**| Filter project list by share attribute. | [optional]
+ **expand** | **str**| Expand selected attribute(s) to minimalize roundtrips. | [optional]
+
+### Return type
+
+[**ProjectPagedModelDTO**](ProjectPagedModelDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **get_project_by_id**
+> ProjectResponseDTO get_project_by_id(project_id, expand=expand)
+
+Get project by given project id.
+
+**Security:** Access is restricted only to users that are members of given project.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ expand = 'expand_example' # str | Expand selected attribute(s) to minimalize roundtrips. (optional)
+
+ try:
+ # Get project by given project id.
+ api_response = api_instance.get_project_by_id(project_id, expand=expand)
+ print("The response of ProjectsApi->get_project_by_id:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectsApi->get_project_by_id: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **expand** | **str**| Expand selected attribute(s) to minimalize roundtrips. | [optional]
+
+### Return type
+
+[**ProjectResponseDTO**](ProjectResponseDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
+# **update_project**
+> ProjectResponseDTO update_project(project_id, update_project_dto)
+
+Update the project.
+
+**Security:** Restricted to ADMIN project role.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.ProjectsApi(api_client)
+ project_id = 'project_id_example' # str | Id of the project
+ update_project_dto = cm_python_openapi_sdk.UpdateProjectDTO() # UpdateProjectDTO |
+
+ try:
+ # Update the project.
+ api_response = api_instance.update_project(project_id, update_project_dto)
+ print("The response of ProjectsApi->update_project:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ProjectsApi->update_project: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **project_id** | **str**| Id of the project |
+ **update_project_dto** | [**UpdateProjectDTO**](UpdateProjectDTO.md)| |
+
+### Return type
+
+[**ProjectResponseDTO**](ProjectResponseDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+
+[[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)
+
diff --git a/docs/PropertyFilterCompareDTO.md b/docs/PropertyFilterCompareDTO.md
new file mode 100644
index 0000000..e450838
--- /dev/null
+++ b/docs/PropertyFilterCompareDTO.md
@@ -0,0 +1,31 @@
+# PropertyFilterCompareDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**property_name** | **str** | |
+**value** | **object** | |
+**operator** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.property_filter_compare_dto import PropertyFilterCompareDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PropertyFilterCompareDTO from a JSON string
+property_filter_compare_dto_instance = PropertyFilterCompareDTO.from_json(json)
+# print the JSON string representation of the object
+print(PropertyFilterCompareDTO.to_json())
+
+# convert the object into a dict
+property_filter_compare_dto_dict = property_filter_compare_dto_instance.to_dict()
+# create an instance of PropertyFilterCompareDTO from a dict
+property_filter_compare_dto_from_dict = PropertyFilterCompareDTO.from_dict(property_filter_compare_dto_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)
+
+
diff --git a/docs/PropertyFilterInDTO.md b/docs/PropertyFilterInDTO.md
new file mode 100644
index 0000000..821c7ce
--- /dev/null
+++ b/docs/PropertyFilterInDTO.md
@@ -0,0 +1,31 @@
+# PropertyFilterInDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**property_name** | **str** | |
+**value** | **List[object]** | | [optional]
+**operator** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.property_filter_in_dto import PropertyFilterInDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PropertyFilterInDTO from a JSON string
+property_filter_in_dto_instance = PropertyFilterInDTO.from_json(json)
+# print the JSON string representation of the object
+print(PropertyFilterInDTO.to_json())
+
+# convert the object into a dict
+property_filter_in_dto_dict = property_filter_in_dto_instance.to_dict()
+# create an instance of PropertyFilterInDTO from a dict
+property_filter_in_dto_from_dict = PropertyFilterInDTO.from_dict(property_filter_in_dto_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)
+
+
diff --git a/docs/RankingDTO.md b/docs/RankingDTO.md
index 4710fbc..9ea25ab 100644
--- a/docs/RankingDTO.md
+++ b/docs/RankingDTO.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/RelationsDTO.md b/docs/RelationsDTO.md
index 7ab71f4..e365871 100644
--- a/docs/RelationsDTO.md
+++ b/docs/RelationsDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.relations_dto import RelationsDTO
+from cm_python_openapi_sdk.models.relations_dto import RelationsDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ScaleOptionsDTO.md b/docs/ScaleOptionsDTO.md
index ea8e6a3..44c4d2c 100644
--- a/docs/ScaleOptionsDTO.md
+++ b/docs/ScaleOptionsDTO.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.scale_options_dto import ScaleOptionsDTO
+from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/SingleSelectFilterDTO.md b/docs/SingleSelectFilterDTO.md
index 128ab60..b2161b3 100644
--- a/docs/SingleSelectFilterDTO.md
+++ b/docs/SingleSelectFilterDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.single_select_filter_dto import SingleSelectFilterDTO
+from cm_python_openapi_sdk.models.single_select_filter_dto import SingleSelectFilterDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/StaticScaleOptionDTO.md b/docs/StaticScaleOptionDTO.md
index 0b5c462..6c8d5a6 100644
--- a/docs/StaticScaleOptionDTO.md
+++ b/docs/StaticScaleOptionDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.static_scale_option_dto import StaticScaleOptionDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto import StaticScaleOptionDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/StaticScaleOptionDTOBreaks.md b/docs/StaticScaleOptionDTOBreaks.md
index 2021a52..8c8ed3c 100644
--- a/docs/StaticScaleOptionDTOBreaks.md
+++ b/docs/StaticScaleOptionDTOBreaks.md
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
+from cm_python_openapi_sdk.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
# TODO update the JSON string below
json = "{}"
diff --git a/docs/StyleDTO.md b/docs/StyleDTO.md
index 6c6ea27..a9316c6 100644
--- a/docs/StyleDTO.md
+++ b/docs/StyleDTO.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.style_dto import StyleDTO
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/SubmitJobExecutionRequest.md b/docs/SubmitJobExecutionRequest.md
new file mode 100644
index 0000000..6628217
--- /dev/null
+++ b/docs/SubmitJobExecutionRequest.md
@@ -0,0 +1,31 @@
+# SubmitJobExecutionRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**ExportRequest**](ExportRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SubmitJobExecutionRequest from a JSON string
+submit_job_execution_request_instance = SubmitJobExecutionRequest.from_json(json)
+# print the JSON string representation of the object
+print(SubmitJobExecutionRequest.to_json())
+
+# convert the object into a dict
+submit_job_execution_request_dict = submit_job_execution_request_instance.to_dict()
+# create an instance of SubmitJobExecutionRequest from a dict
+submit_job_execution_request_from_dict = SubmitJobExecutionRequest.from_dict(submit_job_execution_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)
+
+
diff --git a/docs/TemplateDatasetDTO.md b/docs/TemplateDatasetDTO.md
new file mode 100644
index 0000000..7bbf33d
--- /dev/null
+++ b/docs/TemplateDatasetDTO.md
@@ -0,0 +1,29 @@
+# TemplateDatasetDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dataset** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.template_dataset_dto import TemplateDatasetDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TemplateDatasetDTO from a JSON string
+template_dataset_dto_instance = TemplateDatasetDTO.from_json(json)
+# print the JSON string representation of the object
+print(TemplateDatasetDTO.to_json())
+
+# convert the object into a dict
+template_dataset_dto_dict = template_dataset_dto_instance.to_dict()
+# create an instance of TemplateDatasetDTO from a dict
+template_dataset_dto_from_dict = TemplateDatasetDTO.from_dict(template_dataset_dto_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)
+
+
diff --git a/docs/TimeSeriesDTO.md b/docs/TimeSeriesDTO.md
index 97cafe9..4ea6e9f 100644
--- a/docs/TimeSeriesDTO.md
+++ b/docs/TimeSeriesDTO.md
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/TokenRequestDTO.md b/docs/TokenRequestDTO.md
index 2f52f66..e31310e 100644
--- a/docs/TokenRequestDTO.md
+++ b/docs/TokenRequestDTO.md
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/TokenResponseDTO.md b/docs/TokenResponseDTO.md
index 98985c2..6728eb1 100644
--- a/docs/TokenResponseDTO.md
+++ b/docs/TokenResponseDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/TruncateJobRequest.md b/docs/TruncateJobRequest.md
new file mode 100644
index 0000000..ee073ee
--- /dev/null
+++ b/docs/TruncateJobRequest.md
@@ -0,0 +1,31 @@
+# TruncateJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.truncate_job_request import TruncateJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TruncateJobRequest from a JSON string
+truncate_job_request_instance = TruncateJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(TruncateJobRequest.to_json())
+
+# convert the object into a dict
+truncate_job_request_dict = truncate_job_request_instance.to_dict()
+# create an instance of TruncateJobRequest from a dict
+truncate_job_request_from_dict = TruncateJobRequest.from_dict(truncate_job_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)
+
+
diff --git a/docs/UpdateInvitation.md b/docs/UpdateInvitation.md
new file mode 100644
index 0000000..4526180
--- /dev/null
+++ b/docs/UpdateInvitation.md
@@ -0,0 +1,29 @@
+# UpdateInvitation
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateInvitation from a JSON string
+update_invitation_instance = UpdateInvitation.from_json(json)
+# print the JSON string representation of the object
+print(UpdateInvitation.to_json())
+
+# convert the object into a dict
+update_invitation_dict = update_invitation_instance.to_dict()
+# create an instance of UpdateInvitation from a dict
+update_invitation_from_dict = UpdateInvitation.from_dict(update_invitation_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)
+
+
diff --git a/docs/UpdateMembership.md b/docs/UpdateMembership.md
new file mode 100644
index 0000000..706f184
--- /dev/null
+++ b/docs/UpdateMembership.md
@@ -0,0 +1,30 @@
+# UpdateMembership
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**status** | **str** | |
+**role** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateMembership from a JSON string
+update_membership_instance = UpdateMembership.from_json(json)
+# print the JSON string representation of the object
+print(UpdateMembership.to_json())
+
+# convert the object into a dict
+update_membership_dict = update_membership_instance.to_dict()
+# create an instance of UpdateMembership from a dict
+update_membership_from_dict = UpdateMembership.from_dict(update_membership_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)
+
+
diff --git a/docs/UpdateOrganizationDTO.md b/docs/UpdateOrganizationDTO.md
new file mode 100644
index 0000000..c694268
--- /dev/null
+++ b/docs/UpdateOrganizationDTO.md
@@ -0,0 +1,31 @@
+# UpdateOrganizationDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | |
+**invitation_email** | **str** | | [optional]
+**dwh_cluster_id** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateOrganizationDTO from a JSON string
+update_organization_dto_instance = UpdateOrganizationDTO.from_json(json)
+# print the JSON string representation of the object
+print(UpdateOrganizationDTO.to_json())
+
+# convert the object into a dict
+update_organization_dto_dict = update_organization_dto_instance.to_dict()
+# create an instance of UpdateOrganizationDTO from a dict
+update_organization_dto_from_dict = UpdateOrganizationDTO.from_dict(update_organization_dto_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)
+
+
diff --git a/docs/UpdateProjectDTO.md b/docs/UpdateProjectDTO.md
new file mode 100644
index 0000000..88da2e3
--- /dev/null
+++ b/docs/UpdateProjectDTO.md
@@ -0,0 +1,33 @@
+# UpdateProjectDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**title** | **str** | | [optional]
+**description** | **str** | | [optional]
+**organization_id** | **str** | | [optional]
+**status** | **str** | | [optional]
+**services** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateProjectDTO from a JSON string
+update_project_dto_instance = UpdateProjectDTO.from_json(json)
+# print the JSON string representation of the object
+print(UpdateProjectDTO.to_json())
+
+# convert the object into a dict
+update_project_dto_dict = update_project_dto_instance.to_dict()
+# create an instance of UpdateProjectDTO from a dict
+update_project_dto_from_dict = UpdateProjectDTO.from_dict(update_project_dto_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)
+
+
diff --git a/docs/UserInvitationsApi.md b/docs/UserInvitationsApi.md
new file mode 100644
index 0000000..576ba8e
--- /dev/null
+++ b/docs/UserInvitationsApi.md
@@ -0,0 +1,169 @@
+# cm_python_openapi_sdk.UserInvitationsApi
+
+All URIs are relative to *https://staging.dev.clevermaps.io/rest*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**accept_user_invitation**](UserInvitationsApi.md#accept_user_invitation) | **POST** /invitations/{invitationHash} | Accept invitation.
+[**get_user_invitation**](UserInvitationsApi.md#get_user_invitation) | **GET** /invitations/{invitationHash} | Get detail of an invitation.
+
+
+# **accept_user_invitation**
+> InvitationDTO accept_user_invitation(invitation_hash)
+
+Accept invitation.
+
+This resource allows accepting an invitation by an invited user. The URL contains a secret `invitationHash` that is sent to the invited user by email. By clicking on the href link from the invitation email, the user is redirected into the CleverMaps application, and after authentication, the invitation is accepted. When a user accepts an invitation, they are added as a new Member of the Project in the role granted by the invitation. **Security:** Restricted to invited user. The authenticated user email must equal the email in the invitation.
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.UserInvitationsApi(api_client)
+ invitation_hash = 'invitation_hash_example' # str | Hash of the invitation
+
+ try:
+ # Accept invitation.
+ api_response = api_instance.accept_user_invitation(invitation_hash)
+ print("The response of UserInvitationsApi->accept_user_invitation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UserInvitationsApi->accept_user_invitation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **invitation_hash** | **str**| Hash of the invitation |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful update | - |
+**400** | invitation cannot be accepted (unexpected invitation state - already accepted, canceled) | - |
+**403** | authenticated user email does not match email in invitation | - |
+**404** | invitation was not found | - |
+
+[[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)
+
+# **get_user_invitation**
+> InvitationDTO get_user_invitation(invitation_hash)
+
+Get detail of an invitation.
+
+An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED
+
+### Example
+
+* Bearer Authentication (bearerAuth):
+
+```python
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+from cm_python_openapi_sdk.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
+# See configuration.py for a list of all supported configuration parameters.
+configuration = cm_python_openapi_sdk.Configuration(
+ host = "https://staging.dev.clevermaps.io/rest"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure Bearer authorization: bearerAuth
+configuration = cm_python_openapi_sdk.Configuration(
+ access_token = os.environ["BEARER_TOKEN"]
+)
+
+# Enter a context with an instance of the API client
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = cm_python_openapi_sdk.UserInvitationsApi(api_client)
+ invitation_hash = 'invitation_hash_example' # str | Hash of the invitation
+
+ try:
+ # Get detail of an invitation.
+ api_response = api_instance.get_user_invitation(invitation_hash)
+ print("The response of UserInvitationsApi->get_user_invitation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling UserInvitationsApi->get_user_invitation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **invitation_hash** | **str**| Hash of the invitation |
+
+### Return type
+
+[**InvitationDTO**](InvitationDTO.md)
+
+### Authorization
+
+[bearerAuth](../README.md#bearerAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Successful response | - |
+
+[[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)
+
diff --git a/docs/ValidateJobRequest.md b/docs/ValidateJobRequest.md
new file mode 100644
index 0000000..c2430ad
--- /dev/null
+++ b/docs/ValidateJobRequest.md
@@ -0,0 +1,31 @@
+# ValidateJobRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**type** | **str** | |
+**project_id** | **str** | |
+**content** | [**ValidateRequest**](ValidateRequest.md) | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.validate_job_request import ValidateJobRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ValidateJobRequest from a JSON string
+validate_job_request_instance = ValidateJobRequest.from_json(json)
+# print the JSON string representation of the object
+print(ValidateJobRequest.to_json())
+
+# convert the object into a dict
+validate_job_request_dict = validate_job_request_instance.to_dict()
+# create an instance of ValidateJobRequest from a dict
+validate_job_request_from_dict = ValidateJobRequest.from_dict(validate_job_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)
+
+
diff --git a/docs/ValidateRequest.md b/docs/ValidateRequest.md
new file mode 100644
index 0000000..49900e6
--- /dev/null
+++ b/docs/ValidateRequest.md
@@ -0,0 +1,30 @@
+# ValidateRequest
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**model_validator** | **object** | | [optional]
+**data_validator** | **object** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.validate_request import ValidateRequest
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ValidateRequest from a JSON string
+validate_request_instance = ValidateRequest.from_json(json)
+# print the JSON string representation of the object
+print(ValidateRequest.to_json())
+
+# convert the object into a dict
+validate_request_dict = validate_request_instance.to_dict()
+# create an instance of ValidateRequest from a dict
+validate_request_from_dict = ValidateRequest.from_dict(validate_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)
+
+
diff --git a/docs/ValueOptionDTO.md b/docs/ValueOptionDTO.md
new file mode 100644
index 0000000..85b4962
--- /dev/null
+++ b/docs/ValueOptionDTO.md
@@ -0,0 +1,33 @@
+# ValueOptionDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**value** | **object** | |
+**color** | **str** | | [optional]
+**hex_color** | **str** | | [optional]
+**weight** | **float** | | [optional]
+**pattern** | **str** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.value_option_dto import ValueOptionDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ValueOptionDTO from a JSON string
+value_option_dto_instance = ValueOptionDTO.from_json(json)
+# print the JSON string representation of the object
+print(ValueOptionDTO.to_json())
+
+# convert the object into a dict
+value_option_dto_dict = value_option_dto_instance.to_dict()
+# create an instance of ValueOptionDTO from a dict
+value_option_dto_from_dict = ValueOptionDTO.from_dict(value_option_dto_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)
+
+
diff --git a/docs/VariableDTO.md b/docs/VariableDTO.md
index 355f81d..0b40ea1 100644
--- a/docs/VariableDTO.md
+++ b/docs/VariableDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.variable_dto import VariableDTO
+from cm_python_openapi_sdk.models.variable_dto import VariableDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/VariableType.md b/docs/VariableType.md
new file mode 100644
index 0000000..7317070
--- /dev/null
+++ b/docs/VariableType.md
@@ -0,0 +1,31 @@
+# VariableType
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **str** | | [optional]
+**type** | **str** | |
+**value** | **str** | |
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.variable_type import VariableType
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of VariableType from a JSON string
+variable_type_instance = VariableType.from_json(json)
+# print the JSON string representation of the object
+print(VariableType.to_json())
+
+# convert the object into a dict
+variable_type_dict = variable_type_instance.to_dict()
+# create an instance of VariableType from a dict
+variable_type_from_dict = VariableType.from_dict(variable_type_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)
+
+
diff --git a/docs/VariablesDTO.md b/docs/VariablesDTO.md
index f49dd13..dc18a90 100644
--- a/docs/VariablesDTO.md
+++ b/docs/VariablesDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.variables_dto import VariablesDTO
+from cm_python_openapi_sdk.models.variables_dto import VariablesDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ViewContentDTO.md b/docs/ViewContentDTO.md
index 949ca4f..2917a6a 100644
--- a/docs/ViewContentDTO.md
+++ b/docs/ViewContentDTO.md
@@ -34,7 +34,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.view_content_dto import ViewContentDTO
+from cm_python_openapi_sdk.models.view_content_dto import ViewContentDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ViewDTO.md b/docs/ViewDTO.md
index 29f6e58..fbfc61b 100644
--- a/docs/ViewDTO.md
+++ b/docs/ViewDTO.md
@@ -15,7 +15,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ViewPagedModelDTO.md b/docs/ViewPagedModelDTO.md
index 7ff217d..fbb2229 100644
--- a/docs/ViewPagedModelDTO.md
+++ b/docs/ViewPagedModelDTO.md
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
## Example
```python
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
# TODO update the JSON string below
json = "{}"
diff --git a/docs/ViewsApi.md b/docs/ViewsApi.md
index da20845..4b92e4f 100644
--- a/docs/ViewsApi.md
+++ b/docs/ViewsApi.md
@@ -1,4 +1,4 @@
-# openapi_client.ViewsApi
+# cm_python_openapi_sdk.ViewsApi
All URIs are relative to *https://staging.dev.clevermaps.io/rest*
@@ -12,7 +12,7 @@ Method | HTTP request | Description
# **create_view**
-> ViewDTO create_view(project_id, view_dto)
+> ViewDTO create_view(project_id, view_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Creates new view
@@ -23,14 +23,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -40,20 +40,21 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.ViewsApi(api_client)
+ api_instance = cm_python_openapi_sdk.ViewsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
- view_dto = openapi_client.ViewDTO() # ViewDTO |
+ view_dto = cm_python_openapi_sdk.ViewDTO() # ViewDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Creates new view
- api_response = api_instance.create_view(project_id, view_dto)
+ api_response = api_instance.create_view(project_id, view_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of ViewsApi->create_view:\n")
pprint(api_response)
except Exception as e:
@@ -69,6 +70,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**project_id** | **str**| Id of the project |
**view_dto** | [**ViewDTO**](ViewDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
@@ -105,13 +107,13 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -121,14 +123,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.ViewsApi(api_client)
+ api_instance = cm_python_openapi_sdk.ViewsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the view
@@ -181,14 +183,14 @@ Returns collection of all views in a project
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -198,14 +200,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.ViewsApi(api_client)
+ api_instance = cm_python_openapi_sdk.ViewsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
page = 0 # int | Number of the page (optional) (default to 0)
size = 100 # int | The count of records to return for one page (optional) (default to 100)
@@ -263,14 +265,14 @@ Gets view by id
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -280,14 +282,14 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.ViewsApi(api_client)
+ api_instance = cm_python_openapi_sdk.ViewsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the view
@@ -333,7 +335,7 @@ Name | Type | Description | Notes
[[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)
# **update_view_by_id**
-> ViewDTO update_view_by_id(project_id, id, if_match, view_dto)
+> ViewDTO update_view_by_id(project_id, id, if_match, view_dto, x_can_strict_json_validation=x_can_strict_json_validation)
Updates view by id
@@ -344,14 +346,14 @@ Restricted to EDITOR project role that has the permission to update metadata of
* Bearer Authentication (bearerAuth):
```python
-import openapi_client
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.rest import ApiException
+import cm_python_openapi_sdk
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://staging.dev.clevermaps.io/rest
# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
host = "https://staging.dev.clevermaps.io/rest"
)
@@ -361,22 +363,23 @@ configuration = openapi_client.Configuration(
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
-configuration = openapi_client.Configuration(
+configuration = cm_python_openapi_sdk.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
+with cm_python_openapi_sdk.ApiClient(configuration) as api_client:
# Create an instance of the API class
- api_instance = openapi_client.ViewsApi(api_client)
+ api_instance = cm_python_openapi_sdk.ViewsApi(api_client)
project_id = 'project_id_example' # str | Id of the project
id = 'id_example' # str | Id of the view
if_match = 'if_match_example' # str | ETag value used for conditional updates
- view_dto = openapi_client.ViewDTO() # ViewDTO |
+ view_dto = cm_python_openapi_sdk.ViewDTO() # ViewDTO |
+ x_can_strict_json_validation = False # bool | (optional) (default to False)
try:
# Updates view by id
- api_response = api_instance.update_view_by_id(project_id, id, if_match, view_dto)
+ api_response = api_instance.update_view_by_id(project_id, id, if_match, view_dto, x_can_strict_json_validation=x_can_strict_json_validation)
print("The response of ViewsApi->update_view_by_id:\n")
pprint(api_response)
except Exception as e:
@@ -394,6 +397,7 @@ Name | Type | Description | Notes
**id** | **str**| Id of the view |
**if_match** | **str**| ETag value used for conditional updates |
**view_dto** | [**ViewDTO**](ViewDTO.md)| |
+ **x_can_strict_json_validation** | **bool**| | [optional] [default to False]
### Return type
diff --git a/docs/ZoomDTO.md b/docs/ZoomDTO.md
new file mode 100644
index 0000000..c1d69dd
--- /dev/null
+++ b/docs/ZoomDTO.md
@@ -0,0 +1,32 @@
+# ZoomDTO
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**min** | **int** | |
+**optimal** | **int** | |
+**max** | **int** | |
+**visible_from** | **int** | | [optional]
+
+## Example
+
+```python
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ZoomDTO from a JSON string
+zoom_dto_instance = ZoomDTO.from_json(json)
+# print the JSON string representation of the object
+print(ZoomDTO.to_json())
+
+# convert the object into a dict
+zoom_dto_dict = zoom_dto_instance.to_dict()
+# create an instance of ZoomDTO from a dict
+zoom_dto_from_dict = ZoomDTO.from_dict(zoom_dto_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)
+
+
diff --git a/example.py b/example.py
index 39c38ef..3e56e8f 100644
--- a/example.py
+++ b/example.py
@@ -1,4 +1,4 @@
-from openapi_client.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
with open("./data/view_example.json", "r") as file:
json_data = file.read()
diff --git a/openapi_client/__init__.py b/openapi_client/__init__.py
deleted file mode 100644
index 63cd0ca..0000000
--- a/openapi_client/__init__.py
+++ /dev/null
@@ -1,128 +0,0 @@
-# coding: utf-8
-
-# flake8: noqa
-
-"""
- clevermaps-client
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
- The version of the OpenAPI document: 1.0.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-__version__ = "1.0.0"
-
-# import apis into sdk package
-from openapi_client.api.authentication_api import AuthenticationApi
-from openapi_client.api.dashboards_api import DashboardsApi
-from openapi_client.api.indicator_drills_api import IndicatorDrillsApi
-from openapi_client.api.indicators_api import IndicatorsApi
-from openapi_client.api.maps_api import MapsApi
-from openapi_client.api.views_api import ViewsApi
-
-# import ApiClient
-from openapi_client.api_response import ApiResponse
-from openapi_client.api_client import ApiClient
-from openapi_client.configuration import Configuration
-from openapi_client.exceptions import OpenApiException
-from openapi_client.exceptions import ApiTypeError
-from openapi_client.exceptions import ApiValueError
-from openapi_client.exceptions import ApiKeyError
-from openapi_client.exceptions import ApiAttributeError
-from openapi_client.exceptions import ApiException
-
-# import models into sdk package
-from openapi_client.models.active_date_filter_dto import ActiveDateFilterDTO
-from openapi_client.models.active_feature_filter_dto import ActiveFeatureFilterDTO
-from openapi_client.models.active_filter_abstract_type import ActiveFilterAbstractType
-from openapi_client.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
-from openapi_client.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
-from openapi_client.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
-from openapi_client.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
-from openapi_client.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
-from openapi_client.models.additional_series_link_dto import AdditionalSeriesLinkDTO
-from openapi_client.models.annotation_link_dto import AnnotationLinkDTO
-from openapi_client.models.attribute_format_dto import AttributeFormatDTO
-from openapi_client.models.block_abstract_type import BlockAbstractType
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
-from openapi_client.models.block_row_dto import BlockRowDTO
-from openapi_client.models.categories_dto import CategoriesDTO
-from openapi_client.models.center_dto import CenterDTO
-from openapi_client.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
-from openapi_client.models.dashboard_content_dto import DashboardContentDTO
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
-from openapi_client.models.date_filter_dto import DateFilterDTO
-from openapi_client.models.date_filter_default_value_type import DateFilterDefaultValueType
-from openapi_client.models.date_range_function import DateRangeFunction
-from openapi_client.models.date_range_value import DateRangeValue
-from openapi_client.models.default_distribution_dto import DefaultDistributionDTO
-from openapi_client.models.default_selected_dto import DefaultSelectedDTO
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
-from openapi_client.models.default_values_feature_dto import DefaultValuesFeatureDTO
-from openapi_client.models.default_values_histogram_dto import DefaultValuesHistogramDTO
-from openapi_client.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
-from openapi_client.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
-from openapi_client.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
-from openapi_client.models.distribution_dto import DistributionDTO
-from openapi_client.models.export_link_dto import ExportLinkDTO
-from openapi_client.models.feature_attribute_dto import FeatureAttributeDTO
-from openapi_client.models.feature_filter_dto import FeatureFilterDTO
-from openapi_client.models.filter_abstract_type import FilterAbstractType
-from openapi_client.models.format_dto import FormatDTO
-from openapi_client.models.global_date_filter_dto import GlobalDateFilterDTO
-from openapi_client.models.google_earth_dto import GoogleEarthDTO
-from openapi_client.models.google_satellite_dto import GoogleSatelliteDTO
-from openapi_client.models.google_street_view_dto import GoogleStreetViewDTO
-from openapi_client.models.histogram_filter_dto import HistogramFilterDTO
-from openapi_client.models.indicator_content_dto import IndicatorContentDTO
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.models.indicator_drill_content_dto import IndicatorDrillContentDTO
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
-from openapi_client.models.indicator_filter_dto import IndicatorFilterDTO
-from openapi_client.models.indicator_group_dto import IndicatorGroupDTO
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
-from openapi_client.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
-from openapi_client.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
-from openapi_client.models.isochrone_dto import IsochroneDTO
-from openapi_client.models.layer_dto import LayerDTO
-from openapi_client.models.layer_dto_datasets_inner import LayerDTODatasetsInner
-from openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
-from openapi_client.models.map_content_dto import MapContentDTO
-from openapi_client.models.map_content_dto_base_layer import MapContentDTOBaseLayer
-from openapi_client.models.map_content_dto_options import MapContentDTOOptions
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
-from openapi_client.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.models.map_options_dto import MapOptionsDTO
-from openapi_client.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
-from openapi_client.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
-from openapi_client.models.mapycz_panorama_dto import MapyczPanoramaDTO
-from openapi_client.models.max_value_dto import MaxValueDTO
-from openapi_client.models.measure_dto import MeasureDTO
-from openapi_client.models.multi_select_filter_dto import MultiSelectFilterDTO
-from openapi_client.models.order_by_dto import OrderByDTO
-from openapi_client.models.ranking_dto import RankingDTO
-from openapi_client.models.relations_dto import RelationsDTO
-from openapi_client.models.scale_options_dto import ScaleOptionsDTO
-from openapi_client.models.single_select_filter_dto import SingleSelectFilterDTO
-from openapi_client.models.static_scale_option_dto import StaticScaleOptionDTO
-from openapi_client.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
-from openapi_client.models.style_dto import StyleDTO
-from openapi_client.models.time_series_dto import TimeSeriesDTO
-from openapi_client.models.token_request_dto import TokenRequestDTO
-from openapi_client.models.token_response_dto import TokenResponseDTO
-from openapi_client.models.variable_dto import VariableDTO
-from openapi_client.models.variables_dto import VariablesDTO
-from openapi_client.models.view_content_dto import ViewContentDTO
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
diff --git a/openapi_client/api/__init__.py b/openapi_client/api/__init__.py
deleted file mode 100644
index 739ace5..0000000
--- a/openapi_client/api/__init__.py
+++ /dev/null
@@ -1,10 +0,0 @@
-# flake8: noqa
-
-# import apis into api package
-from openapi_client.api.authentication_api import AuthenticationApi
-from openapi_client.api.dashboards_api import DashboardsApi
-from openapi_client.api.indicator_drills_api import IndicatorDrillsApi
-from openapi_client.api.indicators_api import IndicatorsApi
-from openapi_client.api.maps_api import MapsApi
-from openapi_client.api.views_api import ViewsApi
-
diff --git a/openapi_client/models/__init__.py b/openapi_client/models/__init__.py
deleted file mode 100644
index c688e10..0000000
--- a/openapi_client/models/__init__.py
+++ /dev/null
@@ -1,106 +0,0 @@
-# coding: utf-8
-
-# flake8: noqa
-"""
- clevermaps-client
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-
- The version of the OpenAPI document: 1.0.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-# import models into model package
-from openapi_client.models.active_date_filter_dto import ActiveDateFilterDTO
-from openapi_client.models.active_feature_filter_dto import ActiveFeatureFilterDTO
-from openapi_client.models.active_filter_abstract_type import ActiveFilterAbstractType
-from openapi_client.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
-from openapi_client.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
-from openapi_client.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
-from openapi_client.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
-from openapi_client.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
-from openapi_client.models.additional_series_link_dto import AdditionalSeriesLinkDTO
-from openapi_client.models.annotation_link_dto import AnnotationLinkDTO
-from openapi_client.models.attribute_format_dto import AttributeFormatDTO
-from openapi_client.models.block_abstract_type import BlockAbstractType
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
-from openapi_client.models.block_row_dto import BlockRowDTO
-from openapi_client.models.categories_dto import CategoriesDTO
-from openapi_client.models.center_dto import CenterDTO
-from openapi_client.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
-from openapi_client.models.dashboard_content_dto import DashboardContentDTO
-from openapi_client.models.dashboard_dto import DashboardDTO
-from openapi_client.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
-from openapi_client.models.date_filter_dto import DateFilterDTO
-from openapi_client.models.date_filter_default_value_type import DateFilterDefaultValueType
-from openapi_client.models.date_range_function import DateRangeFunction
-from openapi_client.models.date_range_value import DateRangeValue
-from openapi_client.models.default_distribution_dto import DefaultDistributionDTO
-from openapi_client.models.default_selected_dto import DefaultSelectedDTO
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
-from openapi_client.models.default_values_feature_dto import DefaultValuesFeatureDTO
-from openapi_client.models.default_values_histogram_dto import DefaultValuesHistogramDTO
-from openapi_client.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
-from openapi_client.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
-from openapi_client.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
-from openapi_client.models.distribution_dto import DistributionDTO
-from openapi_client.models.export_link_dto import ExportLinkDTO
-from openapi_client.models.feature_attribute_dto import FeatureAttributeDTO
-from openapi_client.models.feature_filter_dto import FeatureFilterDTO
-from openapi_client.models.filter_abstract_type import FilterAbstractType
-from openapi_client.models.format_dto import FormatDTO
-from openapi_client.models.global_date_filter_dto import GlobalDateFilterDTO
-from openapi_client.models.google_earth_dto import GoogleEarthDTO
-from openapi_client.models.google_satellite_dto import GoogleSatelliteDTO
-from openapi_client.models.google_street_view_dto import GoogleStreetViewDTO
-from openapi_client.models.histogram_filter_dto import HistogramFilterDTO
-from openapi_client.models.indicator_content_dto import IndicatorContentDTO
-from openapi_client.models.indicator_dto import IndicatorDTO
-from openapi_client.models.indicator_drill_content_dto import IndicatorDrillContentDTO
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
-from openapi_client.models.indicator_filter_dto import IndicatorFilterDTO
-from openapi_client.models.indicator_group_dto import IndicatorGroupDTO
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
-from openapi_client.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
-from openapi_client.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
-from openapi_client.models.isochrone_dto import IsochroneDTO
-from openapi_client.models.layer_dto import LayerDTO
-from openapi_client.models.layer_dto_datasets_inner import LayerDTODatasetsInner
-from openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
-from openapi_client.models.map_content_dto import MapContentDTO
-from openapi_client.models.map_content_dto_base_layer import MapContentDTOBaseLayer
-from openapi_client.models.map_content_dto_options import MapContentDTOOptions
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
-from openapi_client.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
-from openapi_client.models.map_dto import MapDTO
-from openapi_client.models.map_options_dto import MapOptionsDTO
-from openapi_client.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
-from openapi_client.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
-from openapi_client.models.mapycz_panorama_dto import MapyczPanoramaDTO
-from openapi_client.models.max_value_dto import MaxValueDTO
-from openapi_client.models.measure_dto import MeasureDTO
-from openapi_client.models.multi_select_filter_dto import MultiSelectFilterDTO
-from openapi_client.models.order_by_dto import OrderByDTO
-from openapi_client.models.ranking_dto import RankingDTO
-from openapi_client.models.relations_dto import RelationsDTO
-from openapi_client.models.scale_options_dto import ScaleOptionsDTO
-from openapi_client.models.single_select_filter_dto import SingleSelectFilterDTO
-from openapi_client.models.static_scale_option_dto import StaticScaleOptionDTO
-from openapi_client.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
-from openapi_client.models.style_dto import StyleDTO
-from openapi_client.models.time_series_dto import TimeSeriesDTO
-from openapi_client.models.token_request_dto import TokenRequestDTO
-from openapi_client.models.token_response_dto import TokenResponseDTO
-from openapi_client.models.variable_dto import VariableDTO
-from openapi_client.models.variables_dto import VariablesDTO
-from openapi_client.models.view_content_dto import ViewContentDTO
-from openapi_client.models.view_dto import ViewDTO
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
diff --git a/pyproject.toml b/pyproject.toml
index 1bb88ef..bbc692d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,13 +1,13 @@
[tool.poetry]
-name = "cm-python-openapi-sdk"
+name = "cm_python_openapi_sdk"
version = "1.0.0"
-description = "clevermaps-openapi-client"
+description = "clevermaps-client"
authors = ["OpenAPI Generator Community "]
license = "NoLicense"
readme = "README.md"
repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID"
keywords = ["OpenAPI", "OpenAPI-Generator", "clevermaps-client"]
-include = ["openapi_client/py.typed"]
+include = ["cm_python_openapi_sdk/py.typed"]
[tool.poetry.dependencies]
python = "^3.8"
@@ -35,7 +35,7 @@ extension-pkg-whitelist = "pydantic"
[tool.mypy]
files = [
- "openapi_client",
+ "cm_python_openapi_sdk",
#"test", # auto-generated tests
"tests", # hand-written tests
]
@@ -73,7 +73,7 @@ disallow_any_generics = true
[[tool.mypy.overrides]]
module = [
- "openapi_client.configuration",
+ "cm_python_openapi_sdk.configuration",
]
warn_unused_ignores = true
strict_equality = true
diff --git a/setup.py b/setup.py
index 2d0ff10..37ccb05 100644
--- a/setup.py
+++ b/setup.py
@@ -45,5 +45,5 @@
long_description="""\
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
""", # noqa: E501
- package_data={"openapi_client": ["py.typed"]},
+ package_data={"cm_python_openapi_sdk": ["py.typed"]},
)
\ No newline at end of file
diff --git a/test/test_active_date_filter_dto.py b/test/test_active_date_filter_dto.py
index a66136d..2663ec7 100644
--- a/test/test_active_date_filter_dto.py
+++ b/test/test_active_date_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_date_filter_dto import ActiveDateFilterDTO
+from cm_python_openapi_sdk.models.active_date_filter_dto import ActiveDateFilterDTO
class TestActiveDateFilterDTO(unittest.TestCase):
"""ActiveDateFilterDTO unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ActiveDateFilterDTO:
model = ActiveDateFilterDTO()
if include_optional:
return ActiveDateFilterDTO(
- default_values = openapi_client.models.default_values_date_dto.DefaultValuesDateDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO(
start_date = null,
end_date = null, ),
type = 'date',
@@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> ActiveDateFilterDTO:
)
else:
return ActiveDateFilterDTO(
- default_values = openapi_client.models.default_values_date_dto.DefaultValuesDateDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO(
start_date = null,
end_date = null, ),
type = 'date',
diff --git a/test/test_active_feature_filter_dto.py b/test/test_active_feature_filter_dto.py
index 9bd84e1..ff2bf75 100644
--- a/test/test_active_feature_filter_dto.py
+++ b/test/test_active_feature_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_feature_filter_dto import ActiveFeatureFilterDTO
+from cm_python_openapi_sdk.models.active_feature_filter_dto import ActiveFeatureFilterDTO
class TestActiveFeatureFilterDTO(unittest.TestCase):
"""ActiveFeatureFilterDTO unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ActiveFeatureFilterDTO:
model = ActiveFeatureFilterDTO()
if include_optional:
return ActiveFeatureFilterDTO(
- default_values = openapi_client.models.default_values_feature_dto.DefaultValuesFeatureDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_feature_dto.DefaultValuesFeatureDTO(
values = [
''
], ),
@@ -45,7 +45,7 @@ def make_instance(self, include_optional) -> ActiveFeatureFilterDTO:
)
else:
return ActiveFeatureFilterDTO(
- default_values = openapi_client.models.default_values_feature_dto.DefaultValuesFeatureDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_feature_dto.DefaultValuesFeatureDTO(
values = [
''
], ),
diff --git a/test/test_active_filter_abstract_type.py b/test/test_active_filter_abstract_type.py
index 8d5e81d..39bd5f4 100644
--- a/test/test_active_filter_abstract_type.py
+++ b/test/test_active_filter_abstract_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_filter_abstract_type import ActiveFilterAbstractType
+from cm_python_openapi_sdk.models.active_filter_abstract_type import ActiveFilterAbstractType
class TestActiveFilterAbstractType(unittest.TestCase):
"""ActiveFilterAbstractType unit test stubs"""
@@ -35,16 +35,16 @@ def make_instance(self, include_optional) -> ActiveFilterAbstractType:
model = ActiveFilterAbstractType()
if include_optional:
return ActiveFilterAbstractType(
- default_values = openapi_client.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
value = '', ),
type = 'date',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
],
@@ -55,7 +55,7 @@ def make_instance(self, include_optional) -> ActiveFilterAbstractType:
)
else:
return ActiveFilterAbstractType(
- default_values = openapi_client.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
value = '', ),
type = 'date',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
diff --git a/test/test_active_global_date_filter_dto.py b/test/test_active_global_date_filter_dto.py
index 8f99fd2..8accdd4 100644
--- a/test/test_active_global_date_filter_dto.py
+++ b/test/test_active_global_date_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
+from cm_python_openapi_sdk.models.active_global_date_filter_dto import ActiveGlobalDateFilterDTO
class TestActiveGlobalDateFilterDTO(unittest.TestCase):
"""ActiveGlobalDateFilterDTO unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ActiveGlobalDateFilterDTO:
model = ActiveGlobalDateFilterDTO()
if include_optional:
return ActiveGlobalDateFilterDTO(
- default_values = openapi_client.models.default_values_date_dto.DefaultValuesDateDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO(
start_date = null,
end_date = null, ),
type = 'globalDate',
@@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> ActiveGlobalDateFilterDTO:
)
else:
return ActiveGlobalDateFilterDTO(
- default_values = openapi_client.models.default_values_date_dto.DefaultValuesDateDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO(
start_date = null,
end_date = null, ),
type = 'globalDate',
diff --git a/test/test_active_histogram_filter_dto.py b/test/test_active_histogram_filter_dto.py
index 49da27a..bb1bd89 100644
--- a/test/test_active_histogram_filter_dto.py
+++ b/test/test_active_histogram_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
+from cm_python_openapi_sdk.models.active_histogram_filter_dto import ActiveHistogramFilterDTO
class TestActiveHistogramFilterDTO(unittest.TestCase):
"""ActiveHistogramFilterDTO unit test stubs"""
@@ -35,21 +35,21 @@ def make_instance(self, include_optional) -> ActiveHistogramFilterDTO:
model = ActiveHistogramFilterDTO()
if include_optional:
return ActiveHistogramFilterDTO(
- default_values = openapi_client.models.default_values_histogram_dto.DefaultValuesHistogramDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_histogram_dto.DefaultValuesHistogramDTO(
values = [
1.337
],
null_filtered = True, ),
type = 'histogram',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', )
)
else:
return ActiveHistogramFilterDTO(
- default_values = openapi_client.models.default_values_histogram_dto.DefaultValuesHistogramDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_histogram_dto.DefaultValuesHistogramDTO(
values = [
1.337
],
diff --git a/test/test_active_indicator_filter_dto.py b/test/test_active_indicator_filter_dto.py
index 02d43b6..f6e91e2 100644
--- a/test/test_active_indicator_filter_dto.py
+++ b/test/test_active_indicator_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
+from cm_python_openapi_sdk.models.active_indicator_filter_dto import ActiveIndicatorFilterDTO
class TestActiveIndicatorFilterDTO(unittest.TestCase):
"""ActiveIndicatorFilterDTO unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> ActiveIndicatorFilterDTO:
model = ActiveIndicatorFilterDTO()
if include_optional:
return ActiveIndicatorFilterDTO(
- default_values = openapi_client.models.default_values_indicator_dto.DefaultValuesIndicatorDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_indicator_dto.DefaultValuesIndicatorDTO(
values = [
1.337
],
@@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> ActiveIndicatorFilterDTO:
)
else:
return ActiveIndicatorFilterDTO(
- default_values = openapi_client.models.default_values_indicator_dto.DefaultValuesIndicatorDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_indicator_dto.DefaultValuesIndicatorDTO(
values = [
1.337
],
diff --git a/test/test_active_multi_select_filter_dto.py b/test/test_active_multi_select_filter_dto.py
index 43f093a..345546b 100644
--- a/test/test_active_multi_select_filter_dto.py
+++ b/test/test_active_multi_select_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
+from cm_python_openapi_sdk.models.active_multi_select_filter_dto import ActiveMultiSelectFilterDTO
class TestActiveMultiSelectFilterDTO(unittest.TestCase):
"""ActiveMultiSelectFilterDTO unit test stubs"""
@@ -35,21 +35,21 @@ def make_instance(self, include_optional) -> ActiveMultiSelectFilterDTO:
model = ActiveMultiSelectFilterDTO()
if include_optional:
return ActiveMultiSelectFilterDTO(
- default_values = openapi_client.models.default_values_multi_select_dto.DefaultValuesMultiSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_multi_select_dto.DefaultValuesMultiSelectDTO(
values = [
null
], ),
type = 'multiSelect',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
]
)
else:
return ActiveMultiSelectFilterDTO(
- default_values = openapi_client.models.default_values_multi_select_dto.DefaultValuesMultiSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_multi_select_dto.DefaultValuesMultiSelectDTO(
values = [
null
], ),
diff --git a/test/test_active_single_select_filter_dto.py b/test/test_active_single_select_filter_dto.py
index 57336a5..13c0dfa 100644
--- a/test/test_active_single_select_filter_dto.py
+++ b/test/test_active_single_select_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
+from cm_python_openapi_sdk.models.active_single_select_filter_dto import ActiveSingleSelectFilterDTO
class TestActiveSingleSelectFilterDTO(unittest.TestCase):
"""ActiveSingleSelectFilterDTO unit test stubs"""
@@ -35,19 +35,19 @@ def make_instance(self, include_optional) -> ActiveSingleSelectFilterDTO:
model = ActiveSingleSelectFilterDTO()
if include_optional:
return ActiveSingleSelectFilterDTO(
- default_values = openapi_client.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
value = '', ),
type = 'singleSelect',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
]
)
else:
return ActiveSingleSelectFilterDTO(
- default_values = openapi_client.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
+ default_values = cm_python_openapi_sdk.models.default_values_single_select_dto.DefaultValuesSingleSelectDTO(
value = '', ),
type = 'singleSelect',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
diff --git a/test/test_additional_series_link_dto.py b/test/test_additional_series_link_dto.py
index c507735..e091dab 100644
--- a/test/test_additional_series_link_dto.py
+++ b/test/test_additional_series_link_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.additional_series_link_dto import AdditionalSeriesLinkDTO
+from cm_python_openapi_sdk.models.additional_series_link_dto import AdditionalSeriesLinkDTO
class TestAdditionalSeriesLinkDTO(unittest.TestCase):
"""AdditionalSeriesLinkDTO unit test stubs"""
diff --git a/test/test_annotation_link_dto.py b/test/test_annotation_link_dto.py
index 190653e..3cef351 100644
--- a/test/test_annotation_link_dto.py
+++ b/test/test_annotation_link_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.annotation_link_dto import AnnotationLinkDTO
+from cm_python_openapi_sdk.models.annotation_link_dto import AnnotationLinkDTO
class TestAnnotationLinkDTO(unittest.TestCase):
"""AnnotationLinkDTO unit test stubs"""
diff --git a/test/test_attribute_format_dto.py b/test/test_attribute_format_dto.py
index 7df357e..d0bfc17 100644
--- a/test/test_attribute_format_dto.py
+++ b/test/test_attribute_format_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.attribute_format_dto import AttributeFormatDTO
+from cm_python_openapi_sdk.models.attribute_format_dto import AttributeFormatDTO
class TestAttributeFormatDTO(unittest.TestCase):
"""AttributeFormatDTO unit test stubs"""
diff --git a/test/test_attribute_style_category_dto.py b/test/test_attribute_style_category_dto.py
new file mode 100644
index 0000000..139406c
--- /dev/null
+++ b/test/test_attribute_style_category_dto.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.attribute_style_category_dto import AttributeStyleCategoryDTO
+
+class TestAttributeStyleCategoryDTO(unittest.TestCase):
+ """AttributeStyleCategoryDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AttributeStyleCategoryDTO:
+ """Test AttributeStyleCategoryDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AttributeStyleCategoryDTO`
+ """
+ model = AttributeStyleCategoryDTO()
+ if include_optional:
+ return AttributeStyleCategoryDTO(
+ title = '0',
+ value = None,
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, )
+ )
+ else:
+ return AttributeStyleCategoryDTO(
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ),
+ )
+ """
+
+ def testAttributeStyleCategoryDTO(self):
+ """Test AttributeStyleCategoryDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_attribute_style_content_dto.py b/test/test_attribute_style_content_dto.py
new file mode 100644
index 0000000..2ada9e4
--- /dev/null
+++ b/test/test_attribute_style_content_dto.py
@@ -0,0 +1,77 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.attribute_style_content_dto import AttributeStyleContentDTO
+
+class TestAttributeStyleContentDTO(unittest.TestCase):
+ """AttributeStyleContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AttributeStyleContentDTO:
+ """Test AttributeStyleContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AttributeStyleContentDTO`
+ """
+ model = AttributeStyleContentDTO()
+ if include_optional:
+ return AttributeStyleContentDTO(
+ var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ fallback_category = cm_python_openapi_sdk.models.attribute_style_fallback_category_dto.AttributeStyleFallbackCategoryDTO(
+ title = '0',
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), ),
+ categories = [
+ cm_python_openapi_sdk.models.attribute_style_category_dto.AttributeStyleCategoryDTO(
+ title = '0',
+ value = null,
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), )
+ ]
+ )
+ else:
+ return AttributeStyleContentDTO(
+ var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ )
+ """
+
+ def testAttributeStyleContentDTO(self):
+ """Test AttributeStyleContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_attribute_style_dto.py b/test/test_attribute_style_dto.py
new file mode 100644
index 0000000..4852e7c
--- /dev/null
+++ b/test/test_attribute_style_dto.py
@@ -0,0 +1,110 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.attribute_style_dto import AttributeStyleDTO
+
+class TestAttributeStyleDTO(unittest.TestCase):
+ """AttributeStyleDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AttributeStyleDTO:
+ """Test AttributeStyleDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AttributeStyleDTO`
+ """
+ model = AttributeStyleDTO()
+ if include_optional:
+ return AttributeStyleDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.attribute_style_content_dto.AttributeStyleContentDTO(
+ property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ fallback_category = cm_python_openapi_sdk.models.attribute_style_fallback_category_dto.AttributeStyleFallbackCategoryDTO(
+ title = '0',
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), ),
+ categories = [
+ cm_python_openapi_sdk.models.attribute_style_category_dto.AttributeStyleCategoryDTO(
+ title = '0',
+ value = null,
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), )
+ ], )
+ )
+ else:
+ return AttributeStyleDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ content = cm_python_openapi_sdk.models.attribute_style_content_dto.AttributeStyleContentDTO(
+ property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ fallback_category = cm_python_openapi_sdk.models.attribute_style_fallback_category_dto.AttributeStyleFallbackCategoryDTO(
+ title = '0',
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), ),
+ categories = [
+ cm_python_openapi_sdk.models.attribute_style_category_dto.AttributeStyleCategoryDTO(
+ title = '0',
+ value = null,
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), )
+ ], ),
+ )
+ """
+
+ def testAttributeStyleDTO(self):
+ """Test AttributeStyleDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_attribute_style_fallback_category_dto.py b/test/test_attribute_style_fallback_category_dto.py
new file mode 100644
index 0000000..a01561b
--- /dev/null
+++ b/test/test_attribute_style_fallback_category_dto.py
@@ -0,0 +1,69 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.attribute_style_fallback_category_dto import AttributeStyleFallbackCategoryDTO
+
+class TestAttributeStyleFallbackCategoryDTO(unittest.TestCase):
+ """AttributeStyleFallbackCategoryDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AttributeStyleFallbackCategoryDTO:
+ """Test AttributeStyleFallbackCategoryDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AttributeStyleFallbackCategoryDTO`
+ """
+ model = AttributeStyleFallbackCategoryDTO()
+ if include_optional:
+ return AttributeStyleFallbackCategoryDTO(
+ title = '0',
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, )
+ )
+ else:
+ return AttributeStyleFallbackCategoryDTO(
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ),
+ )
+ """
+
+ def testAttributeStyleFallbackCategoryDTO(self):
+ """Test AttributeStyleFallbackCategoryDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_attribute_style_paged_model_dto.py b/test/test_attribute_style_paged_model_dto.py
new file mode 100644
index 0000000..1c46003
--- /dev/null
+++ b/test/test_attribute_style_paged_model_dto.py
@@ -0,0 +1,93 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.attribute_style_paged_model_dto import AttributeStylePagedModelDTO
+
+class TestAttributeStylePagedModelDTO(unittest.TestCase):
+ """AttributeStylePagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> AttributeStylePagedModelDTO:
+ """Test AttributeStylePagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `AttributeStylePagedModelDTO`
+ """
+ model = AttributeStylePagedModelDTO()
+ if include_optional:
+ return AttributeStylePagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.attribute_style_dto.AttributeStyleDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.attribute_style_content_dto.AttributeStyleContentDTO(
+ property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ fallback_category = cm_python_openapi_sdk.models.attribute_style_fallback_category_dto.AttributeStyleFallbackCategoryDTO(
+ title = '0',
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), ),
+ categories = [
+ cm_python_openapi_sdk.models.attribute_style_category_dto.AttributeStyleCategoryDTO(
+ title = '0',
+ value = null,
+ style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
+ fill_color = 'purple',
+ fill_hex_color = '#62ECB0',
+ fill_opacity = 1.337,
+ outline_color = 'purple',
+ outline_hex_color = '#62ECB0',
+ outline_opacity = 1.337,
+ outline_width = 1.337,
+ size = 1.337, ), )
+ ], ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return AttributeStylePagedModelDTO(
+ )
+ """
+
+ def testAttributeStylePagedModelDTO(self):
+ """Test AttributeStylePagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_attribute_styles_api.py b/test/test_attribute_styles_api.py
new file mode 100644
index 0000000..93f3289
--- /dev/null
+++ b/test/test_attribute_styles_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.attribute_styles_api import AttributeStylesApi
+
+
+class TestAttributeStylesApi(unittest.TestCase):
+ """AttributeStylesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = AttributeStylesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_attribute_style(self) -> None:
+ """Test case for create_attribute_style
+
+ Creates new attribute style
+ """
+ pass
+
+ def test_delete_attribute_style_by_id(self) -> None:
+ """Test case for delete_attribute_style_by_id
+
+ Deletes attribute style by id
+ """
+ pass
+
+ def test_get_all_attribute_styles(self) -> None:
+ """Test case for get_all_attribute_styles
+
+ Returns paged collection of all Attribute Styles in a project
+ """
+ pass
+
+ def test_get_attribute_style_by_id(self) -> None:
+ """Test case for get_attribute_style_by_id
+
+ Gets attribute style by id
+ """
+ pass
+
+ def test_update_attribute_style_by_id(self) -> None:
+ """Test case for update_attribute_style_by_id
+
+ Updates attribute style by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_authentication_api.py b/test/test_authentication_api.py
index 40dd3ba..cfc17a5 100644
--- a/test/test_authentication_api.py
+++ b/test/test_authentication_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.authentication_api import AuthenticationApi
+from cm_python_openapi_sdk.api.authentication_api import AuthenticationApi
class TestAuthenticationApi(unittest.TestCase):
diff --git a/test/test_block_abstract_type.py b/test/test_block_abstract_type.py
index 311316d..289cdf4 100644
--- a/test/test_block_abstract_type.py
+++ b/test/test_block_abstract_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.block_abstract_type import BlockAbstractType
+from cm_python_openapi_sdk.models.block_abstract_type import BlockAbstractType
class TestBlockAbstractType(unittest.TestCase):
"""BlockAbstractType unit test stubs"""
@@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> BlockAbstractType:
filterable = True,
hide_null_items = True,
size_limit = 56,
- order_by = openapi_client.models.order_by_dto.OrderByDTO(
+ order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', ),
vertical = True,
@@ -60,11 +60,11 @@ def make_instance(self, include_optional) -> BlockAbstractType:
direction = 'asc',
default_period = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
additional_series = [
- openapi_client.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
+ cm_python_openapi_sdk.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
annotations = [
- openapi_client.models.annotation_link_dto.AnnotationLinkDTO(
+ cm_python_openapi_sdk.models.annotation_link_dto.AnnotationLinkDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
]
)
diff --git a/test/test_block_row_abstract_type.py b/test/test_block_row_abstract_type.py
index 237f61c..358aa6a 100644
--- a/test/test_block_row_abstract_type.py
+++ b/test/test_block_row_abstract_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.block_row_abstract_type import BlockRowAbstractType
+from cm_python_openapi_sdk.models.block_row_abstract_type import BlockRowAbstractType
class TestBlockRowAbstractType(unittest.TestCase):
"""BlockRowAbstractType unit test stubs"""
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType:
return BlockRowAbstractType(
type = 'blockRow',
blocks = [
- openapi_client.models.indicator_link_dto.IndicatorLinkDTO(
+ cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO(
type = 'indicator',
title = '',
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
@@ -63,7 +63,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType:
filterable = True,
hide_null_items = True,
size_limit = 56,
- order_by = openapi_client.models.order_by_dto.OrderByDTO(
+ order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', ),
vertical = True,
@@ -77,11 +77,11 @@ def make_instance(self, include_optional) -> BlockRowAbstractType:
direction = 'asc',
default_period = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
additional_series = [
- openapi_client.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
+ cm_python_openapi_sdk.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
annotations = [
- openapi_client.models.annotation_link_dto.AnnotationLinkDTO(
+ cm_python_openapi_sdk.models.annotation_link_dto.AnnotationLinkDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
]
)
@@ -89,7 +89,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType:
return BlockRowAbstractType(
type = 'blockRow',
blocks = [
- openapi_client.models.indicator_link_dto.IndicatorLinkDTO(
+ cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO(
type = 'indicator',
title = '',
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
diff --git a/test/test_block_row_dto.py b/test/test_block_row_dto.py
index 91303f3..d770201 100644
--- a/test/test_block_row_dto.py
+++ b/test/test_block_row_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.block_row_dto import BlockRowDTO
+from cm_python_openapi_sdk.models.block_row_dto import BlockRowDTO
class TestBlockRowDTO(unittest.TestCase):
"""BlockRowDTO unit test stubs"""
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> BlockRowDTO:
return BlockRowDTO(
type = 'blockRow',
blocks = [
- openapi_client.models.indicator_link_dto.IndicatorLinkDTO(
+ cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO(
type = 'indicator',
title = '',
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
@@ -53,7 +53,7 @@ def make_instance(self, include_optional) -> BlockRowDTO:
return BlockRowDTO(
type = 'blockRow',
blocks = [
- openapi_client.models.indicator_link_dto.IndicatorLinkDTO(
+ cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO(
type = 'indicator',
title = '',
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
diff --git a/test/test_bulk_point_query_job_request.py b/test/test_bulk_point_query_job_request.py
new file mode 100644
index 0000000..d6fbca7
--- /dev/null
+++ b/test/test_bulk_point_query_job_request.py
@@ -0,0 +1,124 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_job_request import BulkPointQueryJobRequest
+
+class TestBulkPointQueryJobRequest(unittest.TestCase):
+ """BulkPointQueryJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryJobRequest:
+ """Test BulkPointQueryJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryJobRequest`
+ """
+ model = BulkPointQueryJobRequest()
+ if include_optional:
+ return BulkPointQueryJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.bulk_point_query_request.BulkPointQueryRequest(
+ enable_billing = True,
+ points = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_points_inner.BulkPointQueryRequest_points_inner(
+ id = '',
+ lat = 1.337,
+ lng = 1.337, )
+ ],
+ point_queries = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner.BulkPointQueryRequest_pointQueries_inner(
+ query_id = '',
+ type = 'isochrone',
+ options = null,
+ dataset = '',
+ execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(),
+ properties = [
+ None
+ ],
+ filter_by = [
+ None
+ ],
+ result_set_filter = [
+ None
+ ],
+ having = [
+ None
+ ],
+ order_by = [
+ None
+ ],
+ variables = [
+ None
+ ],
+ limit = 56, )
+ ], )
+ )
+ else:
+ return BulkPointQueryJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.bulk_point_query_request.BulkPointQueryRequest(
+ enable_billing = True,
+ points = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_points_inner.BulkPointQueryRequest_points_inner(
+ id = '',
+ lat = 1.337,
+ lng = 1.337, )
+ ],
+ point_queries = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner.BulkPointQueryRequest_pointQueries_inner(
+ query_id = '',
+ type = 'isochrone',
+ options = null,
+ dataset = '',
+ execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(),
+ properties = [
+ None
+ ],
+ filter_by = [
+ None
+ ],
+ result_set_filter = [
+ None
+ ],
+ having = [
+ None
+ ],
+ order_by = [
+ None
+ ],
+ variables = [
+ None
+ ],
+ limit = 56, )
+ ], ),
+ )
+ """
+
+ def testBulkPointQueryJobRequest(self):
+ """Test BulkPointQueryJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_point_queries_option_isochrone.py b/test/test_bulk_point_query_point_queries_option_isochrone.py
new file mode 100644
index 0000000..5319707
--- /dev/null
+++ b/test/test_bulk_point_query_point_queries_option_isochrone.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_isochrone import BulkPointQueryPointQueriesOptionIsochrone
+
+class TestBulkPointQueryPointQueriesOptionIsochrone(unittest.TestCase):
+ """BulkPointQueryPointQueriesOptionIsochrone unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryPointQueriesOptionIsochrone:
+ """Test BulkPointQueryPointQueriesOptionIsochrone
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryPointQueriesOptionIsochrone`
+ """
+ model = BulkPointQueryPointQueriesOptionIsochrone()
+ if include_optional:
+ return BulkPointQueryPointQueriesOptionIsochrone(
+ profile = 'car',
+ unit = 'time',
+ amount = 1
+ )
+ else:
+ return BulkPointQueryPointQueriesOptionIsochrone(
+ profile = 'car',
+ unit = 'time',
+ amount = 1,
+ )
+ """
+
+ def testBulkPointQueryPointQueriesOptionIsochrone(self):
+ """Test BulkPointQueryPointQueriesOptionIsochrone"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_point_queries_option_nearest.py b/test/test_bulk_point_query_point_queries_option_nearest.py
new file mode 100644
index 0000000..517d86a
--- /dev/null
+++ b/test/test_bulk_point_query_point_queries_option_nearest.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest
+
+class TestBulkPointQueryPointQueriesOptionNearest(unittest.TestCase):
+ """BulkPointQueryPointQueriesOptionNearest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryPointQueriesOptionNearest:
+ """Test BulkPointQueryPointQueriesOptionNearest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryPointQueriesOptionNearest`
+ """
+ model = BulkPointQueryPointQueriesOptionNearest()
+ if include_optional:
+ return BulkPointQueryPointQueriesOptionNearest(
+ limit = 56
+ )
+ else:
+ return BulkPointQueryPointQueriesOptionNearest(
+ )
+ """
+
+ def testBulkPointQueryPointQueriesOptionNearest(self):
+ """Test BulkPointQueryPointQueriesOptionNearest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_request.py b/test/test_bulk_point_query_request.py
new file mode 100644
index 0000000..d6f79e9
--- /dev/null
+++ b/test/test_bulk_point_query_request.py
@@ -0,0 +1,117 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_request import BulkPointQueryRequest
+
+class TestBulkPointQueryRequest(unittest.TestCase):
+ """BulkPointQueryRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryRequest:
+ """Test BulkPointQueryRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryRequest`
+ """
+ model = BulkPointQueryRequest()
+ if include_optional:
+ return BulkPointQueryRequest(
+ enable_billing = True,
+ points = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_points_inner.BulkPointQueryRequest_points_inner(
+ id = '',
+ lat = 1.337,
+ lng = 1.337, )
+ ],
+ point_queries = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner.BulkPointQueryRequest_pointQueries_inner(
+ query_id = '',
+ type = 'isochrone',
+ options = null,
+ dataset = '',
+ execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(),
+ properties = [
+ None
+ ],
+ filter_by = [
+ None
+ ],
+ result_set_filter = [
+ None
+ ],
+ having = [
+ None
+ ],
+ order_by = [
+ None
+ ],
+ variables = [
+ None
+ ],
+ limit = 56, )
+ ]
+ )
+ else:
+ return BulkPointQueryRequest(
+ points = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_points_inner.BulkPointQueryRequest_points_inner(
+ id = '',
+ lat = 1.337,
+ lng = 1.337, )
+ ],
+ point_queries = [
+ cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner.BulkPointQueryRequest_pointQueries_inner(
+ query_id = '',
+ type = 'isochrone',
+ options = null,
+ dataset = '',
+ execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(),
+ properties = [
+ None
+ ],
+ filter_by = [
+ None
+ ],
+ result_set_filter = [
+ None
+ ],
+ having = [
+ None
+ ],
+ order_by = [
+ None
+ ],
+ variables = [
+ None
+ ],
+ limit = 56, )
+ ],
+ )
+ """
+
+ def testBulkPointQueryRequest(self):
+ """Test BulkPointQueryRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_request_point_queries_inner.py b/test/test_bulk_point_query_request_point_queries_inner.py
new file mode 100644
index 0000000..f025cf6
--- /dev/null
+++ b/test/test_bulk_point_query_request_point_queries_inner.py
@@ -0,0 +1,76 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner import BulkPointQueryRequestPointQueriesInner
+
+class TestBulkPointQueryRequestPointQueriesInner(unittest.TestCase):
+ """BulkPointQueryRequestPointQueriesInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesInner:
+ """Test BulkPointQueryRequestPointQueriesInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryRequestPointQueriesInner`
+ """
+ model = BulkPointQueryRequestPointQueriesInner()
+ if include_optional:
+ return BulkPointQueryRequestPointQueriesInner(
+ query_id = '',
+ type = 'isochrone',
+ options = None,
+ dataset = '',
+ execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(),
+ properties = [
+ None
+ ],
+ filter_by = [
+ None
+ ],
+ result_set_filter = [
+ None
+ ],
+ having = [
+ None
+ ],
+ order_by = [
+ None
+ ],
+ variables = [
+ None
+ ],
+ limit = 56
+ )
+ else:
+ return BulkPointQueryRequestPointQueriesInner(
+ type = 'isochrone',
+ dataset = '',
+ )
+ """
+
+ def testBulkPointQueryRequestPointQueriesInner(self):
+ """Test BulkPointQueryRequestPointQueriesInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_request_point_queries_inner_options.py b/test/test_bulk_point_query_request_point_queries_inner_options.py
new file mode 100644
index 0000000..3cfcba5
--- /dev/null
+++ b/test/test_bulk_point_query_request_point_queries_inner_options.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_inner_options import BulkPointQueryRequestPointQueriesInnerOptions
+
+class TestBulkPointQueryRequestPointQueriesInnerOptions(unittest.TestCase):
+ """BulkPointQueryRequestPointQueriesInnerOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesInnerOptions:
+ """Test BulkPointQueryRequestPointQueriesInnerOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryRequestPointQueriesInnerOptions`
+ """
+ model = BulkPointQueryRequestPointQueriesInnerOptions()
+ if include_optional:
+ return BulkPointQueryRequestPointQueriesInnerOptions(
+ profile = 'car',
+ unit = 'time',
+ amount = 1,
+ limit = 56
+ )
+ else:
+ return BulkPointQueryRequestPointQueriesInnerOptions(
+ profile = 'car',
+ unit = 'time',
+ amount = 1,
+ )
+ """
+
+ def testBulkPointQueryRequestPointQueriesInnerOptions(self):
+ """Test BulkPointQueryRequestPointQueriesInnerOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_bulk_point_query_request_points_inner.py b/test/test_bulk_point_query_request_points_inner.py
new file mode 100644
index 0000000..4edabdf
--- /dev/null
+++ b/test/test_bulk_point_query_request_points_inner.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.bulk_point_query_request_points_inner import BulkPointQueryRequestPointsInner
+
+class TestBulkPointQueryRequestPointsInner(unittest.TestCase):
+ """BulkPointQueryRequestPointsInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BulkPointQueryRequestPointsInner:
+ """Test BulkPointQueryRequestPointsInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BulkPointQueryRequestPointsInner`
+ """
+ model = BulkPointQueryRequestPointsInner()
+ if include_optional:
+ return BulkPointQueryRequestPointsInner(
+ id = '',
+ lat = 1.337,
+ lng = 1.337
+ )
+ else:
+ return BulkPointQueryRequestPointsInner(
+ lat = 1.337,
+ lng = 1.337,
+ )
+ """
+
+ def testBulkPointQueryRequestPointsInner(self):
+ """Test BulkPointQueryRequestPointsInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_categories_dto.py b/test/test_categories_dto.py
index e2f3895..2c4f439 100644
--- a/test/test_categories_dto.py
+++ b/test/test_categories_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.categories_dto import CategoriesDTO
+from cm_python_openapi_sdk.models.categories_dto import CategoriesDTO
class TestCategoriesDTO(unittest.TestCase):
"""CategoriesDTO unit test stubs"""
@@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> CategoriesDTO:
filterable = True,
hide_null_items = True,
size_limit = 56,
- order_by = openapi_client.models.order_by_dto.OrderByDTO(
+ order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', ),
vertical = True,
diff --git a/test/test_category_dto.py b/test/test_category_dto.py
new file mode 100644
index 0000000..065a7db
--- /dev/null
+++ b/test/test_category_dto.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.category_dto import CategoryDTO
+
+class TestCategoryDTO(unittest.TestCase):
+ """CategoryDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CategoryDTO:
+ """Test CategoryDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CategoryDTO`
+ """
+ model = CategoryDTO()
+ if include_optional:
+ return CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ linked_layers = [
+ cm_python_openapi_sdk.models.linked_layer_dto.LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True, )
+ ]
+ )
+ else:
+ return CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ )
+ """
+
+ def testCategoryDTO(self):
+ """Test CategoryDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_center_dto.py b/test/test_center_dto.py
index 6491053..6ebf858 100644
--- a/test/test_center_dto.py
+++ b/test/test_center_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.center_dto import CenterDTO
+from cm_python_openapi_sdk.models.center_dto import CenterDTO
class TestCenterDTO(unittest.TestCase):
"""CenterDTO unit test stubs"""
diff --git a/test/test_create_invitation.py b/test/test_create_invitation.py
new file mode 100644
index 0000000..897a798
--- /dev/null
+++ b/test/test_create_invitation.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.create_invitation import CreateInvitation
+
+class TestCreateInvitation(unittest.TestCase):
+ """CreateInvitation unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateInvitation:
+ """Test CreateInvitation
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateInvitation`
+ """
+ model = CreateInvitation()
+ if include_optional:
+ return CreateInvitation(
+ email = '',
+ role = ''
+ )
+ else:
+ return CreateInvitation(
+ email = '',
+ role = '',
+ )
+ """
+
+ def testCreateInvitation(self):
+ """Test CreateInvitation"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_membership_dto.py b/test/test_create_membership_dto.py
new file mode 100644
index 0000000..51cda77
--- /dev/null
+++ b/test/test_create_membership_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.create_membership_dto import CreateMembershipDTO
+
+class TestCreateMembershipDTO(unittest.TestCase):
+ """CreateMembershipDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateMembershipDTO:
+ """Test CreateMembershipDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateMembershipDTO`
+ """
+ model = CreateMembershipDTO()
+ if include_optional:
+ return CreateMembershipDTO(
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS'
+ )
+ else:
+ return CreateMembershipDTO(
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ )
+ """
+
+ def testCreateMembershipDTO(self):
+ """Test CreateMembershipDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_organization_dto.py b/test/test_create_organization_dto.py
new file mode 100644
index 0000000..e9d3117
--- /dev/null
+++ b/test/test_create_organization_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.create_organization_dto import CreateOrganizationDTO
+
+class TestCreateOrganizationDTO(unittest.TestCase):
+ """CreateOrganizationDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateOrganizationDTO:
+ """Test CreateOrganizationDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateOrganizationDTO`
+ """
+ model = CreateOrganizationDTO()
+ if include_optional:
+ return CreateOrganizationDTO(
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg'
+ )
+ else:
+ return CreateOrganizationDTO(
+ title = '0',
+ dwh_cluster_id = 'w8q6zg',
+ )
+ """
+
+ def testCreateOrganizationDTO(self):
+ """Test CreateOrganizationDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_create_project_dto.py b/test/test_create_project_dto.py
new file mode 100644
index 0000000..5c184e4
--- /dev/null
+++ b/test/test_create_project_dto.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.create_project_dto import CreateProjectDTO
+
+class TestCreateProjectDTO(unittest.TestCase):
+ """CreateProjectDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateProjectDTO:
+ """Test CreateProjectDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateProjectDTO`
+ """
+ model = CreateProjectDTO()
+ if include_optional:
+ return CreateProjectDTO(
+ title = '0',
+ description = '',
+ organization_id = 'w8q6zgckec0l3o4g'
+ )
+ else:
+ return CreateProjectDTO(
+ title = '0',
+ )
+ """
+
+ def testCreateProjectDTO(self):
+ """Test CreateProjectDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_cuzk_parcel_info_dto.py b/test/test_cuzk_parcel_info_dto.py
index dd5d2eb..1705ab2 100644
--- a/test/test_cuzk_parcel_info_dto.py
+++ b/test/test_cuzk_parcel_info_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
+from cm_python_openapi_sdk.models.cuzk_parcel_info_dto import CuzkParcelInfoDTO
class TestCuzkParcelInfoDTO(unittest.TestCase):
"""CuzkParcelInfoDTO unit test stubs"""
diff --git a/test/test_dashboard_content_dto.py b/test/test_dashboard_content_dto.py
index 0cc2808..fc9ecf1 100644
--- a/test/test_dashboard_content_dto.py
+++ b/test/test_dashboard_content_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.dashboard_content_dto import DashboardContentDTO
+from cm_python_openapi_sdk.models.dashboard_content_dto import DashboardContentDTO
class TestDashboardContentDTO(unittest.TestCase):
"""DashboardContentDTO unit test stubs"""
@@ -39,14 +39,14 @@ def make_instance(self, include_optional) -> DashboardContentDTO:
null
],
dataset_properties = [
- openapi_client.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
+ cm_python_openapi_sdk.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_search = 'enable',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
diff --git a/test/test_dashboard_dataset_properties_dto.py b/test/test_dashboard_dataset_properties_dto.py
index bf14d05..e3d9dcc 100644
--- a/test/test_dashboard_dataset_properties_dto.py
+++ b/test/test_dashboard_dataset_properties_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
+from cm_python_openapi_sdk.models.dashboard_dataset_properties_dto import DashboardDatasetPropertiesDTO
class TestDashboardDatasetPropertiesDTO(unittest.TestCase):
"""DashboardDatasetPropertiesDTO unit test stubs"""
@@ -38,10 +38,10 @@ def make_instance(self, include_optional) -> DashboardDatasetPropertiesDTO:
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_search = 'enable',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
@@ -52,10 +52,10 @@ def make_instance(self, include_optional) -> DashboardDatasetPropertiesDTO:
return DashboardDatasetPropertiesDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
diff --git a/test/test_dashboard_dto.py b/test/test_dashboard_dto.py
index 8547ad7..c0100e6 100644
--- a/test/test_dashboard_dto.py
+++ b/test/test_dashboard_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.dashboard_dto import DashboardDTO
+from cm_python_openapi_sdk.models.dashboard_dto import DashboardDTO
class TestDashboardDTO(unittest.TestCase):
"""DashboardDTO unit test stubs"""
@@ -40,19 +40,19 @@ def make_instance(self, include_optional) -> DashboardDTO:
type = 'dataset',
title = '0',
description = '0',
- content = openapi_client.models.dashboard_content_dto.DashboardContentDTO(
+ content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO(
block_rows = [
null
],
dataset_properties = [
- openapi_client.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
+ cm_python_openapi_sdk.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_search = 'enable',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
@@ -63,19 +63,19 @@ def make_instance(self, include_optional) -> DashboardDTO:
else:
return DashboardDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
- content = openapi_client.models.dashboard_content_dto.DashboardContentDTO(
+ content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO(
block_rows = [
null
],
dataset_properties = [
- openapi_client.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
+ cm_python_openapi_sdk.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_search = 'enable',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
diff --git a/test/test_dashboard_paged_model_dto.py b/test/test_dashboard_paged_model_dto.py
index 62b60bb..6022ac0 100644
--- a/test/test_dashboard_paged_model_dto.py
+++ b/test/test_dashboard_paged_model_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.dashboard_paged_model_dto import DashboardPagedModelDTO
+from cm_python_openapi_sdk.models.dashboard_paged_model_dto import DashboardPagedModelDTO
class TestDashboardPagedModelDTO(unittest.TestCase):
"""DashboardPagedModelDTO unit test stubs"""
@@ -36,25 +36,25 @@ def make_instance(self, include_optional) -> DashboardPagedModelDTO:
if include_optional:
return DashboardPagedModelDTO(
content = [
- openapi_client.models.dashboard_dto.DashboardDTO(
+ cm_python_openapi_sdk.models.dashboard_dto.DashboardDTO(
id = '',
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
type = 'dataset',
title = '0',
description = '0',
- content = openapi_client.models.dashboard_content_dto.DashboardContentDTO(
+ content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO(
block_rows = [
null
],
dataset_properties = [
- openapi_client.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
+ cm_python_openapi_sdk.models.dashboard_dataset_properties_dto.DashboardDatasetPropertiesDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_search = 'enable',
feature_attributes = [
- openapi_client.models.feature_attribute_dto.FeatureAttributeDTO(
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
@@ -65,7 +65,7 @@ def make_instance(self, include_optional) -> DashboardPagedModelDTO:
links = [
None
],
- page = openapi_client.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
size = 56,
total_elements = null,
total_pages = 56,
diff --git a/test/test_dashboards_api.py b/test/test_dashboards_api.py
index 830b37c..de3e2d5 100644
--- a/test/test_dashboards_api.py
+++ b/test/test_dashboards_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.dashboards_api import DashboardsApi
+from cm_python_openapi_sdk.api.dashboards_api import DashboardsApi
class TestDashboardsApi(unittest.TestCase):
diff --git a/test/test_data_dump_job_request.py b/test/test_data_dump_job_request.py
new file mode 100644
index 0000000..2dc196f
--- /dev/null
+++ b/test/test_data_dump_job_request.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_dump_job_request import DataDumpJobRequest
+
+class TestDataDumpJobRequest(unittest.TestCase):
+ """DataDumpJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataDumpJobRequest:
+ """Test DataDumpJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataDumpJobRequest`
+ """
+ model = DataDumpJobRequest()
+ if include_optional:
+ return DataDumpJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.data_dump_request.DataDumpRequest(
+ dataset = '0', )
+ )
+ else:
+ return DataDumpJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.data_dump_request.DataDumpRequest(
+ dataset = '0', ),
+ )
+ """
+
+ def testDataDumpJobRequest(self):
+ """Test DataDumpJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_dump_request.py b/test/test_data_dump_request.py
new file mode 100644
index 0000000..968eca5
--- /dev/null
+++ b/test/test_data_dump_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_dump_request import DataDumpRequest
+
+class TestDataDumpRequest(unittest.TestCase):
+ """DataDumpRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataDumpRequest:
+ """Test DataDumpRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataDumpRequest`
+ """
+ model = DataDumpRequest()
+ if include_optional:
+ return DataDumpRequest(
+ dataset = '0'
+ )
+ else:
+ return DataDumpRequest(
+ dataset = '0',
+ )
+ """
+
+ def testDataDumpRequest(self):
+ """Test DataDumpRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_permission_content_dto.py b/test/test_data_permission_content_dto.py
new file mode 100644
index 0000000..87b3370
--- /dev/null
+++ b/test/test_data_permission_content_dto.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_permission_content_dto import DataPermissionContentDTO
+
+class TestDataPermissionContentDTO(unittest.TestCase):
+ """DataPermissionContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPermissionContentDTO:
+ """Test DataPermissionContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPermissionContentDTO`
+ """
+ model = DataPermissionContentDTO()
+ if include_optional:
+ return DataPermissionContentDTO(
+ account_id = 'gCu2LC4aWwWL9Y864DZt',
+ filters = [
+ null
+ ]
+ )
+ else:
+ return DataPermissionContentDTO(
+ account_id = 'gCu2LC4aWwWL9Y864DZt',
+ filters = [
+ null
+ ],
+ )
+ """
+
+ def testDataPermissionContentDTO(self):
+ """Test DataPermissionContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_permission_dto.py b/test/test_data_permission_dto.py
new file mode 100644
index 0000000..bf798b2
--- /dev/null
+++ b/test/test_data_permission_dto.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_permission_dto import DataPermissionDTO
+
+class TestDataPermissionDTO(unittest.TestCase):
+ """DataPermissionDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPermissionDTO:
+ """Test DataPermissionDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPermissionDTO`
+ """
+ model = DataPermissionDTO()
+ if include_optional:
+ return DataPermissionDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.data_permission_content_dto.DataPermissionContentDTO(
+ account_id = 'gCu2LC4aWwWL9Y864DZt',
+ filters = [
+ null
+ ], )
+ )
+ else:
+ return DataPermissionDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ content = cm_python_openapi_sdk.models.data_permission_content_dto.DataPermissionContentDTO(
+ account_id = 'gCu2LC4aWwWL9Y864DZt',
+ filters = [
+ null
+ ], ),
+ )
+ """
+
+ def testDataPermissionDTO(self):
+ """Test DataPermissionDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_permission_paged_model_dto.py b/test/test_data_permission_paged_model_dto.py
new file mode 100644
index 0000000..bce4a9e
--- /dev/null
+++ b/test/test_data_permission_paged_model_dto.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_permission_paged_model_dto import DataPermissionPagedModelDTO
+
+class TestDataPermissionPagedModelDTO(unittest.TestCase):
+ """DataPermissionPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPermissionPagedModelDTO:
+ """Test DataPermissionPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPermissionPagedModelDTO`
+ """
+ model = DataPermissionPagedModelDTO()
+ if include_optional:
+ return DataPermissionPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.data_permission_dto.DataPermissionDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.data_permission_content_dto.DataPermissionContentDTO(
+ account_id = 'gCu2LC4aWwWL9Y864DZt',
+ filters = [
+ null
+ ], ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return DataPermissionPagedModelDTO(
+ )
+ """
+
+ def testDataPermissionPagedModelDTO(self):
+ """Test DataPermissionPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_permissions_api.py b/test/test_data_permissions_api.py
new file mode 100644
index 0000000..b775175
--- /dev/null
+++ b/test/test_data_permissions_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.data_permissions_api import DataPermissionsApi
+
+
+class TestDataPermissionsApi(unittest.TestCase):
+ """DataPermissionsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DataPermissionsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_data_permission(self) -> None:
+ """Test case for create_data_permission
+
+ Creates new data permission
+ """
+ pass
+
+ def test_delete_data_permission_by_id(self) -> None:
+ """Test case for delete_data_permission_by_id
+
+ Deletes data permission by id
+ """
+ pass
+
+ def test_get_all_data_permissions(self) -> None:
+ """Test case for get_all_data_permissions
+
+ Returns paged collection of all data permissions in a project
+ """
+ pass
+
+ def test_get_data_permission_by_id(self) -> None:
+ """Test case for get_data_permission_by_id
+
+ Gets data permission by id
+ """
+ pass
+
+ def test_update_data_permission_by_id(self) -> None:
+ """Test case for update_data_permission_by_id
+
+ Updates data permission by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_pull_job_request.py b/test/test_data_pull_job_request.py
new file mode 100644
index 0000000..9980c61
--- /dev/null
+++ b/test/test_data_pull_job_request.py
@@ -0,0 +1,102 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_pull_job_request import DataPullJobRequest
+
+class TestDataPullJobRequest(unittest.TestCase):
+ """DataPullJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPullJobRequest:
+ """Test DataPullJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPullJobRequest`
+ """
+ model = DataPullJobRequest()
+ if include_optional:
+ return DataPullJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.data_pull_request.DataPullRequest(
+ dataset = '0',
+ mode = 'full',
+ type = 'csv',
+ upload = '',
+ s3_upload = cm_python_openapi_sdk.models.data_pull_request_s3_upload.DataPullRequest_s3Upload(
+ uri = '',
+ access_key_id = '',
+ secret_access_key = '',
+ region = '',
+ endpoint_override = '',
+ force_path_style = True, ),
+ https_upload = cm_python_openapi_sdk.models.data_pull_request_https_upload.DataPullRequest_httpsUpload(
+ url = '', ),
+ csv_options = cm_python_openapi_sdk.models.data_pull_request_csv_options.DataPullRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '',
+ null = '',
+ force_null = [
+ ''
+ ], ),
+ skip_refreshing_materialized_views = True, )
+ )
+ else:
+ return DataPullJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.data_pull_request.DataPullRequest(
+ dataset = '0',
+ mode = 'full',
+ type = 'csv',
+ upload = '',
+ s3_upload = cm_python_openapi_sdk.models.data_pull_request_s3_upload.DataPullRequest_s3Upload(
+ uri = '',
+ access_key_id = '',
+ secret_access_key = '',
+ region = '',
+ endpoint_override = '',
+ force_path_style = True, ),
+ https_upload = cm_python_openapi_sdk.models.data_pull_request_https_upload.DataPullRequest_httpsUpload(
+ url = '', ),
+ csv_options = cm_python_openapi_sdk.models.data_pull_request_csv_options.DataPullRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '',
+ null = '',
+ force_null = [
+ ''
+ ], ),
+ skip_refreshing_materialized_views = True, ),
+ )
+ """
+
+ def testDataPullJobRequest(self):
+ """Test DataPullJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_pull_request.py b/test/test_data_pull_request.py
new file mode 100644
index 0000000..aadf2f0
--- /dev/null
+++ b/test/test_data_pull_request.py
@@ -0,0 +1,76 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_pull_request import DataPullRequest
+
+class TestDataPullRequest(unittest.TestCase):
+ """DataPullRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPullRequest:
+ """Test DataPullRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPullRequest`
+ """
+ model = DataPullRequest()
+ if include_optional:
+ return DataPullRequest(
+ dataset = '0',
+ mode = 'full',
+ type = 'csv',
+ upload = '',
+ s3_upload = cm_python_openapi_sdk.models.data_pull_request_s3_upload.DataPullRequest_s3Upload(
+ uri = '',
+ access_key_id = '',
+ secret_access_key = '',
+ region = '',
+ endpoint_override = '',
+ force_path_style = True, ),
+ https_upload = cm_python_openapi_sdk.models.data_pull_request_https_upload.DataPullRequest_httpsUpload(
+ url = '', ),
+ csv_options = cm_python_openapi_sdk.models.data_pull_request_csv_options.DataPullRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '',
+ null = '',
+ force_null = [
+ ''
+ ], ),
+ skip_refreshing_materialized_views = True
+ )
+ else:
+ return DataPullRequest(
+ dataset = '0',
+ mode = 'full',
+ type = 'csv',
+ )
+ """
+
+ def testDataPullRequest(self):
+ """Test DataPullRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_pull_request_csv_options.py b/test/test_data_pull_request_csv_options.py
new file mode 100644
index 0000000..1500e07
--- /dev/null
+++ b/test/test_data_pull_request_csv_options.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_pull_request_csv_options import DataPullRequestCsvOptions
+
+class TestDataPullRequestCsvOptions(unittest.TestCase):
+ """DataPullRequestCsvOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPullRequestCsvOptions:
+ """Test DataPullRequestCsvOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPullRequestCsvOptions`
+ """
+ model = DataPullRequestCsvOptions()
+ if include_optional:
+ return DataPullRequestCsvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '',
+ null = '',
+ force_null = [
+ ''
+ ]
+ )
+ else:
+ return DataPullRequestCsvOptions(
+ )
+ """
+
+ def testDataPullRequestCsvOptions(self):
+ """Test DataPullRequestCsvOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_pull_request_https_upload.py b/test/test_data_pull_request_https_upload.py
new file mode 100644
index 0000000..4425ead
--- /dev/null
+++ b/test/test_data_pull_request_https_upload.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_pull_request_https_upload import DataPullRequestHttpsUpload
+
+class TestDataPullRequestHttpsUpload(unittest.TestCase):
+ """DataPullRequestHttpsUpload unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPullRequestHttpsUpload:
+ """Test DataPullRequestHttpsUpload
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPullRequestHttpsUpload`
+ """
+ model = DataPullRequestHttpsUpload()
+ if include_optional:
+ return DataPullRequestHttpsUpload(
+ url = ''
+ )
+ else:
+ return DataPullRequestHttpsUpload(
+ )
+ """
+
+ def testDataPullRequestHttpsUpload(self):
+ """Test DataPullRequestHttpsUpload"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_pull_request_s3_upload.py b/test/test_data_pull_request_s3_upload.py
new file mode 100644
index 0000000..c97f7d0
--- /dev/null
+++ b/test/test_data_pull_request_s3_upload.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_pull_request_s3_upload import DataPullRequestS3Upload
+
+class TestDataPullRequestS3Upload(unittest.TestCase):
+ """DataPullRequestS3Upload unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataPullRequestS3Upload:
+ """Test DataPullRequestS3Upload
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataPullRequestS3Upload`
+ """
+ model = DataPullRequestS3Upload()
+ if include_optional:
+ return DataPullRequestS3Upload(
+ uri = '',
+ access_key_id = '',
+ secret_access_key = '',
+ region = '',
+ endpoint_override = '',
+ force_path_style = True
+ )
+ else:
+ return DataPullRequestS3Upload(
+ uri = '',
+ )
+ """
+
+ def testDataPullRequestS3Upload(self):
+ """Test DataPullRequestS3Upload"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_source_dto.py b/test/test_data_source_dto.py
new file mode 100644
index 0000000..23da126
--- /dev/null
+++ b/test/test_data_source_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_source_dto import DataSourceDTO
+
+class TestDataSourceDTO(unittest.TestCase):
+ """DataSourceDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataSourceDTO:
+ """Test DataSourceDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataSourceDTO`
+ """
+ model = DataSourceDTO()
+ if include_optional:
+ return DataSourceDTO(
+ licence_holder = '0',
+ licence_holder_url = '',
+ licence_holder_logo = '',
+ licence_url = ''
+ )
+ else:
+ return DataSourceDTO(
+ licence_holder = '0',
+ licence_holder_url = '',
+ )
+ """
+
+ def testDataSourceDTO(self):
+ """Test DataSourceDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_source_paged_model_dto.py b/test/test_data_source_paged_model_dto.py
new file mode 100644
index 0000000..fc1754a
--- /dev/null
+++ b/test/test_data_source_paged_model_dto.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.data_source_paged_model_dto import DataSourcePagedModelDTO
+
+class TestDataSourcePagedModelDTO(unittest.TestCase):
+ """DataSourcePagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataSourcePagedModelDTO:
+ """Test DataSourcePagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataSourcePagedModelDTO`
+ """
+ model = DataSourcePagedModelDTO()
+ if include_optional:
+ return DataSourcePagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.data_source_dto.DataSourceDTO(
+ licence_holder = '0',
+ licence_holder_url = '',
+ licence_holder_logo = '',
+ licence_url = '', )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return DataSourcePagedModelDTO(
+ )
+ """
+
+ def testDataSourcePagedModelDTO(self):
+ """Test DataSourcePagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_data_sources_api.py b/test/test_data_sources_api.py
new file mode 100644
index 0000000..bec3937
--- /dev/null
+++ b/test/test_data_sources_api.py
@@ -0,0 +1,38 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.data_sources_api import DataSourcesApi
+
+
+class TestDataSourcesApi(unittest.TestCase):
+ """DataSourcesApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DataSourcesApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_all_data_sources(self) -> None:
+ """Test case for get_all_data_sources
+
+ Return list of all unique data sources specified in datasets of a project
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_dto.py b/test/test_dataset_dto.py
new file mode 100644
index 0000000..7d1ad4c
--- /dev/null
+++ b/test/test_dataset_dto.py
@@ -0,0 +1,81 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_dto import DatasetDTO
+
+class TestDatasetDTO(unittest.TestCase):
+ """DatasetDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetDTO:
+ """Test DatasetDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetDTO`
+ """
+ model = DatasetDTO()
+ if include_optional:
+ return DatasetDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ origin = '0',
+ properties = cm_python_openapi_sdk.models.dataset_properties_dto.DatasetPropertiesDTO(
+ feature_title = null,
+ feature_subtitle = null,
+ feature_attributes = [
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
+ type = 'property',
+ value = '',
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
+ type = 'text',
+ fraction = 0,
+ symbol = '', ),
+ layout = 'primary', )
+ ], ),
+ ref = cm_python_openapi_sdk.models.dataset_type.DatasetType(),
+ data_sources = [
+ cm_python_openapi_sdk.models.data_source_dto.DataSourceDTO(
+ licence_holder = '0',
+ licence_holder_url = '',
+ licence_holder_logo = '',
+ licence_url = '', )
+ ],
+ content = cm_python_openapi_sdk.models.dataset_content_dto.DatasetContentDTO()
+ )
+ else:
+ return DatasetDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ ref = cm_python_openapi_sdk.models.dataset_type.DatasetType(),
+ )
+ """
+
+ def testDatasetDTO(self):
+ """Test DatasetDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_dwh_type_dto.py b/test/test_dataset_dwh_type_dto.py
new file mode 100644
index 0000000..ad66b1f
--- /dev/null
+++ b/test/test_dataset_dwh_type_dto.py
@@ -0,0 +1,85 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_dwh_type_dto import DatasetDwhTypeDTO
+
+class TestDatasetDwhTypeDTO(unittest.TestCase):
+ """DatasetDwhTypeDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetDwhTypeDTO:
+ """Test DatasetDwhTypeDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetDwhTypeDTO`
+ """
+ model = DatasetDwhTypeDTO()
+ if include_optional:
+ return DatasetDwhTypeDTO(
+ type = 'dwh',
+ subtype = 'geometryPolygon',
+ geometry = '0',
+ h3_geometries = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes'
+ ],
+ visualizations = [
+ cm_python_openapi_sdk.models.dataset_visualization_dto.DatasetVisualizationDTO(
+ type = 'areas',
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, ), )
+ ],
+ table = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ geometry_table = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ categorizable = True,
+ full_text_index = True,
+ spatial_index = True,
+ properties = [
+ null
+ ],
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, )
+ )
+ else:
+ return DatasetDwhTypeDTO(
+ type = 'dwh',
+ subtype = 'geometryPolygon',
+ primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ properties = [
+ null
+ ],
+ )
+ """
+
+ def testDatasetDwhTypeDTO(self):
+ """Test DatasetDwhTypeDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_h3_grid_type_dto.py b/test/test_dataset_h3_grid_type_dto.py
new file mode 100644
index 0000000..4d6b7e5
--- /dev/null
+++ b/test/test_dataset_h3_grid_type_dto.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_h3_grid_type_dto import DatasetH3GridTypeDTO
+
+class TestDatasetH3GridTypeDTO(unittest.TestCase):
+ """DatasetH3GridTypeDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetH3GridTypeDTO:
+ """Test DatasetH3GridTypeDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetH3GridTypeDTO`
+ """
+ model = DatasetH3GridTypeDTO()
+ if include_optional:
+ return DatasetH3GridTypeDTO(
+ type = 'h3Grid',
+ resolution = 2,
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, )
+ )
+ else:
+ return DatasetH3GridTypeDTO(
+ type = 'h3Grid',
+ resolution = 2,
+ )
+ """
+
+ def testDatasetH3GridTypeDTO(self):
+ """Test DatasetH3GridTypeDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_paged_model_dto.py b/test/test_dataset_paged_model_dto.py
new file mode 100644
index 0000000..2a74f0e
--- /dev/null
+++ b/test/test_dataset_paged_model_dto.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_paged_model_dto import DatasetPagedModelDTO
+
+class TestDatasetPagedModelDTO(unittest.TestCase):
+ """DatasetPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetPagedModelDTO:
+ """Test DatasetPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetPagedModelDTO`
+ """
+ model = DatasetPagedModelDTO()
+ if include_optional:
+ return DatasetPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.dataset_dto.DatasetDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ origin = '0',
+ properties = cm_python_openapi_sdk.models.dataset_properties_dto.DatasetPropertiesDTO(
+ feature_title = null,
+ feature_subtitle = null,
+ feature_attributes = [
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
+ type = 'property',
+ value = '',
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
+ type = 'text',
+ fraction = 0,
+ symbol = '', ),
+ layout = 'primary', )
+ ], ),
+ ref = cm_python_openapi_sdk.models.dataset_type.DatasetType(),
+ data_sources = [
+ cm_python_openapi_sdk.models.data_source_dto.DataSourceDTO(
+ licence_holder = '0',
+ licence_holder_url = '',
+ licence_holder_logo = '',
+ licence_url = '', )
+ ],
+ content = cm_python_openapi_sdk.models.dataset_content_dto.DatasetContentDTO(), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return DatasetPagedModelDTO(
+ )
+ """
+
+ def testDatasetPagedModelDTO(self):
+ """Test DatasetPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_properties_dto.py b/test/test_dataset_properties_dto.py
new file mode 100644
index 0000000..79abb40
--- /dev/null
+++ b/test/test_dataset_properties_dto.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_properties_dto import DatasetPropertiesDTO
+
+class TestDatasetPropertiesDTO(unittest.TestCase):
+ """DatasetPropertiesDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetPropertiesDTO:
+ """Test DatasetPropertiesDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetPropertiesDTO`
+ """
+ model = DatasetPropertiesDTO()
+ if include_optional:
+ return DatasetPropertiesDTO(
+ feature_title = None,
+ feature_subtitle = None,
+ feature_attributes = [
+ cm_python_openapi_sdk.models.feature_attribute_dto.FeatureAttributeDTO(
+ type = 'property',
+ value = '',
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
+ type = 'text',
+ fraction = 0,
+ symbol = '', ),
+ layout = 'primary', )
+ ]
+ )
+ else:
+ return DatasetPropertiesDTO(
+ )
+ """
+
+ def testDatasetPropertiesDTO(self):
+ """Test DatasetPropertiesDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_type.py b/test/test_dataset_type.py
new file mode 100644
index 0000000..745052b
--- /dev/null
+++ b/test/test_dataset_type.py
@@ -0,0 +1,89 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_type import DatasetType
+
+class TestDatasetType(unittest.TestCase):
+ """DatasetType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetType:
+ """Test DatasetType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetType`
+ """
+ model = DatasetType()
+ if include_optional:
+ return DatasetType(
+ type = 'dwh',
+ subtype = 'geometryPolygon',
+ geometry = '0',
+ h3_geometries = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes'
+ ],
+ visualizations = [
+ cm_python_openapi_sdk.models.dataset_visualization_dto.DatasetVisualizationDTO(
+ type = 'areas',
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, ), )
+ ],
+ table = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ geometry_table = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ categorizable = True,
+ full_text_index = True,
+ spatial_index = True,
+ properties = [
+ null
+ ],
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, ),
+ url_template = '',
+ resolution = 2
+ )
+ else:
+ return DatasetType(
+ type = 'dwh',
+ subtype = 'geometryPolygon',
+ primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ properties = [
+ null
+ ],
+ url_template = '',
+ resolution = 2,
+ )
+ """
+
+ def testDatasetType(self):
+ """Test DatasetType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_visualization_dto.py b/test/test_dataset_visualization_dto.py
new file mode 100644
index 0000000..e8a016f
--- /dev/null
+++ b/test/test_dataset_visualization_dto.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_visualization_dto import DatasetVisualizationDTO
+
+class TestDatasetVisualizationDTO(unittest.TestCase):
+ """DatasetVisualizationDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetVisualizationDTO:
+ """Test DatasetVisualizationDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetVisualizationDTO`
+ """
+ model = DatasetVisualizationDTO()
+ if include_optional:
+ return DatasetVisualizationDTO(
+ type = 'areas',
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, )
+ )
+ else:
+ return DatasetVisualizationDTO(
+ type = 'areas',
+ )
+ """
+
+ def testDatasetVisualizationDTO(self):
+ """Test DatasetVisualizationDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dataset_vt_type_dto.py b/test/test_dataset_vt_type_dto.py
new file mode 100644
index 0000000..436e9f5
--- /dev/null
+++ b/test/test_dataset_vt_type_dto.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dataset_vt_type_dto import DatasetVtTypeDTO
+
+class TestDatasetVtTypeDTO(unittest.TestCase):
+ """DatasetVtTypeDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DatasetVtTypeDTO:
+ """Test DatasetVtTypeDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DatasetVtTypeDTO`
+ """
+ model = DatasetVtTypeDTO()
+ if include_optional:
+ return DatasetVtTypeDTO(
+ type = 'vt',
+ url_template = '',
+ zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2, )
+ )
+ else:
+ return DatasetVtTypeDTO(
+ type = 'vt',
+ url_template = '',
+ )
+ """
+
+ def testDatasetVtTypeDTO(self):
+ """Test DatasetVtTypeDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_datasets_api.py b/test/test_datasets_api.py
new file mode 100644
index 0000000..0b2f20b
--- /dev/null
+++ b/test/test_datasets_api.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.datasets_api import DatasetsApi
+
+
+class TestDatasetsApi(unittest.TestCase):
+ """DatasetsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = DatasetsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_dataset(self) -> None:
+ """Test case for create_dataset
+
+ Creates new dataset
+ """
+ pass
+
+ def test_delete_dataset_by_id(self) -> None:
+ """Test case for delete_dataset_by_id
+
+ Deletes dataset by id
+ """
+ pass
+
+ def test_generate_dataset_from_csv(self) -> None:
+ """Test case for generate_dataset_from_csv
+
+ Generate dataset from CSV
+ """
+ pass
+
+ def test_get_all_datasets(self) -> None:
+ """Test case for get_all_datasets
+
+ Returns paged collection of all datasets in a project
+ """
+ pass
+
+ def test_get_dataset_by_id(self) -> None:
+ """Test case for get_dataset_by_id
+
+ Gets dataset by id
+ """
+ pass
+
+ def test_update_dataset_by_id(self) -> None:
+ """Test case for update_dataset_by_id
+
+ Updates dataset by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_date_filter_default_value_type.py b/test/test_date_filter_default_value_type.py
index af462dd..2403405 100644
--- a/test/test_date_filter_default_value_type.py
+++ b/test/test_date_filter_default_value_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.date_filter_default_value_type import DateFilterDefaultValueType
+from cm_python_openapi_sdk.models.date_filter_default_value_type import DateFilterDefaultValueType
class TestDateFilterDefaultValueType(unittest.TestCase):
"""DateFilterDefaultValueType unit test stubs"""
@@ -36,12 +36,12 @@ def make_instance(self, include_optional) -> DateFilterDefaultValueType:
if include_optional:
return DateFilterDefaultValueType(
value = '0',
- function = openapi_client.models.function.function()
+ function = cm_python_openapi_sdk.models.function.function()
)
else:
return DateFilterDefaultValueType(
value = '0',
- function = openapi_client.models.function.function(),
+ function = cm_python_openapi_sdk.models.function.function(),
)
"""
diff --git a/test/test_date_filter_dto.py b/test/test_date_filter_dto.py
index ec5ff1b..c6bc431 100644
--- a/test/test_date_filter_dto.py
+++ b/test/test_date_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.date_filter_dto import DateFilterDTO
+from cm_python_openapi_sdk.models.date_filter_dto import DateFilterDTO
class TestDateFilterDTO(unittest.TestCase):
"""DateFilterDTO unit test stubs"""
diff --git a/test/test_date_range_function.py b/test/test_date_range_function.py
index e204f2d..5b9b2e1 100644
--- a/test/test_date_range_function.py
+++ b/test/test_date_range_function.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.date_range_function import DateRangeFunction
+from cm_python_openapi_sdk.models.date_range_function import DateRangeFunction
class TestDateRangeFunction(unittest.TestCase):
"""DateRangeFunction unit test stubs"""
@@ -35,11 +35,11 @@ def make_instance(self, include_optional) -> DateRangeFunction:
model = DateRangeFunction()
if include_optional:
return DateRangeFunction(
- function = None
+ function = cm_python_openapi_sdk.models.function.function()
)
else:
return DateRangeFunction(
- function = None,
+ function = cm_python_openapi_sdk.models.function.function(),
)
"""
diff --git a/test/test_date_range_value.py b/test/test_date_range_value.py
index 64563ae..c70f806 100644
--- a/test/test_date_range_value.py
+++ b/test/test_date_range_value.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.date_range_value import DateRangeValue
+from cm_python_openapi_sdk.models.date_range_value import DateRangeValue
class TestDateRangeValue(unittest.TestCase):
"""DateRangeValue unit test stubs"""
diff --git a/test/test_default_distribution_dto.py b/test/test_default_distribution_dto.py
index 24121fb..a4bbad0 100644
--- a/test/test_default_distribution_dto.py
+++ b/test/test_default_distribution_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_distribution_dto import DefaultDistributionDTO
+from cm_python_openapi_sdk.models.default_distribution_dto import DefaultDistributionDTO
class TestDefaultDistributionDTO(unittest.TestCase):
"""DefaultDistributionDTO unit test stubs"""
diff --git a/test/test_default_selected_dto.py b/test/test_default_selected_dto.py
index 6e26397..eddc6fd 100644
--- a/test/test_default_selected_dto.py
+++ b/test/test_default_selected_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_selected_dto import DefaultSelectedDTO
+from cm_python_openapi_sdk.models.default_selected_dto import DefaultSelectedDTO
class TestDefaultSelectedDTO(unittest.TestCase):
"""DefaultSelectedDTO unit test stubs"""
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> DefaultSelectedDTO:
null
],
coordinates = [
- openapi_client.models.center_dto.CenterDTO(
+ cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, )
]
diff --git a/test/test_default_values_date_dto.py b/test/test_default_values_date_dto.py
index cbc6b70..749798b 100644
--- a/test/test_default_values_date_dto.py
+++ b/test/test_default_values_date_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_date_dto import DefaultValuesDateDTO
+from cm_python_openapi_sdk.models.default_values_date_dto import DefaultValuesDateDTO
class TestDefaultValuesDateDTO(unittest.TestCase):
"""DefaultValuesDateDTO unit test stubs"""
diff --git a/test/test_default_values_feature_dto.py b/test/test_default_values_feature_dto.py
index 5890104..e6c0756 100644
--- a/test/test_default_values_feature_dto.py
+++ b/test/test_default_values_feature_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_feature_dto import DefaultValuesFeatureDTO
+from cm_python_openapi_sdk.models.default_values_feature_dto import DefaultValuesFeatureDTO
class TestDefaultValuesFeatureDTO(unittest.TestCase):
"""DefaultValuesFeatureDTO unit test stubs"""
diff --git a/test/test_default_values_histogram_dto.py b/test/test_default_values_histogram_dto.py
index 8820191..3b4346a 100644
--- a/test/test_default_values_histogram_dto.py
+++ b/test/test_default_values_histogram_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_histogram_dto import DefaultValuesHistogramDTO
+from cm_python_openapi_sdk.models.default_values_histogram_dto import DefaultValuesHistogramDTO
class TestDefaultValuesHistogramDTO(unittest.TestCase):
"""DefaultValuesHistogramDTO unit test stubs"""
diff --git a/test/test_default_values_indicator_dto.py b/test/test_default_values_indicator_dto.py
index b216408..c12679e 100644
--- a/test/test_default_values_indicator_dto.py
+++ b/test/test_default_values_indicator_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
+from cm_python_openapi_sdk.models.default_values_indicator_dto import DefaultValuesIndicatorDTO
class TestDefaultValuesIndicatorDTO(unittest.TestCase):
"""DefaultValuesIndicatorDTO unit test stubs"""
diff --git a/test/test_default_values_multi_select_dto.py b/test/test_default_values_multi_select_dto.py
index 6869750..ddcdeb9 100644
--- a/test/test_default_values_multi_select_dto.py
+++ b/test/test_default_values_multi_select_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
+from cm_python_openapi_sdk.models.default_values_multi_select_dto import DefaultValuesMultiSelectDTO
class TestDefaultValuesMultiSelectDTO(unittest.TestCase):
"""DefaultValuesMultiSelectDTO unit test stubs"""
diff --git a/test/test_default_values_single_select_dto.py b/test/test_default_values_single_select_dto.py
index c6e4625..2eb5a53 100644
--- a/test/test_default_values_single_select_dto.py
+++ b/test/test_default_values_single_select_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
+from cm_python_openapi_sdk.models.default_values_single_select_dto import DefaultValuesSingleSelectDTO
class TestDefaultValuesSingleSelectDTO(unittest.TestCase):
"""DefaultValuesSingleSelectDTO unit test stubs"""
diff --git a/test/test_display_options_dto.py b/test/test_display_options_dto.py
new file mode 100644
index 0000000..315c223
--- /dev/null
+++ b/test/test_display_options_dto.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.display_options_dto import DisplayOptionsDTO
+
+class TestDisplayOptionsDTO(unittest.TestCase):
+ """DisplayOptionsDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DisplayOptionsDTO:
+ """Test DisplayOptionsDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DisplayOptionsDTO`
+ """
+ model = DisplayOptionsDTO()
+ if include_optional:
+ return DisplayOptionsDTO(
+ value_options = [
+ cm_python_openapi_sdk.models.value_option_dto.ValueOptionDTO(
+ value = null,
+ color = 'purple',
+ hex_color = '0123456',
+ weight = 1.337,
+ pattern = 'solid', )
+ ]
+ )
+ else:
+ return DisplayOptionsDTO(
+ )
+ """
+
+ def testDisplayOptionsDTO(self):
+ """Test DisplayOptionsDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_distribution_dto.py b/test/test_distribution_dto.py
index 6b7dd58..bb9ec60 100644
--- a/test/test_distribution_dto.py
+++ b/test/test_distribution_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.distribution_dto import DistributionDTO
+from cm_python_openapi_sdk.models.distribution_dto import DistributionDTO
class TestDistributionDTO(unittest.TestCase):
"""DistributionDTO unit test stubs"""
diff --git a/test/test_dwh_abstract_property.py b/test/test_dwh_abstract_property.py
new file mode 100644
index 0000000..d769df7
--- /dev/null
+++ b/test/test_dwh_abstract_property.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty
+
+class TestDwhAbstractProperty(unittest.TestCase):
+ """DwhAbstractProperty unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhAbstractProperty:
+ """Test DwhAbstractProperty
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhAbstractProperty`
+ """
+ model = DwhAbstractProperty()
+ if include_optional:
+ return DwhAbstractProperty(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ title = '0',
+ description = '',
+ column = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = '',
+ filterable = True,
+ calculated = True,
+ display_options = cm_python_openapi_sdk.models.display_options_dto.DisplayOptionsDTO(
+ value_options = [
+ cm_python_openapi_sdk.models.value_option_dto.ValueOptionDTO(
+ value = null,
+ color = 'purple',
+ hex_color = '0123456',
+ weight = 1.337,
+ pattern = 'solid', )
+ ], ),
+ geometry = None,
+ foreign_key = None
+ )
+ else:
+ return DwhAbstractProperty(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ column = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = '',
+ geometry = None,
+ foreign_key = None,
+ )
+ """
+
+ def testDwhAbstractProperty(self):
+ """Test DwhAbstractProperty"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_foreign_key_dto.py b/test/test_dwh_foreign_key_dto.py
new file mode 100644
index 0000000..c71aa1b
--- /dev/null
+++ b/test/test_dwh_foreign_key_dto.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_foreign_key_dto import DwhForeignKeyDTO
+
+class TestDwhForeignKeyDTO(unittest.TestCase):
+ """DwhForeignKeyDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhForeignKeyDTO:
+ """Test DwhForeignKeyDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhForeignKeyDTO`
+ """
+ model = DwhForeignKeyDTO()
+ if include_optional:
+ return DwhForeignKeyDTO(
+ foreign_key = '0',
+ geometry = None
+ )
+ else:
+ return DwhForeignKeyDTO(
+ foreign_key = '0',
+ )
+ """
+
+ def testDwhForeignKeyDTO(self):
+ """Test DwhForeignKeyDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_geometry_dto.py b/test/test_dwh_geometry_dto.py
new file mode 100644
index 0000000..31f7f32
--- /dev/null
+++ b/test/test_dwh_geometry_dto.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_geometry_dto import DwhGeometryDTO
+
+class TestDwhGeometryDTO(unittest.TestCase):
+ """DwhGeometryDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhGeometryDTO:
+ """Test DwhGeometryDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhGeometryDTO`
+ """
+ model = DwhGeometryDTO()
+ if include_optional:
+ return DwhGeometryDTO(
+ geometry = '0',
+ foreign_key = None
+ )
+ else:
+ return DwhGeometryDTO(
+ geometry = '0',
+ )
+ """
+
+ def testDwhGeometryDTO(self):
+ """Test DwhGeometryDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_property_dto.py b/test/test_dwh_property_dto.py
new file mode 100644
index 0000000..de9b048
--- /dev/null
+++ b/test/test_dwh_property_dto.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO
+
+class TestDwhPropertyDTO(unittest.TestCase):
+ """DwhPropertyDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhPropertyDTO:
+ """Test DwhPropertyDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhPropertyDTO`
+ """
+ model = DwhPropertyDTO()
+ if include_optional:
+ return DwhPropertyDTO(
+ geometry = None,
+ foreign_key = None
+ )
+ else:
+ return DwhPropertyDTO(
+ )
+ """
+
+ def testDwhPropertyDTO(self):
+ """Test DwhPropertyDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_query_function_types.py b/test/test_dwh_query_function_types.py
new file mode 100644
index 0000000..430c201
--- /dev/null
+++ b/test/test_dwh_query_function_types.py
@@ -0,0 +1,79 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_query_function_types import DwhQueryFunctionTypes
+
+class TestDwhQueryFunctionTypes(unittest.TestCase):
+ """DwhQueryFunctionTypes unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhQueryFunctionTypes:
+ """Test DwhQueryFunctionTypes
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhQueryFunctionTypes`
+ """
+ model = DwhQueryFunctionTypes()
+ if include_optional:
+ return DwhQueryFunctionTypes(
+ id = 'z0',
+ type = 'number',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ content = [
+ cm_python_openapi_sdk.models.dwh_query_number_type.DwhQueryNumberType(
+ id = 'z0',
+ type = 'number',
+ value = 1.337, )
+ ],
+ options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, ), )
+ )
+ else:
+ return DwhQueryFunctionTypes(
+ type = 'number',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ content = [
+ cm_python_openapi_sdk.models.dwh_query_number_type.DwhQueryNumberType(
+ id = 'z0',
+ type = 'number',
+ value = 1.337, )
+ ],
+ options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, ), ),
+ )
+ """
+
+ def testDwhQueryFunctionTypes(self):
+ """Test DwhQueryFunctionTypes"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_query_metric_type.py b/test/test_dwh_query_metric_type.py
new file mode 100644
index 0000000..f158eba
--- /dev/null
+++ b/test/test_dwh_query_metric_type.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_query_metric_type import DwhQueryMetricType
+
+class TestDwhQueryMetricType(unittest.TestCase):
+ """DwhQueryMetricType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhQueryMetricType:
+ """Test DwhQueryMetricType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhQueryMetricType`
+ """
+ model = DwhQueryMetricType()
+ if include_optional:
+ return DwhQueryMetricType(
+ id = 'z0',
+ type = 'metric',
+ metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ )
+ else:
+ return DwhQueryMetricType(
+ type = 'metric',
+ metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ )
+ """
+
+ def testDwhQueryMetricType(self):
+ """Test DwhQueryMetricType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_query_number_type.py b/test/test_dwh_query_number_type.py
new file mode 100644
index 0000000..2133705
--- /dev/null
+++ b/test/test_dwh_query_number_type.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_query_number_type import DwhQueryNumberType
+
+class TestDwhQueryNumberType(unittest.TestCase):
+ """DwhQueryNumberType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhQueryNumberType:
+ """Test DwhQueryNumberType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhQueryNumberType`
+ """
+ model = DwhQueryNumberType()
+ if include_optional:
+ return DwhQueryNumberType(
+ id = 'z0',
+ type = 'number',
+ value = 1.337
+ )
+ else:
+ return DwhQueryNumberType(
+ type = 'number',
+ value = 1.337,
+ )
+ """
+
+ def testDwhQueryNumberType(self):
+ """Test DwhQueryNumberType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_dwh_query_property_type.py b/test/test_dwh_query_property_type.py
new file mode 100644
index 0000000..af51c5a
--- /dev/null
+++ b/test/test_dwh_query_property_type.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.dwh_query_property_type import DwhQueryPropertyType
+
+class TestDwhQueryPropertyType(unittest.TestCase):
+ """DwhQueryPropertyType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DwhQueryPropertyType:
+ """Test DwhQueryPropertyType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DwhQueryPropertyType`
+ """
+ model = DwhQueryPropertyType()
+ if include_optional:
+ return DwhQueryPropertyType(
+ id = 'z0',
+ type = 'property',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0'
+ )
+ else:
+ return DwhQueryPropertyType(
+ type = 'property',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
+ )
+ """
+
+ def testDwhQueryPropertyType(self):
+ """Test DwhQueryPropertyType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_content_dto.py b/test/test_export_content_dto.py
new file mode 100644
index 0000000..36cb6f3
--- /dev/null
+++ b/test/test_export_content_dto.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_content_dto import ExportContentDTO
+
+class TestExportContentDTO(unittest.TestCase):
+ """ExportContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportContentDTO:
+ """Test ExportContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportContentDTO`
+ """
+ model = ExportContentDTO()
+ if include_optional:
+ return ExportContentDTO(
+ properties = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0'
+ ],
+ output = cm_python_openapi_sdk.models.output_dto.OutputDTO(
+ type = 'file',
+ format = 'csv',
+ filename = '26bUUGjjNSwg0_bs9ZayIMhcsv',
+ header = 'basic', )
+ )
+ else:
+ return ExportContentDTO(
+ )
+ """
+
+ def testExportContentDTO(self):
+ """Test ExportContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_dto.py b/test/test_export_dto.py
new file mode 100644
index 0000000..e772150
--- /dev/null
+++ b/test/test_export_dto.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_dto import ExportDTO
+
+class TestExportDTO(unittest.TestCase):
+ """ExportDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportDTO:
+ """Test ExportDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportDTO`
+ """
+ model = ExportDTO()
+ if include_optional:
+ return ExportDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.export_content_dto.ExportContentDTO(
+ properties = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0'
+ ],
+ output = cm_python_openapi_sdk.models.output_dto.OutputDTO(
+ type = 'file',
+ format = 'csv',
+ filename = '26bUUGjjNSwg0_bs9ZayIMhcsv',
+ header = 'basic', ), )
+ )
+ else:
+ return ExportDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ content = cm_python_openapi_sdk.models.export_content_dto.ExportContentDTO(
+ properties = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0'
+ ],
+ output = cm_python_openapi_sdk.models.output_dto.OutputDTO(
+ type = 'file',
+ format = 'csv',
+ filename = '26bUUGjjNSwg0_bs9ZayIMhcsv',
+ header = 'basic', ), ),
+ )
+ """
+
+ def testExportDTO(self):
+ """Test ExportDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_job_request.py b/test/test_export_job_request.py
new file mode 100644
index 0000000..8c08999
--- /dev/null
+++ b/test/test_export_job_request.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_job_request import ExportJobRequest
+
+class TestExportJobRequest(unittest.TestCase):
+ """ExportJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportJobRequest:
+ """Test ExportJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportJobRequest`
+ """
+ model = ExportJobRequest()
+ if include_optional:
+ return ExportJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.export_request.ExportRequest(
+ format = 'csv',
+ csv_header_format = 'basic',
+ query = cm_python_openapi_sdk.models.query.query(),
+ csv_options = cm_python_openapi_sdk.models.export_request_csv_options.ExportRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '', ),
+ xlsx_options = cm_python_openapi_sdk.models.xlsx_options.xlsxOptions(), )
+ )
+ else:
+ return ExportJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.export_request.ExportRequest(
+ format = 'csv',
+ csv_header_format = 'basic',
+ query = cm_python_openapi_sdk.models.query.query(),
+ csv_options = cm_python_openapi_sdk.models.export_request_csv_options.ExportRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '', ),
+ xlsx_options = cm_python_openapi_sdk.models.xlsx_options.xlsxOptions(), ),
+ )
+ """
+
+ def testExportJobRequest(self):
+ """Test ExportJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_link_dto.py b/test/test_export_link_dto.py
index b4420ee..3aee568 100644
--- a/test/test_export_link_dto.py
+++ b/test/test_export_link_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.export_link_dto import ExportLinkDTO
+from cm_python_openapi_sdk.models.export_link_dto import ExportLinkDTO
class TestExportLinkDTO(unittest.TestCase):
"""ExportLinkDTO unit test stubs"""
diff --git a/test/test_export_paged_model_dto.py b/test/test_export_paged_model_dto.py
new file mode 100644
index 0000000..756673a
--- /dev/null
+++ b/test/test_export_paged_model_dto.py
@@ -0,0 +1,75 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_paged_model_dto import ExportPagedModelDTO
+
+class TestExportPagedModelDTO(unittest.TestCase):
+ """ExportPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportPagedModelDTO:
+ """Test ExportPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportPagedModelDTO`
+ """
+ model = ExportPagedModelDTO()
+ if include_optional:
+ return ExportPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.export_dto.ExportDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.export_content_dto.ExportContentDTO(
+ properties = [
+ 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0'
+ ],
+ output = cm_python_openapi_sdk.models.output_dto.OutputDTO(
+ type = 'file',
+ format = 'csv',
+ filename = '26bUUGjjNSwg0_bs9ZayIMhcsv',
+ header = 'basic', ), ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return ExportPagedModelDTO(
+ )
+ """
+
+ def testExportPagedModelDTO(self):
+ """Test ExportPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_request.py b/test/test_export_request.py
new file mode 100644
index 0000000..2e78855
--- /dev/null
+++ b/test/test_export_request.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_request import ExportRequest
+
+class TestExportRequest(unittest.TestCase):
+ """ExportRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportRequest:
+ """Test ExportRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportRequest`
+ """
+ model = ExportRequest()
+ if include_optional:
+ return ExportRequest(
+ format = 'csv',
+ csv_header_format = 'basic',
+ query = cm_python_openapi_sdk.models.query.query(),
+ csv_options = cm_python_openapi_sdk.models.export_request_csv_options.ExportRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '', ),
+ xlsx_options = cm_python_openapi_sdk.models.xlsx_options.xlsxOptions()
+ )
+ else:
+ return ExportRequest(
+ format = 'csv',
+ query = cm_python_openapi_sdk.models.query.query(),
+ )
+ """
+
+ def testExportRequest(self):
+ """Test ExportRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_export_request_csv_options.py b/test/test_export_request_csv_options.py
new file mode 100644
index 0000000..be63285
--- /dev/null
+++ b/test/test_export_request_csv_options.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.export_request_csv_options import ExportRequestCsvOptions
+
+class TestExportRequestCsvOptions(unittest.TestCase):
+ """ExportRequestCsvOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ExportRequestCsvOptions:
+ """Test ExportRequestCsvOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ExportRequestCsvOptions`
+ """
+ model = ExportRequestCsvOptions()
+ if include_optional:
+ return ExportRequestCsvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = ''
+ )
+ else:
+ return ExportRequestCsvOptions(
+ )
+ """
+
+ def testExportRequestCsvOptions(self):
+ """Test ExportRequestCsvOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_exports_api.py b/test/test_exports_api.py
new file mode 100644
index 0000000..12887f3
--- /dev/null
+++ b/test/test_exports_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.exports_api import ExportsApi
+
+
+class TestExportsApi(unittest.TestCase):
+ """ExportsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ExportsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_export(self) -> None:
+ """Test case for create_export
+
+ Creates new export
+ """
+ pass
+
+ def test_delete_export_by_id(self) -> None:
+ """Test case for delete_export_by_id
+
+ Deletes export by id
+ """
+ pass
+
+ def test_get_all_exports(self) -> None:
+ """Test case for get_all_exports
+
+ Returns paged collection of all Exports in a project
+ """
+ pass
+
+ def test_get_export_by_id(self) -> None:
+ """Test case for get_export_by_id
+
+ Gets export by id
+ """
+ pass
+
+ def test_update_export_by_id(self) -> None:
+ """Test case for update_export_by_id
+
+ Updates export by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_attribute_dto.py b/test/test_feature_attribute_dto.py
index c28a397..e958f75 100644
--- a/test/test_feature_attribute_dto.py
+++ b/test/test_feature_attribute_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.feature_attribute_dto import FeatureAttributeDTO
+from cm_python_openapi_sdk.models.feature_attribute_dto import FeatureAttributeDTO
class TestFeatureAttributeDTO(unittest.TestCase):
"""FeatureAttributeDTO unit test stubs"""
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> FeatureAttributeDTO:
return FeatureAttributeDTO(
type = 'property',
value = '',
- format = openapi_client.models.attribute_format_dto.AttributeFormatDTO(
+ format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO(
type = 'text',
fraction = 0,
symbol = '', ),
diff --git a/test/test_feature_filter_dto.py b/test/test_feature_filter_dto.py
index 98551d5..41af79a 100644
--- a/test/test_feature_filter_dto.py
+++ b/test/test_feature_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.feature_filter_dto import FeatureFilterDTO
+from cm_python_openapi_sdk.models.feature_filter_dto import FeatureFilterDTO
class TestFeatureFilterDTO(unittest.TestCase):
"""FeatureFilterDTO unit test stubs"""
diff --git a/test/test_feature_function_dto.py b/test/test_feature_function_dto.py
new file mode 100644
index 0000000..19cd77e
--- /dev/null
+++ b/test/test_feature_function_dto.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.feature_function_dto import FeatureFunctionDTO
+
+class TestFeatureFunctionDTO(unittest.TestCase):
+ """FeatureFunctionDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FeatureFunctionDTO:
+ """Test FeatureFunctionDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FeatureFunctionDTO`
+ """
+ model = FeatureFunctionDTO()
+ if include_optional:
+ return FeatureFunctionDTO(
+ type = 'function',
+ value = '',
+ content = [
+ null
+ ]
+ )
+ else:
+ return FeatureFunctionDTO(
+ type = 'function',
+ value = '',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFeatureFunctionDTO(self):
+ """Test FeatureFunctionDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_property_dto.py b/test/test_feature_property_dto.py
new file mode 100644
index 0000000..ae375e1
--- /dev/null
+++ b/test/test_feature_property_dto.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.feature_property_dto import FeaturePropertyDTO
+
+class TestFeaturePropertyDTO(unittest.TestCase):
+ """FeaturePropertyDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FeaturePropertyDTO:
+ """Test FeaturePropertyDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FeaturePropertyDTO`
+ """
+ model = FeaturePropertyDTO()
+ if include_optional:
+ return FeaturePropertyDTO(
+ type = 'property',
+ value = ''
+ )
+ else:
+ return FeaturePropertyDTO(
+ type = 'property',
+ value = '',
+ )
+ """
+
+ def testFeaturePropertyDTO(self):
+ """Test FeaturePropertyDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_property_type.py b/test/test_feature_property_type.py
new file mode 100644
index 0000000..5ae1535
--- /dev/null
+++ b/test/test_feature_property_type.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.feature_property_type import FeaturePropertyType
+
+class TestFeaturePropertyType(unittest.TestCase):
+ """FeaturePropertyType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FeaturePropertyType:
+ """Test FeaturePropertyType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FeaturePropertyType`
+ """
+ model = FeaturePropertyType()
+ if include_optional:
+ return FeaturePropertyType(
+ type = 'property',
+ value = '',
+ content = [
+ null
+ ]
+ )
+ else:
+ return FeaturePropertyType(
+ type = 'property',
+ value = '',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFeaturePropertyType(self):
+ """Test FeaturePropertyType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_feature_text_dto.py b/test/test_feature_text_dto.py
new file mode 100644
index 0000000..e78fb4c
--- /dev/null
+++ b/test/test_feature_text_dto.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.feature_text_dto import FeatureTextDTO
+
+class TestFeatureTextDTO(unittest.TestCase):
+ """FeatureTextDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FeatureTextDTO:
+ """Test FeatureTextDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FeatureTextDTO`
+ """
+ model = FeatureTextDTO()
+ if include_optional:
+ return FeatureTextDTO(
+ type = 'text',
+ value = ''
+ )
+ else:
+ return FeatureTextDTO(
+ type = 'text',
+ value = '',
+ )
+ """
+
+ def testFeatureTextDTO(self):
+ """Test FeatureTextDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_filter_abstract_type.py b/test/test_filter_abstract_type.py
index fbe750f..6f50d90 100644
--- a/test/test_filter_abstract_type.py
+++ b/test/test_filter_abstract_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.filter_abstract_type import FilterAbstractType
+from cm_python_openapi_sdk.models.filter_abstract_type import FilterAbstractType
class TestFilterAbstractType(unittest.TestCase):
"""FilterAbstractType unit test stubs"""
@@ -37,12 +37,12 @@ def make_instance(self, include_optional) -> FilterAbstractType:
return FilterAbstractType(
type = 'date',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
],
diff --git a/test/test_format_dto.py b/test/test_format_dto.py
index 51eeb6f..6179223 100644
--- a/test/test_format_dto.py
+++ b/test/test_format_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.format_dto import FormatDTO
+from cm_python_openapi_sdk.models.format_dto import FormatDTO
class TestFormatDTO(unittest.TestCase):
"""FormatDTO unit test stubs"""
diff --git a/test/test_function_agg_type_general.py b/test/test_function_agg_type_general.py
new file mode 100644
index 0000000..3e00fd9
--- /dev/null
+++ b/test/test_function_agg_type_general.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral
+
+class TestFunctionAggTypeGeneral(unittest.TestCase):
+ """FunctionAggTypeGeneral unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionAggTypeGeneral:
+ """Test FunctionAggTypeGeneral
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionAggTypeGeneral`
+ """
+ model = FunctionAggTypeGeneral()
+ if include_optional:
+ return FunctionAggTypeGeneral(
+ id = 'z0',
+ type = 'function_avg',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionAggTypeGeneral(
+ type = 'function_avg',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionAggTypeGeneral(self):
+ """Test FunctionAggTypeGeneral"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_arithm_type_general.py b/test/test_function_arithm_type_general.py
new file mode 100644
index 0000000..5d5ca32
--- /dev/null
+++ b/test/test_function_arithm_type_general.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_arithm_type_general import FunctionArithmTypeGeneral
+
+class TestFunctionArithmTypeGeneral(unittest.TestCase):
+ """FunctionArithmTypeGeneral unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionArithmTypeGeneral:
+ """Test FunctionArithmTypeGeneral
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionArithmTypeGeneral`
+ """
+ model = FunctionArithmTypeGeneral()
+ if include_optional:
+ return FunctionArithmTypeGeneral(
+ id = 'z0',
+ type = 'function_plus',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionArithmTypeGeneral(
+ type = 'function_plus',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionArithmTypeGeneral(self):
+ """Test FunctionArithmTypeGeneral"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_condition_type_general.py b/test/test_function_condition_type_general.py
new file mode 100644
index 0000000..87889a7
--- /dev/null
+++ b/test/test_function_condition_type_general.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_condition_type_general import FunctionConditionTypeGeneral
+
+class TestFunctionConditionTypeGeneral(unittest.TestCase):
+ """FunctionConditionTypeGeneral unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionConditionTypeGeneral:
+ """Test FunctionConditionTypeGeneral
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionConditionTypeGeneral`
+ """
+ model = FunctionConditionTypeGeneral()
+ if include_optional:
+ return FunctionConditionTypeGeneral(
+ id = 'z0',
+ type = 'function_ifnull',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionConditionTypeGeneral(
+ type = 'function_ifnull',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionConditionTypeGeneral(self):
+ """Test FunctionConditionTypeGeneral"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_date_trunc.py b/test/test_function_date_trunc.py
new file mode 100644
index 0000000..bf4a83c
--- /dev/null
+++ b/test/test_function_date_trunc.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_date_trunc import FunctionDateTrunc
+
+class TestFunctionDateTrunc(unittest.TestCase):
+ """FunctionDateTrunc unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionDateTrunc:
+ """Test FunctionDateTrunc
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionDateTrunc`
+ """
+ model = FunctionDateTrunc()
+ if include_optional:
+ return FunctionDateTrunc(
+ id = 'z0',
+ type = 'function_date_trunc',
+ content = [
+ null
+ ],
+ options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options(
+ interval = 'day', )
+ )
+ else:
+ return FunctionDateTrunc(
+ type = 'function_date_trunc',
+ content = [
+ null
+ ],
+ options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options(
+ interval = 'day', ),
+ )
+ """
+
+ def testFunctionDateTrunc(self):
+ """Test FunctionDateTrunc"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_date_trunc_options.py b/test/test_function_date_trunc_options.py
new file mode 100644
index 0000000..6da3dc1
--- /dev/null
+++ b/test/test_function_date_trunc_options.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions
+
+class TestFunctionDateTruncOptions(unittest.TestCase):
+ """FunctionDateTruncOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionDateTruncOptions:
+ """Test FunctionDateTruncOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionDateTruncOptions`
+ """
+ model = FunctionDateTruncOptions()
+ if include_optional:
+ return FunctionDateTruncOptions(
+ interval = 'day'
+ )
+ else:
+ return FunctionDateTruncOptions(
+ interval = 'day',
+ )
+ """
+
+ def testFunctionDateTruncOptions(self):
+ """Test FunctionDateTruncOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_distance.py b/test/test_function_distance.py
new file mode 100644
index 0000000..0c0d263
--- /dev/null
+++ b/test/test_function_distance.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_distance import FunctionDistance
+
+class TestFunctionDistance(unittest.TestCase):
+ """FunctionDistance unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionDistance:
+ """Test FunctionDistance
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionDistance`
+ """
+ model = FunctionDistance()
+ if include_optional:
+ return FunctionDistance(
+ id = 'z0',
+ type = 'function_distance',
+ options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, ), )
+ )
+ else:
+ return FunctionDistance(
+ type = 'function_distance',
+ options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, ), ),
+ )
+ """
+
+ def testFunctionDistance(self):
+ """Test FunctionDistance"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_distance_options.py b/test/test_function_distance_options.py
new file mode 100644
index 0000000..86cd9bb
--- /dev/null
+++ b/test/test_function_distance_options.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_distance_options import FunctionDistanceOptions
+
+class TestFunctionDistanceOptions(unittest.TestCase):
+ """FunctionDistanceOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionDistanceOptions:
+ """Test FunctionDistanceOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionDistanceOptions`
+ """
+ model = FunctionDistanceOptions()
+ if include_optional:
+ return FunctionDistanceOptions(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, )
+ )
+ else:
+ return FunctionDistanceOptions(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint(
+ lat = 1.337,
+ lng = 1.337, ),
+ )
+ """
+
+ def testFunctionDistanceOptions(self):
+ """Test FunctionDistanceOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_distance_options_central_point.py b/test/test_function_distance_options_central_point.py
new file mode 100644
index 0000000..be67b0c
--- /dev/null
+++ b/test/test_function_distance_options_central_point.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint
+
+class TestFunctionDistanceOptionsCentralPoint(unittest.TestCase):
+ """FunctionDistanceOptionsCentralPoint unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionDistanceOptionsCentralPoint:
+ """Test FunctionDistanceOptionsCentralPoint
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionDistanceOptionsCentralPoint`
+ """
+ model = FunctionDistanceOptionsCentralPoint()
+ if include_optional:
+ return FunctionDistanceOptionsCentralPoint(
+ lat = 1.337,
+ lng = 1.337
+ )
+ else:
+ return FunctionDistanceOptionsCentralPoint(
+ lat = 1.337,
+ lng = 1.337,
+ )
+ """
+
+ def testFunctionDistanceOptionsCentralPoint(self):
+ """Test FunctionDistanceOptionsCentralPoint"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_h3_grid.py b/test/test_function_h3_grid.py
new file mode 100644
index 0000000..eb992b2
--- /dev/null
+++ b/test/test_function_h3_grid.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_h3_grid import FunctionH3Grid
+
+class TestFunctionH3Grid(unittest.TestCase):
+ """FunctionH3Grid unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionH3Grid:
+ """Test FunctionH3Grid
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionH3Grid`
+ """
+ model = FunctionH3Grid()
+ if include_optional:
+ return FunctionH3Grid(
+ id = 'z0',
+ type = 'function_h3_grid',
+ options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3Grid_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ resolution = 0, )
+ )
+ else:
+ return FunctionH3Grid(
+ type = 'function_h3_grid',
+ options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3Grid_options(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ resolution = 0, ),
+ )
+ """
+
+ def testFunctionH3Grid(self):
+ """Test FunctionH3Grid"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_h3_grid_options.py b/test/test_function_h3_grid_options.py
new file mode 100644
index 0000000..0a15d45
--- /dev/null
+++ b/test/test_function_h3_grid_options.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_h3_grid_options import FunctionH3GridOptions
+
+class TestFunctionH3GridOptions(unittest.TestCase):
+ """FunctionH3GridOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionH3GridOptions:
+ """Test FunctionH3GridOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionH3GridOptions`
+ """
+ model = FunctionH3GridOptions()
+ if include_optional:
+ return FunctionH3GridOptions(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ resolution = 0
+ )
+ else:
+ return FunctionH3GridOptions(
+ dataset = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ resolution = 0,
+ )
+ """
+
+ def testFunctionH3GridOptions(self):
+ """Test FunctionH3GridOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_interval.py b/test/test_function_interval.py
new file mode 100644
index 0000000..1ca1dec
--- /dev/null
+++ b/test/test_function_interval.py
@@ -0,0 +1,69 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_interval import FunctionInterval
+
+class TestFunctionInterval(unittest.TestCase):
+ """FunctionInterval unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionInterval:
+ """Test FunctionInterval
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionInterval`
+ """
+ model = FunctionInterval()
+ if include_optional:
+ return FunctionInterval(
+ id = 'z0',
+ type = 'function_interval',
+ content = [
+ cm_python_openapi_sdk.models.dwh_query_number_type.DwhQueryNumberType(
+ id = 'z0',
+ type = 'number',
+ value = 1.337, )
+ ],
+ options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options(
+ interval = 'day', )
+ )
+ else:
+ return FunctionInterval(
+ type = 'function_interval',
+ content = [
+ cm_python_openapi_sdk.models.dwh_query_number_type.DwhQueryNumberType(
+ id = 'z0',
+ type = 'number',
+ value = 1.337, )
+ ],
+ options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options(
+ interval = 'day', ),
+ )
+ """
+
+ def testFunctionInterval(self):
+ """Test FunctionInterval"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_ntile.py b/test/test_function_ntile.py
new file mode 100644
index 0000000..1065a4b
--- /dev/null
+++ b/test/test_function_ntile.py
@@ -0,0 +1,65 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_ntile import FunctionNtile
+
+class TestFunctionNtile(unittest.TestCase):
+ """FunctionNtile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionNtile:
+ """Test FunctionNtile
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionNtile`
+ """
+ model = FunctionNtile()
+ if include_optional:
+ return FunctionNtile(
+ id = 'z0',
+ type = 'function_ntile',
+ content = [
+ null
+ ],
+ options = cm_python_openapi_sdk.models.function_ntile_options.FunctionNtile_options(
+ sort = 'asc',
+ buckets = 56,
+ partition_by = [
+ '0'
+ ], )
+ )
+ else:
+ return FunctionNtile(
+ type = 'function_ntile',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionNtile(self):
+ """Test FunctionNtile"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_ntile_options.py b/test/test_function_ntile_options.py
new file mode 100644
index 0000000..0763c04
--- /dev/null
+++ b/test/test_function_ntile_options.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions
+
+class TestFunctionNtileOptions(unittest.TestCase):
+ """FunctionNtileOptions unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionNtileOptions:
+ """Test FunctionNtileOptions
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionNtileOptions`
+ """
+ model = FunctionNtileOptions()
+ if include_optional:
+ return FunctionNtileOptions(
+ sort = 'asc',
+ buckets = 56,
+ partition_by = [
+ '0'
+ ]
+ )
+ else:
+ return FunctionNtileOptions(
+ buckets = 56,
+ )
+ """
+
+ def testFunctionNtileOptions(self):
+ """Test FunctionNtileOptions"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_percent_to_total_type_general.py b/test/test_function_percent_to_total_type_general.py
new file mode 100644
index 0000000..d3d5cf7
--- /dev/null
+++ b/test/test_function_percent_to_total_type_general.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_percent_to_total_type_general import FunctionPercentToTotalTypeGeneral
+
+class TestFunctionPercentToTotalTypeGeneral(unittest.TestCase):
+ """FunctionPercentToTotalTypeGeneral unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionPercentToTotalTypeGeneral:
+ """Test FunctionPercentToTotalTypeGeneral
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionPercentToTotalTypeGeneral`
+ """
+ model = FunctionPercentToTotalTypeGeneral()
+ if include_optional:
+ return FunctionPercentToTotalTypeGeneral(
+ id = 'z0',
+ type = 'function_percent_to_total',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionPercentToTotalTypeGeneral(
+ type = 'function_percent_to_total',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionPercentToTotalTypeGeneral(self):
+ """Test FunctionPercentToTotalTypeGeneral"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_percentile.py b/test/test_function_percentile.py
new file mode 100644
index 0000000..4dab3d7
--- /dev/null
+++ b/test/test_function_percentile.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_percentile import FunctionPercentile
+
+class TestFunctionPercentile(unittest.TestCase):
+ """FunctionPercentile unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionPercentile:
+ """Test FunctionPercentile
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionPercentile`
+ """
+ model = FunctionPercentile()
+ if include_optional:
+ return FunctionPercentile(
+ id = 'z0',
+ type = 'function_percentile',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionPercentile(
+ type = 'function_percentile',
+ content = [
+ null
+ ],
+ options = None,
+ )
+ """
+
+ def testFunctionPercentile(self):
+ """Test FunctionPercentile"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_property_type.py b/test/test_function_property_type.py
new file mode 100644
index 0000000..1130736
--- /dev/null
+++ b/test/test_function_property_type.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_property_type import FunctionPropertyType
+
+class TestFunctionPropertyType(unittest.TestCase):
+ """FunctionPropertyType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionPropertyType:
+ """Test FunctionPropertyType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionPropertyType`
+ """
+ model = FunctionPropertyType()
+ if include_optional:
+ return FunctionPropertyType(
+ type = 'property',
+ value = ''
+ )
+ else:
+ return FunctionPropertyType(
+ type = 'property',
+ value = '',
+ )
+ """
+
+ def testFunctionPropertyType(self):
+ """Test FunctionPropertyType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_rank.py b/test/test_function_rank.py
new file mode 100644
index 0000000..b954787
--- /dev/null
+++ b/test/test_function_rank.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_rank import FunctionRank
+
+class TestFunctionRank(unittest.TestCase):
+ """FunctionRank unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionRank:
+ """Test FunctionRank
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionRank`
+ """
+ model = FunctionRank()
+ if include_optional:
+ return FunctionRank(
+ id = 'z0',
+ type = 'function_rank',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionRank(
+ type = 'function_rank',
+ content = [
+ null
+ ],
+ options = None,
+ )
+ """
+
+ def testFunctionRank(self):
+ """Test FunctionRank"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_round_type_general.py b/test/test_function_round_type_general.py
new file mode 100644
index 0000000..df4b9fc
--- /dev/null
+++ b/test/test_function_round_type_general.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_round_type_general import FunctionRoundTypeGeneral
+
+class TestFunctionRoundTypeGeneral(unittest.TestCase):
+ """FunctionRoundTypeGeneral unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionRoundTypeGeneral:
+ """Test FunctionRoundTypeGeneral
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionRoundTypeGeneral`
+ """
+ model = FunctionRoundTypeGeneral()
+ if include_optional:
+ return FunctionRoundTypeGeneral(
+ id = 'z0',
+ type = 'function_round',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionRoundTypeGeneral(
+ type = 'function_round',
+ content = [
+ null
+ ],
+ )
+ """
+
+ def testFunctionRoundTypeGeneral(self):
+ """Test FunctionRoundTypeGeneral"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_row_number.py b/test/test_function_row_number.py
new file mode 100644
index 0000000..6aa0d65
--- /dev/null
+++ b/test/test_function_row_number.py
@@ -0,0 +1,61 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_row_number import FunctionRowNumber
+
+class TestFunctionRowNumber(unittest.TestCase):
+ """FunctionRowNumber unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionRowNumber:
+ """Test FunctionRowNumber
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionRowNumber`
+ """
+ model = FunctionRowNumber()
+ if include_optional:
+ return FunctionRowNumber(
+ id = 'z0',
+ type = 'function_row_number',
+ content = [
+ null
+ ],
+ options = None
+ )
+ else:
+ return FunctionRowNumber(
+ type = 'function_row_number',
+ content = [
+ null
+ ],
+ options = None,
+ )
+ """
+
+ def testFunctionRowNumber(self):
+ """Test FunctionRowNumber"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_function_today.py b/test/test_function_today.py
new file mode 100644
index 0000000..208abf4
--- /dev/null
+++ b/test/test_function_today.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.function_today import FunctionToday
+
+class TestFunctionToday(unittest.TestCase):
+ """FunctionToday unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> FunctionToday:
+ """Test FunctionToday
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `FunctionToday`
+ """
+ model = FunctionToday()
+ if include_optional:
+ return FunctionToday(
+ id = 'z0',
+ type = 'function_today'
+ )
+ else:
+ return FunctionToday(
+ type = 'function_today',
+ )
+ """
+
+ def testFunctionToday(self):
+ """Test FunctionToday"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_organizations200_response.py b/test/test_get_organizations200_response.py
new file mode 100644
index 0000000..d1ae392
--- /dev/null
+++ b/test/test_get_organizations200_response.py
@@ -0,0 +1,76 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.get_organizations200_response import GetOrganizations200Response
+
+class TestGetOrganizations200Response(unittest.TestCase):
+ """GetOrganizations200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetOrganizations200Response:
+ """Test GetOrganizations200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetOrganizations200Response`
+ """
+ model = GetOrganizations200Response()
+ if include_optional:
+ return GetOrganizations200Response(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.organization_response_dto.OrganizationResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg',
+ created_at = '',
+ modified_at = '',
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, ),
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg',
+ created_at = '',
+ modified_at = ''
+ )
+ else:
+ return GetOrganizations200Response(
+ )
+ """
+
+ def testGetOrganizations200Response(self):
+ """Test GetOrganizations200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_get_project_members200_response.py b/test/test_get_project_members200_response.py
new file mode 100644
index 0000000..4451b70
--- /dev/null
+++ b/test/test_get_project_members200_response.py
@@ -0,0 +1,80 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.get_project_members200_response import GetProjectMembers200Response
+
+class TestGetProjectMembers200Response(unittest.TestCase):
+ """GetProjectMembers200Response unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GetProjectMembers200Response:
+ """Test GetProjectMembers200Response
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GetProjectMembers200Response`
+ """
+ model = GetProjectMembers200Response()
+ if include_optional:
+ return GetProjectMembers200Response(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.membership_dto.MembershipDTO(
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = cm_python_openapi_sdk.models.account.account(),
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, ),
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = cm_python_openapi_sdk.models.account.account()
+ )
+ else:
+ return GetProjectMembers200Response(
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ )
+ """
+
+ def testGetProjectMembers200Response(self):
+ """Test GetProjectMembers200Response"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_global_date_filter_dto.py b/test/test_global_date_filter_dto.py
index da8f759..666133e 100644
--- a/test/test_global_date_filter_dto.py
+++ b/test/test_global_date_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.global_date_filter_dto import GlobalDateFilterDTO
+from cm_python_openapi_sdk.models.global_date_filter_dto import GlobalDateFilterDTO
class TestGlobalDateFilterDTO(unittest.TestCase):
"""GlobalDateFilterDTO unit test stubs"""
diff --git a/test/test_google_earth_dto.py b/test/test_google_earth_dto.py
index 50a920f..f4d1cd0 100644
--- a/test/test_google_earth_dto.py
+++ b/test/test_google_earth_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.google_earth_dto import GoogleEarthDTO
+from cm_python_openapi_sdk.models.google_earth_dto import GoogleEarthDTO
class TestGoogleEarthDTO(unittest.TestCase):
"""GoogleEarthDTO unit test stubs"""
diff --git a/test/test_google_satellite_dto.py b/test/test_google_satellite_dto.py
index b268e39..2174b4e 100644
--- a/test/test_google_satellite_dto.py
+++ b/test/test_google_satellite_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.google_satellite_dto import GoogleSatelliteDTO
+from cm_python_openapi_sdk.models.google_satellite_dto import GoogleSatelliteDTO
class TestGoogleSatelliteDTO(unittest.TestCase):
"""GoogleSatelliteDTO unit test stubs"""
diff --git a/test/test_google_street_view_dto.py b/test/test_google_street_view_dto.py
index 780c348..fc36065 100644
--- a/test/test_google_street_view_dto.py
+++ b/test/test_google_street_view_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.google_street_view_dto import GoogleStreetViewDTO
+from cm_python_openapi_sdk.models.google_street_view_dto import GoogleStreetViewDTO
class TestGoogleStreetViewDTO(unittest.TestCase):
"""GoogleStreetViewDTO unit test stubs"""
diff --git a/test/test_granularity_category_dto.py b/test/test_granularity_category_dto.py
new file mode 100644
index 0000000..1078306
--- /dev/null
+++ b/test/test_granularity_category_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.granularity_category_dto import GranularityCategoryDTO
+
+class TestGranularityCategoryDTO(unittest.TestCase):
+ """GranularityCategoryDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> GranularityCategoryDTO:
+ """Test GranularityCategoryDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `GranularityCategoryDTO`
+ """
+ model = GranularityCategoryDTO()
+ if include_optional:
+ return GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color'
+ )
+ else:
+ return GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color',
+ )
+ """
+
+ def testGranularityCategoryDTO(self):
+ """Test GranularityCategoryDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_histogram_filter_dto.py b/test/test_histogram_filter_dto.py
index c32fca4..def0009 100644
--- a/test/test_histogram_filter_dto.py
+++ b/test/test_histogram_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.histogram_filter_dto import HistogramFilterDTO
+from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO
class TestHistogramFilterDTO(unittest.TestCase):
"""HistogramFilterDTO unit test stubs"""
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> HistogramFilterDTO:
return HistogramFilterDTO(
type = 'histogram',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', )
diff --git a/test/test_import_project_job_request.py b/test/test_import_project_job_request.py
new file mode 100644
index 0000000..48801c0
--- /dev/null
+++ b/test/test_import_project_job_request.py
@@ -0,0 +1,92 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.import_project_job_request import ImportProjectJobRequest
+
+class TestImportProjectJobRequest(unittest.TestCase):
+ """ImportProjectJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ImportProjectJobRequest:
+ """Test ImportProjectJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ImportProjectJobRequest`
+ """
+ model = ImportProjectJobRequest()
+ if include_optional:
+ return ImportProjectJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.import_project_request.ImportProjectRequest(
+ force = True,
+ source_project_id = '',
+ cascade_from = '',
+ prefix = '',
+ attribute_styles = True,
+ dashboard = True,
+ data_permissions = True,
+ datasets = True,
+ exports = True,
+ indicators = True,
+ indicator_drills = True,
+ maps = True,
+ markers = True,
+ marker_selectors = True,
+ metrics = True,
+ project_settings = True,
+ views = True,
+ skip_data = True, )
+ )
+ else:
+ return ImportProjectJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.import_project_request.ImportProjectRequest(
+ force = True,
+ source_project_id = '',
+ cascade_from = '',
+ prefix = '',
+ attribute_styles = True,
+ dashboard = True,
+ data_permissions = True,
+ datasets = True,
+ exports = True,
+ indicators = True,
+ indicator_drills = True,
+ maps = True,
+ markers = True,
+ marker_selectors = True,
+ metrics = True,
+ project_settings = True,
+ views = True,
+ skip_data = True, ),
+ )
+ """
+
+ def testImportProjectJobRequest(self):
+ """Test ImportProjectJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_import_project_request.py b/test/test_import_project_request.py
new file mode 100644
index 0000000..96898f6
--- /dev/null
+++ b/test/test_import_project_request.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.import_project_request import ImportProjectRequest
+
+class TestImportProjectRequest(unittest.TestCase):
+ """ImportProjectRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ImportProjectRequest:
+ """Test ImportProjectRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ImportProjectRequest`
+ """
+ model = ImportProjectRequest()
+ if include_optional:
+ return ImportProjectRequest(
+ force = True,
+ source_project_id = '',
+ cascade_from = '',
+ prefix = '',
+ attribute_styles = True,
+ dashboard = True,
+ data_permissions = True,
+ datasets = True,
+ exports = True,
+ indicators = True,
+ indicator_drills = True,
+ maps = True,
+ markers = True,
+ marker_selectors = True,
+ metrics = True,
+ project_settings = True,
+ views = True,
+ skip_data = True
+ )
+ else:
+ return ImportProjectRequest(
+ force = True,
+ source_project_id = '',
+ )
+ """
+
+ def testImportProjectRequest(self):
+ """Test ImportProjectRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_indicator_content_dto.py b/test/test_indicator_content_dto.py
index 8bdb85f..a970ce2 100644
--- a/test/test_indicator_content_dto.py
+++ b/test/test_indicator_content_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_content_dto import IndicatorContentDTO
+from cm_python_openapi_sdk.models.indicator_content_dto import IndicatorContentDTO
class TestIndicatorContentDTO(unittest.TestCase):
"""IndicatorContentDTO unit test stubs"""
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> IndicatorContentDTO:
metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
scale = 'standard',
distribution = 'geometric',
- visualizations = openapi_client.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
+ visualizations = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
areas = True,
grid = True,
zones = True,
@@ -47,18 +47,18 @@ def make_instance(self, include_optional) -> IndicatorContentDTO:
heatmap = True,
dominance = True,
heatmap_scale_factor = 1.337, ),
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
- relations = openapi_client.models.relations_dto.RelationsDTO(
+ relations = cm_python_openapi_sdk.models.relations_dto.RelationsDTO(
type = 'self',
reversed_metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ),
- scale_options = openapi_client.models.scale_options_dto.ScaleOptionsDTO(
+ scale_options = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO(
static = [
- openapi_client.models.static_scale_option_dto.StaticScaleOptionDTO(
+ cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -66,11 +66,11 @@ def make_instance(self, include_optional) -> IndicatorContentDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2, )
], )
],
- default_distribution = openapi_client.models.default_distribution_dto.DefaultDistributionDTO(
+ default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO(
range = [
1.337
],
diff --git a/test/test_indicator_drill_content_dto.py b/test/test_indicator_drill_content_dto.py
index a32de62..f53fe57 100644
--- a/test/test_indicator_drill_content_dto.py
+++ b/test/test_indicator_drill_content_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_drill_content_dto import IndicatorDrillContentDTO
+from cm_python_openapi_sdk.models.indicator_drill_content_dto import IndicatorDrillContentDTO
class TestIndicatorDrillContentDTO(unittest.TestCase):
"""IndicatorDrillContentDTO unit test stubs"""
diff --git a/test/test_indicator_drill_dto.py b/test/test_indicator_drill_dto.py
index 60dad2d..e42f5ed 100644
--- a/test/test_indicator_drill_dto.py
+++ b/test/test_indicator_drill_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_drill_dto import IndicatorDrillDTO
+from cm_python_openapi_sdk.models.indicator_drill_dto import IndicatorDrillDTO
class TestIndicatorDrillDTO(unittest.TestCase):
"""IndicatorDrillDTO unit test stubs"""
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> IndicatorDrillDTO:
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
blocks = [
null
], )
@@ -48,7 +48,7 @@ def make_instance(self, include_optional) -> IndicatorDrillDTO:
else:
return IndicatorDrillDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
- content = openapi_client.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
blocks = [
null
], ),
diff --git a/test/test_indicator_drill_paged_model_dto.py b/test/test_indicator_drill_paged_model_dto.py
index a219a33..48b9845 100644
--- a/test/test_indicator_drill_paged_model_dto.py
+++ b/test/test_indicator_drill_paged_model_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_drill_paged_model_dto import IndicatorDrillPagedModelDTO
class TestIndicatorDrillPagedModelDTO(unittest.TestCase):
"""IndicatorDrillPagedModelDTO unit test stubs"""
@@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> IndicatorDrillPagedModelDTO:
if include_optional:
return IndicatorDrillPagedModelDTO(
content = [
- openapi_client.models.indicator_drill_dto.IndicatorDrillDTO(
+ cm_python_openapi_sdk.models.indicator_drill_dto.IndicatorDrillDTO(
id = '',
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO(
blocks = [
null
], ), )
@@ -50,7 +50,7 @@ def make_instance(self, include_optional) -> IndicatorDrillPagedModelDTO:
links = [
None
],
- page = openapi_client.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
size = 56,
total_elements = null,
total_pages = 56,
diff --git a/test/test_indicator_drills_api.py b/test/test_indicator_drills_api.py
index 7c677dc..2b8d851 100644
--- a/test/test_indicator_drills_api.py
+++ b/test/test_indicator_drills_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.indicator_drills_api import IndicatorDrillsApi
+from cm_python_openapi_sdk.api.indicator_drills_api import IndicatorDrillsApi
class TestIndicatorDrillsApi(unittest.TestCase):
diff --git a/test/test_indicator_dto.py b/test/test_indicator_dto.py
index 8395cc3..f020aa9 100644
--- a/test/test_indicator_dto.py
+++ b/test/test_indicator_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_dto import IndicatorDTO
+from cm_python_openapi_sdk.models.indicator_dto import IndicatorDTO
class TestIndicatorDTO(unittest.TestCase):
"""IndicatorDTO unit test stubs"""
@@ -40,11 +40,11 @@ def make_instance(self, include_optional) -> IndicatorDTO:
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.indicator_content_dto.IndicatorContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_content_dto.IndicatorContentDTO(
metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
scale = 'standard',
distribution = 'geometric',
- visualizations = openapi_client.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
+ visualizations = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
areas = True,
grid = True,
zones = True,
@@ -53,18 +53,18 @@ def make_instance(self, include_optional) -> IndicatorDTO:
heatmap = True,
dominance = True,
heatmap_scale_factor = 1.337, ),
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
- relations = openapi_client.models.relations_dto.RelationsDTO(
+ relations = cm_python_openapi_sdk.models.relations_dto.RelationsDTO(
type = 'self',
reversed_metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ),
- scale_options = openapi_client.models.scale_options_dto.ScaleOptionsDTO(
+ scale_options = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO(
static = [
- openapi_client.models.static_scale_option_dto.StaticScaleOptionDTO(
+ cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -72,11 +72,11 @@ def make_instance(self, include_optional) -> IndicatorDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2, )
], )
],
- default_distribution = openapi_client.models.default_distribution_dto.DefaultDistributionDTO(
+ default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO(
range = [
1.337
],
@@ -89,11 +89,11 @@ def make_instance(self, include_optional) -> IndicatorDTO:
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
description = '',
- content = openapi_client.models.indicator_content_dto.IndicatorContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_content_dto.IndicatorContentDTO(
metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
scale = 'standard',
distribution = 'geometric',
- visualizations = openapi_client.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
+ visualizations = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
areas = True,
grid = True,
zones = True,
@@ -102,18 +102,18 @@ def make_instance(self, include_optional) -> IndicatorDTO:
heatmap = True,
dominance = True,
heatmap_scale_factor = 1.337, ),
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
- relations = openapi_client.models.relations_dto.RelationsDTO(
+ relations = cm_python_openapi_sdk.models.relations_dto.RelationsDTO(
type = 'self',
reversed_metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ),
- scale_options = openapi_client.models.scale_options_dto.ScaleOptionsDTO(
+ scale_options = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO(
static = [
- openapi_client.models.static_scale_option_dto.StaticScaleOptionDTO(
+ cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -121,11 +121,11 @@ def make_instance(self, include_optional) -> IndicatorDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2, )
], )
],
- default_distribution = openapi_client.models.default_distribution_dto.DefaultDistributionDTO(
+ default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO(
range = [
1.337
],
diff --git a/test/test_indicator_filter_dto.py b/test/test_indicator_filter_dto.py
index fce8a0e..3efd0fb 100644
--- a/test/test_indicator_filter_dto.py
+++ b/test/test_indicator_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_filter_dto import IndicatorFilterDTO
+from cm_python_openapi_sdk.models.indicator_filter_dto import IndicatorFilterDTO
class TestIndicatorFilterDTO(unittest.TestCase):
"""IndicatorFilterDTO unit test stubs"""
diff --git a/test/test_indicator_group_dto.py b/test/test_indicator_group_dto.py
index 3a8fea5..b8838b6 100644
--- a/test/test_indicator_group_dto.py
+++ b/test/test_indicator_group_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_group_dto import IndicatorGroupDTO
+from cm_python_openapi_sdk.models.indicator_group_dto import IndicatorGroupDTO
class TestIndicatorGroupDTO(unittest.TestCase):
"""IndicatorGroupDTO unit test stubs"""
diff --git a/test/test_indicator_link_dto.py b/test/test_indicator_link_dto.py
index ef5d20a..522252c 100644
--- a/test/test_indicator_link_dto.py
+++ b/test/test_indicator_link_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_link_dto import IndicatorLinkDTO
+from cm_python_openapi_sdk.models.indicator_link_dto import IndicatorLinkDTO
class TestIndicatorLinkDTO(unittest.TestCase):
"""IndicatorLinkDTO unit test stubs"""
diff --git a/test/test_indicator_link_dto_block_rows_inner.py b/test/test_indicator_link_dto_block_rows_inner.py
index 3b10e49..22a0ac8 100644
--- a/test/test_indicator_link_dto_block_rows_inner.py
+++ b/test/test_indicator_link_dto_block_rows_inner.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
+from cm_python_openapi_sdk.models.indicator_link_dto_block_rows_inner import IndicatorLinkDTOBlockRowsInner
class TestIndicatorLinkDTOBlockRowsInner(unittest.TestCase):
"""IndicatorLinkDTOBlockRowsInner unit test stubs"""
@@ -46,7 +46,7 @@ def make_instance(self, include_optional) -> IndicatorLinkDTOBlockRowsInner:
filterable = True,
hide_null_items = True,
size_limit = 56,
- order_by = openapi_client.models.order_by_dto.OrderByDTO(
+ order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', ),
vertical = True,
@@ -60,11 +60,11 @@ def make_instance(self, include_optional) -> IndicatorLinkDTOBlockRowsInner:
direction = 'asc',
default_period = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
additional_series = [
- openapi_client.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
+ cm_python_openapi_sdk.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
annotations = [
- openapi_client.models.annotation_link_dto.AnnotationLinkDTO(
+ cm_python_openapi_sdk.models.annotation_link_dto.AnnotationLinkDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
]
)
diff --git a/test/test_indicator_paged_model_dto.py b/test/test_indicator_paged_model_dto.py
index c9d2387..412e584 100644
--- a/test/test_indicator_paged_model_dto.py
+++ b/test/test_indicator_paged_model_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_paged_model_dto import IndicatorPagedModelDTO
+from cm_python_openapi_sdk.models.indicator_paged_model_dto import IndicatorPagedModelDTO
class TestIndicatorPagedModelDTO(unittest.TestCase):
"""IndicatorPagedModelDTO unit test stubs"""
@@ -36,17 +36,17 @@ def make_instance(self, include_optional) -> IndicatorPagedModelDTO:
if include_optional:
return IndicatorPagedModelDTO(
content = [
- openapi_client.models.indicator_dto.IndicatorDTO(
+ cm_python_openapi_sdk.models.indicator_dto.IndicatorDTO(
id = '',
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.indicator_content_dto.IndicatorContentDTO(
+ content = cm_python_openapi_sdk.models.indicator_content_dto.IndicatorContentDTO(
metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
scale = 'standard',
distribution = 'geometric',
- visualizations = openapi_client.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
+ visualizations = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO(
areas = True,
grid = True,
zones = True,
@@ -55,18 +55,18 @@ def make_instance(self, include_optional) -> IndicatorPagedModelDTO:
heatmap = True,
dominance = True,
heatmap_scale_factor = 1.337, ),
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
- relations = openapi_client.models.relations_dto.RelationsDTO(
+ relations = cm_python_openapi_sdk.models.relations_dto.RelationsDTO(
type = 'self',
reversed_metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ),
- scale_options = openapi_client.models.scale_options_dto.ScaleOptionsDTO(
+ scale_options = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO(
static = [
- openapi_client.models.static_scale_option_dto.StaticScaleOptionDTO(
+ cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -74,11 +74,11 @@ def make_instance(self, include_optional) -> IndicatorPagedModelDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2, )
], )
],
- default_distribution = openapi_client.models.default_distribution_dto.DefaultDistributionDTO(
+ default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO(
range = [
1.337
],
@@ -89,7 +89,7 @@ def make_instance(self, include_optional) -> IndicatorPagedModelDTO:
links = [
None
],
- page = openapi_client.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
size = 56,
total_elements = null,
total_pages = 56,
diff --git a/test/test_indicator_visualizations_dto.py b/test/test_indicator_visualizations_dto.py
index 8ccb07f..d28fe3e 100644
--- a/test/test_indicator_visualizations_dto.py
+++ b/test/test_indicator_visualizations_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
+from cm_python_openapi_sdk.models.indicator_visualizations_dto import IndicatorVisualizationsDTO
class TestIndicatorVisualizationsDTO(unittest.TestCase):
"""IndicatorVisualizationsDTO unit test stubs"""
diff --git a/test/test_indicators_api.py b/test/test_indicators_api.py
index 72d4bea..0dc4a29 100644
--- a/test/test_indicators_api.py
+++ b/test/test_indicators_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.indicators_api import IndicatorsApi
+from cm_python_openapi_sdk.api.indicators_api import IndicatorsApi
class TestIndicatorsApi(unittest.TestCase):
diff --git a/test/test_invitation_dto.py b/test/test_invitation_dto.py
new file mode 100644
index 0000000..0a09b98
--- /dev/null
+++ b/test/test_invitation_dto.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.invitation_dto import InvitationDTO
+
+class TestInvitationDTO(unittest.TestCase):
+ """InvitationDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InvitationDTO:
+ """Test InvitationDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InvitationDTO`
+ """
+ model = InvitationDTO()
+ if include_optional:
+ return InvitationDTO(
+ id = '',
+ email = '',
+ status = 'PENDING',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ links = [
+ None
+ ]
+ )
+ else:
+ return InvitationDTO(
+ email = '',
+ status = 'PENDING',
+ role = 'ANONYMOUS',
+ created_at = '',
+ )
+ """
+
+ def testInvitationDTO(self):
+ """Test InvitationDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_invitation_paged_model_dto.py b/test/test_invitation_paged_model_dto.py
new file mode 100644
index 0000000..b7c07c2
--- /dev/null
+++ b/test/test_invitation_paged_model_dto.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.invitation_paged_model_dto import InvitationPagedModelDTO
+
+class TestInvitationPagedModelDTO(unittest.TestCase):
+ """InvitationPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> InvitationPagedModelDTO:
+ """Test InvitationPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `InvitationPagedModelDTO`
+ """
+ model = InvitationPagedModelDTO()
+ if include_optional:
+ return InvitationPagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.invitation_dto.InvitationDTO(
+ id = '',
+ email = '',
+ status = 'PENDING',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return InvitationPagedModelDTO(
+ )
+ """
+
+ def testInvitationPagedModelDTO(self):
+ """Test InvitationPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrone_api.py b/test/test_isochrone_api.py
new file mode 100644
index 0000000..4a5acbe
--- /dev/null
+++ b/test/test_isochrone_api.py
@@ -0,0 +1,37 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.isochrone_api import IsochroneApi
+
+
+class TestIsochroneApi(unittest.TestCase):
+ """IsochroneApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = IsochroneApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_isochrone(self) -> None:
+ """Test case for get_isochrone
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_isochrone_dto.py b/test/test_isochrone_dto.py
index ef1abeb..d26fb48 100644
--- a/test/test_isochrone_dto.py
+++ b/test/test_isochrone_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.isochrone_dto import IsochroneDTO
+from cm_python_openapi_sdk.models.isochrone_dto import IsochroneDTO
class TestIsochroneDTO(unittest.TestCase):
"""IsochroneDTO unit test stubs"""
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> IsochroneDTO:
profile = 'car',
unit = 'time',
amount = 1,
- geometry = None
+ geometry = cm_python_openapi_sdk.models.geometry.geometry()
)
else:
return IsochroneDTO(
diff --git a/test/test_isochrone_paged_model_dto.py b/test/test_isochrone_paged_model_dto.py
new file mode 100644
index 0000000..dd0fc8d
--- /dev/null
+++ b/test/test_isochrone_paged_model_dto.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.isochrone_paged_model_dto import IsochronePagedModelDTO
+
+class TestIsochronePagedModelDTO(unittest.TestCase):
+ """IsochronePagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> IsochronePagedModelDTO:
+ """Test IsochronePagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `IsochronePagedModelDTO`
+ """
+ model = IsochronePagedModelDTO()
+ if include_optional:
+ return IsochronePagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
+ lat = -180.0,
+ lng = -180.0,
+ profile = 'car',
+ unit = 'time',
+ amount = 1,
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return IsochronePagedModelDTO(
+ )
+ """
+
+ def testIsochronePagedModelDTO(self):
+ """Test IsochronePagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_job_detail_response.py b/test/test_job_detail_response.py
new file mode 100644
index 0000000..21bc780
--- /dev/null
+++ b/test/test_job_detail_response.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.job_detail_response import JobDetailResponse
+
+class TestJobDetailResponse(unittest.TestCase):
+ """JobDetailResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> JobDetailResponse:
+ """Test JobDetailResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `JobDetailResponse`
+ """
+ model = JobDetailResponse()
+ if include_optional:
+ return JobDetailResponse(
+ id = '0',
+ type = '0',
+ status = 'RUNNING',
+ start_date = None,
+ end_date = None,
+ message = '',
+ result = None,
+ links = [
+ None
+ ]
+ )
+ else:
+ return JobDetailResponse(
+ id = '0',
+ type = '0',
+ status = 'RUNNING',
+ )
+ """
+
+ def testJobDetailResponse(self):
+ """Test JobDetailResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_job_history_paged_model_dto.py b/test/test_job_history_paged_model_dto.py
new file mode 100644
index 0000000..c4d614c
--- /dev/null
+++ b/test/test_job_history_paged_model_dto.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.job_history_paged_model_dto import JobHistoryPagedModelDTO
+
+class TestJobHistoryPagedModelDTO(unittest.TestCase):
+ """JobHistoryPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> JobHistoryPagedModelDTO:
+ """Test JobHistoryPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `JobHistoryPagedModelDTO`
+ """
+ model = JobHistoryPagedModelDTO()
+ if include_optional:
+ return JobHistoryPagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ null
+ ],
+ page = None
+ )
+ else:
+ return JobHistoryPagedModelDTO(
+ )
+ """
+
+ def testJobHistoryPagedModelDTO(self):
+ """Test JobHistoryPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_jobs_api.py b/test/test_jobs_api.py
new file mode 100644
index 0000000..e8f30dd
--- /dev/null
+++ b/test/test_jobs_api.py
@@ -0,0 +1,49 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.jobs_api import JobsApi
+
+
+class TestJobsApi(unittest.TestCase):
+ """JobsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = JobsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_job_status(self) -> None:
+ """Test case for get_job_status
+
+ """
+ pass
+
+ def test_get_jobs_history(self) -> None:
+ """Test case for get_jobs_history
+
+ """
+ pass
+
+ def test_submit_job_execution(self) -> None:
+ """Test case for submit_job_execution
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_layer_dto.py b/test/test_layer_dto.py
index 31c083f..c317cd7 100644
--- a/test/test_layer_dto.py
+++ b/test/test_layer_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.layer_dto import LayerDTO
+from cm_python_openapi_sdk.models.layer_dto import LayerDTO
class TestLayerDTO(unittest.TestCase):
"""LayerDTO unit test stubs"""
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> LayerDTO:
return LayerDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
- base_style = openapi_client.models.style_dto.StyleDTO(
+ base_style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
fill_color = 'purple',
fill_hex_color = '#62ECB0',
fill_opacity = 1.337,
@@ -53,11 +53,11 @@ def make_instance(self, include_optional) -> LayerDTO:
default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_visualization = 'dotmap',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
]
@@ -67,11 +67,11 @@ def make_instance(self, include_optional) -> LayerDTO:
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
],
diff --git a/test/test_layer_dto_datasets_inner.py b/test/test_layer_dto_datasets_inner.py
index bb5417d..84a729b 100644
--- a/test/test_layer_dto_datasets_inner.py
+++ b/test/test_layer_dto_datasets_inner.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.layer_dto_datasets_inner import LayerDTODatasetsInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner import LayerDTODatasetsInner
class TestLayerDTODatasetsInner(unittest.TestCase):
"""LayerDTODatasetsInner unit test stubs"""
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> LayerDTODatasetsInner:
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
]
)
diff --git a/test/test_layer_dto_datasets_inner_attribute_styles_inner.py b/test/test_layer_dto_datasets_inner_attribute_styles_inner.py
index 7f45520..c669c42 100644
--- a/test/test_layer_dto_datasets_inner_attribute_styles_inner.py
+++ b/test/test_layer_dto_datasets_inner_attribute_styles_inner.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
+from cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner import LayerDTODatasetsInnerAttributeStylesInner
class TestLayerDTODatasetsInnerAttributeStylesInner(unittest.TestCase):
"""LayerDTODatasetsInnerAttributeStylesInner unit test stubs"""
diff --git a/test/test_linked_layer_dto.py b/test/test_linked_layer_dto.py
new file mode 100644
index 0000000..c1ce410
--- /dev/null
+++ b/test/test_linked_layer_dto.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.linked_layer_dto import LinkedLayerDTO
+
+class TestLinkedLayerDTO(unittest.TestCase):
+ """LinkedLayerDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> LinkedLayerDTO:
+ """Test LinkedLayerDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `LinkedLayerDTO`
+ """
+ model = LinkedLayerDTO()
+ if include_optional:
+ return LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True
+ )
+ else:
+ return LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ )
+ """
+
+ def testLinkedLayerDTO(self):
+ """Test LinkedLayerDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_mandatory_keys_for_pagable_response.py b/test/test_mandatory_keys_for_pagable_response.py
index ff674d3..c476f64 100644
--- a/test/test_mandatory_keys_for_pagable_response.py
+++ b/test/test_mandatory_keys_for_pagable_response.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
+from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse
class TestMandatoryKeysForPagableResponse(unittest.TestCase):
"""MandatoryKeysForPagableResponse unit test stubs"""
diff --git a/test/test_map_content_dto.py b/test/test_map_content_dto.py
index 17ae683..3a8097a 100644
--- a/test/test_map_content_dto.py
+++ b/test/test_map_content_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_content_dto import MapContentDTO
+from cm_python_openapi_sdk.models.map_content_dto import MapContentDTO
class TestMapContentDTO(unittest.TestCase):
"""MapContentDTO unit test stubs"""
@@ -35,27 +35,27 @@ def make_instance(self, include_optional) -> MapContentDTO:
model = MapContentDTO()
if include_optional:
return MapContentDTO(
- options = openapi_client.models.map_content_dto_options.MapContentDTO_options(
- center = openapi_client.models.center_dto.CenterDTO(
+ options = cm_python_openapi_sdk.models.map_content_dto_options.MapContentDTO_options(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
min_zoom = 0,
max_zoom = 56, ),
- base_layer = openapi_client.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
+ base_layer = cm_python_openapi_sdk.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
menu = True,
type = 'mapbox',
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '', ),
- context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
layers = [
- openapi_client.models.layer_dto.LayerDTO(
+ cm_python_openapi_sdk.models.layer_dto.LayerDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
- base_style = openapi_client.models.style_dto.StyleDTO(
+ base_style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
fill_color = 'purple',
fill_hex_color = '#62ECB0',
fill_opacity = 1.337,
@@ -71,11 +71,11 @@ def make_instance(self, include_optional) -> MapContentDTO:
default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_visualization = 'dotmap',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
], )
diff --git a/test/test_map_content_dto_base_layer.py b/test/test_map_content_dto_base_layer.py
index db29a07..6f37013 100644
--- a/test/test_map_content_dto_base_layer.py
+++ b/test/test_map_content_dto_base_layer.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_content_dto_base_layer import MapContentDTOBaseLayer
+from cm_python_openapi_sdk.models.map_content_dto_base_layer import MapContentDTOBaseLayer
class TestMapContentDTOBaseLayer(unittest.TestCase):
"""MapContentDTOBaseLayer unit test stubs"""
diff --git a/test/test_map_content_dto_options.py b/test/test_map_content_dto_options.py
index 72f828b..e1bcfe9 100644
--- a/test/test_map_content_dto_options.py
+++ b/test/test_map_content_dto_options.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_content_dto_options import MapContentDTOOptions
+from cm_python_openapi_sdk.models.map_content_dto_options import MapContentDTOOptions
class TestMapContentDTOOptions(unittest.TestCase):
"""MapContentDTOOptions unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> MapContentDTOOptions:
model = MapContentDTOOptions()
if include_optional:
return MapContentDTOOptions(
- center = openapi_client.models.center_dto.CenterDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
diff --git a/test/test_map_context_menu_dto.py b/test/test_map_context_menu_dto.py
index 971a909..79b08a7 100644
--- a/test/test_map_context_menu_dto.py
+++ b/test/test_map_context_menu_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_context_menu_dto import MapContextMenuDTO
+from cm_python_openapi_sdk.models.map_context_menu_dto import MapContextMenuDTO
class TestMapContextMenuDTO(unittest.TestCase):
"""MapContextMenuDTO unit test stubs"""
diff --git a/test/test_map_context_menu_item_abstract_type.py b/test/test_map_context_menu_item_abstract_type.py
index 3d63f6a..62eabf7 100644
--- a/test/test_map_context_menu_item_abstract_type.py
+++ b/test/test_map_context_menu_item_abstract_type.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
+from cm_python_openapi_sdk.models.map_context_menu_item_abstract_type import MapContextMenuItemAbstractType
class TestMapContextMenuItemAbstractType(unittest.TestCase):
"""MapContextMenuItemAbstractType unit test stubs"""
diff --git a/test/test_map_dto.py b/test/test_map_dto.py
index dd82a4a..771f0fe 100644
--- a/test/test_map_dto.py
+++ b/test/test_map_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_dto import MapDTO
+from cm_python_openapi_sdk.models.map_dto import MapDTO
class TestMapDTO(unittest.TestCase):
"""MapDTO unit test stubs"""
@@ -40,28 +40,28 @@ def make_instance(self, include_optional) -> MapDTO:
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.map_content_dto.MapContentDTO(
- options = openapi_client.models.map_content_dto_options.MapContentDTO_options(
- center = openapi_client.models.center_dto.CenterDTO(
+ content = cm_python_openapi_sdk.models.map_content_dto.MapContentDTO(
+ options = cm_python_openapi_sdk.models.map_content_dto_options.MapContentDTO_options(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
min_zoom = 0,
max_zoom = 56, ),
- base_layer = openapi_client.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
+ base_layer = cm_python_openapi_sdk.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
menu = True,
type = 'mapbox',
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '', ),
- context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
layers = [
- openapi_client.models.layer_dto.LayerDTO(
+ cm_python_openapi_sdk.models.layer_dto.LayerDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
- base_style = openapi_client.models.style_dto.StyleDTO(
+ base_style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
fill_color = 'purple',
fill_hex_color = '#62ECB0',
fill_opacity = 1.337,
@@ -77,11 +77,11 @@ def make_instance(self, include_optional) -> MapDTO:
default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_visualization = 'dotmap',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
], )
@@ -90,28 +90,28 @@ def make_instance(self, include_optional) -> MapDTO:
else:
return MapDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
- content = openapi_client.models.map_content_dto.MapContentDTO(
- options = openapi_client.models.map_content_dto_options.MapContentDTO_options(
- center = openapi_client.models.center_dto.CenterDTO(
+ content = cm_python_openapi_sdk.models.map_content_dto.MapContentDTO(
+ options = cm_python_openapi_sdk.models.map_content_dto_options.MapContentDTO_options(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
min_zoom = 0,
max_zoom = 56, ),
- base_layer = openapi_client.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
+ base_layer = cm_python_openapi_sdk.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
menu = True,
type = 'mapbox',
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '', ),
- context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
layers = [
- openapi_client.models.layer_dto.LayerDTO(
+ cm_python_openapi_sdk.models.layer_dto.LayerDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
- base_style = openapi_client.models.style_dto.StyleDTO(
+ base_style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
fill_color = 'purple',
fill_hex_color = '#62ECB0',
fill_opacity = 1.337,
@@ -127,11 +127,11 @@ def make_instance(self, include_optional) -> MapDTO:
default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_visualization = 'dotmap',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
], )
diff --git a/test/test_map_options_dto.py b/test/test_map_options_dto.py
index 946e3f4..1af8dd0 100644
--- a/test/test_map_options_dto.py
+++ b/test/test_map_options_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_options_dto import MapOptionsDTO
+from cm_python_openapi_sdk.models.map_options_dto import MapOptionsDTO
class TestMapOptionsDTO(unittest.TestCase):
"""MapOptionsDTO unit test stubs"""
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> MapOptionsDTO:
model = MapOptionsDTO()
if include_optional:
return MapOptionsDTO(
- center = openapi_client.models.center_dto.CenterDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
@@ -43,7 +43,7 @@ def make_instance(self, include_optional) -> MapOptionsDTO:
max_zoom = 56,
tile_layer_menu = True,
tile_layer = 'mapbox',
- custom_tile_layer = openapi_client.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
+ custom_tile_layer = cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '0', )
)
diff --git a/test/test_map_options_dto_custom_tile_layer.py b/test/test_map_options_dto_custom_tile_layer.py
index e4dde57..cc1cebd 100644
--- a/test/test_map_options_dto_custom_tile_layer.py
+++ b/test/test_map_options_dto_custom_tile_layer.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
+from cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer import MapOptionsDTOCustomTileLayer
class TestMapOptionsDTOCustomTileLayer(unittest.TestCase):
"""MapOptionsDTOCustomTileLayer unit test stubs"""
diff --git a/test/test_map_paged_model_dto.py b/test/test_map_paged_model_dto.py
index af89b49..bf4af1d 100644
--- a/test/test_map_paged_model_dto.py
+++ b/test/test_map_paged_model_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.map_paged_model_dto import MapPagedModelDTO
+from cm_python_openapi_sdk.models.map_paged_model_dto import MapPagedModelDTO
class TestMapPagedModelDTO(unittest.TestCase):
"""MapPagedModelDTO unit test stubs"""
@@ -36,34 +36,34 @@ def make_instance(self, include_optional) -> MapPagedModelDTO:
if include_optional:
return MapPagedModelDTO(
content = [
- openapi_client.models.map_dto.MapDTO(
+ cm_python_openapi_sdk.models.map_dto.MapDTO(
id = '',
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.map_content_dto.MapContentDTO(
- options = openapi_client.models.map_content_dto_options.MapContentDTO_options(
- center = openapi_client.models.center_dto.CenterDTO(
+ content = cm_python_openapi_sdk.models.map_content_dto.MapContentDTO(
+ options = cm_python_openapi_sdk.models.map_content_dto_options.MapContentDTO_options(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
min_zoom = 0,
max_zoom = 56, ),
- base_layer = openapi_client.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
+ base_layer = cm_python_openapi_sdk.models.map_content_dto_base_layer.MapContentDTO_baseLayer(
menu = True,
type = 'mapbox',
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '', ),
- context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
layers = [
- openapi_client.models.layer_dto.LayerDTO(
+ cm_python_openapi_sdk.models.layer_dto.LayerDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
indicator = 'inherit',
- base_style = openapi_client.models.style_dto.StyleDTO(
+ base_style = cm_python_openapi_sdk.models.style_dto.StyleDTO(
fill_color = 'purple',
fill_hex_color = '#62ECB0',
fill_opacity = 1.337,
@@ -79,11 +79,11 @@ def make_instance(self, include_optional) -> MapPagedModelDTO:
default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
default_visualization = 'dotmap',
datasets = [
- openapi_client.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner.LayerDTO_datasets_inner(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
visualization = 'dotmap',
attribute_styles = [
- openapi_client.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
+ cm_python_openapi_sdk.models.layer_dto_datasets_inner_attribute_styles_inner.LayerDTO_datasets_inner_attributeStyles_inner(
attribute_style = '/rest/projects/8q6zgckec0l3o4gi/md/attributeStyles?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
], )
], )
@@ -92,7 +92,7 @@ def make_instance(self, include_optional) -> MapPagedModelDTO:
links = [
None
],
- page = openapi_client.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
size = 56,
total_elements = null,
total_pages = 56,
diff --git a/test/test_maps_api.py b/test/test_maps_api.py
index 7a10d19..765ec9c 100644
--- a/test/test_maps_api.py
+++ b/test/test_maps_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.maps_api import MapsApi
+from cm_python_openapi_sdk.api.maps_api import MapsApi
class TestMapsApi(unittest.TestCase):
diff --git a/test/test_mapycz_ortophoto_dto.py b/test/test_mapycz_ortophoto_dto.py
index ebf2557..881fc19 100644
--- a/test/test_mapycz_ortophoto_dto.py
+++ b/test/test_mapycz_ortophoto_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
+from cm_python_openapi_sdk.models.mapycz_ortophoto_dto import MapyczOrtophotoDTO
class TestMapyczOrtophotoDTO(unittest.TestCase):
"""MapyczOrtophotoDTO unit test stubs"""
diff --git a/test/test_mapycz_panorama_dto.py b/test/test_mapycz_panorama_dto.py
index badca67..11a3dbe 100644
--- a/test/test_mapycz_panorama_dto.py
+++ b/test/test_mapycz_panorama_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.mapycz_panorama_dto import MapyczPanoramaDTO
+from cm_python_openapi_sdk.models.mapycz_panorama_dto import MapyczPanoramaDTO
class TestMapyczPanoramaDTO(unittest.TestCase):
"""MapyczPanoramaDTO unit test stubs"""
diff --git a/test/test_marker_content_dto.py b/test/test_marker_content_dto.py
new file mode 100644
index 0000000..c77ef0d
--- /dev/null
+++ b/test/test_marker_content_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_content_dto import MarkerContentDTO
+
+class TestMarkerContentDTO(unittest.TestCase):
+ """MarkerContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerContentDTO:
+ """Test MarkerContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerContentDTO`
+ """
+ model = MarkerContentDTO()
+ if include_optional:
+ return MarkerContentDTO(
+ style = 'q',
+ property_filters = [
+ null
+ ]
+ )
+ else:
+ return MarkerContentDTO(
+ style = 'q',
+ )
+ """
+
+ def testMarkerContentDTO(self):
+ """Test MarkerContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_content_dto_property_filters_inner.py b/test/test_marker_content_dto_property_filters_inner.py
new file mode 100644
index 0000000..07991c4
--- /dev/null
+++ b/test/test_marker_content_dto_property_filters_inner.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_content_dto_property_filters_inner import MarkerContentDTOPropertyFiltersInner
+
+class TestMarkerContentDTOPropertyFiltersInner(unittest.TestCase):
+ """MarkerContentDTOPropertyFiltersInner unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerContentDTOPropertyFiltersInner:
+ """Test MarkerContentDTOPropertyFiltersInner
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerContentDTOPropertyFiltersInner`
+ """
+ model = MarkerContentDTOPropertyFiltersInner()
+ if include_optional:
+ return MarkerContentDTOPropertyFiltersInner(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ value = [
+ null
+ ],
+ operator = 'in'
+ )
+ else:
+ return MarkerContentDTOPropertyFiltersInner(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ value = [
+ null
+ ],
+ )
+ """
+
+ def testMarkerContentDTOPropertyFiltersInner(self):
+ """Test MarkerContentDTOPropertyFiltersInner"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_dto.py b/test/test_marker_dto.py
new file mode 100644
index 0000000..6d86621
--- /dev/null
+++ b/test/test_marker_dto.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_dto import MarkerDTO
+
+class TestMarkerDTO(unittest.TestCase):
+ """MarkerDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerDTO:
+ """Test MarkerDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerDTO`
+ """
+ model = MarkerDTO()
+ if include_optional:
+ return MarkerDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.marker_content_dto.MarkerContentDTO(
+ style = 'q',
+ property_filters = [
+ null
+ ], )
+ )
+ else:
+ return MarkerDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ title = '0',
+ content = cm_python_openapi_sdk.models.marker_content_dto.MarkerContentDTO(
+ style = 'q',
+ property_filters = [
+ null
+ ], ),
+ )
+ """
+
+ def testMarkerDTO(self):
+ """Test MarkerDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_link_dto.py b/test/test_marker_link_dto.py
new file mode 100644
index 0000000..dd82787
--- /dev/null
+++ b/test/test_marker_link_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_link_dto import MarkerLinkDTO
+
+class TestMarkerLinkDTO(unittest.TestCase):
+ """MarkerLinkDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerLinkDTO:
+ """Test MarkerLinkDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerLinkDTO`
+ """
+ model = MarkerLinkDTO()
+ if include_optional:
+ return MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True
+ )
+ else:
+ return MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ )
+ """
+
+ def testMarkerLinkDTO(self):
+ """Test MarkerLinkDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_paged_model_dto.py b/test/test_marker_paged_model_dto.py
new file mode 100644
index 0000000..8bf197e
--- /dev/null
+++ b/test/test_marker_paged_model_dto.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_paged_model_dto import MarkerPagedModelDTO
+
+class TestMarkerPagedModelDTO(unittest.TestCase):
+ """MarkerPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerPagedModelDTO:
+ """Test MarkerPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerPagedModelDTO`
+ """
+ model = MarkerPagedModelDTO()
+ if include_optional:
+ return MarkerPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.marker_dto.MarkerDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.marker_content_dto.MarkerContentDTO(
+ style = 'q',
+ property_filters = [
+ null
+ ], ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return MarkerPagedModelDTO(
+ )
+ """
+
+ def testMarkerPagedModelDTO(self):
+ """Test MarkerPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_selector_content_dto.py b/test/test_marker_selector_content_dto.py
new file mode 100644
index 0000000..b599e72
--- /dev/null
+++ b/test/test_marker_selector_content_dto.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_selector_content_dto import MarkerSelectorContentDTO
+
+class TestMarkerSelectorContentDTO(unittest.TestCase):
+ """MarkerSelectorContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerSelectorContentDTO:
+ """Test MarkerSelectorContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerSelectorContentDTO`
+ """
+ model = MarkerSelectorContentDTO()
+ if include_optional:
+ return MarkerSelectorContentDTO(
+ categories = [
+ cm_python_openapi_sdk.models.category_dto.CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ linked_layers = [
+ cm_python_openapi_sdk.models.linked_layer_dto.LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True, )
+ ], )
+ ],
+ granularity_categories = [
+ cm_python_openapi_sdk.models.granularity_category_dto.GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color', )
+ ],
+ hide_granularity = True,
+ keep_filtered = cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered.MarkerSelectorContentDTO_keepFiltered(
+ granularity = True,
+ markers = True, ),
+ show_indicator_values_on_map = True,
+ cluster_markers = True
+ )
+ else:
+ return MarkerSelectorContentDTO(
+ )
+ """
+
+ def testMarkerSelectorContentDTO(self):
+ """Test MarkerSelectorContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_selector_content_dto_keep_filtered.py b/test/test_marker_selector_content_dto_keep_filtered.py
new file mode 100644
index 0000000..b4586e4
--- /dev/null
+++ b/test/test_marker_selector_content_dto_keep_filtered.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered import MarkerSelectorContentDTOKeepFiltered
+
+class TestMarkerSelectorContentDTOKeepFiltered(unittest.TestCase):
+ """MarkerSelectorContentDTOKeepFiltered unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerSelectorContentDTOKeepFiltered:
+ """Test MarkerSelectorContentDTOKeepFiltered
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerSelectorContentDTOKeepFiltered`
+ """
+ model = MarkerSelectorContentDTOKeepFiltered()
+ if include_optional:
+ return MarkerSelectorContentDTOKeepFiltered(
+ granularity = True,
+ markers = True
+ )
+ else:
+ return MarkerSelectorContentDTOKeepFiltered(
+ )
+ """
+
+ def testMarkerSelectorContentDTOKeepFiltered(self):
+ """Test MarkerSelectorContentDTOKeepFiltered"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_selector_dto.py b/test/test_marker_selector_dto.py
new file mode 100644
index 0000000..2d38fd7
--- /dev/null
+++ b/test/test_marker_selector_dto.py
@@ -0,0 +1,112 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_selector_dto import MarkerSelectorDTO
+
+class TestMarkerSelectorDTO(unittest.TestCase):
+ """MarkerSelectorDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerSelectorDTO:
+ """Test MarkerSelectorDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerSelectorDTO`
+ """
+ model = MarkerSelectorDTO()
+ if include_optional:
+ return MarkerSelectorDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.marker_selector_content_dto.MarkerSelectorContentDTO(
+ categories = [
+ cm_python_openapi_sdk.models.category_dto.CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ linked_layers = [
+ cm_python_openapi_sdk.models.linked_layer_dto.LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True, )
+ ], )
+ ],
+ granularity_categories = [
+ cm_python_openapi_sdk.models.granularity_category_dto.GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color', )
+ ],
+ hide_granularity = True,
+ keep_filtered = cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered.MarkerSelectorContentDTO_keepFiltered(
+ granularity = True, ),
+ show_indicator_values_on_map = True,
+ cluster_markers = True, )
+ )
+ else:
+ return MarkerSelectorDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ content = cm_python_openapi_sdk.models.marker_selector_content_dto.MarkerSelectorContentDTO(
+ categories = [
+ cm_python_openapi_sdk.models.category_dto.CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ linked_layers = [
+ cm_python_openapi_sdk.models.linked_layer_dto.LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True, )
+ ], )
+ ],
+ granularity_categories = [
+ cm_python_openapi_sdk.models.granularity_category_dto.GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color', )
+ ],
+ hide_granularity = True,
+ keep_filtered = cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered.MarkerSelectorContentDTO_keepFiltered(
+ granularity = True, ),
+ show_indicator_values_on_map = True,
+ cluster_markers = True, ),
+ )
+ """
+
+ def testMarkerSelectorDTO(self):
+ """Test MarkerSelectorDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_selector_paged_model_dto.py b/test/test_marker_selector_paged_model_dto.py
new file mode 100644
index 0000000..c067e22
--- /dev/null
+++ b/test/test_marker_selector_paged_model_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.marker_selector_paged_model_dto import MarkerSelectorPagedModelDTO
+
+class TestMarkerSelectorPagedModelDTO(unittest.TestCase):
+ """MarkerSelectorPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MarkerSelectorPagedModelDTO:
+ """Test MarkerSelectorPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MarkerSelectorPagedModelDTO`
+ """
+ model = MarkerSelectorPagedModelDTO()
+ if include_optional:
+ return MarkerSelectorPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.marker_selector_dto.MarkerSelectorDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = cm_python_openapi_sdk.models.marker_selector_content_dto.MarkerSelectorContentDTO(
+ categories = [
+ cm_python_openapi_sdk.models.category_dto.CategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ markers = [
+ cm_python_openapi_sdk.models.marker_link_dto.MarkerLinkDTO(
+ marker = '/rest/projects/8q6zgckec0l3o4gi/md/markers?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ visible = True,
+ add_on_expand = True, )
+ ],
+ linked_layers = [
+ cm_python_openapi_sdk.models.linked_layer_dto.LinkedLayerDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ style = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ visible = True, )
+ ], )
+ ],
+ granularity_categories = [
+ cm_python_openapi_sdk.models.granularity_category_dto.GranularityCategoryDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
+ split_property_name = 'y',
+ style_type = 'color', )
+ ],
+ hide_granularity = True,
+ keep_filtered = cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered.MarkerSelectorContentDTO_keepFiltered(
+ granularity = True, ),
+ show_indicator_values_on_map = True,
+ cluster_markers = True, ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return MarkerSelectorPagedModelDTO(
+ )
+ """
+
+ def testMarkerSelectorPagedModelDTO(self):
+ """Test MarkerSelectorPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_marker_selectors_api.py b/test/test_marker_selectors_api.py
new file mode 100644
index 0000000..6231673
--- /dev/null
+++ b/test/test_marker_selectors_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.marker_selectors_api import MarkerSelectorsApi
+
+
+class TestMarkerSelectorsApi(unittest.TestCase):
+ """MarkerSelectorsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MarkerSelectorsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_marker_selector(self) -> None:
+ """Test case for create_marker_selector
+
+ Creates new Marker Selector.
+ """
+ pass
+
+ def test_delete_marker_selector_by_id(self) -> None:
+ """Test case for delete_marker_selector_by_id
+
+ Deletes marker selector by id
+ """
+ pass
+
+ def test_get_all_marker_selectors(self) -> None:
+ """Test case for get_all_marker_selectors
+
+ Returns paged collection of all Marker Selectors in a project.
+ """
+ pass
+
+ def test_get_marker_selector_by_id(self) -> None:
+ """Test case for get_marker_selector_by_id
+
+ Gets marker selector by id
+ """
+ pass
+
+ def test_update_marker_selector_by_id(self) -> None:
+ """Test case for update_marker_selector_by_id
+
+ Updates marker selector by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_markers_api.py b/test/test_markers_api.py
new file mode 100644
index 0000000..f01f8d4
--- /dev/null
+++ b/test/test_markers_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.markers_api import MarkersApi
+
+
+class TestMarkersApi(unittest.TestCase):
+ """MarkersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MarkersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_marker(self) -> None:
+ """Test case for create_marker
+
+ Creates new Marker.
+ """
+ pass
+
+ def test_delete_marker_by_id(self) -> None:
+ """Test case for delete_marker_by_id
+
+ Deletes marker by id
+ """
+ pass
+
+ def test_get_all_markers(self) -> None:
+ """Test case for get_all_markers
+
+ Returns paged collection of all Markers in a project.
+ """
+ pass
+
+ def test_get_marker_by_id(self) -> None:
+ """Test case for get_marker_by_id
+
+ Gets marker by id
+ """
+ pass
+
+ def test_update_marker_by_id(self) -> None:
+ """Test case for update_marker_by_id
+
+ Updates marker by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_max_value_dto.py b/test/test_max_value_dto.py
index 3fe1264..45298b1 100644
--- a/test/test_max_value_dto.py
+++ b/test/test_max_value_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.max_value_dto import MaxValueDTO
+from cm_python_openapi_sdk.models.max_value_dto import MaxValueDTO
class TestMaxValueDTO(unittest.TestCase):
"""MaxValueDTO unit test stubs"""
diff --git a/test/test_measure_dto.py b/test/test_measure_dto.py
index ca33809..beb4fbe 100644
--- a/test/test_measure_dto.py
+++ b/test/test_measure_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.measure_dto import MeasureDTO
+from cm_python_openapi_sdk.models.measure_dto import MeasureDTO
class TestMeasureDTO(unittest.TestCase):
"""MeasureDTO unit test stubs"""
@@ -37,22 +37,22 @@ def make_instance(self, include_optional) -> MeasureDTO:
return MeasureDTO(
type = 'line',
points = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
],
zones = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
]
)
else:
diff --git a/test/test_members_api.py b/test/test_members_api.py
new file mode 100644
index 0000000..2570d56
--- /dev/null
+++ b/test/test_members_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.members_api import MembersApi
+
+
+class TestMembersApi(unittest.TestCase):
+ """MembersApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MembersApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_add_project_member(self) -> None:
+ """Test case for add_project_member
+
+ Add new project member and assign a role.
+ """
+ pass
+
+ def test_delete_membership(self) -> None:
+ """Test case for delete_membership
+
+ Deletes membership of user in project.
+ """
+ pass
+
+ def test_get_membership_by_id(self) -> None:
+ """Test case for get_membership_by_id
+
+ Get detail of user membership in project by membership id.
+ """
+ pass
+
+ def test_get_project_members(self) -> None:
+ """Test case for get_project_members
+
+ Get list of project members.
+ """
+ pass
+
+ def test_update_membership(self) -> None:
+ """Test case for update_membership
+
+ Update membership by changing role or status in project.
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_membership_dto.py b/test/test_membership_dto.py
new file mode 100644
index 0000000..94e13c5
--- /dev/null
+++ b/test/test_membership_dto.py
@@ -0,0 +1,62 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.membership_dto import MembershipDTO
+
+class TestMembershipDTO(unittest.TestCase):
+ """MembershipDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MembershipDTO:
+ """Test MembershipDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MembershipDTO`
+ """
+ model = MembershipDTO()
+ if include_optional:
+ return MembershipDTO(
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = None,
+ links = [
+ None
+ ]
+ )
+ else:
+ return MembershipDTO(
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ )
+ """
+
+ def testMembershipDTO(self):
+ """Test MembershipDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_membership_paged_model_dto.py b/test/test_membership_paged_model_dto.py
new file mode 100644
index 0000000..1441884
--- /dev/null
+++ b/test/test_membership_paged_model_dto.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.membership_paged_model_dto import MembershipPagedModelDTO
+
+class TestMembershipPagedModelDTO(unittest.TestCase):
+ """MembershipPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MembershipPagedModelDTO:
+ """Test MembershipPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MembershipPagedModelDTO`
+ """
+ model = MembershipPagedModelDTO()
+ if include_optional:
+ return MembershipPagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.membership_dto.MembershipDTO(
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = cm_python_openapi_sdk.models.account.account(),
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return MembershipPagedModelDTO(
+ )
+ """
+
+ def testMembershipPagedModelDTO(self):
+ """Test MembershipPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_metric_dto.py b/test/test_metric_dto.py
new file mode 100644
index 0000000..e66a494
--- /dev/null
+++ b/test/test_metric_dto.py
@@ -0,0 +1,58 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.metric_dto import MetricDTO
+
+class TestMetricDTO(unittest.TestCase):
+ """MetricDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MetricDTO:
+ """Test MetricDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MetricDTO`
+ """
+ model = MetricDTO()
+ if include_optional:
+ return MetricDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes0',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = None
+ )
+ else:
+ return MetricDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes0',
+ content = None,
+ )
+ """
+
+ def testMetricDTO(self):
+ """Test MetricDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_metric_paged_model_dto.py b/test/test_metric_paged_model_dto.py
new file mode 100644
index 0000000..4786587
--- /dev/null
+++ b/test/test_metric_paged_model_dto.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.metric_paged_model_dto import MetricPagedModelDTO
+
+class TestMetricPagedModelDTO(unittest.TestCase):
+ """MetricPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MetricPagedModelDTO:
+ """Test MetricPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MetricPagedModelDTO`
+ """
+ model = MetricPagedModelDTO()
+ if include_optional:
+ return MetricPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.metric_dto.MetricDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes0',
+ type = 'dataset',
+ title = '0',
+ description = '',
+ content = null, )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return MetricPagedModelDTO(
+ )
+ """
+
+ def testMetricPagedModelDTO(self):
+ """Test MetricPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_metrics_api.py b/test/test_metrics_api.py
new file mode 100644
index 0000000..7b77bbd
--- /dev/null
+++ b/test/test_metrics_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.metrics_api import MetricsApi
+
+
+class TestMetricsApi(unittest.TestCase):
+ """MetricsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = MetricsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_metric(self) -> None:
+ """Test case for create_metric
+
+ Creates new metric.
+ """
+ pass
+
+ def test_delete_metric_by_id(self) -> None:
+ """Test case for delete_metric_by_id
+
+ Deletes metric by id
+ """
+ pass
+
+ def test_get_all_metrics(self) -> None:
+ """Test case for get_all_metrics
+
+ Returns paged collection of all Metrics in a project.
+ """
+ pass
+
+ def test_get_metric_by_id(self) -> None:
+ """Test case for get_metric_by_id
+
+ Gets metric by id
+ """
+ pass
+
+ def test_update_metric_by_id(self) -> None:
+ """Test case for update_metric_by_id
+
+ Updates metric by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_multi_select_filter_dto.py b/test/test_multi_select_filter_dto.py
index dbf6e8f..d6a3d37 100644
--- a/test/test_multi_select_filter_dto.py
+++ b/test/test_multi_select_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.multi_select_filter_dto import MultiSelectFilterDTO
+from cm_python_openapi_sdk.models.multi_select_filter_dto import MultiSelectFilterDTO
class TestMultiSelectFilterDTO(unittest.TestCase):
"""MultiSelectFilterDTO unit test stubs"""
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> MultiSelectFilterDTO:
type = 'multiSelect',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
]
diff --git a/test/test_order_by_dto.py b/test/test_order_by_dto.py
index 73c985f..4846598 100644
--- a/test/test_order_by_dto.py
+++ b/test/test_order_by_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.order_by_dto import OrderByDTO
+from cm_python_openapi_sdk.models.order_by_dto import OrderByDTO
class TestOrderByDTO(unittest.TestCase):
"""OrderByDTO unit test stubs"""
diff --git a/test/test_organization_paged_model_dto.py b/test/test_organization_paged_model_dto.py
new file mode 100644
index 0000000..67a729e
--- /dev/null
+++ b/test/test_organization_paged_model_dto.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.organization_paged_model_dto import OrganizationPagedModelDTO
+
+class TestOrganizationPagedModelDTO(unittest.TestCase):
+ """OrganizationPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationPagedModelDTO:
+ """Test OrganizationPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationPagedModelDTO`
+ """
+ model = OrganizationPagedModelDTO()
+ if include_optional:
+ return OrganizationPagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.organization_response_dto.OrganizationResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg',
+ created_at = '',
+ modified_at = '',
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return OrganizationPagedModelDTO(
+ )
+ """
+
+ def testOrganizationPagedModelDTO(self):
+ """Test OrganizationPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organization_response_dto.py b/test/test_organization_response_dto.py
new file mode 100644
index 0000000..718f73e
--- /dev/null
+++ b/test/test_organization_response_dto.py
@@ -0,0 +1,59 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.organization_response_dto import OrganizationResponseDTO
+
+class TestOrganizationResponseDTO(unittest.TestCase):
+ """OrganizationResponseDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OrganizationResponseDTO:
+ """Test OrganizationResponseDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OrganizationResponseDTO`
+ """
+ model = OrganizationResponseDTO()
+ if include_optional:
+ return OrganizationResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg',
+ created_at = '',
+ modified_at = '',
+ links = [
+ None
+ ]
+ )
+ else:
+ return OrganizationResponseDTO(
+ )
+ """
+
+ def testOrganizationResponseDTO(self):
+ """Test OrganizationResponseDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_organizations_api.py b/test/test_organizations_api.py
new file mode 100644
index 0000000..ec7bec3
--- /dev/null
+++ b/test/test_organizations_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.organizations_api import OrganizationsApi
+
+
+class TestOrganizationsApi(unittest.TestCase):
+ """OrganizationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = OrganizationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_organization(self) -> None:
+ """Test case for create_organization
+
+ Creates a new organization.
+ """
+ pass
+
+ def test_delete_organization(self) -> None:
+ """Test case for delete_organization
+
+ Delete an organization.
+ """
+ pass
+
+ def test_get_organization_by_id(self) -> None:
+ """Test case for get_organization_by_id
+
+ Get organization detail.
+ """
+ pass
+
+ def test_get_organizations(self) -> None:
+ """Test case for get_organizations
+
+ Get all organizations available for authenticated user.
+ """
+ pass
+
+ def test_update_organization(self) -> None:
+ """Test case for update_organization
+
+ Update organization.
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_output_dto.py b/test/test_output_dto.py
new file mode 100644
index 0000000..11ff65c
--- /dev/null
+++ b/test/test_output_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.output_dto import OutputDTO
+
+class TestOutputDTO(unittest.TestCase):
+ """OutputDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> OutputDTO:
+ """Test OutputDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `OutputDTO`
+ """
+ model = OutputDTO()
+ if include_optional:
+ return OutputDTO(
+ type = 'file',
+ format = 'csv',
+ filename = '26bUUGjjNSwg0_bs9ZayIMhcsv',
+ header = 'basic'
+ )
+ else:
+ return OutputDTO(
+ type = 'file',
+ format = 'csv',
+ )
+ """
+
+ def testOutputDTO(self):
+ """Test OutputDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_invitations_api.py b/test/test_project_invitations_api.py
new file mode 100644
index 0000000..08d5b15
--- /dev/null
+++ b/test/test_project_invitations_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.project_invitations_api import ProjectInvitationsApi
+
+
+class TestProjectInvitationsApi(unittest.TestCase):
+ """ProjectInvitationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ProjectInvitationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_invitation(self) -> None:
+ """Test case for create_invitation
+
+ Create new invitation to the project for a user.
+ """
+ pass
+
+ def test_delete_invitation(self) -> None:
+ """Test case for delete_invitation
+
+ Delete invitation.
+ """
+ pass
+
+ def test_get_invitation_by_id(self) -> None:
+ """Test case for get_invitation_by_id
+
+ Get detail of an invitation.
+ """
+ pass
+
+ def test_get_invitations(self) -> None:
+ """Test case for get_invitations
+
+ Get list of project invitations.
+ """
+ pass
+
+ def test_update_invitation(self) -> None:
+ """Test case for update_invitation
+
+ Update invitation.
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_paged_model_dto.py b/test/test_project_paged_model_dto.py
new file mode 100644
index 0000000..ca2103b
--- /dev/null
+++ b/test/test_project_paged_model_dto.py
@@ -0,0 +1,84 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_paged_model_dto import ProjectPagedModelDTO
+
+class TestProjectPagedModelDTO(unittest.TestCase):
+ """ProjectPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectPagedModelDTO:
+ """Test ProjectPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectPagedModelDTO`
+ """
+ model = ProjectPagedModelDTO()
+ if include_optional:
+ return ProjectPagedModelDTO(
+ links = [
+ None
+ ],
+ content = [
+ cm_python_openapi_sdk.models.project_response_dto.ProjectResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ description = '',
+ organization_id = 'w8q6zgckec0l3o4g',
+ status = 'ENABLED',
+ share = 'PRIVATE',
+ created_at = '',
+ modified_at = '',
+ membership = cm_python_openapi_sdk.models.membership_dto.MembershipDTO(
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = cm_python_openapi_sdk.models.account.account(),
+ links = [
+ None
+ ], ),
+ services = cm_python_openapi_sdk.models.services.services(),
+ links = [
+ None
+ ], )
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return ProjectPagedModelDTO(
+ )
+ """
+
+ def testProjectPagedModelDTO(self):
+ """Test ProjectPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_response_dto.py b/test/test_project_response_dto.py
new file mode 100644
index 0000000..1238152
--- /dev/null
+++ b/test/test_project_response_dto.py
@@ -0,0 +1,82 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_response_dto import ProjectResponseDTO
+
+class TestProjectResponseDTO(unittest.TestCase):
+ """ProjectResponseDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectResponseDTO:
+ """Test ProjectResponseDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectResponseDTO`
+ """
+ model = ProjectResponseDTO()
+ if include_optional:
+ return ProjectResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ description = '',
+ organization_id = 'w8q6zgckec0l3o4g',
+ status = 'ENABLED',
+ share = 'PRIVATE',
+ created_at = '',
+ modified_at = '',
+ membership = cm_python_openapi_sdk.models.membership_dto.MembershipDTO(
+ id = '',
+ account_id = '',
+ status = 'ENABLED',
+ role = 'ANONYMOUS',
+ created_at = '',
+ modified_at = '',
+ account = cm_python_openapi_sdk.models.account.account(),
+ links = [
+ None
+ ], ),
+ services = cm_python_openapi_sdk.models.services.services(),
+ links = [
+ None
+ ]
+ )
+ else:
+ return ProjectResponseDTO(
+ id = 'w8q6zgckec0l3o4g',
+ title = '0',
+ organization_id = 'w8q6zgckec0l3o4g',
+ status = 'ENABLED',
+ share = 'PRIVATE',
+ created_at = '',
+ links = [
+ None
+ ],
+ )
+ """
+
+ def testProjectResponseDTO(self):
+ """Test ProjectResponseDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_settings_api.py b/test/test_project_settings_api.py
new file mode 100644
index 0000000..d3be9b6
--- /dev/null
+++ b/test/test_project_settings_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.project_settings_api import ProjectSettingsApi
+
+
+class TestProjectSettingsApi(unittest.TestCase):
+ """ProjectSettingsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ProjectSettingsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_project_settings(self) -> None:
+ """Test case for create_project_settings
+
+ Creates new project settings
+ """
+ pass
+
+ def test_delete_project_settings_by_id(self) -> None:
+ """Test case for delete_project_settings_by_id
+
+ Deletes project settings by id
+ """
+ pass
+
+ def test_get_all_project_settings(self) -> None:
+ """Test case for get_all_project_settings
+
+ Returns paged collection of all Project Settings objects in a project. This page will always contain only one object.
+ """
+ pass
+
+ def test_get_project_settings_by_id(self) -> None:
+ """Test case for get_project_settings_by_id
+
+ Gets project settings by id
+ """
+ pass
+
+ def test_update_project_settings_by_id(self) -> None:
+ """Test case for update_project_settings_by_id
+
+ Updates project settings by id
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_settings_content_dto.py b/test/test_project_settings_content_dto.py
new file mode 100644
index 0000000..182a928
--- /dev/null
+++ b/test/test_project_settings_content_dto.py
@@ -0,0 +1,71 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_settings_content_dto import ProjectSettingsContentDTO
+
+class TestProjectSettingsContentDTO(unittest.TestCase):
+ """ProjectSettingsContentDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectSettingsContentDTO:
+ """Test ProjectSettingsContentDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectSettingsContentDTO`
+ """
+ model = ProjectSettingsContentDTO()
+ if include_optional:
+ return ProjectSettingsContentDTO(
+ geo_search_countries = [
+ 'AE'
+ ],
+ geo_search_providers = [
+ 'Mapbox'
+ ],
+ project_template = cm_python_openapi_sdk.models.project_template_dto.ProjectTemplateDTO(
+ template_datasets = [
+ cm_python_openapi_sdk.models.template_dataset_dto.TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
+ ], ),
+ trusted_origins = [
+ ''
+ ],
+ allow_unsecured_origins = True,
+ default_views = [
+ '/rest/projects/8q6zgckec0l3o4gi/md/views?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ ]
+ )
+ else:
+ return ProjectSettingsContentDTO(
+ geo_search_providers = [
+ 'Mapbox'
+ ],
+ )
+ """
+
+ def testProjectSettingsContentDTO(self):
+ """Test ProjectSettingsContentDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_settings_dto.py b/test/test_project_settings_dto.py
new file mode 100644
index 0000000..600c84b
--- /dev/null
+++ b/test/test_project_settings_dto.py
@@ -0,0 +1,94 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_settings_dto import ProjectSettingsDTO
+
+class TestProjectSettingsDTO(unittest.TestCase):
+ """ProjectSettingsDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectSettingsDTO:
+ """Test ProjectSettingsDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectSettingsDTO`
+ """
+ model = ProjectSettingsDTO()
+ if include_optional:
+ return ProjectSettingsDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '0',
+ content = cm_python_openapi_sdk.models.project_settings_content_dto.ProjectSettingsContentDTO(
+ geo_search_countries = [
+ 'AE'
+ ],
+ geo_search_providers = [
+ 'Mapbox'
+ ],
+ project_template = cm_python_openapi_sdk.models.project_template_dto.ProjectTemplateDTO(
+ template_datasets = [
+ cm_python_openapi_sdk.models.template_dataset_dto.TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
+ ], ),
+ trusted_origins = [
+ ''
+ ],
+ allow_unsecured_origins = True,
+ default_views = [
+ '/rest/projects/8q6zgckec0l3o4gi/md/views?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ ], )
+ )
+ else:
+ return ProjectSettingsDTO(
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ content = cm_python_openapi_sdk.models.project_settings_content_dto.ProjectSettingsContentDTO(
+ geo_search_countries = [
+ 'AE'
+ ],
+ geo_search_providers = [
+ 'Mapbox'
+ ],
+ project_template = cm_python_openapi_sdk.models.project_template_dto.ProjectTemplateDTO(
+ template_datasets = [
+ cm_python_openapi_sdk.models.template_dataset_dto.TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
+ ], ),
+ trusted_origins = [
+ ''
+ ],
+ allow_unsecured_origins = True,
+ default_views = [
+ '/rest/projects/8q6zgckec0l3o4gi/md/views?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ ], ),
+ )
+ """
+
+ def testProjectSettingsDTO(self):
+ """Test ProjectSettingsDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_settings_paged_model_dto.py b/test/test_project_settings_paged_model_dto.py
new file mode 100644
index 0000000..a28c03e
--- /dev/null
+++ b/test/test_project_settings_paged_model_dto.py
@@ -0,0 +1,85 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_settings_paged_model_dto import ProjectSettingsPagedModelDTO
+
+class TestProjectSettingsPagedModelDTO(unittest.TestCase):
+ """ProjectSettingsPagedModelDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectSettingsPagedModelDTO:
+ """Test ProjectSettingsPagedModelDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectSettingsPagedModelDTO`
+ """
+ model = ProjectSettingsPagedModelDTO()
+ if include_optional:
+ return ProjectSettingsPagedModelDTO(
+ content = [
+ cm_python_openapi_sdk.models.project_settings_dto.ProjectSettingsDTO(
+ id = '',
+ name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ type = 'dataset',
+ title = '0',
+ description = '0',
+ content = cm_python_openapi_sdk.models.project_settings_content_dto.ProjectSettingsContentDTO(
+ geo_search_countries = [
+ 'AE'
+ ],
+ geo_search_providers = [
+ 'Mapbox'
+ ],
+ project_template = cm_python_openapi_sdk.models.project_template_dto.ProjectTemplateDTO(
+ template_datasets = [
+ cm_python_openapi_sdk.models.template_dataset_dto.TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
+ ], ),
+ trusted_origins = [
+ ''
+ ],
+ allow_unsecured_origins = True,
+ default_views = [
+ '/rest/projects/8q6zgckec0l3o4gi/md/views?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ ], ), )
+ ],
+ links = [
+ None
+ ],
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ size = 56,
+ total_elements = null,
+ total_pages = 56,
+ number = 56, )
+ )
+ else:
+ return ProjectSettingsPagedModelDTO(
+ )
+ """
+
+ def testProjectSettingsPagedModelDTO(self):
+ """Test ProjectSettingsPagedModelDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_project_template_dto.py b/test/test_project_template_dto.py
new file mode 100644
index 0000000..733ce83
--- /dev/null
+++ b/test/test_project_template_dto.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.project_template_dto import ProjectTemplateDTO
+
+class TestProjectTemplateDTO(unittest.TestCase):
+ """ProjectTemplateDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ProjectTemplateDTO:
+ """Test ProjectTemplateDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ProjectTemplateDTO`
+ """
+ model = ProjectTemplateDTO()
+ if include_optional:
+ return ProjectTemplateDTO(
+ template_datasets = [
+ cm_python_openapi_sdk.models.template_dataset_dto.TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
+ ]
+ )
+ else:
+ return ProjectTemplateDTO(
+ )
+ """
+
+ def testProjectTemplateDTO(self):
+ """Test ProjectTemplateDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_projects_api.py b/test/test_projects_api.py
new file mode 100644
index 0000000..f76fde4
--- /dev/null
+++ b/test/test_projects_api.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.projects_api import ProjectsApi
+
+
+class TestProjectsApi(unittest.TestCase):
+ """ProjectsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = ProjectsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_project(self) -> None:
+ """Test case for create_project
+
+ Create new project
+ """
+ pass
+
+ def test_delete_project(self) -> None:
+ """Test case for delete_project
+
+ Delete project.
+ """
+ pass
+
+ def test_get_all_projects(self) -> None:
+ """Test case for get_all_projects
+
+ Get list of projects for authenticated account.
+ """
+ pass
+
+ def test_get_project_by_id(self) -> None:
+ """Test case for get_project_by_id
+
+ Get project by given project id.
+ """
+ pass
+
+ def test_update_project(self) -> None:
+ """Test case for update_project
+
+ Update the project.
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_property_filter_compare_dto.py b/test/test_property_filter_compare_dto.py
new file mode 100644
index 0000000..95df209
--- /dev/null
+++ b/test/test_property_filter_compare_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.property_filter_compare_dto import PropertyFilterCompareDTO
+
+class TestPropertyFilterCompareDTO(unittest.TestCase):
+ """PropertyFilterCompareDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PropertyFilterCompareDTO:
+ """Test PropertyFilterCompareDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PropertyFilterCompareDTO`
+ """
+ model = PropertyFilterCompareDTO()
+ if include_optional:
+ return PropertyFilterCompareDTO(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ value = None,
+ operator = 'eq'
+ )
+ else:
+ return PropertyFilterCompareDTO(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ value = None,
+ )
+ """
+
+ def testPropertyFilterCompareDTO(self):
+ """Test PropertyFilterCompareDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_property_filter_in_dto.py b/test/test_property_filter_in_dto.py
new file mode 100644
index 0000000..575ec59
--- /dev/null
+++ b/test/test_property_filter_in_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.property_filter_in_dto import PropertyFilterInDTO
+
+class TestPropertyFilterInDTO(unittest.TestCase):
+ """PropertyFilterInDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PropertyFilterInDTO:
+ """Test PropertyFilterInDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PropertyFilterInDTO`
+ """
+ model = PropertyFilterInDTO()
+ if include_optional:
+ return PropertyFilterInDTO(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ value = [
+ null
+ ],
+ operator = 'in'
+ )
+ else:
+ return PropertyFilterInDTO(
+ property_name = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ )
+ """
+
+ def testPropertyFilterInDTO(self):
+ """Test PropertyFilterInDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_ranking_dto.py b/test/test_ranking_dto.py
index bfdf54d..35d5da3 100644
--- a/test/test_ranking_dto.py
+++ b/test/test_ranking_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.ranking_dto import RankingDTO
+from cm_python_openapi_sdk.models.ranking_dto import RankingDTO
class TestRankingDTO(unittest.TestCase):
"""RankingDTO unit test stubs"""
diff --git a/test/test_relations_dto.py b/test/test_relations_dto.py
index 65058d7..aabec43 100644
--- a/test/test_relations_dto.py
+++ b/test/test_relations_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.relations_dto import RelationsDTO
+from cm_python_openapi_sdk.models.relations_dto import RelationsDTO
class TestRelationsDTO(unittest.TestCase):
"""RelationsDTO unit test stubs"""
diff --git a/test/test_scale_options_dto.py b/test/test_scale_options_dto.py
index 66ebfa0..d7ca16b 100644
--- a/test/test_scale_options_dto.py
+++ b/test/test_scale_options_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.scale_options_dto import ScaleOptionsDTO
+from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO
class TestScaleOptionsDTO(unittest.TestCase):
"""ScaleOptionsDTO unit test stubs"""
@@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> ScaleOptionsDTO:
if include_optional:
return ScaleOptionsDTO(
static = [
- openapi_client.models.static_scale_option_dto.StaticScaleOptionDTO(
+ cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -46,11 +46,11 @@ def make_instance(self, include_optional) -> ScaleOptionsDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2, )
], )
],
- default_distribution = openapi_client.models.default_distribution_dto.DefaultDistributionDTO(
+ default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO(
range = [
1.337
],
diff --git a/test/test_single_select_filter_dto.py b/test/test_single_select_filter_dto.py
index 9f2b979..834d49b 100644
--- a/test/test_single_select_filter_dto.py
+++ b/test/test_single_select_filter_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.single_select_filter_dto import SingleSelectFilterDTO
+from cm_python_openapi_sdk.models.single_select_filter_dto import SingleSelectFilterDTO
class TestSingleSelectFilterDTO(unittest.TestCase):
"""SingleSelectFilterDTO unit test stubs"""
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> SingleSelectFilterDTO:
type = 'singleSelect',
var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
order_by = [
- openapi_client.models.order_by_dto.OrderByDTO(
+ cm_python_openapi_sdk.models.order_by_dto.OrderByDTO(
property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0',
direction = 'asc', )
]
diff --git a/test/test_static_scale_option_dto.py b/test/test_static_scale_option_dto.py
index 2f626b3..5e3e1eb 100644
--- a/test/test_static_scale_option_dto.py
+++ b/test/test_static_scale_option_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.static_scale_option_dto import StaticScaleOptionDTO
+from cm_python_openapi_sdk.models.static_scale_option_dto import StaticScaleOptionDTO
class TestStaticScaleOptionDTO(unittest.TestCase):
"""StaticScaleOptionDTO unit test stubs"""
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> StaticScaleOptionDTO:
if include_optional:
return StaticScaleOptionDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
@@ -44,7 +44,7 @@ def make_instance(self, include_optional) -> StaticScaleOptionDTO:
1.337
], ),
max_values = [
- openapi_client.models.max_value_dto.MaxValueDTO(
+ cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO(
zoom = 2,
global = 0,
selection = 0, )
@@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> StaticScaleOptionDTO:
)
else:
return StaticScaleOptionDTO(
- breaks = openapi_client.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
+ breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks(
global = [
1.337
],
diff --git a/test/test_static_scale_option_dto_breaks.py b/test/test_static_scale_option_dto_breaks.py
index d1581da..4817fd8 100644
--- a/test/test_static_scale_option_dto_breaks.py
+++ b/test/test_static_scale_option_dto_breaks.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
+from cm_python_openapi_sdk.models.static_scale_option_dto_breaks import StaticScaleOptionDTOBreaks
class TestStaticScaleOptionDTOBreaks(unittest.TestCase):
"""StaticScaleOptionDTOBreaks unit test stubs"""
diff --git a/test/test_style_dto.py b/test/test_style_dto.py
index 034042b..c1e5749 100644
--- a/test/test_style_dto.py
+++ b/test/test_style_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.style_dto import StyleDTO
+from cm_python_openapi_sdk.models.style_dto import StyleDTO
class TestStyleDTO(unittest.TestCase):
"""StyleDTO unit test stubs"""
diff --git a/test/test_submit_job_execution_request.py b/test/test_submit_job_execution_request.py
new file mode 100644
index 0000000..afd1f4a
--- /dev/null
+++ b/test/test_submit_job_execution_request.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.submit_job_execution_request import SubmitJobExecutionRequest
+
+class TestSubmitJobExecutionRequest(unittest.TestCase):
+ """SubmitJobExecutionRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> SubmitJobExecutionRequest:
+ """Test SubmitJobExecutionRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `SubmitJobExecutionRequest`
+ """
+ model = SubmitJobExecutionRequest()
+ if include_optional:
+ return SubmitJobExecutionRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.export_request.ExportRequest(
+ format = 'csv',
+ csv_header_format = 'basic',
+ query = cm_python_openapi_sdk.models.query.query(),
+ csv_options = cm_python_openapi_sdk.models.export_request_csv_options.ExportRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '', ),
+ xlsx_options = cm_python_openapi_sdk.models.xlsx_options.xlsxOptions(), )
+ )
+ else:
+ return SubmitJobExecutionRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.export_request.ExportRequest(
+ format = 'csv',
+ csv_header_format = 'basic',
+ query = cm_python_openapi_sdk.models.query.query(),
+ csv_options = cm_python_openapi_sdk.models.export_request_csv_options.ExportRequest_csvOptions(
+ header = True,
+ separator = '',
+ quote = '',
+ escape = '', ),
+ xlsx_options = cm_python_openapi_sdk.models.xlsx_options.xlsxOptions(), ),
+ )
+ """
+
+ def testSubmitJobExecutionRequest(self):
+ """Test SubmitJobExecutionRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_template_dataset_dto.py b/test/test_template_dataset_dto.py
new file mode 100644
index 0000000..daf829c
--- /dev/null
+++ b/test/test_template_dataset_dto.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.template_dataset_dto import TemplateDatasetDTO
+
+class TestTemplateDatasetDTO(unittest.TestCase):
+ """TemplateDatasetDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TemplateDatasetDTO:
+ """Test TemplateDatasetDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TemplateDatasetDTO`
+ """
+ model = TemplateDatasetDTO()
+ if include_optional:
+ return TemplateDatasetDTO(
+ dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc'
+ )
+ else:
+ return TemplateDatasetDTO(
+ )
+ """
+
+ def testTemplateDatasetDTO(self):
+ """Test TemplateDatasetDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_time_series_dto.py b/test/test_time_series_dto.py
index 5d7a352..f4be2e4 100644
--- a/test/test_time_series_dto.py
+++ b/test/test_time_series_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.time_series_dto import TimeSeriesDTO
+from cm_python_openapi_sdk.models.time_series_dto import TimeSeriesDTO
class TestTimeSeriesDTO(unittest.TestCase):
"""TimeSeriesDTO unit test stubs"""
@@ -42,11 +42,11 @@ def make_instance(self, include_optional) -> TimeSeriesDTO:
visualized = True,
default_period = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
additional_series = [
- openapi_client.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
+ cm_python_openapi_sdk.models.additional_series_link_dto.AdditionalSeriesLinkDTO(
indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
annotations = [
- openapi_client.models.annotation_link_dto.AnnotationLinkDTO(
+ cm_python_openapi_sdk.models.annotation_link_dto.AnnotationLinkDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
]
)
diff --git a/test/test_token_request_dto.py b/test/test_token_request_dto.py
index 978b6c0..4f400e5 100644
--- a/test/test_token_request_dto.py
+++ b/test/test_token_request_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.token_request_dto import TokenRequestDTO
+from cm_python_openapi_sdk.models.token_request_dto import TokenRequestDTO
class TestTokenRequestDTO(unittest.TestCase):
"""TokenRequestDTO unit test stubs"""
diff --git a/test/test_token_response_dto.py b/test/test_token_response_dto.py
index 81a8947..0fbcc00 100644
--- a/test/test_token_response_dto.py
+++ b/test/test_token_response_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.token_response_dto import TokenResponseDTO
+from cm_python_openapi_sdk.models.token_response_dto import TokenResponseDTO
class TestTokenResponseDTO(unittest.TestCase):
"""TokenResponseDTO unit test stubs"""
diff --git a/test/test_truncate_job_request.py b/test/test_truncate_job_request.py
new file mode 100644
index 0000000..a3ba48e
--- /dev/null
+++ b/test/test_truncate_job_request.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.truncate_job_request import TruncateJobRequest
+
+class TestTruncateJobRequest(unittest.TestCase):
+ """TruncateJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TruncateJobRequest:
+ """Test TruncateJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TruncateJobRequest`
+ """
+ model = TruncateJobRequest()
+ if include_optional:
+ return TruncateJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.truncate_request.TruncateRequest()
+ )
+ else:
+ return TruncateJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ )
+ """
+
+ def testTruncateJobRequest(self):
+ """Test TruncateJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_invitation.py b/test/test_update_invitation.py
new file mode 100644
index 0000000..4797518
--- /dev/null
+++ b/test/test_update_invitation.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.update_invitation import UpdateInvitation
+
+class TestUpdateInvitation(unittest.TestCase):
+ """UpdateInvitation unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateInvitation:
+ """Test UpdateInvitation
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateInvitation`
+ """
+ model = UpdateInvitation()
+ if include_optional:
+ return UpdateInvitation(
+ status = ''
+ )
+ else:
+ return UpdateInvitation(
+ status = '',
+ )
+ """
+
+ def testUpdateInvitation(self):
+ """Test UpdateInvitation"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_membership.py b/test/test_update_membership.py
new file mode 100644
index 0000000..a9d6f43
--- /dev/null
+++ b/test/test_update_membership.py
@@ -0,0 +1,54 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.update_membership import UpdateMembership
+
+class TestUpdateMembership(unittest.TestCase):
+ """UpdateMembership unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateMembership:
+ """Test UpdateMembership
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateMembership`
+ """
+ model = UpdateMembership()
+ if include_optional:
+ return UpdateMembership(
+ status = '',
+ role = ''
+ )
+ else:
+ return UpdateMembership(
+ status = '',
+ role = '',
+ )
+ """
+
+ def testUpdateMembership(self):
+ """Test UpdateMembership"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_organization_dto.py b/test/test_update_organization_dto.py
new file mode 100644
index 0000000..e7e440f
--- /dev/null
+++ b/test/test_update_organization_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.update_organization_dto import UpdateOrganizationDTO
+
+class TestUpdateOrganizationDTO(unittest.TestCase):
+ """UpdateOrganizationDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateOrganizationDTO:
+ """Test UpdateOrganizationDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateOrganizationDTO`
+ """
+ model = UpdateOrganizationDTO()
+ if include_optional:
+ return UpdateOrganizationDTO(
+ title = '0',
+ invitation_email = '',
+ dwh_cluster_id = 'w8q6zg'
+ )
+ else:
+ return UpdateOrganizationDTO(
+ title = '0',
+ dwh_cluster_id = 'w8q6zg',
+ )
+ """
+
+ def testUpdateOrganizationDTO(self):
+ """Test UpdateOrganizationDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_project_dto.py b/test/test_update_project_dto.py
new file mode 100644
index 0000000..cee280e
--- /dev/null
+++ b/test/test_update_project_dto.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.update_project_dto import UpdateProjectDTO
+
+class TestUpdateProjectDTO(unittest.TestCase):
+ """UpdateProjectDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateProjectDTO:
+ """Test UpdateProjectDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateProjectDTO`
+ """
+ model = UpdateProjectDTO()
+ if include_optional:
+ return UpdateProjectDTO(
+ title = '0',
+ description = '',
+ organization_id = 'w8q6zgckec0l3o4g',
+ status = 'ENABLED',
+ services = None
+ )
+ else:
+ return UpdateProjectDTO(
+ )
+ """
+
+ def testUpdateProjectDTO(self):
+ """Test UpdateProjectDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_invitations_api.py b/test/test_user_invitations_api.py
new file mode 100644
index 0000000..752336f
--- /dev/null
+++ b/test/test_user_invitations_api.py
@@ -0,0 +1,45 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.api.user_invitations_api import UserInvitationsApi
+
+
+class TestUserInvitationsApi(unittest.TestCase):
+ """UserInvitationsApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = UserInvitationsApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_accept_user_invitation(self) -> None:
+ """Test case for accept_user_invitation
+
+ Accept invitation.
+ """
+ pass
+
+ def test_get_user_invitation(self) -> None:
+ """Test case for get_user_invitation
+
+ Get detail of an invitation.
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_validate_job_request.py b/test/test_validate_job_request.py
new file mode 100644
index 0000000..ac8aa84
--- /dev/null
+++ b/test/test_validate_job_request.py
@@ -0,0 +1,60 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.validate_job_request import ValidateJobRequest
+
+class TestValidateJobRequest(unittest.TestCase):
+ """ValidateJobRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ValidateJobRequest:
+ """Test ValidateJobRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ValidateJobRequest`
+ """
+ model = ValidateJobRequest()
+ if include_optional:
+ return ValidateJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.validate_request.ValidateRequest(
+ model_validator = cm_python_openapi_sdk.models.model_validator.modelValidator(),
+ data_validator = cm_python_openapi_sdk.models.data_validator.dataValidator(), )
+ )
+ else:
+ return ValidateJobRequest(
+ type = 'E',
+ project_id = 'w8q6zgckec0l3o4g',
+ content = cm_python_openapi_sdk.models.validate_request.ValidateRequest(
+ model_validator = cm_python_openapi_sdk.models.model_validator.modelValidator(),
+ data_validator = cm_python_openapi_sdk.models.data_validator.dataValidator(), ),
+ )
+ """
+
+ def testValidateJobRequest(self):
+ """Test ValidateJobRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_validate_request.py b/test/test_validate_request.py
new file mode 100644
index 0000000..0ed052c
--- /dev/null
+++ b/test/test_validate_request.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.validate_request import ValidateRequest
+
+class TestValidateRequest(unittest.TestCase):
+ """ValidateRequest unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ValidateRequest:
+ """Test ValidateRequest
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ValidateRequest`
+ """
+ model = ValidateRequest()
+ if include_optional:
+ return ValidateRequest(
+ model_validator = None,
+ data_validator = None
+ )
+ else:
+ return ValidateRequest(
+ )
+ """
+
+ def testValidateRequest(self):
+ """Test ValidateRequest"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_value_option_dto.py b/test/test_value_option_dto.py
new file mode 100644
index 0000000..85026a6
--- /dev/null
+++ b/test/test_value_option_dto.py
@@ -0,0 +1,56 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.value_option_dto import ValueOptionDTO
+
+class TestValueOptionDTO(unittest.TestCase):
+ """ValueOptionDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ValueOptionDTO:
+ """Test ValueOptionDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ValueOptionDTO`
+ """
+ model = ValueOptionDTO()
+ if include_optional:
+ return ValueOptionDTO(
+ value = None,
+ color = 'purple',
+ hex_color = '0123456',
+ weight = 1.337,
+ pattern = 'solid'
+ )
+ else:
+ return ValueOptionDTO(
+ value = None,
+ )
+ """
+
+ def testValueOptionDTO(self):
+ """Test ValueOptionDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_variable_dto.py b/test/test_variable_dto.py
index c6afc72..0496858 100644
--- a/test/test_variable_dto.py
+++ b/test/test_variable_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.variable_dto import VariableDTO
+from cm_python_openapi_sdk.models.variable_dto import VariableDTO
class TestVariableDTO(unittest.TestCase):
"""VariableDTO unit test stubs"""
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> VariableDTO:
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', )
@@ -52,7 +52,7 @@ def make_instance(self, include_optional) -> VariableDTO:
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ),
diff --git a/test/test_variable_type.py b/test/test_variable_type.py
new file mode 100644
index 0000000..2d76be1
--- /dev/null
+++ b/test/test_variable_type.py
@@ -0,0 +1,55 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.variable_type import VariableType
+
+class TestVariableType(unittest.TestCase):
+ """VariableType unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> VariableType:
+ """Test VariableType
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `VariableType`
+ """
+ model = VariableType()
+ if include_optional:
+ return VariableType(
+ id = 'z0',
+ type = 'variable',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes'
+ )
+ else:
+ return VariableType(
+ type = 'variable',
+ value = 'awat5ikwowtta-3mh2lcafqw3zhes',
+ )
+ """
+
+ def testVariableType(self):
+ """Test VariableType"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_variables_dto.py b/test/test_variables_dto.py
index 6c105da..82000d2 100644
--- a/test/test_variables_dto.py
+++ b/test/test_variables_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.variables_dto import VariablesDTO
+from cm_python_openapi_sdk.models.variables_dto import VariablesDTO
class TestVariablesDTO(unittest.TestCase):
"""VariablesDTO unit test stubs"""
@@ -38,13 +38,13 @@ def make_instance(self, include_optional) -> VariablesDTO:
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
@@ -55,13 +55,13 @@ def make_instance(self, include_optional) -> VariablesDTO:
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
diff --git a/test/test_view_content_dto.py b/test/test_view_content_dto.py
index c3caec2..0823c78 100644
--- a/test/test_view_content_dto.py
+++ b/test/test_view_content_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.view_content_dto import ViewContentDTO
+from cm_python_openapi_sdk.models.view_content_dto import ViewContentDTO
class TestViewContentDTO(unittest.TestCase):
"""ViewContentDTO unit test stubs"""
@@ -55,32 +55,32 @@ def make_instance(self, include_optional) -> ViewContentDTO:
null
],
variables = [
- openapi_client.models.variables_dto.VariablesDTO(
+ cm_python_openapi_sdk.models.variables_dto.VariablesDTO(
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
], )
],
- spatial_query = openapi_client.models.isochrone_dto.IsochroneDTO(
+ spatial_query = cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, ),
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), ),
fitness_groups = 3,
- map_options = openapi_client.models.map_options_dto.MapOptionsDTO(
- center = openapi_client.models.center_dto.CenterDTO(
+ map_options = cm_python_openapi_sdk.models.map_options_dto.MapOptionsDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
@@ -88,44 +88,44 @@ def make_instance(self, include_optional) -> ViewContentDTO:
max_zoom = 56,
tile_layer_menu = True,
tile_layer = 'mapbox',
- custom_tile_layer = openapi_client.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
+ custom_tile_layer = cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '0', ), ),
- map_context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ map_context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
exports = [
- openapi_client.models.export_link_dto.ExportLinkDTO(
+ cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO(
export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
- measure = openapi_client.models.measure_dto.MeasureDTO(
+ measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO(
type = 'line',
points = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
],
zones = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
], ),
- default_selected = openapi_client.models.default_selected_dto.DefaultSelectedDTO(
+ default_selected = cm_python_openapi_sdk.models.default_selected_dto.DefaultSelectedDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
ids = [
null
],
coordinates = [
- openapi_client.models.center_dto.CenterDTO(
+ cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, )
], ),
diff --git a/test/test_view_dto.py b/test/test_view_dto.py
index 43278b9..a6fa92a 100644
--- a/test/test_view_dto.py
+++ b/test/test_view_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.view_dto import ViewDTO
+from cm_python_openapi_sdk.models.view_dto import ViewDTO
class TestViewDTO(unittest.TestCase):
"""ViewDTO unit test stubs"""
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> ViewDTO:
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.view_content_dto.ViewContentDTO(
+ content = cm_python_openapi_sdk.models.view_content_dto.ViewContentDTO(
icon = 'q',
dashboard = '/rest/projects/8q6zgckec0l3o4gi/md/dashboards?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
map = '/rest/projects/8q6zgckec0l3o4gi/md/maps?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
@@ -61,32 +61,32 @@ def make_instance(self, include_optional) -> ViewDTO:
null
],
variables = [
- openapi_client.models.variables_dto.VariablesDTO(
+ cm_python_openapi_sdk.models.variables_dto.VariablesDTO(
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
], )
],
- spatial_query = openapi_client.models.isochrone_dto.IsochroneDTO(
+ spatial_query = cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, ),
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), ),
fitness_groups = 3,
- map_options = openapi_client.models.map_options_dto.MapOptionsDTO(
- center = openapi_client.models.center_dto.CenterDTO(
+ map_options = cm_python_openapi_sdk.models.map_options_dto.MapOptionsDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
@@ -94,38 +94,38 @@ def make_instance(self, include_optional) -> ViewDTO:
max_zoom = 56,
tile_layer_menu = True,
tile_layer = 'mapbox',
- custom_tile_layer = openapi_client.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
+ custom_tile_layer = cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '0', ), ),
- map_context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ map_context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
exports = [
- openapi_client.models.export_link_dto.ExportLinkDTO(
+ cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO(
export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
- measure = openapi_client.models.measure_dto.MeasureDTO(
+ measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO(
type = 'line',
points = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
],
zones = [
], ),
- default_selected = openapi_client.models.default_selected_dto.DefaultSelectedDTO(
+ default_selected = cm_python_openapi_sdk.models.default_selected_dto.DefaultSelectedDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
ids = [
null
],
coordinates = [
- openapi_client.models.center_dto.CenterDTO(
+ cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, )
], ),
@@ -139,7 +139,7 @@ def make_instance(self, include_optional) -> ViewDTO:
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
description = '',
- content = openapi_client.models.view_content_dto.ViewContentDTO(
+ content = cm_python_openapi_sdk.models.view_content_dto.ViewContentDTO(
icon = 'q',
dashboard = '/rest/projects/8q6zgckec0l3o4gi/md/dashboards?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
map = '/rest/projects/8q6zgckec0l3o4gi/md/maps?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
@@ -160,32 +160,32 @@ def make_instance(self, include_optional) -> ViewDTO:
null
],
variables = [
- openapi_client.models.variables_dto.VariablesDTO(
+ cm_python_openapi_sdk.models.variables_dto.VariablesDTO(
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
], )
],
- spatial_query = openapi_client.models.isochrone_dto.IsochroneDTO(
+ spatial_query = cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, ),
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), ),
fitness_groups = 3,
- map_options = openapi_client.models.map_options_dto.MapOptionsDTO(
- center = openapi_client.models.center_dto.CenterDTO(
+ map_options = cm_python_openapi_sdk.models.map_options_dto.MapOptionsDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
@@ -193,38 +193,38 @@ def make_instance(self, include_optional) -> ViewDTO:
max_zoom = 56,
tile_layer_menu = True,
tile_layer = 'mapbox',
- custom_tile_layer = openapi_client.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
+ custom_tile_layer = cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '0', ), ),
- map_context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ map_context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
exports = [
- openapi_client.models.export_link_dto.ExportLinkDTO(
+ cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO(
export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
- measure = openapi_client.models.measure_dto.MeasureDTO(
+ measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO(
type = 'line',
points = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
],
zones = [
], ),
- default_selected = openapi_client.models.default_selected_dto.DefaultSelectedDTO(
+ default_selected = cm_python_openapi_sdk.models.default_selected_dto.DefaultSelectedDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
ids = [
null
],
coordinates = [
- openapi_client.models.center_dto.CenterDTO(
+ cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, )
], ),
diff --git a/test/test_view_paged_model_dto.py b/test/test_view_paged_model_dto.py
index 4acf605..6fdca24 100644
--- a/test/test_view_paged_model_dto.py
+++ b/test/test_view_paged_model_dto.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.models.view_paged_model_dto import ViewPagedModelDTO
+from cm_python_openapi_sdk.models.view_paged_model_dto import ViewPagedModelDTO
class TestViewPagedModelDTO(unittest.TestCase):
"""ViewPagedModelDTO unit test stubs"""
@@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> ViewPagedModelDTO:
if include_optional:
return ViewPagedModelDTO(
content = [
- openapi_client.models.view_dto.ViewDTO(
+ cm_python_openapi_sdk.models.view_dto.ViewDTO(
id = '',
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
type = 'dataset',
title = '0',
description = '',
- content = openapi_client.models.view_content_dto.ViewContentDTO(
+ content = cm_python_openapi_sdk.models.view_content_dto.ViewContentDTO(
icon = 'q',
dashboard = '/rest/projects/8q6zgckec0l3o4gi/md/dashboards?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
map = '/rest/projects/8q6zgckec0l3o4gi/md/maps?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
@@ -63,32 +63,32 @@ def make_instance(self, include_optional) -> ViewPagedModelDTO:
null
],
variables = [
- openapi_client.models.variables_dto.VariablesDTO(
+ cm_python_openapi_sdk.models.variables_dto.VariablesDTO(
type = 'variables',
title = '0',
variables = [
- openapi_client.models.variable_dto.VariableDTO(
+ cm_python_openapi_sdk.models.variable_dto.VariableDTO(
name = 'awat5ikwowtta-3mh2lcafqw3zhes',
title = '0',
min_value = 1.337,
max_value = 1.337,
default_value = 1.337,
- format = openapi_client.models.format_dto.FormatDTO(
+ format = cm_python_openapi_sdk.models.format_dto.FormatDTO(
type = 'number',
fraction = 0,
symbol = '', ), )
], )
],
- spatial_query = openapi_client.models.isochrone_dto.IsochroneDTO(
+ spatial_query = cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, ),
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), ),
fitness_groups = 3,
- map_options = openapi_client.models.map_options_dto.MapOptionsDTO(
- center = openapi_client.models.center_dto.CenterDTO(
+ map_options = cm_python_openapi_sdk.models.map_options_dto.MapOptionsDTO(
+ center = cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, ),
zoom = 56,
@@ -96,38 +96,38 @@ def make_instance(self, include_optional) -> ViewPagedModelDTO:
max_zoom = 56,
tile_layer_menu = True,
tile_layer = 'mapbox',
- custom_tile_layer = openapi_client.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
+ custom_tile_layer = cm_python_openapi_sdk.models.map_options_dto_custom_tile_layer.MapOptionsDTO_customTileLayer(
url = 'mapbox://styles/jUR,rZ#UM/?R,Fp^l6$ARj',
access_token = '0', ), ),
- map_context_menu = openapi_client.models.map_context_menu_dto.MapContextMenuDTO(
+ map_context_menu = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO(
items = [
null
], ),
exports = [
- openapi_client.models.export_link_dto.ExportLinkDTO(
+ cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO(
export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', )
],
- measure = openapi_client.models.measure_dto.MeasureDTO(
+ measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO(
type = 'line',
points = [
- openapi_client.models.isochrone_dto.IsochroneDTO(
+ cm_python_openapi_sdk.models.isochrone_dto.IsochroneDTO(
lat = -180.0,
lng = -180.0,
profile = 'car',
unit = 'time',
amount = 1,
- geometry = null, )
+ geometry = cm_python_openapi_sdk.models.geometry.geometry(), )
],
zones = [
], ),
- default_selected = openapi_client.models.default_selected_dto.DefaultSelectedDTO(
+ default_selected = cm_python_openapi_sdk.models.default_selected_dto.DefaultSelectedDTO(
dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc',
ids = [
null
],
coordinates = [
- openapi_client.models.center_dto.CenterDTO(
+ cm_python_openapi_sdk.models.center_dto.CenterDTO(
lat = 1.337,
lng = 1.337, )
], ),
@@ -139,7 +139,7 @@ def make_instance(self, include_optional) -> ViewPagedModelDTO:
links = [
None
],
- page = openapi_client.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
+ page = cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response.mandatory keys for pagable response(
size = 56,
total_elements = null,
total_pages = 56,
diff --git a/test/test_views_api.py b/test/test_views_api.py
index 46aecf1..84614f9 100644
--- a/test/test_views_api.py
+++ b/test/test_views_api.py
@@ -14,7 +14,7 @@
import unittest
-from openapi_client.api.views_api import ViewsApi
+from cm_python_openapi_sdk.api.views_api import ViewsApi
class TestViewsApi(unittest.TestCase):
diff --git a/test/test_zoom_dto.py b/test/test_zoom_dto.py
new file mode 100644
index 0000000..074f0ba
--- /dev/null
+++ b/test/test_zoom_dto.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ clevermaps-client
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
+
+ The version of the OpenAPI document: 1.0.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from cm_python_openapi_sdk.models.zoom_dto import ZoomDTO
+
+class TestZoomDTO(unittest.TestCase):
+ """ZoomDTO unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ZoomDTO:
+ """Test ZoomDTO
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ZoomDTO`
+ """
+ model = ZoomDTO()
+ if include_optional:
+ return ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ visible_from = 2
+ )
+ else:
+ return ZoomDTO(
+ min = 2,
+ optimal = 2,
+ max = 2,
+ )
+ """
+
+ def testZoomDTO(self):
+ """Test ZoomDTO"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/tox.ini b/tox.ini
index 1a9028b..69a6109 100644
--- a/tox.ini
+++ b/tox.ini
@@ -6,4 +6,4 @@ deps=-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands=
- pytest --cov=openapi_client
+ pytest --cov=cm_python_openapi_sdk