diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 49aef56..958e92e 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -3,7 +3,7 @@ # # ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python -name: openapi_client Python package +name: cm_python_openapi_sdk Python package on: [push, pull_request] @@ -28,4 +28,4 @@ jobs: pip install -r test-requirements.txt - name: Test with pytest run: | - pytest --cov={{packageName}} + pytest --cov=cm_python_openapi_sdk diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 156d5a5..2a83671 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -12,7 +12,7 @@ stages: script: - pip install -r requirements.txt - pip install -r test-requirements.txt - - pytest --cov=openapi_client + - pytest --cov=cm_python_openapi_sdk pytest-3.8: extends: .pytest diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 516f3f4..46fffed 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -4,6 +4,354 @@ .openapi-generator-ignore .travis.yml README.md +cm_python_openapi_sdk/__init__.py +cm_python_openapi_sdk/api/__init__.py +cm_python_openapi_sdk/api/accounts_api.py +cm_python_openapi_sdk/api/accounts_reset_password_api.py +cm_python_openapi_sdk/api/attribute_styles_api.py +cm_python_openapi_sdk/api/audit_log_api.py +cm_python_openapi_sdk/api/authentication_api.py +cm_python_openapi_sdk/api/available_datasets_api.py +cm_python_openapi_sdk/api/caches_api.py +cm_python_openapi_sdk/api/dashboards_api.py +cm_python_openapi_sdk/api/data_dump_api.py +cm_python_openapi_sdk/api/data_permissions_api.py +cm_python_openapi_sdk/api/data_sources_api.py +cm_python_openapi_sdk/api/data_upload_api.py +cm_python_openapi_sdk/api/datasets_api.py +cm_python_openapi_sdk/api/date_ranges_api.py +cm_python_openapi_sdk/api/explain_api.py +cm_python_openapi_sdk/api/export_api.py +cm_python_openapi_sdk/api/exports_api.py +cm_python_openapi_sdk/api/indicator_drills_api.py +cm_python_openapi_sdk/api/indicators_api.py +cm_python_openapi_sdk/api/invitation_api.py +cm_python_openapi_sdk/api/isochrone_api.py +cm_python_openapi_sdk/api/jobs_api.py +cm_python_openapi_sdk/api/maps_api.py +cm_python_openapi_sdk/api/marker_selectors_api.py +cm_python_openapi_sdk/api/markers_api.py +cm_python_openapi_sdk/api/members_api.py +cm_python_openapi_sdk/api/metric_ranges_api.py +cm_python_openapi_sdk/api/metrics_api.py +cm_python_openapi_sdk/api/organizations_api.py +cm_python_openapi_sdk/api/overlaps_api.py +cm_python_openapi_sdk/api/project_invitations_api.py +cm_python_openapi_sdk/api/project_settings_api.py +cm_python_openapi_sdk/api/projects_api.py +cm_python_openapi_sdk/api/property_values_api.py +cm_python_openapi_sdk/api/property_values_distribution_api.py +cm_python_openapi_sdk/api/queries_api.py +cm_python_openapi_sdk/api/search_api.py +cm_python_openapi_sdk/api/views_api.py +cm_python_openapi_sdk/api_client.py +cm_python_openapi_sdk/api_response.py +cm_python_openapi_sdk/configuration.py +cm_python_openapi_sdk/exceptions.py +cm_python_openapi_sdk/models/__init__.py +cm_python_openapi_sdk/models/account_dto.py +cm_python_openapi_sdk/models/account_job_info.py +cm_python_openapi_sdk/models/account_onboarding_parameters.py +cm_python_openapi_sdk/models/account_preferences.py +cm_python_openapi_sdk/models/account_utm_parameters.py +cm_python_openapi_sdk/models/active_date_filter_dto.py +cm_python_openapi_sdk/models/active_feature_filter_dto.py +cm_python_openapi_sdk/models/active_filter_abstract_type.py +cm_python_openapi_sdk/models/active_global_date_filter_dto.py +cm_python_openapi_sdk/models/active_histogram_filter_dto.py +cm_python_openapi_sdk/models/active_indicator_filter_dto.py +cm_python_openapi_sdk/models/active_multi_select_filter_dto.py +cm_python_openapi_sdk/models/active_single_select_filter_dto.py +cm_python_openapi_sdk/models/additional_series_link_dto.py +cm_python_openapi_sdk/models/annotation_link_dto.py +cm_python_openapi_sdk/models/attribute_format_dto.py +cm_python_openapi_sdk/models/attribute_style_category_dto.py +cm_python_openapi_sdk/models/attribute_style_content_dto.py +cm_python_openapi_sdk/models/attribute_style_dto.py +cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py +cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py +cm_python_openapi_sdk/models/audit_log_paged_resource.py +cm_python_openapi_sdk/models/audit_log_paged_resource_page.py +cm_python_openapi_sdk/models/audit_log_paged_resource_page_last_evaluated_key.py +cm_python_openapi_sdk/models/audit_log_single_resource.py +cm_python_openapi_sdk/models/available_datasets_request.py +cm_python_openapi_sdk/models/available_datasets_response.py +cm_python_openapi_sdk/models/available_datasets_response_content_inner.py +cm_python_openapi_sdk/models/block_abstract_type.py +cm_python_openapi_sdk/models/block_row_abstract_type.py +cm_python_openapi_sdk/models/block_row_dto.py +cm_python_openapi_sdk/models/bounding_box_dto.py +cm_python_openapi_sdk/models/bulk_point_query_job_request.py +cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_nearest.py +cm_python_openapi_sdk/models/bulk_point_query_request.py +cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner.py +cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone.py +cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone_options.py +cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_nearest.py +cm_python_openapi_sdk/models/bulk_point_query_request_points_inner.py +cm_python_openapi_sdk/models/categories_dto.py +cm_python_openapi_sdk/models/category_dto.py +cm_python_openapi_sdk/models/center_dto.py +cm_python_openapi_sdk/models/central_point.py +cm_python_openapi_sdk/models/create_invitation.py +cm_python_openapi_sdk/models/create_membership_dto.py +cm_python_openapi_sdk/models/create_organization_dto.py +cm_python_openapi_sdk/models/create_project_dto.py +cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py +cm_python_openapi_sdk/models/dashboard_content_dto.py +cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py +cm_python_openapi_sdk/models/dashboard_dto.py +cm_python_openapi_sdk/models/dashboard_paged_model_dto.py +cm_python_openapi_sdk/models/data_complete_multipart_upload_request.py +cm_python_openapi_sdk/models/data_complete_multipart_upload_response.py +cm_python_openapi_sdk/models/data_create_multipart_upload_response.py +cm_python_openapi_sdk/models/data_create_upload_response.py +cm_python_openapi_sdk/models/data_dump_job_request.py +cm_python_openapi_sdk/models/data_dump_request.py +cm_python_openapi_sdk/models/data_permission_content_dto.py +cm_python_openapi_sdk/models/data_permission_dto.py +cm_python_openapi_sdk/models/data_permission_paged_model_dto.py +cm_python_openapi_sdk/models/data_pull_job_request.py +cm_python_openapi_sdk/models/data_pull_request.py +cm_python_openapi_sdk/models/data_pull_request_csv_options.py +cm_python_openapi_sdk/models/data_pull_request_https_upload.py +cm_python_openapi_sdk/models/data_pull_request_s3_upload.py +cm_python_openapi_sdk/models/data_source_dto.py +cm_python_openapi_sdk/models/data_source_paged_model_dto.py +cm_python_openapi_sdk/models/data_upload200_response.py +cm_python_openapi_sdk/models/dataset_dto.py +cm_python_openapi_sdk/models/dataset_dwh_type_dto.py +cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py +cm_python_openapi_sdk/models/dataset_paged_model_dto.py +cm_python_openapi_sdk/models/dataset_properties_dto.py +cm_python_openapi_sdk/models/dataset_type.py +cm_python_openapi_sdk/models/dataset_visualization_dto.py +cm_python_openapi_sdk/models/dataset_vt_type_dto.py +cm_python_openapi_sdk/models/date_filter_default_value_type.py +cm_python_openapi_sdk/models/date_filter_dto.py +cm_python_openapi_sdk/models/date_range_function.py +cm_python_openapi_sdk/models/date_range_function_function.py +cm_python_openapi_sdk/models/date_range_value.py +cm_python_openapi_sdk/models/default_distribution_dto.py +cm_python_openapi_sdk/models/default_selected_dto.py +cm_python_openapi_sdk/models/default_values_date_dto.py +cm_python_openapi_sdk/models/default_values_feature_dto.py +cm_python_openapi_sdk/models/default_values_histogram_dto.py +cm_python_openapi_sdk/models/default_values_indicator_dto.py +cm_python_openapi_sdk/models/default_values_multi_select_dto.py +cm_python_openapi_sdk/models/default_values_single_select_dto.py +cm_python_openapi_sdk/models/display_options_dto.py +cm_python_openapi_sdk/models/distribution_dto.py +cm_python_openapi_sdk/models/double_counting_warnings.py +cm_python_openapi_sdk/models/dwh_abstract_property.py +cm_python_openapi_sdk/models/dwh_date_range_request.py +cm_python_openapi_sdk/models/dwh_date_range_request_filter.py +cm_python_openapi_sdk/models/dwh_date_range_response.py +cm_python_openapi_sdk/models/dwh_date_range_response_content_inner.py +cm_python_openapi_sdk/models/dwh_foreign_key_dto.py +cm_python_openapi_sdk/models/dwh_geometry_dto.py +cm_python_openapi_sdk/models/dwh_metric_range_response.py +cm_python_openapi_sdk/models/dwh_metric_range_response_content_inner.py +cm_python_openapi_sdk/models/dwh_metric_values_distribution_response.py +cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner.py +cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner_content_inner.py +cm_python_openapi_sdk/models/dwh_overlaps_request.py +cm_python_openapi_sdk/models/dwh_overlaps_response.py +cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner.py +cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner_results_inner.py +cm_python_openapi_sdk/models/dwh_property_dto.py +cm_python_openapi_sdk/models/dwh_property_values_distribution_request.py +cm_python_openapi_sdk/models/dwh_property_values_request.py +cm_python_openapi_sdk/models/dwh_query_function_types.py +cm_python_openapi_sdk/models/dwh_query_metric_type.py +cm_python_openapi_sdk/models/dwh_query_number_type.py +cm_python_openapi_sdk/models/dwh_query_property_type.py +cm_python_openapi_sdk/models/dwh_query_property_types.py +cm_python_openapi_sdk/models/dwh_query_request.py +cm_python_openapi_sdk/models/dwh_query_request1.py +cm_python_openapi_sdk/models/execution_context.py +cm_python_openapi_sdk/models/execution_detail.py +cm_python_openapi_sdk/models/export_content_dto.py +cm_python_openapi_sdk/models/export_dto.py +cm_python_openapi_sdk/models/export_job_request.py +cm_python_openapi_sdk/models/export_link_dto.py +cm_python_openapi_sdk/models/export_paged_model_dto.py +cm_python_openapi_sdk/models/export_request.py +cm_python_openapi_sdk/models/export_request_csv_options.py +cm_python_openapi_sdk/models/feature_attribute_dto.py +cm_python_openapi_sdk/models/feature_filter_dto.py +cm_python_openapi_sdk/models/feature_function_dto.py +cm_python_openapi_sdk/models/feature_property_dto.py +cm_python_openapi_sdk/models/feature_property_type.py +cm_python_openapi_sdk/models/feature_text_dto.py +cm_python_openapi_sdk/models/filter_abstract_type.py +cm_python_openapi_sdk/models/filter_by.py +cm_python_openapi_sdk/models/filter_by_attribute.py +cm_python_openapi_sdk/models/filter_by_boolean.py +cm_python_openapi_sdk/models/filter_by_comp.py +cm_python_openapi_sdk/models/filter_by_in.py +cm_python_openapi_sdk/models/filter_by_in1.py +cm_python_openapi_sdk/models/filter_by_unary.py +cm_python_openapi_sdk/models/format_dto.py +cm_python_openapi_sdk/models/function_agg_type_general.py +cm_python_openapi_sdk/models/function_arithm_type_general.py +cm_python_openapi_sdk/models/function_condition_type_general.py +cm_python_openapi_sdk/models/function_date_trunc.py +cm_python_openapi_sdk/models/function_date_truncate_options.py +cm_python_openapi_sdk/models/function_distance.py +cm_python_openapi_sdk/models/function_distance_options.py +cm_python_openapi_sdk/models/function_h3_grid.py +cm_python_openapi_sdk/models/function_h3_grid_options.py +cm_python_openapi_sdk/models/function_interval.py +cm_python_openapi_sdk/models/function_ntile.py +cm_python_openapi_sdk/models/function_ntile_content_inner.py +cm_python_openapi_sdk/models/function_ntile_options.py +cm_python_openapi_sdk/models/function_percent_to_total_type_general.py +cm_python_openapi_sdk/models/function_percentile.py +cm_python_openapi_sdk/models/function_property_type.py +cm_python_openapi_sdk/models/function_rank.py +cm_python_openapi_sdk/models/function_round_type_general.py +cm_python_openapi_sdk/models/function_row_number.py +cm_python_openapi_sdk/models/function_today.py +cm_python_openapi_sdk/models/geosearch_paged_model_dto.py +cm_python_openapi_sdk/models/get_account_by_account_id200_response.py +cm_python_openapi_sdk/models/get_organizations200_response.py +cm_python_openapi_sdk/models/get_project_members200_response.py +cm_python_openapi_sdk/models/global_date_filter_dto.py +cm_python_openapi_sdk/models/google_earth_dto.py +cm_python_openapi_sdk/models/google_satellite_dto.py +cm_python_openapi_sdk/models/google_street_view_dto.py +cm_python_openapi_sdk/models/granularity_category_dto.py +cm_python_openapi_sdk/models/having.py +cm_python_openapi_sdk/models/having1.py +cm_python_openapi_sdk/models/having_comp.py +cm_python_openapi_sdk/models/having_in.py +cm_python_openapi_sdk/models/having_in1.py +cm_python_openapi_sdk/models/having_unary.py +cm_python_openapi_sdk/models/highlight_dto.py +cm_python_openapi_sdk/models/histogram_filter_dto.py +cm_python_openapi_sdk/models/hit_highlight.py +cm_python_openapi_sdk/models/import_project_job_request.py +cm_python_openapi_sdk/models/import_project_request.py +cm_python_openapi_sdk/models/indicator_content_dto.py +cm_python_openapi_sdk/models/indicator_drill_content_dto.py +cm_python_openapi_sdk/models/indicator_drill_dto.py +cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py +cm_python_openapi_sdk/models/indicator_dto.py +cm_python_openapi_sdk/models/indicator_filter_dto.py +cm_python_openapi_sdk/models/indicator_group_dto.py +cm_python_openapi_sdk/models/indicator_link_dto.py +cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py +cm_python_openapi_sdk/models/indicator_paged_model_dto.py +cm_python_openapi_sdk/models/indicator_visualizations_dto.py +cm_python_openapi_sdk/models/invitation_dto.py +cm_python_openapi_sdk/models/invitation_paged_model_dto.py +cm_python_openapi_sdk/models/isochrone_dto.py +cm_python_openapi_sdk/models/isochrone_paged_model_dto.py +cm_python_openapi_sdk/models/job_detail_response.py +cm_python_openapi_sdk/models/job_history_paged_model_dto.py +cm_python_openapi_sdk/models/layer_dto.py +cm_python_openapi_sdk/models/layer_dto_datasets_inner.py +cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py +cm_python_openapi_sdk/models/linked_layer_dto.py +cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py +cm_python_openapi_sdk/models/map_content_dto.py +cm_python_openapi_sdk/models/map_content_dto_base_layer.py +cm_python_openapi_sdk/models/map_content_dto_options.py +cm_python_openapi_sdk/models/map_context_menu_dto.py +cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py +cm_python_openapi_sdk/models/map_dto.py +cm_python_openapi_sdk/models/map_options_dto.py +cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py +cm_python_openapi_sdk/models/map_paged_model_dto.py +cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py +cm_python_openapi_sdk/models/mapycz_panorama_dto.py +cm_python_openapi_sdk/models/marker_content_dto.py +cm_python_openapi_sdk/models/marker_content_dto_property_filters_inner.py +cm_python_openapi_sdk/models/marker_dto.py +cm_python_openapi_sdk/models/marker_link_dto.py +cm_python_openapi_sdk/models/marker_paged_model_dto.py +cm_python_openapi_sdk/models/marker_selector_content_dto.py +cm_python_openapi_sdk/models/marker_selector_content_dto_keep_filtered.py +cm_python_openapi_sdk/models/marker_selector_dto.py +cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py +cm_python_openapi_sdk/models/max_value_dto.py +cm_python_openapi_sdk/models/measure_dto.py +cm_python_openapi_sdk/models/membership_dto.py +cm_python_openapi_sdk/models/membership_paged_model_dto.py +cm_python_openapi_sdk/models/metric_dto.py +cm_python_openapi_sdk/models/metric_paged_model_dto.py +cm_python_openapi_sdk/models/multi_select_filter_dto.py +cm_python_openapi_sdk/models/new_account_dto.py +cm_python_openapi_sdk/models/order_by.py +cm_python_openapi_sdk/models/order_by_dto.py +cm_python_openapi_sdk/models/organization_paged_model_dto.py +cm_python_openapi_sdk/models/organization_response_dto.py +cm_python_openapi_sdk/models/output_dto.py +cm_python_openapi_sdk/models/part_e_tag.py +cm_python_openapi_sdk/models/password_change_dto.py +cm_python_openapi_sdk/models/position_dto.py +cm_python_openapi_sdk/models/project_paged_model_dto.py +cm_python_openapi_sdk/models/project_response_dto.py +cm_python_openapi_sdk/models/project_settings_content_dto.py +cm_python_openapi_sdk/models/project_settings_dto.py +cm_python_openapi_sdk/models/project_settings_paged_model_dto.py +cm_python_openapi_sdk/models/project_template_dto.py +cm_python_openapi_sdk/models/property_filter_compare_dto.py +cm_python_openapi_sdk/models/property_filter_in_dto.py +cm_python_openapi_sdk/models/property_values_response.py +cm_python_openapi_sdk/models/property_values_response_content_inner.py +cm_python_openapi_sdk/models/queries_response.py +cm_python_openapi_sdk/models/query_hit_dto.py +cm_python_openapi_sdk/models/query_response.py +cm_python_openapi_sdk/models/query_response_item_wrapper.py +cm_python_openapi_sdk/models/ranking_dto.py +cm_python_openapi_sdk/models/relations_dto.py +cm_python_openapi_sdk/models/reset_password_dto.py +cm_python_openapi_sdk/models/restricted_account_dto.py +cm_python_openapi_sdk/models/result_set_filter.py +cm_python_openapi_sdk/models/result_set_filter_comp.py +cm_python_openapi_sdk/models/result_set_filter_in.py +cm_python_openapi_sdk/models/result_set_filter_unary.py +cm_python_openapi_sdk/models/scale_options_dto.py +cm_python_openapi_sdk/models/search_query_hit.py +cm_python_openapi_sdk/models/search_query_hit_id.py +cm_python_openapi_sdk/models/search_query_response.py +cm_python_openapi_sdk/models/send_reset_password_dto.py +cm_python_openapi_sdk/models/single_select_filter_dto.py +cm_python_openapi_sdk/models/static_scale_option_dto.py +cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py +cm_python_openapi_sdk/models/style_dto.py +cm_python_openapi_sdk/models/submit_job_execution_request.py +cm_python_openapi_sdk/models/template_dataset_dto.py +cm_python_openapi_sdk/models/time_series_dto.py +cm_python_openapi_sdk/models/token_request_dto.py +cm_python_openapi_sdk/models/token_response_dto.py +cm_python_openapi_sdk/models/truncate_job_request.py +cm_python_openapi_sdk/models/update_invitation.py +cm_python_openapi_sdk/models/update_membership.py +cm_python_openapi_sdk/models/update_organization_dto.py +cm_python_openapi_sdk/models/update_project_dto.py +cm_python_openapi_sdk/models/validate_job_request.py +cm_python_openapi_sdk/models/validate_request.py +cm_python_openapi_sdk/models/value_option_dto.py +cm_python_openapi_sdk/models/variable_dto.py +cm_python_openapi_sdk/models/variable_type.py +cm_python_openapi_sdk/models/variable_value.py +cm_python_openapi_sdk/models/variables_dto.py +cm_python_openapi_sdk/models/view_content_dto.py +cm_python_openapi_sdk/models/view_dto.py +cm_python_openapi_sdk/models/view_paged_model_dto.py +cm_python_openapi_sdk/models/zoom_dto.py +cm_python_openapi_sdk/py.typed +cm_python_openapi_sdk/rest.py +docs/AccountDTO.md +docs/AccountJobInfo.md +docs/AccountOnboardingParameters.md +docs/AccountPreferences.md +docs/AccountUtmParameters.md +docs/AccountsApi.md +docs/AccountsResetPasswordApi.md docs/ActiveDateFilterDTO.md docs/ActiveFeatureFilterDTO.md docs/ActiveFilterAbstractType.md @@ -15,22 +363,85 @@ docs/ActiveSingleSelectFilterDTO.md docs/AdditionalSeriesLinkDTO.md docs/AnnotationLinkDTO.md docs/AttributeFormatDTO.md +docs/AttributeStyleCategoryDTO.md +docs/AttributeStyleContentDTO.md +docs/AttributeStyleDTO.md +docs/AttributeStyleFallbackCategoryDTO.md +docs/AttributeStylePagedModelDTO.md +docs/AttributeStylesApi.md +docs/AuditLogApi.md +docs/AuditLogPagedResource.md +docs/AuditLogPagedResourcePage.md +docs/AuditLogPagedResourcePageLastEvaluatedKey.md +docs/AuditLogSingleResource.md docs/AuthenticationApi.md +docs/AvailableDatasetsApi.md +docs/AvailableDatasetsRequest.md +docs/AvailableDatasetsResponse.md +docs/AvailableDatasetsResponseContentInner.md docs/BlockAbstractType.md docs/BlockRowAbstractType.md docs/BlockRowDTO.md +docs/BoundingBoxDTO.md +docs/BulkPointQueryJobRequest.md +docs/BulkPointQueryPointQueriesOptionNearest.md +docs/BulkPointQueryRequest.md +docs/BulkPointQueryRequestPointQueriesInner.md +docs/BulkPointQueryRequestPointQueriesIsochrone.md +docs/BulkPointQueryRequestPointQueriesIsochroneOptions.md +docs/BulkPointQueryRequestPointQueriesNearest.md +docs/BulkPointQueryRequestPointsInner.md +docs/CachesApi.md docs/CategoriesDTO.md +docs/CategoryDTO.md docs/CenterDTO.md +docs/CentralPoint.md +docs/CreateInvitation.md +docs/CreateMembershipDTO.md +docs/CreateOrganizationDTO.md +docs/CreateProjectDTO.md docs/CuzkParcelInfoDTO.md docs/DashboardContentDTO.md docs/DashboardDTO.md docs/DashboardDatasetPropertiesDTO.md docs/DashboardPagedModelDTO.md docs/DashboardsApi.md +docs/DataCompleteMultipartUploadRequest.md +docs/DataCompleteMultipartUploadResponse.md +docs/DataCreateMultipartUploadResponse.md +docs/DataCreateUploadResponse.md +docs/DataDumpApi.md +docs/DataDumpJobRequest.md +docs/DataDumpRequest.md +docs/DataPermissionContentDTO.md +docs/DataPermissionDTO.md +docs/DataPermissionPagedModelDTO.md +docs/DataPermissionsApi.md +docs/DataPullJobRequest.md +docs/DataPullRequest.md +docs/DataPullRequestCsvOptions.md +docs/DataPullRequestHttpsUpload.md +docs/DataPullRequestS3Upload.md +docs/DataSourceDTO.md +docs/DataSourcePagedModelDTO.md +docs/DataSourcesApi.md +docs/DataUpload200Response.md +docs/DataUploadApi.md +docs/DatasetDTO.md +docs/DatasetDwhTypeDTO.md +docs/DatasetH3GridTypeDTO.md +docs/DatasetPagedModelDTO.md +docs/DatasetPropertiesDTO.md +docs/DatasetType.md +docs/DatasetVisualizationDTO.md +docs/DatasetVtTypeDTO.md +docs/DatasetsApi.md docs/DateFilterDTO.md docs/DateFilterDefaultValueType.md docs/DateRangeFunction.md +docs/DateRangeFunctionFunction.md docs/DateRangeValue.md +docs/DateRangesApi.md docs/DefaultDistributionDTO.md docs/DefaultSelectedDTO.md docs/DefaultValuesDateDTO.md @@ -39,17 +450,102 @@ docs/DefaultValuesHistogramDTO.md docs/DefaultValuesIndicatorDTO.md docs/DefaultValuesMultiSelectDTO.md docs/DefaultValuesSingleSelectDTO.md +docs/DisplayOptionsDTO.md docs/DistributionDTO.md +docs/DoubleCountingWarnings.md +docs/DwhAbstractProperty.md +docs/DwhDateRangeRequest.md +docs/DwhDateRangeRequestFilter.md +docs/DwhDateRangeResponse.md +docs/DwhDateRangeResponseContentInner.md +docs/DwhForeignKeyDTO.md +docs/DwhGeometryDTO.md +docs/DwhMetricRangeResponse.md +docs/DwhMetricRangeResponseContentInner.md +docs/DwhMetricValuesDistributionResponse.md +docs/DwhMetricValuesDistributionResponseContentInner.md +docs/DwhMetricValuesDistributionResponseContentInnerContentInner.md +docs/DwhOverlapsRequest.md +docs/DwhOverlapsResponse.md +docs/DwhOverlapsResponseContentInner.md +docs/DwhOverlapsResponseContentInnerResultsInner.md +docs/DwhPropertyDTO.md +docs/DwhPropertyValuesDistributionRequest.md +docs/DwhPropertyValuesRequest.md +docs/DwhQueryFunctionTypes.md +docs/DwhQueryMetricType.md +docs/DwhQueryNumberType.md +docs/DwhQueryPropertyType.md +docs/DwhQueryPropertyTypes.md +docs/DwhQueryRequest.md +docs/DwhQueryRequest1.md +docs/ExecutionContext.md +docs/ExecutionDetail.md +docs/ExplainApi.md +docs/ExportApi.md +docs/ExportContentDTO.md +docs/ExportDTO.md +docs/ExportJobRequest.md docs/ExportLinkDTO.md +docs/ExportPagedModelDTO.md +docs/ExportRequest.md +docs/ExportRequestCsvOptions.md +docs/ExportsApi.md docs/FeatureAttributeDTO.md docs/FeatureFilterDTO.md +docs/FeatureFunctionDTO.md +docs/FeaturePropertyDTO.md +docs/FeaturePropertyType.md +docs/FeatureTextDTO.md docs/FilterAbstractType.md +docs/FilterBy.md +docs/FilterByAttribute.md +docs/FilterByBoolean.md +docs/FilterByComp.md +docs/FilterByIn.md +docs/FilterByIn1.md +docs/FilterByUnary.md docs/FormatDTO.md +docs/FunctionAggTypeGeneral.md +docs/FunctionArithmTypeGeneral.md +docs/FunctionConditionTypeGeneral.md +docs/FunctionDateTrunc.md +docs/FunctionDateTruncateOptions.md +docs/FunctionDistance.md +docs/FunctionDistanceOptions.md +docs/FunctionH3Grid.md +docs/FunctionH3GridOptions.md +docs/FunctionInterval.md +docs/FunctionNtile.md +docs/FunctionNtileContentInner.md +docs/FunctionNtileOptions.md +docs/FunctionPercentToTotalTypeGeneral.md +docs/FunctionPercentile.md +docs/FunctionPropertyType.md +docs/FunctionRank.md +docs/FunctionRoundTypeGeneral.md +docs/FunctionRowNumber.md +docs/FunctionToday.md +docs/GeosearchPagedModelDTO.md +docs/GetAccountByAccountId200Response.md +docs/GetOrganizations200Response.md +docs/GetProjectMembers200Response.md docs/GlobalDateFilterDTO.md docs/GoogleEarthDTO.md docs/GoogleSatelliteDTO.md docs/GoogleStreetViewDTO.md +docs/GranularityCategoryDTO.md +docs/Having.md +docs/Having1.md +docs/HavingComp.md +docs/HavingIn.md +docs/HavingIn1.md +docs/HavingUnary.md +docs/HighlightDTO.md docs/HistogramFilterDTO.md +docs/HitHighlight.md +docs/ImportProjectJobRequest.md +docs/ImportProjectRequest.md docs/IndicatorContentDTO.md docs/IndicatorDTO.md docs/IndicatorDrillContentDTO.md @@ -63,10 +559,19 @@ docs/IndicatorLinkDTOBlockRowsInner.md docs/IndicatorPagedModelDTO.md docs/IndicatorVisualizationsDTO.md docs/IndicatorsApi.md +docs/InvitationApi.md +docs/InvitationDTO.md +docs/InvitationPagedModelDTO.md +docs/IsochroneApi.md docs/IsochroneDTO.md +docs/IsochronePagedModelDTO.md +docs/JobDetailResponse.md +docs/JobHistoryPagedModelDTO.md +docs/JobsApi.md docs/LayerDTO.md docs/LayerDTODatasetsInner.md docs/LayerDTODatasetsInnerAttributeStylesInner.md +docs/LinkedLayerDTO.md docs/MandatoryKeysForPagableResponse.md docs/MapContentDTO.md docs/MapContentDTOBaseLayer.md @@ -80,138 +585,112 @@ docs/MapPagedModelDTO.md docs/MapsApi.md docs/MapyczOrtophotoDTO.md docs/MapyczPanoramaDTO.md +docs/MarkerContentDTO.md +docs/MarkerContentDTOPropertyFiltersInner.md +docs/MarkerDTO.md +docs/MarkerLinkDTO.md +docs/MarkerPagedModelDTO.md +docs/MarkerSelectorContentDTO.md +docs/MarkerSelectorContentDTOKeepFiltered.md +docs/MarkerSelectorDTO.md +docs/MarkerSelectorPagedModelDTO.md +docs/MarkerSelectorsApi.md +docs/MarkersApi.md docs/MaxValueDTO.md docs/MeasureDTO.md +docs/MembersApi.md +docs/MembershipDTO.md +docs/MembershipPagedModelDTO.md +docs/MetricDTO.md +docs/MetricPagedModelDTO.md +docs/MetricRangesApi.md +docs/MetricsApi.md docs/MultiSelectFilterDTO.md +docs/NewAccountDTO.md +docs/OrderBy.md docs/OrderByDTO.md +docs/OrganizationPagedModelDTO.md +docs/OrganizationResponseDTO.md +docs/OrganizationsApi.md +docs/OutputDTO.md +docs/OverlapsApi.md +docs/PartETag.md +docs/PasswordChangeDTO.md +docs/PositionDTO.md +docs/ProjectInvitationsApi.md +docs/ProjectPagedModelDTO.md +docs/ProjectResponseDTO.md +docs/ProjectSettingsApi.md +docs/ProjectSettingsContentDTO.md +docs/ProjectSettingsDTO.md +docs/ProjectSettingsPagedModelDTO.md +docs/ProjectTemplateDTO.md +docs/ProjectsApi.md +docs/PropertyFilterCompareDTO.md +docs/PropertyFilterInDTO.md +docs/PropertyValuesApi.md +docs/PropertyValuesDistributionApi.md +docs/PropertyValuesResponse.md +docs/PropertyValuesResponseContentInner.md +docs/QueriesApi.md +docs/QueriesResponse.md +docs/QueryHitDTO.md +docs/QueryResponse.md +docs/QueryResponseItemWrapper.md docs/RankingDTO.md docs/RelationsDTO.md +docs/ResetPasswordDTO.md +docs/RestrictedAccountDTO.md +docs/ResultSetFilter.md +docs/ResultSetFilterComp.md +docs/ResultSetFilterIn.md +docs/ResultSetFilterUnary.md docs/ScaleOptionsDTO.md +docs/SearchApi.md +docs/SearchQueryHit.md +docs/SearchQueryHitId.md +docs/SearchQueryResponse.md +docs/SendResetPasswordDTO.md docs/SingleSelectFilterDTO.md docs/StaticScaleOptionDTO.md docs/StaticScaleOptionDTOBreaks.md docs/StyleDTO.md +docs/SubmitJobExecutionRequest.md +docs/TemplateDatasetDTO.md docs/TimeSeriesDTO.md docs/TokenRequestDTO.md docs/TokenResponseDTO.md +docs/TruncateJobRequest.md +docs/UpdateInvitation.md +docs/UpdateMembership.md +docs/UpdateOrganizationDTO.md +docs/UpdateProjectDTO.md +docs/ValidateJobRequest.md +docs/ValidateRequest.md +docs/ValueOptionDTO.md docs/VariableDTO.md +docs/VariableType.md +docs/VariableValue.md docs/VariablesDTO.md docs/ViewContentDTO.md docs/ViewDTO.md docs/ViewPagedModelDTO.md docs/ViewsApi.md +docs/ZoomDTO.md git_push.sh -openapi_client/__init__.py -openapi_client/api/__init__.py -openapi_client/api/authentication_api.py -openapi_client/api/dashboards_api.py -openapi_client/api/indicator_drills_api.py -openapi_client/api/indicators_api.py -openapi_client/api/maps_api.py -openapi_client/api/views_api.py -openapi_client/api_client.py -openapi_client/api_response.py -openapi_client/configuration.py -openapi_client/exceptions.py -openapi_client/models/__init__.py -openapi_client/models/active_date_filter_dto.py -openapi_client/models/active_feature_filter_dto.py -openapi_client/models/active_filter_abstract_type.py -openapi_client/models/active_global_date_filter_dto.py -openapi_client/models/active_histogram_filter_dto.py -openapi_client/models/active_indicator_filter_dto.py -openapi_client/models/active_multi_select_filter_dto.py -openapi_client/models/active_single_select_filter_dto.py -openapi_client/models/additional_series_link_dto.py -openapi_client/models/annotation_link_dto.py -openapi_client/models/attribute_format_dto.py -openapi_client/models/block_abstract_type.py -openapi_client/models/block_row_abstract_type.py -openapi_client/models/block_row_dto.py -openapi_client/models/categories_dto.py -openapi_client/models/center_dto.py -openapi_client/models/cuzk_parcel_info_dto.py -openapi_client/models/dashboard_content_dto.py -openapi_client/models/dashboard_dataset_properties_dto.py -openapi_client/models/dashboard_dto.py -openapi_client/models/dashboard_paged_model_dto.py -openapi_client/models/date_filter_default_value_type.py -openapi_client/models/date_filter_dto.py -openapi_client/models/date_range_function.py -openapi_client/models/date_range_value.py -openapi_client/models/default_distribution_dto.py -openapi_client/models/default_selected_dto.py -openapi_client/models/default_values_date_dto.py -openapi_client/models/default_values_feature_dto.py -openapi_client/models/default_values_histogram_dto.py -openapi_client/models/default_values_indicator_dto.py -openapi_client/models/default_values_multi_select_dto.py -openapi_client/models/default_values_single_select_dto.py -openapi_client/models/distribution_dto.py -openapi_client/models/export_link_dto.py -openapi_client/models/feature_attribute_dto.py -openapi_client/models/feature_filter_dto.py -openapi_client/models/filter_abstract_type.py -openapi_client/models/format_dto.py -openapi_client/models/global_date_filter_dto.py -openapi_client/models/google_earth_dto.py -openapi_client/models/google_satellite_dto.py -openapi_client/models/google_street_view_dto.py -openapi_client/models/histogram_filter_dto.py -openapi_client/models/indicator_content_dto.py -openapi_client/models/indicator_drill_content_dto.py -openapi_client/models/indicator_drill_dto.py -openapi_client/models/indicator_drill_paged_model_dto.py -openapi_client/models/indicator_dto.py -openapi_client/models/indicator_filter_dto.py -openapi_client/models/indicator_group_dto.py -openapi_client/models/indicator_link_dto.py -openapi_client/models/indicator_link_dto_block_rows_inner.py -openapi_client/models/indicator_paged_model_dto.py -openapi_client/models/indicator_visualizations_dto.py -openapi_client/models/isochrone_dto.py -openapi_client/models/layer_dto.py -openapi_client/models/layer_dto_datasets_inner.py -openapi_client/models/layer_dto_datasets_inner_attribute_styles_inner.py -openapi_client/models/mandatory_keys_for_pagable_response.py -openapi_client/models/map_content_dto.py -openapi_client/models/map_content_dto_base_layer.py -openapi_client/models/map_content_dto_options.py -openapi_client/models/map_context_menu_dto.py -openapi_client/models/map_context_menu_item_abstract_type.py -openapi_client/models/map_dto.py -openapi_client/models/map_options_dto.py -openapi_client/models/map_options_dto_custom_tile_layer.py -openapi_client/models/map_paged_model_dto.py -openapi_client/models/mapycz_ortophoto_dto.py -openapi_client/models/mapycz_panorama_dto.py -openapi_client/models/max_value_dto.py -openapi_client/models/measure_dto.py -openapi_client/models/multi_select_filter_dto.py -openapi_client/models/order_by_dto.py -openapi_client/models/ranking_dto.py -openapi_client/models/relations_dto.py -openapi_client/models/scale_options_dto.py -openapi_client/models/single_select_filter_dto.py -openapi_client/models/static_scale_option_dto.py -openapi_client/models/static_scale_option_dto_breaks.py -openapi_client/models/style_dto.py -openapi_client/models/time_series_dto.py -openapi_client/models/token_request_dto.py -openapi_client/models/token_response_dto.py -openapi_client/models/variable_dto.py -openapi_client/models/variables_dto.py -openapi_client/models/view_content_dto.py -openapi_client/models/view_dto.py -openapi_client/models/view_paged_model_dto.py -openapi_client/py.typed -openapi_client/rest.py pyproject.toml requirements.txt setup.cfg setup.py test-requirements.txt test/__init__.py +test/test_account_dto.py +test/test_account_job_info.py +test/test_account_onboarding_parameters.py +test/test_account_preferences.py +test/test_account_utm_parameters.py +test/test_accounts_api.py +test/test_accounts_reset_password_api.py test/test_active_date_filter_dto.py test/test_active_feature_filter_dto.py test/test_active_filter_abstract_type.py @@ -223,22 +702,85 @@ test/test_active_single_select_filter_dto.py test/test_additional_series_link_dto.py test/test_annotation_link_dto.py test/test_attribute_format_dto.py +test/test_attribute_style_category_dto.py +test/test_attribute_style_content_dto.py +test/test_attribute_style_dto.py +test/test_attribute_style_fallback_category_dto.py +test/test_attribute_style_paged_model_dto.py +test/test_attribute_styles_api.py +test/test_audit_log_api.py +test/test_audit_log_paged_resource.py +test/test_audit_log_paged_resource_page.py +test/test_audit_log_paged_resource_page_last_evaluated_key.py +test/test_audit_log_single_resource.py test/test_authentication_api.py +test/test_available_datasets_api.py +test/test_available_datasets_request.py +test/test_available_datasets_response.py +test/test_available_datasets_response_content_inner.py test/test_block_abstract_type.py test/test_block_row_abstract_type.py test/test_block_row_dto.py +test/test_bounding_box_dto.py +test/test_bulk_point_query_job_request.py +test/test_bulk_point_query_point_queries_option_nearest.py +test/test_bulk_point_query_request.py +test/test_bulk_point_query_request_point_queries_inner.py +test/test_bulk_point_query_request_point_queries_isochrone.py +test/test_bulk_point_query_request_point_queries_isochrone_options.py +test/test_bulk_point_query_request_point_queries_nearest.py +test/test_bulk_point_query_request_points_inner.py +test/test_caches_api.py test/test_categories_dto.py +test/test_category_dto.py test/test_center_dto.py +test/test_central_point.py +test/test_create_invitation.py +test/test_create_membership_dto.py +test/test_create_organization_dto.py +test/test_create_project_dto.py test/test_cuzk_parcel_info_dto.py test/test_dashboard_content_dto.py test/test_dashboard_dataset_properties_dto.py test/test_dashboard_dto.py test/test_dashboard_paged_model_dto.py test/test_dashboards_api.py +test/test_data_complete_multipart_upload_request.py +test/test_data_complete_multipart_upload_response.py +test/test_data_create_multipart_upload_response.py +test/test_data_create_upload_response.py +test/test_data_dump_api.py +test/test_data_dump_job_request.py +test/test_data_dump_request.py +test/test_data_permission_content_dto.py +test/test_data_permission_dto.py +test/test_data_permission_paged_model_dto.py +test/test_data_permissions_api.py +test/test_data_pull_job_request.py +test/test_data_pull_request.py +test/test_data_pull_request_csv_options.py +test/test_data_pull_request_https_upload.py +test/test_data_pull_request_s3_upload.py +test/test_data_source_dto.py +test/test_data_source_paged_model_dto.py +test/test_data_sources_api.py +test/test_data_upload200_response.py +test/test_data_upload_api.py +test/test_dataset_dto.py +test/test_dataset_dwh_type_dto.py +test/test_dataset_h3_grid_type_dto.py +test/test_dataset_paged_model_dto.py +test/test_dataset_properties_dto.py +test/test_dataset_type.py +test/test_dataset_visualization_dto.py +test/test_dataset_vt_type_dto.py +test/test_datasets_api.py test/test_date_filter_default_value_type.py test/test_date_filter_dto.py test/test_date_range_function.py +test/test_date_range_function_function.py test/test_date_range_value.py +test/test_date_ranges_api.py test/test_default_distribution_dto.py test/test_default_selected_dto.py test/test_default_values_date_dto.py @@ -247,17 +789,102 @@ test/test_default_values_histogram_dto.py test/test_default_values_indicator_dto.py test/test_default_values_multi_select_dto.py test/test_default_values_single_select_dto.py +test/test_display_options_dto.py test/test_distribution_dto.py +test/test_double_counting_warnings.py +test/test_dwh_abstract_property.py +test/test_dwh_date_range_request.py +test/test_dwh_date_range_request_filter.py +test/test_dwh_date_range_response.py +test/test_dwh_date_range_response_content_inner.py +test/test_dwh_foreign_key_dto.py +test/test_dwh_geometry_dto.py +test/test_dwh_metric_range_response.py +test/test_dwh_metric_range_response_content_inner.py +test/test_dwh_metric_values_distribution_response.py +test/test_dwh_metric_values_distribution_response_content_inner.py +test/test_dwh_metric_values_distribution_response_content_inner_content_inner.py +test/test_dwh_overlaps_request.py +test/test_dwh_overlaps_response.py +test/test_dwh_overlaps_response_content_inner.py +test/test_dwh_overlaps_response_content_inner_results_inner.py +test/test_dwh_property_dto.py +test/test_dwh_property_values_distribution_request.py +test/test_dwh_property_values_request.py +test/test_dwh_query_function_types.py +test/test_dwh_query_metric_type.py +test/test_dwh_query_number_type.py +test/test_dwh_query_property_type.py +test/test_dwh_query_property_types.py +test/test_dwh_query_request.py +test/test_dwh_query_request1.py +test/test_execution_context.py +test/test_execution_detail.py +test/test_explain_api.py +test/test_export_api.py +test/test_export_content_dto.py +test/test_export_dto.py +test/test_export_job_request.py test/test_export_link_dto.py +test/test_export_paged_model_dto.py +test/test_export_request.py +test/test_export_request_csv_options.py +test/test_exports_api.py test/test_feature_attribute_dto.py test/test_feature_filter_dto.py +test/test_feature_function_dto.py +test/test_feature_property_dto.py +test/test_feature_property_type.py +test/test_feature_text_dto.py test/test_filter_abstract_type.py +test/test_filter_by.py +test/test_filter_by_attribute.py +test/test_filter_by_boolean.py +test/test_filter_by_comp.py +test/test_filter_by_in.py +test/test_filter_by_in1.py +test/test_filter_by_unary.py test/test_format_dto.py +test/test_function_agg_type_general.py +test/test_function_arithm_type_general.py +test/test_function_condition_type_general.py +test/test_function_date_trunc.py +test/test_function_date_truncate_options.py +test/test_function_distance.py +test/test_function_distance_options.py +test/test_function_h3_grid.py +test/test_function_h3_grid_options.py +test/test_function_interval.py +test/test_function_ntile.py +test/test_function_ntile_content_inner.py +test/test_function_ntile_options.py +test/test_function_percent_to_total_type_general.py +test/test_function_percentile.py +test/test_function_property_type.py +test/test_function_rank.py +test/test_function_round_type_general.py +test/test_function_row_number.py +test/test_function_today.py +test/test_geosearch_paged_model_dto.py +test/test_get_account_by_account_id200_response.py +test/test_get_organizations200_response.py +test/test_get_project_members200_response.py test/test_global_date_filter_dto.py test/test_google_earth_dto.py test/test_google_satellite_dto.py test/test_google_street_view_dto.py +test/test_granularity_category_dto.py +test/test_having.py +test/test_having1.py +test/test_having_comp.py +test/test_having_in.py +test/test_having_in1.py +test/test_having_unary.py +test/test_highlight_dto.py test/test_histogram_filter_dto.py +test/test_hit_highlight.py +test/test_import_project_job_request.py +test/test_import_project_request.py test/test_indicator_content_dto.py test/test_indicator_drill_content_dto.py test/test_indicator_drill_dto.py @@ -271,10 +898,19 @@ test/test_indicator_link_dto_block_rows_inner.py test/test_indicator_paged_model_dto.py test/test_indicator_visualizations_dto.py test/test_indicators_api.py +test/test_invitation_api.py +test/test_invitation_dto.py +test/test_invitation_paged_model_dto.py +test/test_isochrone_api.py test/test_isochrone_dto.py +test/test_isochrone_paged_model_dto.py +test/test_job_detail_response.py +test/test_job_history_paged_model_dto.py +test/test_jobs_api.py test/test_layer_dto.py test/test_layer_dto_datasets_inner.py test/test_layer_dto_datasets_inner_attribute_styles_inner.py +test/test_linked_layer_dto.py test/test_mandatory_keys_for_pagable_response.py test/test_map_content_dto.py test/test_map_content_dto_base_layer.py @@ -288,24 +924,96 @@ test/test_map_paged_model_dto.py test/test_maps_api.py test/test_mapycz_ortophoto_dto.py test/test_mapycz_panorama_dto.py +test/test_marker_content_dto.py +test/test_marker_content_dto_property_filters_inner.py +test/test_marker_dto.py +test/test_marker_link_dto.py +test/test_marker_paged_model_dto.py +test/test_marker_selector_content_dto.py +test/test_marker_selector_content_dto_keep_filtered.py +test/test_marker_selector_dto.py +test/test_marker_selector_paged_model_dto.py +test/test_marker_selectors_api.py +test/test_markers_api.py test/test_max_value_dto.py test/test_measure_dto.py +test/test_members_api.py +test/test_membership_dto.py +test/test_membership_paged_model_dto.py +test/test_metric_dto.py +test/test_metric_paged_model_dto.py +test/test_metric_ranges_api.py +test/test_metrics_api.py test/test_multi_select_filter_dto.py +test/test_new_account_dto.py +test/test_order_by.py test/test_order_by_dto.py +test/test_organization_paged_model_dto.py +test/test_organization_response_dto.py +test/test_organizations_api.py +test/test_output_dto.py +test/test_overlaps_api.py +test/test_part_e_tag.py +test/test_password_change_dto.py +test/test_position_dto.py +test/test_project_invitations_api.py +test/test_project_paged_model_dto.py +test/test_project_response_dto.py +test/test_project_settings_api.py +test/test_project_settings_content_dto.py +test/test_project_settings_dto.py +test/test_project_settings_paged_model_dto.py +test/test_project_template_dto.py +test/test_projects_api.py +test/test_property_filter_compare_dto.py +test/test_property_filter_in_dto.py +test/test_property_values_api.py +test/test_property_values_distribution_api.py +test/test_property_values_response.py +test/test_property_values_response_content_inner.py +test/test_queries_api.py +test/test_queries_response.py +test/test_query_hit_dto.py +test/test_query_response.py +test/test_query_response_item_wrapper.py test/test_ranking_dto.py test/test_relations_dto.py +test/test_reset_password_dto.py +test/test_restricted_account_dto.py +test/test_result_set_filter.py +test/test_result_set_filter_comp.py +test/test_result_set_filter_in.py +test/test_result_set_filter_unary.py test/test_scale_options_dto.py +test/test_search_api.py +test/test_search_query_hit.py +test/test_search_query_hit_id.py +test/test_search_query_response.py +test/test_send_reset_password_dto.py test/test_single_select_filter_dto.py test/test_static_scale_option_dto.py test/test_static_scale_option_dto_breaks.py test/test_style_dto.py +test/test_submit_job_execution_request.py +test/test_template_dataset_dto.py test/test_time_series_dto.py test/test_token_request_dto.py test/test_token_response_dto.py +test/test_truncate_job_request.py +test/test_update_invitation.py +test/test_update_membership.py +test/test_update_organization_dto.py +test/test_update_project_dto.py +test/test_validate_job_request.py +test/test_validate_request.py +test/test_value_option_dto.py test/test_variable_dto.py +test/test_variable_type.py +test/test_variable_value.py test/test_variables_dto.py test/test_view_content_dto.py test/test_view_dto.py test/test_view_paged_model_dto.py test/test_views_api.py +test/test_zoom_dto.py tox.ini diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index b23eb27..5f84a81 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.11.0 +7.12.0 diff --git a/.openapi-generator/openapi.yaml-python-client.sha256 b/.openapi-generator/openapi.yaml-python-client.sha256 index 65a4202..b4cce1e 100644 --- a/.openapi-generator/openapi.yaml-python-client.sha256 +++ b/.openapi-generator/openapi.yaml-python-client.sha256 @@ -1 +1 @@ -671b96ab20133bd90ad16f0a156998e01c0d58bacb6e850ea5dfcb64a15101ea \ No newline at end of file +78f37f8f88e935dc52557d1ef60ba426953a0eee9dc2103ed910623df255fbed \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ae1aaf0..6fcf0d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,4 +14,4 @@ install: - "pip install -r requirements.txt" - "pip install -r test-requirements.txt" # command to run tests -script: pytest --cov=openapi_client +script: pytest --cov=cm_python_openapi_sdk diff --git a/README.md b/README.md index 805986a..2ebfff5 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,22 @@ # cm-python-openapi-sdk -No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) +CleverMaps REST API provides access to location intelligence and geospatial analytics platform. + +### Main capabilities include: +- Project and user access management +- Multidimensional data model and metrics management +- Data upload and exports +- Ad-hoc analysis of geospatial data +- Full text and geographic search +- Configuration of CleverMaps Studio visualizations + This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 1.0.0 - Package version: 1.0.0 -- Generator version: 7.11.0 +- Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen +For more information, please visit [https://docs.clevermaps.io](https://docs.clevermaps.io) ## Requirements. @@ -75,18 +85,15 @@ configuration = cm_python_openapi_sdk.Configuration( # 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) + api_instance = cm_python_openapi_sdk.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + account_onboarding_parameters = cm_python_openapi_sdk.AccountOnboardingParameters() # AccountOnboardingParameters | (optional) 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) + # Change account onboarding + api_instance.change_onboarding(account_id, account_onboarding_parameters=account_onboarding_parameters) except ApiException as e: - print("Exception when calling AttributeStylesApi->create_attribute_style: %s\n" % e) + print("Exception when calling AccountsApi->change_onboarding: %s\n" % e) ``` @@ -96,29 +103,51 @@ All URIs are relative to *https://staging.dev.clevermaps.io/rest* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*AccountsApi* | [**change_onboarding**](docs/AccountsApi.md#change_onboarding) | **PUT** /accounts/{accountId}/onboarding | Change account onboarding +*AccountsApi* | [**change_password**](docs/AccountsApi.md#change_password) | **PUT** /accounts/{accountId}/password | Change password +*AccountsApi* | [**change_preferences**](docs/AccountsApi.md#change_preferences) | **PUT** /accounts/{accountId}/preferences | Change account preferences +*AccountsApi* | [**delete_account_by_id**](docs/AccountsApi.md#delete_account_by_id) | **DELETE** /accounts/{accountId} | Delete account. +*AccountsApi* | [**get_account_by_account_id**](docs/AccountsApi.md#get_account_by_account_id) | **GET** /accounts/{accountId} | Get account by accountId +*AccountsApi* | [**get_account_by_email**](docs/AccountsApi.md#get_account_by_email) | **GET** /accounts | Find if account with email exists. +*AccountsApi* | [**get_current_account**](docs/AccountsApi.md#get_current_account) | **GET** /accounts/current | Get current account. +*AccountsApi* | [**register_account**](docs/AccountsApi.md#register_account) | **POST** /accounts | Register new account +*AccountsResetPasswordApi* | [**reset_password_with_token**](docs/AccountsResetPasswordApi.md#reset_password_with_token) | **POST** /accounts/passwordReset/{passwordResetToken} | Finish reset password with token +*AccountsResetPasswordApi* | [**send_reset_password_token**](docs/AccountsResetPasswordApi.md#send_reset_password_token) | **POST** /accounts/passwordReset | Ask for reset password token +*AccountsResetPasswordApi* | [**verify_reset_password_token**](docs/AccountsResetPasswordApi.md#verify_reset_password_token) | **GET** /accounts/passwordReset/{passwordResetToken} | Verify reset password token is valid *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 +*AuditLogApi* | [**get_audit_log_event**](docs/AuditLogApi.md#get_audit_log_event) | **GET** /auditlog/{eventId} | Get audit log event by eventId +*AuditLogApi* | [**get_audit_logs**](docs/AuditLogApi.md#get_audit_logs) | **GET** /auditlog | Get audit logs for project *AuthenticationApi* | [**get_token**](docs/AuthenticationApi.md#get_token) | **POST** /oauth/token | Get bearer token +*AvailableDatasetsApi* | [**available_datasets**](docs/AvailableDatasetsApi.md#available_datasets) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/availableDatasets | +*CachesApi* | [**get_cache**](docs/CachesApi.md#get_cache) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/caches/{dwhMaterializedCacheId} | *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 +*DataDumpApi* | [**get_data_dump**](docs/DataDumpApi.md#get_data_dump) | **GET** /projects/{projectId}/data/dumps/{dumpId} | Get data dump file *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 +*DataUploadApi* | [**complete_multipart_upload**](docs/DataUploadApi.md#complete_multipart_upload) | **PUT** /projects/{projectId}/dwh/data/uploads/{id} | Complete multipart upload +*DataUploadApi* | [**data_upload**](docs/DataUploadApi.md#data_upload) | **POST** /projects/{projectId}/dwh/data/uploads | Upload CSV file to dataset *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 +*DateRangesApi* | [**accept_date_ranges**](docs/DateRangesApi.md#accept_date_ranges) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/dateRanges | Accept date ranges +*DateRangesApi* | [**get_date_ranges**](docs/DateRangesApi.md#get_date_ranges) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/dateRanges/{dwhCacheId} | Get date ranges +*ExplainApi* | [**explain**](docs/ExplainApi.md#explain) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/explain | Explain query +*ExportApi* | [**get_exported_data**](docs/ExportApi.md#get_exported_data) | **GET** /projects/{projectId}/export/{exportId} | Get exported data *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 @@ -134,10 +163,12 @@ 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 | +*InvitationApi* | [**accept_project_invitation**](docs/InvitationApi.md#accept_project_invitation) | **POST** /invitations/{invitationHash} | Accept invitation. +*InvitationApi* | [**get_invitation**](docs/InvitationApi.md#get_invitation) | **GET** /invitations/{invitationHash} | Get detail of an invitation. +*IsochroneApi* | [**get_isochrone**](docs/IsochroneApi.md#get_isochrone) | **GET** /isochrone | Get isochrone +*JobsApi* | [**get_job_status**](docs/JobsApi.md#get_job_status) | **GET** /jobs/{jobId} | Get job status +*JobsApi* | [**get_jobs_history**](docs/JobsApi.md#get_jobs_history) | **GET** /jobs/history | Get jobs history +*JobsApi* | [**submit_job_execution**](docs/JobsApi.md#submit_job_execution) | **POST** /jobs | Submit job execution *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. @@ -158,6 +189,8 @@ Class | Method | HTTP request | Description *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. +*MetricRangesApi* | [**accept_metric_ranges**](docs/MetricRangesApi.md#accept_metric_ranges) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/metricRanges | Accept metric ranges +*MetricRangesApi* | [**get_metric_ranges**](docs/MetricRangesApi.md#get_metric_ranges) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/metricRanges/{dwhCacheId} | Get metric ranges *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. @@ -168,23 +201,31 @@ Class | Method | HTTP request | Description *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 +*OverlapsApi* | [**accept_overlaps**](docs/OverlapsApi.md#accept_overlaps) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/overlaps | Accept overlaps +*OverlapsApi* | [**get_overlaps**](docs/OverlapsApi.md#get_overlaps) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/overlaps/{dwhCacheId} | Get overlaps *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. +*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 *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. +*PropertyValuesApi* | [**accept_property_values**](docs/PropertyValuesApi.md#accept_property_values) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/propertyValues | Accept property values +*PropertyValuesApi* | [**get_property_values**](docs/PropertyValuesApi.md#get_property_values) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/propertyValues/{dwhCacheId} | Get property values +*PropertyValuesDistributionApi* | [**accept_property_values_distribution**](docs/PropertyValuesDistributionApi.md#accept_property_values_distribution) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/propertyValuesDistributions | +*PropertyValuesDistributionApi* | [**get_property_values_distribution**](docs/PropertyValuesDistributionApi.md#get_property_values_distribution) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/propertyValuesDistributions/{dwhCacheId} | +*QueriesApi* | [**accept_queries**](docs/QueriesApi.md#accept_queries) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/queries | Accept queries +*QueriesApi* | [**get_queries**](docs/QueriesApi.md#get_queries) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/queries/{dwhCacheId} | Get queries +*SearchApi* | [**full_text_search**](docs/SearchApi.md#full_text_search) | **GET** /projects/{projectId}/search | Full text search on all internal project data. +*SearchApi* | [**geographic_search**](docs/SearchApi.md#geographic_search) | **GET** /geosearch | Geographic search *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 @@ -194,6 +235,11 @@ Class | Method | HTTP request | Description ## Documentation For Models + - [AccountDTO](docs/AccountDTO.md) + - [AccountJobInfo](docs/AccountJobInfo.md) + - [AccountOnboardingParameters](docs/AccountOnboardingParameters.md) + - [AccountPreferences](docs/AccountPreferences.md) + - [AccountUtmParameters](docs/AccountUtmParameters.md) - [ActiveDateFilterDTO](docs/ActiveDateFilterDTO.md) - [ActiveFeatureFilterDTO](docs/ActiveFeatureFilterDTO.md) - [ActiveFilterAbstractType](docs/ActiveFilterAbstractType.md) @@ -210,19 +256,29 @@ Class | Method | HTTP request | Description - [AttributeStyleDTO](docs/AttributeStyleDTO.md) - [AttributeStyleFallbackCategoryDTO](docs/AttributeStyleFallbackCategoryDTO.md) - [AttributeStylePagedModelDTO](docs/AttributeStylePagedModelDTO.md) + - [AuditLogPagedResource](docs/AuditLogPagedResource.md) + - [AuditLogPagedResourcePage](docs/AuditLogPagedResourcePage.md) + - [AuditLogPagedResourcePageLastEvaluatedKey](docs/AuditLogPagedResourcePageLastEvaluatedKey.md) + - [AuditLogSingleResource](docs/AuditLogSingleResource.md) + - [AvailableDatasetsRequest](docs/AvailableDatasetsRequest.md) + - [AvailableDatasetsResponse](docs/AvailableDatasetsResponse.md) + - [AvailableDatasetsResponseContentInner](docs/AvailableDatasetsResponseContentInner.md) - [BlockAbstractType](docs/BlockAbstractType.md) - [BlockRowAbstractType](docs/BlockRowAbstractType.md) - [BlockRowDTO](docs/BlockRowDTO.md) + - [BoundingBoxDTO](docs/BoundingBoxDTO.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) + - [BulkPointQueryRequestPointQueriesIsochrone](docs/BulkPointQueryRequestPointQueriesIsochrone.md) + - [BulkPointQueryRequestPointQueriesIsochroneOptions](docs/BulkPointQueryRequestPointQueriesIsochroneOptions.md) + - [BulkPointQueryRequestPointQueriesNearest](docs/BulkPointQueryRequestPointQueriesNearest.md) - [BulkPointQueryRequestPointsInner](docs/BulkPointQueryRequestPointsInner.md) - [CategoriesDTO](docs/CategoriesDTO.md) - [CategoryDTO](docs/CategoryDTO.md) - [CenterDTO](docs/CenterDTO.md) + - [CentralPoint](docs/CentralPoint.md) - [CreateInvitation](docs/CreateInvitation.md) - [CreateMembershipDTO](docs/CreateMembershipDTO.md) - [CreateOrganizationDTO](docs/CreateOrganizationDTO.md) @@ -232,6 +288,10 @@ Class | Method | HTTP request | Description - [DashboardDTO](docs/DashboardDTO.md) - [DashboardDatasetPropertiesDTO](docs/DashboardDatasetPropertiesDTO.md) - [DashboardPagedModelDTO](docs/DashboardPagedModelDTO.md) + - [DataCompleteMultipartUploadRequest](docs/DataCompleteMultipartUploadRequest.md) + - [DataCompleteMultipartUploadResponse](docs/DataCompleteMultipartUploadResponse.md) + - [DataCreateMultipartUploadResponse](docs/DataCreateMultipartUploadResponse.md) + - [DataCreateUploadResponse](docs/DataCreateUploadResponse.md) - [DataDumpJobRequest](docs/DataDumpJobRequest.md) - [DataDumpRequest](docs/DataDumpRequest.md) - [DataPermissionContentDTO](docs/DataPermissionContentDTO.md) @@ -244,6 +304,7 @@ Class | Method | HTTP request | Description - [DataPullRequestS3Upload](docs/DataPullRequestS3Upload.md) - [DataSourceDTO](docs/DataSourceDTO.md) - [DataSourcePagedModelDTO](docs/DataSourcePagedModelDTO.md) + - [DataUpload200Response](docs/DataUpload200Response.md) - [DatasetDTO](docs/DatasetDTO.md) - [DatasetDwhTypeDTO](docs/DatasetDwhTypeDTO.md) - [DatasetH3GridTypeDTO](docs/DatasetH3GridTypeDTO.md) @@ -255,6 +316,7 @@ Class | Method | HTTP request | Description - [DateFilterDTO](docs/DateFilterDTO.md) - [DateFilterDefaultValueType](docs/DateFilterDefaultValueType.md) - [DateRangeFunction](docs/DateRangeFunction.md) + - [DateRangeFunctionFunction](docs/DateRangeFunctionFunction.md) - [DateRangeValue](docs/DateRangeValue.md) - [DefaultDistributionDTO](docs/DefaultDistributionDTO.md) - [DefaultSelectedDTO](docs/DefaultSelectedDTO.md) @@ -266,14 +328,35 @@ Class | Method | HTTP request | Description - [DefaultValuesSingleSelectDTO](docs/DefaultValuesSingleSelectDTO.md) - [DisplayOptionsDTO](docs/DisplayOptionsDTO.md) - [DistributionDTO](docs/DistributionDTO.md) + - [DoubleCountingWarnings](docs/DoubleCountingWarnings.md) - [DwhAbstractProperty](docs/DwhAbstractProperty.md) + - [DwhDateRangeRequest](docs/DwhDateRangeRequest.md) + - [DwhDateRangeRequestFilter](docs/DwhDateRangeRequestFilter.md) + - [DwhDateRangeResponse](docs/DwhDateRangeResponse.md) + - [DwhDateRangeResponseContentInner](docs/DwhDateRangeResponseContentInner.md) - [DwhForeignKeyDTO](docs/DwhForeignKeyDTO.md) - [DwhGeometryDTO](docs/DwhGeometryDTO.md) + - [DwhMetricRangeResponse](docs/DwhMetricRangeResponse.md) + - [DwhMetricRangeResponseContentInner](docs/DwhMetricRangeResponseContentInner.md) + - [DwhMetricValuesDistributionResponse](docs/DwhMetricValuesDistributionResponse.md) + - [DwhMetricValuesDistributionResponseContentInner](docs/DwhMetricValuesDistributionResponseContentInner.md) + - [DwhMetricValuesDistributionResponseContentInnerContentInner](docs/DwhMetricValuesDistributionResponseContentInnerContentInner.md) + - [DwhOverlapsRequest](docs/DwhOverlapsRequest.md) + - [DwhOverlapsResponse](docs/DwhOverlapsResponse.md) + - [DwhOverlapsResponseContentInner](docs/DwhOverlapsResponseContentInner.md) + - [DwhOverlapsResponseContentInnerResultsInner](docs/DwhOverlapsResponseContentInnerResultsInner.md) - [DwhPropertyDTO](docs/DwhPropertyDTO.md) + - [DwhPropertyValuesDistributionRequest](docs/DwhPropertyValuesDistributionRequest.md) + - [DwhPropertyValuesRequest](docs/DwhPropertyValuesRequest.md) - [DwhQueryFunctionTypes](docs/DwhQueryFunctionTypes.md) - [DwhQueryMetricType](docs/DwhQueryMetricType.md) - [DwhQueryNumberType](docs/DwhQueryNumberType.md) - [DwhQueryPropertyType](docs/DwhQueryPropertyType.md) + - [DwhQueryPropertyTypes](docs/DwhQueryPropertyTypes.md) + - [DwhQueryRequest](docs/DwhQueryRequest.md) + - [DwhQueryRequest1](docs/DwhQueryRequest1.md) + - [ExecutionContext](docs/ExecutionContext.md) + - [ExecutionDetail](docs/ExecutionDetail.md) - [ExportContentDTO](docs/ExportContentDTO.md) - [ExportDTO](docs/ExportDTO.md) - [ExportJobRequest](docs/ExportJobRequest.md) @@ -288,19 +371,26 @@ Class | Method | HTTP request | Description - [FeaturePropertyType](docs/FeaturePropertyType.md) - [FeatureTextDTO](docs/FeatureTextDTO.md) - [FilterAbstractType](docs/FilterAbstractType.md) + - [FilterBy](docs/FilterBy.md) + - [FilterByAttribute](docs/FilterByAttribute.md) + - [FilterByBoolean](docs/FilterByBoolean.md) + - [FilterByComp](docs/FilterByComp.md) + - [FilterByIn](docs/FilterByIn.md) + - [FilterByIn1](docs/FilterByIn1.md) + - [FilterByUnary](docs/FilterByUnary.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) + - [FunctionDateTruncateOptions](docs/FunctionDateTruncateOptions.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) + - [FunctionNtileContentInner](docs/FunctionNtileContentInner.md) - [FunctionNtileOptions](docs/FunctionNtileOptions.md) - [FunctionPercentToTotalTypeGeneral](docs/FunctionPercentToTotalTypeGeneral.md) - [FunctionPercentile](docs/FunctionPercentile.md) @@ -309,6 +399,8 @@ Class | Method | HTTP request | Description - [FunctionRoundTypeGeneral](docs/FunctionRoundTypeGeneral.md) - [FunctionRowNumber](docs/FunctionRowNumber.md) - [FunctionToday](docs/FunctionToday.md) + - [GeosearchPagedModelDTO](docs/GeosearchPagedModelDTO.md) + - [GetAccountByAccountId200Response](docs/GetAccountByAccountId200Response.md) - [GetOrganizations200Response](docs/GetOrganizations200Response.md) - [GetProjectMembers200Response](docs/GetProjectMembers200Response.md) - [GlobalDateFilterDTO](docs/GlobalDateFilterDTO.md) @@ -316,7 +408,15 @@ Class | Method | HTTP request | Description - [GoogleSatelliteDTO](docs/GoogleSatelliteDTO.md) - [GoogleStreetViewDTO](docs/GoogleStreetViewDTO.md) - [GranularityCategoryDTO](docs/GranularityCategoryDTO.md) + - [Having](docs/Having.md) + - [Having1](docs/Having1.md) + - [HavingComp](docs/HavingComp.md) + - [HavingIn](docs/HavingIn.md) + - [HavingIn1](docs/HavingIn1.md) + - [HavingUnary](docs/HavingUnary.md) + - [HighlightDTO](docs/HighlightDTO.md) - [HistogramFilterDTO](docs/HistogramFilterDTO.md) + - [HitHighlight](docs/HitHighlight.md) - [ImportProjectJobRequest](docs/ImportProjectJobRequest.md) - [ImportProjectRequest](docs/ImportProjectRequest.md) - [IndicatorContentDTO](docs/IndicatorContentDTO.md) @@ -368,10 +468,15 @@ Class | Method | HTTP request | Description - [MetricDTO](docs/MetricDTO.md) - [MetricPagedModelDTO](docs/MetricPagedModelDTO.md) - [MultiSelectFilterDTO](docs/MultiSelectFilterDTO.md) + - [NewAccountDTO](docs/NewAccountDTO.md) + - [OrderBy](docs/OrderBy.md) - [OrderByDTO](docs/OrderByDTO.md) - [OrganizationPagedModelDTO](docs/OrganizationPagedModelDTO.md) - [OrganizationResponseDTO](docs/OrganizationResponseDTO.md) - [OutputDTO](docs/OutputDTO.md) + - [PartETag](docs/PartETag.md) + - [PasswordChangeDTO](docs/PasswordChangeDTO.md) + - [PositionDTO](docs/PositionDTO.md) - [ProjectPagedModelDTO](docs/ProjectPagedModelDTO.md) - [ProjectResponseDTO](docs/ProjectResponseDTO.md) - [ProjectSettingsContentDTO](docs/ProjectSettingsContentDTO.md) @@ -380,9 +485,25 @@ Class | Method | HTTP request | Description - [ProjectTemplateDTO](docs/ProjectTemplateDTO.md) - [PropertyFilterCompareDTO](docs/PropertyFilterCompareDTO.md) - [PropertyFilterInDTO](docs/PropertyFilterInDTO.md) + - [PropertyValuesResponse](docs/PropertyValuesResponse.md) + - [PropertyValuesResponseContentInner](docs/PropertyValuesResponseContentInner.md) + - [QueriesResponse](docs/QueriesResponse.md) + - [QueryHitDTO](docs/QueryHitDTO.md) + - [QueryResponse](docs/QueryResponse.md) + - [QueryResponseItemWrapper](docs/QueryResponseItemWrapper.md) - [RankingDTO](docs/RankingDTO.md) - [RelationsDTO](docs/RelationsDTO.md) + - [ResetPasswordDTO](docs/ResetPasswordDTO.md) + - [RestrictedAccountDTO](docs/RestrictedAccountDTO.md) + - [ResultSetFilter](docs/ResultSetFilter.md) + - [ResultSetFilterComp](docs/ResultSetFilterComp.md) + - [ResultSetFilterIn](docs/ResultSetFilterIn.md) + - [ResultSetFilterUnary](docs/ResultSetFilterUnary.md) - [ScaleOptionsDTO](docs/ScaleOptionsDTO.md) + - [SearchQueryHit](docs/SearchQueryHit.md) + - [SearchQueryHitId](docs/SearchQueryHitId.md) + - [SearchQueryResponse](docs/SearchQueryResponse.md) + - [SendResetPasswordDTO](docs/SendResetPasswordDTO.md) - [SingleSelectFilterDTO](docs/SingleSelectFilterDTO.md) - [StaticScaleOptionDTO](docs/StaticScaleOptionDTO.md) - [StaticScaleOptionDTOBreaks](docs/StaticScaleOptionDTOBreaks.md) @@ -402,6 +523,7 @@ Class | Method | HTTP request | Description - [ValueOptionDTO](docs/ValueOptionDTO.md) - [VariableDTO](docs/VariableDTO.md) - [VariableType](docs/VariableType.md) + - [VariableValue](docs/VariableValue.md) - [VariablesDTO](docs/VariablesDTO.md) - [ViewContentDTO](docs/ViewContentDTO.md) - [ViewDTO](docs/ViewDTO.md) @@ -422,6 +544,6 @@ Authentication schemes defined for the API: ## Author - +support@clevermaps.io diff --git a/cm_python_openapi_sdk/__init__.py b/cm_python_openapi_sdk/__init__.py index b403ab1..dd9daf0 100644 --- a/cm_python_openapi_sdk/__init__.py +++ b/cm_python_openapi_sdk/__init__.py @@ -5,9 +5,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,27 +18,43 @@ __version__ = "1.0.0" # import apis into sdk package +from cm_python_openapi_sdk.api.accounts_api import AccountsApi +from cm_python_openapi_sdk.api.accounts_reset_password_api import AccountsResetPasswordApi from cm_python_openapi_sdk.api.attribute_styles_api import AttributeStylesApi +from cm_python_openapi_sdk.api.audit_log_api import AuditLogApi from cm_python_openapi_sdk.api.authentication_api import AuthenticationApi +from cm_python_openapi_sdk.api.available_datasets_api import AvailableDatasetsApi +from cm_python_openapi_sdk.api.caches_api import CachesApi from cm_python_openapi_sdk.api.dashboards_api import DashboardsApi +from cm_python_openapi_sdk.api.data_dump_api import DataDumpApi 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.data_upload_api import DataUploadApi from cm_python_openapi_sdk.api.datasets_api import DatasetsApi +from cm_python_openapi_sdk.api.date_ranges_api import DateRangesApi +from cm_python_openapi_sdk.api.explain_api import ExplainApi +from cm_python_openapi_sdk.api.export_api import ExportApi 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.invitation_api import InvitationApi 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.metric_ranges_api import MetricRangesApi 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.overlaps_api import OverlapsApi from cm_python_openapi_sdk.api.project_invitations_api import ProjectInvitationsApi +from cm_python_openapi_sdk.api.project_settings_api import ProjectSettingsApi 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.property_values_api import PropertyValuesApi +from cm_python_openapi_sdk.api.property_values_distribution_api import PropertyValuesDistributionApi +from cm_python_openapi_sdk.api.queries_api import QueriesApi +from cm_python_openapi_sdk.api.search_api import SearchApi from cm_python_openapi_sdk.api.views_api import ViewsApi # import ApiClient @@ -52,6 +69,11 @@ from cm_python_openapi_sdk.exceptions import ApiException # import models into sdk package +from cm_python_openapi_sdk.models.account_dto import AccountDTO +from cm_python_openapi_sdk.models.account_job_info import AccountJobInfo +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +from cm_python_openapi_sdk.models.account_utm_parameters import AccountUtmParameters 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 @@ -68,19 +90,29 @@ 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.audit_log_paged_resource import AuditLogPagedResource +from cm_python_openapi_sdk.models.audit_log_paged_resource_page import AuditLogPagedResourcePage +from cm_python_openapi_sdk.models.audit_log_paged_resource_page_last_evaluated_key import AuditLogPagedResourcePageLastEvaluatedKey +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource +from cm_python_openapi_sdk.models.available_datasets_request import AvailableDatasetsRequest +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse +from cm_python_openapi_sdk.models.available_datasets_response_content_inner import AvailableDatasetsResponseContentInner 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.bounding_box_dto import BoundingBoxDTO 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_point_queries_isochrone import BulkPointQueryRequestPointQueriesIsochrone +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_isochrone_options import BulkPointQueryRequestPointQueriesIsochroneOptions +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_nearest import BulkPointQueryRequestPointQueriesNearest 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.central_point import CentralPoint 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 @@ -90,6 +122,10 @@ 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_complete_multipart_upload_request import DataCompleteMultipartUploadRequest +from cm_python_openapi_sdk.models.data_complete_multipart_upload_response import DataCompleteMultipartUploadResponse +from cm_python_openapi_sdk.models.data_create_multipart_upload_response import DataCreateMultipartUploadResponse +from cm_python_openapi_sdk.models.data_create_upload_response import DataCreateUploadResponse 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 @@ -102,6 +138,7 @@ 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.data_upload200_response import DataUpload200Response 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 @@ -113,6 +150,7 @@ 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_function_function import DateRangeFunctionFunction 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 @@ -124,14 +162,35 @@ 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.double_counting_warnings import DoubleCountingWarnings from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty +from cm_python_openapi_sdk.models.dwh_date_range_request import DwhDateRangeRequest +from cm_python_openapi_sdk.models.dwh_date_range_request_filter import DwhDateRangeRequestFilter +from cm_python_openapi_sdk.models.dwh_date_range_response import DwhDateRangeResponse +from cm_python_openapi_sdk.models.dwh_date_range_response_content_inner import DwhDateRangeResponseContentInner 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_metric_range_response import DwhMetricRangeResponse +from cm_python_openapi_sdk.models.dwh_metric_range_response_content_inner import DwhMetricRangeResponseContentInner +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response import DwhMetricValuesDistributionResponse +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner import DwhMetricValuesDistributionResponseContentInner +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner_content_inner import DwhMetricValuesDistributionResponseContentInnerContentInner +from cm_python_openapi_sdk.models.dwh_overlaps_request import DwhOverlapsRequest +from cm_python_openapi_sdk.models.dwh_overlaps_response import DwhOverlapsResponse +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner import DwhOverlapsResponseContentInner +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner_results_inner import DwhOverlapsResponseContentInnerResultsInner from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO +from cm_python_openapi_sdk.models.dwh_property_values_distribution_request import DwhPropertyValuesDistributionRequest +from cm_python_openapi_sdk.models.dwh_property_values_request import DwhPropertyValuesRequest 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.dwh_query_property_types import DwhQueryPropertyTypes +from cm_python_openapi_sdk.models.dwh_query_request import DwhQueryRequest +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.execution_context import ExecutionContext +from cm_python_openapi_sdk.models.execution_detail import ExecutionDetail 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 @@ -146,19 +205,26 @@ 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.filter_by import FilterBy +from cm_python_openapi_sdk.models.filter_by_attribute import FilterByAttribute +from cm_python_openapi_sdk.models.filter_by_boolean import FilterByBoolean +from cm_python_openapi_sdk.models.filter_by_comp import FilterByComp +from cm_python_openapi_sdk.models.filter_by_in import FilterByIn +from cm_python_openapi_sdk.models.filter_by_in1 import FilterByIn1 +from cm_python_openapi_sdk.models.filter_by_unary import FilterByUnary 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_date_truncate_options import FunctionDateTruncateOptions 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_content_inner import FunctionNtileContentInner 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 @@ -167,6 +233,8 @@ 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.geosearch_paged_model_dto import GeosearchPagedModelDTO +from cm_python_openapi_sdk.models.get_account_by_account_id200_response import GetAccountByAccountId200Response 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 @@ -174,7 +242,15 @@ 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.having import Having +from cm_python_openapi_sdk.models.having1 import Having1 +from cm_python_openapi_sdk.models.having_comp import HavingComp +from cm_python_openapi_sdk.models.having_in import HavingIn +from cm_python_openapi_sdk.models.having_in1 import HavingIn1 +from cm_python_openapi_sdk.models.having_unary import HavingUnary +from cm_python_openapi_sdk.models.highlight_dto import HighlightDTO from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO +from cm_python_openapi_sdk.models.hit_highlight import HitHighlight 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 @@ -226,10 +302,15 @@ 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.new_account_dto import NewAccountDTO +from cm_python_openapi_sdk.models.order_by import OrderBy 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.part_e_tag import PartETag +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO +from cm_python_openapi_sdk.models.position_dto import PositionDTO 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 @@ -238,9 +319,25 @@ 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.property_values_response import PropertyValuesResponse +from cm_python_openapi_sdk.models.property_values_response_content_inner import PropertyValuesResponseContentInner +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +from cm_python_openapi_sdk.models.query_hit_dto import QueryHitDTO +from cm_python_openapi_sdk.models.query_response import QueryResponse +from cm_python_openapi_sdk.models.query_response_item_wrapper import QueryResponseItemWrapper 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.reset_password_dto import ResetPasswordDTO +from cm_python_openapi_sdk.models.restricted_account_dto import RestrictedAccountDTO +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter +from cm_python_openapi_sdk.models.result_set_filter_comp import ResultSetFilterComp +from cm_python_openapi_sdk.models.result_set_filter_in import ResultSetFilterIn +from cm_python_openapi_sdk.models.result_set_filter_unary import ResultSetFilterUnary from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO +from cm_python_openapi_sdk.models.search_query_hit import SearchQueryHit +from cm_python_openapi_sdk.models.search_query_hit_id import SearchQueryHitId +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO 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 @@ -260,6 +357,7 @@ 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.variable_value import VariableValue 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 diff --git a/cm_python_openapi_sdk/api/__init__.py b/cm_python_openapi_sdk/api/__init__.py index 99da64c..0c9bfd3 100644 --- a/cm_python_openapi_sdk/api/__init__.py +++ b/cm_python_openapi_sdk/api/__init__.py @@ -1,26 +1,42 @@ # flake8: noqa # import apis into api package +from cm_python_openapi_sdk.api.accounts_api import AccountsApi +from cm_python_openapi_sdk.api.accounts_reset_password_api import AccountsResetPasswordApi from cm_python_openapi_sdk.api.attribute_styles_api import AttributeStylesApi +from cm_python_openapi_sdk.api.audit_log_api import AuditLogApi from cm_python_openapi_sdk.api.authentication_api import AuthenticationApi +from cm_python_openapi_sdk.api.available_datasets_api import AvailableDatasetsApi +from cm_python_openapi_sdk.api.caches_api import CachesApi from cm_python_openapi_sdk.api.dashboards_api import DashboardsApi +from cm_python_openapi_sdk.api.data_dump_api import DataDumpApi 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.data_upload_api import DataUploadApi from cm_python_openapi_sdk.api.datasets_api import DatasetsApi +from cm_python_openapi_sdk.api.date_ranges_api import DateRangesApi +from cm_python_openapi_sdk.api.explain_api import ExplainApi +from cm_python_openapi_sdk.api.export_api import ExportApi 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.invitation_api import InvitationApi 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.metric_ranges_api import MetricRangesApi 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.overlaps_api import OverlapsApi from cm_python_openapi_sdk.api.project_invitations_api import ProjectInvitationsApi +from cm_python_openapi_sdk.api.project_settings_api import ProjectSettingsApi 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.property_values_api import PropertyValuesApi +from cm_python_openapi_sdk.api.property_values_distribution_api import PropertyValuesDistributionApi +from cm_python_openapi_sdk.api.queries_api import QueriesApi +from cm_python_openapi_sdk.api.search_api import SearchApi from cm_python_openapi_sdk.api.views_api import ViewsApi diff --git a/cm_python_openapi_sdk/api/accounts_api.py b/cm_python_openapi_sdk/api/accounts_api.py new file mode 100644 index 0000000..5cbf360 --- /dev/null +++ b/cm_python_openapi_sdk/api/accounts_api.py @@ -0,0 +1,2193 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.account_dto import AccountDTO +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +from cm_python_openapi_sdk.models.get_account_by_account_id200_response import GetAccountByAccountId200Response +from cm_python_openapi_sdk.models.new_account_dto import NewAccountDTO +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO + +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 AccountsApi: + """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 change_onboarding( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_onboarding_parameters: Optional[AccountOnboardingParameters] = 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, + ) -> None: + """Change account onboarding + + Section of account profile for tracking onboarding steps for each user. It has two sections: - `introShown` - tracks the project views that were already visited by current user - `tipsShown` - list of unique tips that were already presented to current user **Security:** User is allowed to change only it's own onboarding. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_onboarding_parameters: + :type account_onboarding_parameters: AccountOnboardingParameters + :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._change_onboarding_serialize( + account_id=account_id, + account_onboarding_parameters=account_onboarding_parameters, + _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 change_onboarding_with_http_info( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_onboarding_parameters: Optional[AccountOnboardingParameters] = 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[None]: + """Change account onboarding + + Section of account profile for tracking onboarding steps for each user. It has two sections: - `introShown` - tracks the project views that were already visited by current user - `tipsShown` - list of unique tips that were already presented to current user **Security:** User is allowed to change only it's own onboarding. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_onboarding_parameters: + :type account_onboarding_parameters: AccountOnboardingParameters + :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._change_onboarding_serialize( + account_id=account_id, + account_onboarding_parameters=account_onboarding_parameters, + _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 change_onboarding_without_preload_content( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_onboarding_parameters: Optional[AccountOnboardingParameters] = 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: + """Change account onboarding + + Section of account profile for tracking onboarding steps for each user. It has two sections: - `introShown` - tracks the project views that were already visited by current user - `tipsShown` - list of unique tips that were already presented to current user **Security:** User is allowed to change only it's own onboarding. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_onboarding_parameters: + :type account_onboarding_parameters: AccountOnboardingParameters + :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._change_onboarding_serialize( + account_id=account_id, + account_onboarding_parameters=account_onboarding_parameters, + _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 _change_onboarding_serialize( + self, + account_id, + account_onboarding_parameters, + _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 account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if account_onboarding_parameters is not None: + _body_params = account_onboarding_parameters + + + + # 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='/accounts/{accountId}/onboarding', + 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 change_password( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + password_change_dto: Optional[PasswordChangeDTO] = 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, + ) -> None: + """Change password + + Set password for user Account. New password must match all of following restrictions: - minimal length 8 characters - must contains at least one uppercase character - must contains at least one lowercase character - must contains at least one numeric character **Security:** User is allowed to change only it's own password. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param password_change_dto: + :type password_change_dto: PasswordChangeDTO + :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._change_password_serialize( + account_id=account_id, + password_change_dto=password_change_dto, + _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, + '403': 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 change_password_with_http_info( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + password_change_dto: Optional[PasswordChangeDTO] = 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[None]: + """Change password + + Set password for user Account. New password must match all of following restrictions: - minimal length 8 characters - must contains at least one uppercase character - must contains at least one lowercase character - must contains at least one numeric character **Security:** User is allowed to change only it's own password. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param password_change_dto: + :type password_change_dto: PasswordChangeDTO + :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._change_password_serialize( + account_id=account_id, + password_change_dto=password_change_dto, + _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, + '403': 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 change_password_without_preload_content( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + password_change_dto: Optional[PasswordChangeDTO] = 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: + """Change password + + Set password for user Account. New password must match all of following restrictions: - minimal length 8 characters - must contains at least one uppercase character - must contains at least one lowercase character - must contains at least one numeric character **Security:** User is allowed to change only it's own password. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param password_change_dto: + :type password_change_dto: PasswordChangeDTO + :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._change_password_serialize( + account_id=account_id, + password_change_dto=password_change_dto, + _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, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _change_password_serialize( + self, + account_id, + password_change_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 account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if password_change_dto is not None: + _body_params = password_change_dto + + + + # 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='/accounts/{accountId}/password', + 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 change_preferences( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_preferences: Optional[AccountPreferences] = 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, + ) -> None: + """Change account preferences + + Preferences for user Account. Structure contains currently two keys: - language - preferred language for user (supported values: \"en\", \"cs\") - lastActiveProject - project that was last active for a user Both these preferences are used by CleverMaps Client JavaScript application and have no direct impact on backend behaviour. Updates the preferences by merge. If some of preference keys is not present, value of this key is not reset. **Security:** User is allowed to change only it's own preferences. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_preferences: + :type account_preferences: AccountPreferences + :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._change_preferences_serialize( + account_id=account_id, + account_preferences=account_preferences, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': 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 change_preferences_with_http_info( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_preferences: Optional[AccountPreferences] = 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[None]: + """Change account preferences + + Preferences for user Account. Structure contains currently two keys: - language - preferred language for user (supported values: \"en\", \"cs\") - lastActiveProject - project that was last active for a user Both these preferences are used by CleverMaps Client JavaScript application and have no direct impact on backend behaviour. Updates the preferences by merge. If some of preference keys is not present, value of this key is not reset. **Security:** User is allowed to change only it's own preferences. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_preferences: + :type account_preferences: AccountPreferences + :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._change_preferences_serialize( + account_id=account_id, + account_preferences=account_preferences, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': 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 change_preferences_without_preload_content( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + account_preferences: Optional[AccountPreferences] = 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: + """Change account preferences + + Preferences for user Account. Structure contains currently two keys: - language - preferred language for user (supported values: \"en\", \"cs\") - lastActiveProject - project that was last active for a user Both these preferences are used by CleverMaps Client JavaScript application and have no direct impact on backend behaviour. Updates the preferences by merge. If some of preference keys is not present, value of this key is not reset. **Security:** User is allowed to change only it's own preferences. Bearer token must match `accountId` + + :param account_id: Id of the account (required) + :type account_id: str + :param account_preferences: + :type account_preferences: AccountPreferences + :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._change_preferences_serialize( + account_id=account_id, + account_preferences=account_preferences, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '204': None, + '403': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _change_preferences_serialize( + self, + account_id, + account_preferences, + _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 account_id is not None: + _path_params['accountId'] = account_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if account_preferences is not None: + _body_params = account_preferences + + + + # 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='/accounts/{accountId}/preferences', + 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_account_by_id( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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 account. + + Deletes user account from Okta. Destroys Okta session. Delete from Intercom. **Security:** User can delete only himself. + + :param account_id: Id of the account (required) + :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._delete_account_by_id_serialize( + 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]] = { + '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_account_by_id_with_http_info( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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 account. + + Deletes user account from Okta. Destroys Okta session. Delete from Intercom. **Security:** User can delete only himself. + + :param account_id: Id of the account (required) + :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._delete_account_by_id_serialize( + 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]] = { + '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_account_by_id_without_preload_content( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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 account. + + Deletes user account from Okta. Destroys Okta session. Delete from Intercom. **Security:** User can delete only himself. + + :param account_id: Id of the account (required) + :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._delete_account_by_id_serialize( + 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]] = { + '204': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _delete_account_by_id_serialize( + self, + 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 account_id is not None: + _path_params['accountId'] = account_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='/accounts/{accountId}', + 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_account_by_account_id( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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, + ) -> GetAccountByAccountId200Response: + """Get account by accountId + + Account for user identified accountId. The resource has two type of responses: - full account detail (for request on currently authenticated account) - restricted account detail - when getting details about another user - `accountId`, `fullName`, `language` and `status` properties are returned + + :param account_id: Id of the account (required) + :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_account_by_account_id_serialize( + 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': "GetAccountByAccountId200Response", + } + 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_account_by_account_id_with_http_info( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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[GetAccountByAccountId200Response]: + """Get account by accountId + + Account for user identified accountId. The resource has two type of responses: - full account detail (for request on currently authenticated account) - restricted account detail - when getting details about another user - `accountId`, `fullName`, `language` and `status` properties are returned + + :param account_id: Id of the account (required) + :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_account_by_account_id_serialize( + 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': "GetAccountByAccountId200Response", + } + 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_account_by_account_id_without_preload_content( + self, + account_id: Annotated[str, Field(strict=True, description="Id of the account")], + _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 account by accountId + + Account for user identified accountId. The resource has two type of responses: - full account detail (for request on currently authenticated account) - restricted account detail - when getting details about another user - `accountId`, `fullName`, `language` and `status` properties are returned + + :param account_id: Id of the account (required) + :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_account_by_account_id_serialize( + 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': "GetAccountByAccountId200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_account_by_account_id_serialize( + self, + 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 account_id is not None: + _path_params['accountId'] = account_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='/accounts/{accountId}', + 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_account_by_email( + self, + email: Annotated[StrictStr, Field(description="Email address")], + _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: + """Find if account with email exists. + + Find if account with email exists. Search is limited on `ENABLED` accounts. + + :param email: Email address (required) + :type email: 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_account_by_email_serialize( + email=email, + _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 get_account_by_email_with_http_info( + self, + email: Annotated[StrictStr, Field(description="Email address")], + _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]: + """Find if account with email exists. + + Find if account with email exists. Search is limited on `ENABLED` accounts. + + :param email: Email address (required) + :type email: 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_account_by_email_serialize( + email=email, + _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 get_account_by_email_without_preload_content( + self, + email: Annotated[StrictStr, Field(description="Email address")], + _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: + """Find if account with email exists. + + Find if account with email exists. Search is limited on `ENABLED` accounts. + + :param email: Email address (required) + :type email: 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_account_by_email_serialize( + email=email, + _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 _get_account_by_email_serialize( + self, + email, + _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 email is not None: + + _query_params.append(('email', email)) + + # 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='GET', + resource_path='/accounts', + 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_current_account( + self, + _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, + ) -> AccountDTO: + """Get current account. + + Account for user identified by Bearer token. Resource is the same as the `/rest/accounts/{accountId}`. + + :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_current_account_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + } + 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_current_account_with_http_info( + self, + _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[AccountDTO]: + """Get current account. + + Account for user identified by Bearer token. Resource is the same as the `/rest/accounts/{accountId}`. + + :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_current_account_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + } + 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_current_account_without_preload_content( + self, + _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 current account. + + Account for user identified by Bearer token. Resource is the same as the `/rest/accounts/{accountId}`. + + :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_current_account_serialize( + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_current_account_serialize( + self, + _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 + + + # 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='/accounts/current', + 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 register_account( + self, + new_account_dto: NewAccountDTO, + _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, + ) -> AccountDTO: + """Register new account + + + :param new_account_dto: (required) + :type new_account_dto: NewAccountDTO + :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._register_account_serialize( + new_account_dto=new_account_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '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 register_account_with_http_info( + self, + new_account_dto: NewAccountDTO, + _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[AccountDTO]: + """Register new account + + + :param new_account_dto: (required) + :type new_account_dto: NewAccountDTO + :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._register_account_serialize( + new_account_dto=new_account_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '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 register_account_without_preload_content( + self, + new_account_dto: NewAccountDTO, + _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: + """Register new account + + + :param new_account_dto: (required) + :type new_account_dto: NewAccountDTO + :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._register_account_serialize( + new_account_dto=new_account_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '409': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _register_account_serialize( + self, + new_account_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 new_account_dto is not None: + _body_params = new_account_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] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/accounts', + 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/accounts_reset_password_api.py b/cm_python_openapi_sdk/api/accounts_reset_password_api.py new file mode 100644 index 0000000..d124998 --- /dev/null +++ b/cm_python_openapi_sdk/api/accounts_reset_password_api.py @@ -0,0 +1,861 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Optional +from typing_extensions import Annotated +from cm_python_openapi_sdk.models.account_dto import AccountDTO +from cm_python_openapi_sdk.models.reset_password_dto import ResetPasswordDTO +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO + +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 AccountsResetPasswordApi: + """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 reset_password_with_token( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + reset_password_dto: Optional[ResetPasswordDTO] = 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, + ) -> None: + """Finish reset password with token + + Finish the process of resetting the password by sending a valid token and a new password. **Security:** Unauthorized resource, anonymous users are allowed to finish password reset. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: str + :param reset_password_dto: + :type reset_password_dto: ResetPasswordDTO + :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._reset_password_with_token_serialize( + password_reset_token=password_reset_token, + reset_password_dto=reset_password_dto, + _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, + '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 reset_password_with_token_with_http_info( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + reset_password_dto: Optional[ResetPasswordDTO] = 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[None]: + """Finish reset password with token + + Finish the process of resetting the password by sending a valid token and a new password. **Security:** Unauthorized resource, anonymous users are allowed to finish password reset. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: str + :param reset_password_dto: + :type reset_password_dto: ResetPasswordDTO + :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._reset_password_with_token_serialize( + password_reset_token=password_reset_token, + reset_password_dto=reset_password_dto, + _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, + '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 reset_password_with_token_without_preload_content( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + reset_password_dto: Optional[ResetPasswordDTO] = 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: + """Finish reset password with token + + Finish the process of resetting the password by sending a valid token and a new password. **Security:** Unauthorized resource, anonymous users are allowed to finish password reset. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: str + :param reset_password_dto: + :type reset_password_dto: ResetPasswordDTO + :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._reset_password_with_token_serialize( + password_reset_token=password_reset_token, + reset_password_dto=reset_password_dto, + _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, + '400': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _reset_password_with_token_serialize( + self, + password_reset_token, + reset_password_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 password_reset_token is not None: + _path_params['passwordResetToken'] = password_reset_token + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if reset_password_dto is not None: + _body_params = reset_password_dto + + + + # 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] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/accounts/passwordReset/{passwordResetToken}', + 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 send_reset_password_token( + self, + send_reset_password_dto: Optional[SendResetPasswordDTO] = 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, + ) -> None: + """Ask for reset password token + + Create new request for resetting password. **Security:** Unauthorized resource, anonymous users are allowed to initiate password reset. + + :param send_reset_password_dto: + :type send_reset_password_dto: SendResetPasswordDTO + :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._send_reset_password_token_serialize( + send_reset_password_dto=send_reset_password_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': 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 send_reset_password_token_with_http_info( + self, + send_reset_password_dto: Optional[SendResetPasswordDTO] = 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[None]: + """Ask for reset password token + + Create new request for resetting password. **Security:** Unauthorized resource, anonymous users are allowed to initiate password reset. + + :param send_reset_password_dto: + :type send_reset_password_dto: SendResetPasswordDTO + :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._send_reset_password_token_serialize( + send_reset_password_dto=send_reset_password_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': 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 send_reset_password_token_without_preload_content( + self, + send_reset_password_dto: Optional[SendResetPasswordDTO] = 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: + """Ask for reset password token + + Create new request for resetting password. **Security:** Unauthorized resource, anonymous users are allowed to initiate password reset. + + :param send_reset_password_dto: + :type send_reset_password_dto: SendResetPasswordDTO + :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._send_reset_password_token_serialize( + send_reset_password_dto=send_reset_password_dto, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '201': None, + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _send_reset_password_token_serialize( + self, + send_reset_password_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 send_reset_password_dto is not None: + _body_params = send_reset_password_dto + + + + # 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] = [ + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/accounts/passwordReset', + 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 verify_reset_password_token( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + _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, + ) -> AccountDTO: + """Verify reset password token is valid + + Test if given token exists and is valid. Returns account which password is resetting. **Security:** Unauthorized resource, anonymous users are allowed to verify password reset token. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: 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._verify_reset_password_token_serialize( + password_reset_token=password_reset_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '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 verify_reset_password_token_with_http_info( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + _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[AccountDTO]: + """Verify reset password token is valid + + Test if given token exists and is valid. Returns account which password is resetting. **Security:** Unauthorized resource, anonymous users are allowed to verify password reset token. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: 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._verify_reset_password_token_serialize( + password_reset_token=password_reset_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '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 verify_reset_password_token_without_preload_content( + self, + password_reset_token: Annotated[StrictStr, Field(description="Password reset token")], + _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: + """Verify reset password token is valid + + Test if given token exists and is valid. Returns account which password is resetting. **Security:** Unauthorized resource, anonymous users are allowed to verify password reset token. + + :param password_reset_token: Password reset token (required) + :type password_reset_token: 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._verify_reset_password_token_serialize( + password_reset_token=password_reset_token, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AccountDTO", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _verify_reset_password_token_serialize( + self, + password_reset_token, + _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 password_reset_token is not None: + _path_params['passwordResetToken'] = password_reset_token + # 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] = [ + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/accounts/passwordReset/{passwordResetToken}', + 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/attribute_styles_api.py b/cm_python_openapi_sdk/api/attribute_styles_api.py index 6c4b9f8..279145a 100644 --- a/cm_python_openapi_sdk/api/attribute_styles_api.py +++ b/cm_python_openapi_sdk/api/attribute_styles_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/audit_log_api.py b/cm_python_openapi_sdk/api/audit_log_api.py new file mode 100644 index 0000000..37764e6 --- /dev/null +++ b/cm_python_openapi_sdk/api/audit_log_api.py @@ -0,0 +1,718 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cm_python_openapi_sdk.models.audit_log_paged_resource import AuditLogPagedResource +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource + +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 AuditLogApi: + """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_audit_log_event( + self, + event_id: Annotated[str, Field(strict=True, description="Event ID")], + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + _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, + ) -> AuditLogSingleResource: + """Get audit log event by eventId + + Get audit log event by event ID for project. **Security:** Resource return only audit log events for those projects where the authenticated user is Admin. + + :param event_id: Event ID (required) + :type event_id: str + :param project_id: Id of the project, used as query parameter (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._get_audit_log_event_serialize( + event_id=event_id, + 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': "AuditLogSingleResource", + } + 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_audit_log_event_with_http_info( + self, + event_id: Annotated[str, Field(strict=True, description="Event ID")], + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + _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[AuditLogSingleResource]: + """Get audit log event by eventId + + Get audit log event by event ID for project. **Security:** Resource return only audit log events for those projects where the authenticated user is Admin. + + :param event_id: Event ID (required) + :type event_id: str + :param project_id: Id of the project, used as query parameter (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._get_audit_log_event_serialize( + event_id=event_id, + 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': "AuditLogSingleResource", + } + 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_audit_log_event_without_preload_content( + self, + event_id: Annotated[str, Field(strict=True, description="Event ID")], + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + _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 audit log event by eventId + + Get audit log event by event ID for project. **Security:** Resource return only audit log events for those projects where the authenticated user is Admin. + + :param event_id: Event ID (required) + :type event_id: str + :param project_id: Id of the project, used as query parameter (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._get_audit_log_event_serialize( + event_id=event_id, + 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': "AuditLogSingleResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_audit_log_event_serialize( + self, + event_id, + 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 event_id is not None: + _path_params['eventId'] = event_id + # process the query parameters + 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='/auditlog/{eventId}', + 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_audit_logs( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + event_types: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Event type")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Timestamp lower bound (UTC timestamp format)")] = None, + to: Annotated[Optional[StrictStr], Field(description="Timestamp upper bound (UTC timestamp format)")] = None, + last_evaluated_event_id: Annotated[Optional[StrictStr], Field(description="Last evaluated event ID when requesting next page")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size")] = 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, + ) -> AuditLogPagedResource: + """Get audit logs for project + + Get audit logs for project **Security:** Resource return only audit log for those projects where the authenticated user is Admin. + + :param project_id: Id of the project, used as query parameter (required) + :type project_id: str + :param account_id: Id of the account, used in query parameters + :type account_id: str + :param event_types: Event type + :type event_types: str + :param var_from: Timestamp lower bound (UTC timestamp format) + :type var_from: str + :param to: Timestamp upper bound (UTC timestamp format) + :type to: str + :param last_evaluated_event_id: Last evaluated event ID when requesting next page + :type last_evaluated_event_id: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: str + :param page_size: page size + :type page_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_audit_logs_serialize( + project_id=project_id, + account_id=account_id, + event_types=event_types, + var_from=var_from, + to=to, + last_evaluated_event_id=last_evaluated_event_id, + last_evaluated_timestamp=last_evaluated_timestamp, + page_size=page_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': "AuditLogPagedResource", + } + 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_audit_logs_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + event_types: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Event type")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Timestamp lower bound (UTC timestamp format)")] = None, + to: Annotated[Optional[StrictStr], Field(description="Timestamp upper bound (UTC timestamp format)")] = None, + last_evaluated_event_id: Annotated[Optional[StrictStr], Field(description="Last evaluated event ID when requesting next page")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size")] = 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[AuditLogPagedResource]: + """Get audit logs for project + + Get audit logs for project **Security:** Resource return only audit log for those projects where the authenticated user is Admin. + + :param project_id: Id of the project, used as query parameter (required) + :type project_id: str + :param account_id: Id of the account, used in query parameters + :type account_id: str + :param event_types: Event type + :type event_types: str + :param var_from: Timestamp lower bound (UTC timestamp format) + :type var_from: str + :param to: Timestamp upper bound (UTC timestamp format) + :type to: str + :param last_evaluated_event_id: Last evaluated event ID when requesting next page + :type last_evaluated_event_id: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: str + :param page_size: page size + :type page_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_audit_logs_serialize( + project_id=project_id, + account_id=account_id, + event_types=event_types, + var_from=var_from, + to=to, + last_evaluated_event_id=last_evaluated_event_id, + last_evaluated_timestamp=last_evaluated_timestamp, + page_size=page_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': "AuditLogPagedResource", + } + 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_audit_logs_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + event_types: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Event type")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Timestamp lower bound (UTC timestamp format)")] = None, + to: Annotated[Optional[StrictStr], Field(description="Timestamp upper bound (UTC timestamp format)")] = None, + last_evaluated_event_id: Annotated[Optional[StrictStr], Field(description="Last evaluated event ID when requesting next page")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = None, + page_size: Annotated[Optional[StrictInt], Field(description="page size")] = 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 audit logs for project + + Get audit logs for project **Security:** Resource return only audit log for those projects where the authenticated user is Admin. + + :param project_id: Id of the project, used as query parameter (required) + :type project_id: str + :param account_id: Id of the account, used in query parameters + :type account_id: str + :param event_types: Event type + :type event_types: str + :param var_from: Timestamp lower bound (UTC timestamp format) + :type var_from: str + :param to: Timestamp upper bound (UTC timestamp format) + :type to: str + :param last_evaluated_event_id: Last evaluated event ID when requesting next page + :type last_evaluated_event_id: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: str + :param page_size: page size + :type page_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_audit_logs_serialize( + project_id=project_id, + account_id=account_id, + event_types=event_types, + var_from=var_from, + to=to, + last_evaluated_event_id=last_evaluated_event_id, + last_evaluated_timestamp=last_evaluated_timestamp, + page_size=page_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': "AuditLogPagedResource", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_audit_logs_serialize( + self, + project_id, + account_id, + event_types, + var_from, + to, + last_evaluated_event_id, + last_evaluated_timestamp, + page_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 event_types is not None: + + _query_params.append(('eventTypes', event_types)) + + if var_from is not None: + + _query_params.append(('from', var_from)) + + if to is not None: + + _query_params.append(('to', to)) + + if last_evaluated_event_id is not None: + + _query_params.append(('lastEvaluatedEventId', last_evaluated_event_id)) + + if last_evaluated_timestamp is not None: + + _query_params.append(('lastEvaluatedTimestamp', last_evaluated_timestamp)) + + if page_size is not None: + + _query_params.append(('pageSize', page_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='/auditlog', + 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/authentication_api.py b/cm_python_openapi_sdk/api/authentication_api.py index a6ea3f5..59e3e32 100644 --- a/cm_python_openapi_sdk/api/authentication_api.py +++ b/cm_python_openapi_sdk/api/authentication_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/available_datasets_api.py b/cm_python_openapi_sdk/api/available_datasets_api.py new file mode 100644 index 0000000..66200ad --- /dev/null +++ b/cm_python_openapi_sdk/api/available_datasets_api.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.available_datasets_request import AvailableDatasetsRequest +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse + +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 AvailableDatasetsApi: + """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 available_datasets( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + available_datasets_request: AvailableDatasetsRequest, + type: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated.")] = None, + subtype: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. ")] = None, + expand: Annotated[Optional[StrictStr], Field(description="Expand datasets to minimalize roundtrips.")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. ")] = 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, + ) -> AvailableDatasetsResponse: + """available_datasets + + Finds list of datasets available as granularity for given metric(s). The project's data model defines the relations among datasets. Not all metrics are computable at all datasets granularity. E.g. population defined on state level cannot be calculated for granularity (dataset) city. This endpoint checks the relations from data model and lists only the available datasets for the metrics. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param available_datasets_request: (required) + :type available_datasets_request: AvailableDatasetsRequest + :param type: If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated. + :type type: str + :param subtype: If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. + :type subtype: str + :param expand: Expand datasets to minimalize roundtrips. + :type expand: str + :param var_from: Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. + :type var_from: 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._available_datasets_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + available_datasets_request=available_datasets_request, + type=type, + subtype=subtype, + expand=expand, + var_from=var_from, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AvailableDatasetsResponse", + } + 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 available_datasets_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + available_datasets_request: AvailableDatasetsRequest, + type: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated.")] = None, + subtype: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. ")] = None, + expand: Annotated[Optional[StrictStr], Field(description="Expand datasets to minimalize roundtrips.")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. ")] = 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[AvailableDatasetsResponse]: + """available_datasets + + Finds list of datasets available as granularity for given metric(s). The project's data model defines the relations among datasets. Not all metrics are computable at all datasets granularity. E.g. population defined on state level cannot be calculated for granularity (dataset) city. This endpoint checks the relations from data model and lists only the available datasets for the metrics. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param available_datasets_request: (required) + :type available_datasets_request: AvailableDatasetsRequest + :param type: If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated. + :type type: str + :param subtype: If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. + :type subtype: str + :param expand: Expand datasets to minimalize roundtrips. + :type expand: str + :param var_from: Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. + :type var_from: 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._available_datasets_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + available_datasets_request=available_datasets_request, + type=type, + subtype=subtype, + expand=expand, + var_from=var_from, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AvailableDatasetsResponse", + } + 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 available_datasets_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + available_datasets_request: AvailableDatasetsRequest, + type: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated.")] = None, + subtype: Annotated[Optional[StrictStr], Field(description="If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. ")] = None, + expand: Annotated[Optional[StrictStr], Field(description="Expand datasets to minimalize roundtrips.")] = None, + var_from: Annotated[Optional[StrictStr], Field(description="Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. ")] = 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: + """available_datasets + + Finds list of datasets available as granularity for given metric(s). The project's data model defines the relations among datasets. Not all metrics are computable at all datasets granularity. E.g. population defined on state level cannot be calculated for granularity (dataset) city. This endpoint checks the relations from data model and lists only the available datasets for the metrics. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param available_datasets_request: (required) + :type available_datasets_request: AvailableDatasetsRequest + :param type: If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated. + :type type: str + :param subtype: If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. + :type subtype: str + :param expand: Expand datasets to minimalize roundtrips. + :type expand: str + :param var_from: Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. + :type var_from: 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._available_datasets_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + available_datasets_request=available_datasets_request, + type=type, + subtype=subtype, + expand=expand, + var_from=var_from, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "AvailableDatasetsResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _available_datasets_serialize( + self, + project_id, + dwh_cluster_id, + available_datasets_request, + type, + subtype, + expand, + var_from, + _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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + # process the query parameters + if type is not None: + + _query_params.append(('type', type)) + + if subtype is not None: + + _query_params.append(('subtype', subtype)) + + if expand is not None: + + _query_params.append(('expand', expand)) + + if var_from is not None: + + _query_params.append(('from', var_from)) + + # process the header parameters + # process the form parameters + # process the body parameter + if available_datasets_request is not None: + _body_params = available_datasets_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='/projects/{projectId}/dwh/{dwhClusterId}/availableDatasets', + 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/caches_api.py b/cm_python_openapi_sdk/api/caches_api.py new file mode 100644 index 0000000..2f50bfe --- /dev/null +++ b/cm_python_openapi_sdk/api/caches_api.py @@ -0,0 +1,325 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.api_client import ApiClient, RequestSerialized +from cm_python_openapi_sdk.api_response import ApiResponse +from cm_python_openapi_sdk.rest import RESTResponseType + + +class CachesApi: + """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_cache( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_materialized_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh materialized cache")], + _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: + """get_cache + + Parts of SQL query could be materialized as SQL materialized views and reused during report computations. This resource allow to check if the SQL cache is already materialized and or not. No cache data is returned. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_materialized_cache_id: Id of the dwh materialized cache (required) + :type dwh_materialized_cache_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_cache_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_materialized_cache_id=dwh_materialized_cache_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 get_cache_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_materialized_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh materialized cache")], + _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]: + """get_cache + + Parts of SQL query could be materialized as SQL materialized views and reused during report computations. This resource allow to check if the SQL cache is already materialized and or not. No cache data is returned. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_materialized_cache_id: Id of the dwh materialized cache (required) + :type dwh_materialized_cache_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_cache_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_materialized_cache_id=dwh_materialized_cache_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 get_cache_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_materialized_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh materialized cache")], + _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_cache + + Parts of SQL query could be materialized as SQL materialized views and reused during report computations. This resource allow to check if the SQL cache is already materialized and or not. No cache data is returned. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_materialized_cache_id: Id of the dwh materialized cache (required) + :type dwh_materialized_cache_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_cache_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_materialized_cache_id=dwh_materialized_cache_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 _get_cache_serialize( + self, + project_id, + dwh_cluster_id, + dwh_materialized_cache_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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_materialized_cache_id is not None: + _path_params['dwhMaterializedCacheId'] = dwh_materialized_cache_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='GET', + resource_path='/projects/{projectId}/dwh/{dwhClusterId}/caches/{dwhMaterializedCacheId}', + 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/dashboards_api.py b/cm_python_openapi_sdk/api/dashboards_api.py index a535fde..e672a55 100644 --- a/cm_python_openapi_sdk/api/dashboards_api.py +++ b/cm_python_openapi_sdk/api/dashboards_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/data_dump_api.py b/cm_python_openapi_sdk/api/data_dump_api.py new file mode 100644 index 0000000..122932a --- /dev/null +++ b/cm_python_openapi_sdk/api/data_dump_api.py @@ -0,0 +1,314 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_extensions import Annotated + +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 DataDumpApi: + """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_data_dump( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dump_id: Annotated[str, Field(strict=True, description="ID of dump returned as result of job")], + _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, + ) -> str: + """Get data dump file + + When the dumpData job is complete, the **dumps** resource returns links for downloading the dumped files. Dumps are available for the next **24 hours** and then are removed. ### The Output CSV File Format The output follows the **comma-separated format** as defined by [RFC 4180](https://tools.ietf.org/html/rfc4180) with a header as the first line: - **HEADER** – The first line contains column headers. - **DELIMITER `,`** – Cells are separated by a comma. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param dump_id: ID of dump returned as result of job (required) + :type dump_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_dump_serialize( + project_id=project_id, + dump_id=dump_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + 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_dump_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dump_id: Annotated[str, Field(strict=True, description="ID of dump returned as result of job")], + _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[str]: + """Get data dump file + + When the dumpData job is complete, the **dumps** resource returns links for downloading the dumped files. Dumps are available for the next **24 hours** and then are removed. ### The Output CSV File Format The output follows the **comma-separated format** as defined by [RFC 4180](https://tools.ietf.org/html/rfc4180) with a header as the first line: - **HEADER** – The first line contains column headers. - **DELIMITER `,`** – Cells are separated by a comma. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param dump_id: ID of dump returned as result of job (required) + :type dump_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_dump_serialize( + project_id=project_id, + dump_id=dump_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + 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_dump_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dump_id: Annotated[str, Field(strict=True, description="ID of dump returned as result of job")], + _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 data dump file + + When the dumpData job is complete, the **dumps** resource returns links for downloading the dumped files. Dumps are available for the next **24 hours** and then are removed. ### The Output CSV File Format The output follows the **comma-separated format** as defined by [RFC 4180](https://tools.ietf.org/html/rfc4180) with a header as the first line: - **HEADER** – The first line contains column headers. - **DELIMITER `,`** – Cells are separated by a comma. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param dump_id: ID of dump returned as result of job (required) + :type dump_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_dump_serialize( + project_id=project_id, + dump_id=dump_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_data_dump_serialize( + self, + project_id, + dump_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 dump_id is not None: + _path_params['dumpId'] = dump_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( + [ + 'text/csv' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/projects/{projectId}/data/dumps/{dumpId}', + 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_permissions_api.py b/cm_python_openapi_sdk/api/data_permissions_api.py index 2d3c012..2f4078c 100644 --- a/cm_python_openapi_sdk/api/data_permissions_api.py +++ b/cm_python_openapi_sdk/api/data_permissions_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/data_sources_api.py b/cm_python_openapi_sdk/api/data_sources_api.py index 5e58fe6..4057952 100644 --- a/cm_python_openapi_sdk/api/data_sources_api.py +++ b/cm_python_openapi_sdk/api/data_sources_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/data_upload_api.py b/cm_python_openapi_sdk/api/data_upload_api.py new file mode 100644 index 0000000..ca1cc47 --- /dev/null +++ b/cm_python_openapi_sdk/api/data_upload_api.py @@ -0,0 +1,624 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, StrictInt, StrictStr, field_validator +from typing import Optional +from typing_extensions import Annotated +from cm_python_openapi_sdk.models.data_complete_multipart_upload_request import DataCompleteMultipartUploadRequest +from cm_python_openapi_sdk.models.data_complete_multipart_upload_response import DataCompleteMultipartUploadResponse +from cm_python_openapi_sdk.models.data_upload200_response import DataUpload200Response + +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 DataUploadApi: + """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 complete_multipart_upload( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + id: StrictStr, + data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest, + _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, + ) -> DataCompleteMultipartUploadResponse: + """Complete multipart upload + + This resource allows you to complete the multipart upload after all parts are uploaded. The request body contains the id received in the previous request (e.g. nogeLAvMPlITfWC66ztEDOW6Vl3bwRrn), the uploadId and a list of ETags for each part. ETag for each part can be found in the ETag response header from the PUT request to part upload. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param id: (required) + :type id: str + :param data_complete_multipart_upload_request: (required) + :type data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest + :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._complete_multipart_upload_serialize( + project_id=project_id, + id=id, + data_complete_multipart_upload_request=data_complete_multipart_upload_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataCompleteMultipartUploadResponse", + } + 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 complete_multipart_upload_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + id: StrictStr, + data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest, + _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[DataCompleteMultipartUploadResponse]: + """Complete multipart upload + + This resource allows you to complete the multipart upload after all parts are uploaded. The request body contains the id received in the previous request (e.g. nogeLAvMPlITfWC66ztEDOW6Vl3bwRrn), the uploadId and a list of ETags for each part. ETag for each part can be found in the ETag response header from the PUT request to part upload. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param id: (required) + :type id: str + :param data_complete_multipart_upload_request: (required) + :type data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest + :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._complete_multipart_upload_serialize( + project_id=project_id, + id=id, + data_complete_multipart_upload_request=data_complete_multipart_upload_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataCompleteMultipartUploadResponse", + } + 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 complete_multipart_upload_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + id: StrictStr, + data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest, + _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: + """Complete multipart upload + + This resource allows you to complete the multipart upload after all parts are uploaded. The request body contains the id received in the previous request (e.g. nogeLAvMPlITfWC66ztEDOW6Vl3bwRrn), the uploadId and a list of ETags for each part. ETag for each part can be found in the ETag response header from the PUT request to part upload. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + :param project_id: Id of the project (required) + :type project_id: str + :param id: (required) + :type id: str + :param data_complete_multipart_upload_request: (required) + :type data_complete_multipart_upload_request: DataCompleteMultipartUploadRequest + :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._complete_multipart_upload_serialize( + project_id=project_id, + id=id, + data_complete_multipart_upload_request=data_complete_multipart_upload_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataCompleteMultipartUploadResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _complete_multipart_upload_serialize( + self, + project_id, + id, + data_complete_multipart_upload_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 + 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 + if data_complete_multipart_upload_request is not None: + _body_params = data_complete_multipart_upload_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='PUT', + resource_path='/projects/{projectId}/dwh/data/uploads/{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 data_upload( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + parts: Optional[StrictInt] = 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, + ) -> DataUpload200Response: + """Upload CSV file to dataset + + # Data Upload Methods There are four ways to update dataset data: 1. **CSV Upload** – Push a CSV file from your computer or server. 2. **Multipart CSV Upload** – Push CSV file in parts from your computer or server (recommended for files larger then 50MB) - you must specify parameter **parts** 3. **S3 Pull** – Pull data stored in your S3 bucket. 4. **HTTPS Pull** – Pull data from any HTTPS endpoint. --- ## CSV Upload Flow 1. Create a new upload resource via: `POST /rest/projects/{projectId}/dwh/data/uploads` 2. Receive a resource with an S3 pre-signed `uploadUrl`. 3. Upload the CSV file using: `PUT {uploadUrl}` (No authentication required) 4. Once the upload is finished, start a [dataPull](#operation/submitJobExecution) job with the correct input. ### Pre-signed URL Usage The pre-signed URL can be used with any HTTP tool. You can upload the content directly without additional authorization (no bearer token required). #### Example: Upload CSV File Using `curl` ```sh curl -X PUT \\ 'https://s3-eu-west-1.amazonaws.com/can-dwh-upload-uploads-prod/00ubftx6v6TSTKnAt0h7/o3d2ov0p43msl3hf/RjFJt5kW302QNLzFIVnxN369dlY6KUw4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ6BXDNGJ7WFCT7SQ%2F20170915%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170915T141016Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=e053197d044345041268b7f22918e2e71e2a3d5a23ceed65a332e1782998739c' \\ -T /home/user/data/mydata.csv ``` ## Multipart Upload Flow To upload a large CSV file in multiple parts, follow these steps: 1. **Start the multipart upload** by sending a `POST` request: POST /rest/projects/{projectId}/dwh/data/uploads?parts=3 - This request initializes the upload and specifies the number of parts. 2. **Receive a response** containing: - An `id` identifying the upload. - A list of **uploadUrls**, which are S3 pre-signed URLs, one for each part. 3. **Split the CSV file** and upload each part to its corresponding URL using: PUT {uploadUrl} - No additional authentication is required. 4. **Complete the upload** - Once all parts are uploaded, send the [Complete Multipart Data Upload](#operation/completeMultipartUpload) request. 5. **Start the DataPull job** - After completing the upload, start a [dataPull](#operation/submitJobExecution) job with the correct input. ## S3 Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **S3 URL**. ### Example: DataPull Request for S3 Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\" } } ``` ## HTTPS Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **HTTPS URL**. ### Example: DataPull Request for HTTPS Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"httpsUpload\": \"https://my-domain.com/mystores.csv\", \"type\": \"csv\" } } ``` **Warning**: We do not recommend uploading sensitive information using the HTTPS pull flow, as files hosted on public URLs are accessible to anyone on the internet. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. ## CSV Options With **CsvOptions**, you can specify how the CSV should be processed. The available options are: | Option | Type | Description | Default Value | |-------------|----------|---------------------------------------------------------------|--------------| | `header` | boolean | Specifies if the CSV has a header. | `true` | | `separator` | char | Specifies the separator character between fields. | `,` | | `quote` | char | Specifies the quote character. | `\"` | | `escape` | char | Specifies the escape character. | `\\` | | `null` | string | Specifies the replacement value for custom CSV nulls. | *None* | | `forceNull` | string[] | Specifies which CSV columns should enforce null replacement. | *None* | ### Example: DataPull Request for S3 Upload with CSV Options ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\", \"csvOptions\": { \"header\": true, \"separator\": \";\", \"quote\": \"§\", \"escape\": \"\\\\\", \"null\": \"NULL_VALUE\", \"forceNull\": [ \"columnName\", \"otherColumn\" ] } } } ``` + + :param project_id: Id of the project (required) + :type project_id: str + :param parts: + :type parts: 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._data_upload_serialize( + project_id=project_id, + parts=parts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataUpload200Response", + } + 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 data_upload_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + parts: Optional[StrictInt] = 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[DataUpload200Response]: + """Upload CSV file to dataset + + # Data Upload Methods There are four ways to update dataset data: 1. **CSV Upload** – Push a CSV file from your computer or server. 2. **Multipart CSV Upload** – Push CSV file in parts from your computer or server (recommended for files larger then 50MB) - you must specify parameter **parts** 3. **S3 Pull** – Pull data stored in your S3 bucket. 4. **HTTPS Pull** – Pull data from any HTTPS endpoint. --- ## CSV Upload Flow 1. Create a new upload resource via: `POST /rest/projects/{projectId}/dwh/data/uploads` 2. Receive a resource with an S3 pre-signed `uploadUrl`. 3. Upload the CSV file using: `PUT {uploadUrl}` (No authentication required) 4. Once the upload is finished, start a [dataPull](#operation/submitJobExecution) job with the correct input. ### Pre-signed URL Usage The pre-signed URL can be used with any HTTP tool. You can upload the content directly without additional authorization (no bearer token required). #### Example: Upload CSV File Using `curl` ```sh curl -X PUT \\ 'https://s3-eu-west-1.amazonaws.com/can-dwh-upload-uploads-prod/00ubftx6v6TSTKnAt0h7/o3d2ov0p43msl3hf/RjFJt5kW302QNLzFIVnxN369dlY6KUw4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ6BXDNGJ7WFCT7SQ%2F20170915%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170915T141016Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=e053197d044345041268b7f22918e2e71e2a3d5a23ceed65a332e1782998739c' \\ -T /home/user/data/mydata.csv ``` ## Multipart Upload Flow To upload a large CSV file in multiple parts, follow these steps: 1. **Start the multipart upload** by sending a `POST` request: POST /rest/projects/{projectId}/dwh/data/uploads?parts=3 - This request initializes the upload and specifies the number of parts. 2. **Receive a response** containing: - An `id` identifying the upload. - A list of **uploadUrls**, which are S3 pre-signed URLs, one for each part. 3. **Split the CSV file** and upload each part to its corresponding URL using: PUT {uploadUrl} - No additional authentication is required. 4. **Complete the upload** - Once all parts are uploaded, send the [Complete Multipart Data Upload](#operation/completeMultipartUpload) request. 5. **Start the DataPull job** - After completing the upload, start a [dataPull](#operation/submitJobExecution) job with the correct input. ## S3 Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **S3 URL**. ### Example: DataPull Request for S3 Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\" } } ``` ## HTTPS Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **HTTPS URL**. ### Example: DataPull Request for HTTPS Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"httpsUpload\": \"https://my-domain.com/mystores.csv\", \"type\": \"csv\" } } ``` **Warning**: We do not recommend uploading sensitive information using the HTTPS pull flow, as files hosted on public URLs are accessible to anyone on the internet. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. ## CSV Options With **CsvOptions**, you can specify how the CSV should be processed. The available options are: | Option | Type | Description | Default Value | |-------------|----------|---------------------------------------------------------------|--------------| | `header` | boolean | Specifies if the CSV has a header. | `true` | | `separator` | char | Specifies the separator character between fields. | `,` | | `quote` | char | Specifies the quote character. | `\"` | | `escape` | char | Specifies the escape character. | `\\` | | `null` | string | Specifies the replacement value for custom CSV nulls. | *None* | | `forceNull` | string[] | Specifies which CSV columns should enforce null replacement. | *None* | ### Example: DataPull Request for S3 Upload with CSV Options ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\", \"csvOptions\": { \"header\": true, \"separator\": \";\", \"quote\": \"§\", \"escape\": \"\\\\\", \"null\": \"NULL_VALUE\", \"forceNull\": [ \"columnName\", \"otherColumn\" ] } } } ``` + + :param project_id: Id of the project (required) + :type project_id: str + :param parts: + :type parts: 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._data_upload_serialize( + project_id=project_id, + parts=parts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataUpload200Response", + } + 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 data_upload_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + parts: Optional[StrictInt] = 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: + """Upload CSV file to dataset + + # Data Upload Methods There are four ways to update dataset data: 1. **CSV Upload** – Push a CSV file from your computer or server. 2. **Multipart CSV Upload** – Push CSV file in parts from your computer or server (recommended for files larger then 50MB) - you must specify parameter **parts** 3. **S3 Pull** – Pull data stored in your S3 bucket. 4. **HTTPS Pull** – Pull data from any HTTPS endpoint. --- ## CSV Upload Flow 1. Create a new upload resource via: `POST /rest/projects/{projectId}/dwh/data/uploads` 2. Receive a resource with an S3 pre-signed `uploadUrl`. 3. Upload the CSV file using: `PUT {uploadUrl}` (No authentication required) 4. Once the upload is finished, start a [dataPull](#operation/submitJobExecution) job with the correct input. ### Pre-signed URL Usage The pre-signed URL can be used with any HTTP tool. You can upload the content directly without additional authorization (no bearer token required). #### Example: Upload CSV File Using `curl` ```sh curl -X PUT \\ 'https://s3-eu-west-1.amazonaws.com/can-dwh-upload-uploads-prod/00ubftx6v6TSTKnAt0h7/o3d2ov0p43msl3hf/RjFJt5kW302QNLzFIVnxN369dlY6KUw4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ6BXDNGJ7WFCT7SQ%2F20170915%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170915T141016Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=e053197d044345041268b7f22918e2e71e2a3d5a23ceed65a332e1782998739c' \\ -T /home/user/data/mydata.csv ``` ## Multipart Upload Flow To upload a large CSV file in multiple parts, follow these steps: 1. **Start the multipart upload** by sending a `POST` request: POST /rest/projects/{projectId}/dwh/data/uploads?parts=3 - This request initializes the upload and specifies the number of parts. 2. **Receive a response** containing: - An `id` identifying the upload. - A list of **uploadUrls**, which are S3 pre-signed URLs, one for each part. 3. **Split the CSV file** and upload each part to its corresponding URL using: PUT {uploadUrl} - No additional authentication is required. 4. **Complete the upload** - Once all parts are uploaded, send the [Complete Multipart Data Upload](#operation/completeMultipartUpload) request. 5. **Start the DataPull job** - After completing the upload, start a [dataPull](#operation/submitJobExecution) job with the correct input. ## S3 Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **S3 URL**. ### Example: DataPull Request for S3 Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\" } } ``` ## HTTPS Pull Flow Start a [dataPull](#operation/submitJobExecution) job using an **HTTPS URL**. ### Example: DataPull Request for HTTPS Upload ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"httpsUpload\": \"https://my-domain.com/mystores.csv\", \"type\": \"csv\" } } ``` **Warning**: We do not recommend uploading sensitive information using the HTTPS pull flow, as files hosted on public URLs are accessible to anyone on the internet. **Security** Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. ## CSV Options With **CsvOptions**, you can specify how the CSV should be processed. The available options are: | Option | Type | Description | Default Value | |-------------|----------|---------------------------------------------------------------|--------------| | `header` | boolean | Specifies if the CSV has a header. | `true` | | `separator` | char | Specifies the separator character between fields. | `,` | | `quote` | char | Specifies the quote character. | `\"` | | `escape` | char | Specifies the escape character. | `\\` | | `null` | string | Specifies the replacement value for custom CSV nulls. | *None* | | `forceNull` | string[] | Specifies which CSV columns should enforce null replacement. | *None* | ### Example: DataPull Request for S3 Upload with CSV Options ```json { \"type\": \"dataPull\", \"projectId\": \"ncesksvg7rjeri7v\", \"content\": { \"dataset\": \"mystores\", \"mode\": \"full\", \"s3Upload\": { \"uri\": \"s3://can-s3-dwh-pull-test/mystores.csv\", \"accessKeyId\": \"myAccessKey\", \"secretAccessKey\": \"mySecretAccessKey\" }, \"type\": \"csv\", \"csvOptions\": { \"header\": true, \"separator\": \";\", \"quote\": \"§\", \"escape\": \"\\\\\", \"null\": \"NULL_VALUE\", \"forceNull\": [ \"columnName\", \"otherColumn\" ] } } } ``` + + :param project_id: Id of the project (required) + :type project_id: str + :param parts: + :type parts: 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._data_upload_serialize( + project_id=project_id, + parts=parts, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DataUpload200Response", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _data_upload_serialize( + self, + project_id, + parts, + _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 parts is not None: + + _query_params.append(('parts', parts)) + + # 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='/projects/{projectId}/dwh/data/uploads', + 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 index 60ef5ec..4c39342 100644 --- a/cm_python_openapi_sdk/api/datasets_api.py +++ b/cm_python_openapi_sdk/api/datasets_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/date_ranges_api.py b/cm_python_openapi_sdk/api/date_ranges_api.py new file mode 100644 index 0000000..72afbb0 --- /dev/null +++ b/cm_python_openapi_sdk/api/date_ranges_api.py @@ -0,0 +1,639 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_date_range_request import DwhDateRangeRequest +from cm_python_openapi_sdk.models.dwh_date_range_response import DwhDateRangeResponse +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +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 DateRangesApi: + """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_date_ranges( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_date_range_request: DwhDateRangeRequest, + _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, + ) -> QueriesResponse: + """Accept date ranges + + Accepts a date ranges request. This endpoint returns date ranges for date property in fact table and connected date dimension (if present). There is one mandatory key `from` that defines the date property in a fact table. Optionally, request can specify `filter` for selecting a date range. In `filter`, it's possible to specify either `function`, or `value` as `startDate` and `endDate`. See the Request body example. This request starts an asynchronous action, which computes the date ranges result and returns the location URI of the result in the `location` response header. To get the result, client must make another GET request on this URI (see [getDateRanges](#operation/getDateRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_date_range_request: (required) + :type dwh_date_range_request: DwhDateRangeRequest + :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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_date_range_request=dwh_date_range_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_date_ranges_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_date_range_request: DwhDateRangeRequest, + _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[QueriesResponse]: + """Accept date ranges + + Accepts a date ranges request. This endpoint returns date ranges for date property in fact table and connected date dimension (if present). There is one mandatory key `from` that defines the date property in a fact table. Optionally, request can specify `filter` for selecting a date range. In `filter`, it's possible to specify either `function`, or `value` as `startDate` and `endDate`. See the Request body example. This request starts an asynchronous action, which computes the date ranges result and returns the location URI of the result in the `location` response header. To get the result, client must make another GET request on this URI (see [getDateRanges](#operation/getDateRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_date_range_request: (required) + :type dwh_date_range_request: DwhDateRangeRequest + :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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_date_range_request=dwh_date_range_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_date_ranges_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_date_range_request: DwhDateRangeRequest, + _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 date ranges + + Accepts a date ranges request. This endpoint returns date ranges for date property in fact table and connected date dimension (if present). There is one mandatory key `from` that defines the date property in a fact table. Optionally, request can specify `filter` for selecting a date range. In `filter`, it's possible to specify either `function`, or `value` as `startDate` and `endDate`. See the Request body example. This request starts an asynchronous action, which computes the date ranges result and returns the location URI of the result in the `location` response header. To get the result, client must make another GET request on this URI (see [getDateRanges](#operation/getDateRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_date_range_request: (required) + :type dwh_date_range_request: DwhDateRangeRequest + :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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_date_range_request=dwh_date_range_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_date_ranges_serialize( + self, + project_id, + dwh_cluster_id, + dwh_date_range_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 + if project_id is not None: + _path_params['projectId'] = project_id + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_date_range_request is not None: + _body_params = dwh_date_range_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='/projects/{projectId}/dwh/{dwhClusterId}/dateRanges', + 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_date_ranges( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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, + ) -> DwhDateRangeResponse: + """Get date ranges + + Get the result of the asynchronous date ranges request submitted in [acceptDateRanges](#operation/acceptDateRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhDateRangeResponse", + '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_date_ranges_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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[DwhDateRangeResponse]: + """Get date ranges + + Get the result of the asynchronous date ranges request submitted in [acceptDateRanges](#operation/acceptDateRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhDateRangeResponse", + '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_date_ranges_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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 date ranges + + Get the result of the asynchronous date ranges request submitted in [acceptDateRanges](#operation/acceptDateRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_date_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhDateRangeResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_date_ranges_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_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}/dwh/{dwhClusterId}/dateRanges/{dwhCacheId}', + 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/explain_api.py b/cm_python_openapi_sdk/api/explain_api.py new file mode 100644 index 0000000..45f90b1 --- /dev/null +++ b/cm_python_openapi_sdk/api/explain_api.py @@ -0,0 +1,349 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.api_client import ApiClient, RequestSerialized +from cm_python_openapi_sdk.api_response import ApiResponse +from cm_python_openapi_sdk.rest import RESTResponseType + + +class ExplainApi: + """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 explain( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + 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, + ) -> str: + """Explain query + + This resource is useful for debugging and tuning DWH queries. The resource accepts standard DWH Queries (see [acceptQueries](#operation/acceptQueries))and shows the corresponding SQL statement.) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_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._explain_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_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': "str", + } + 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 explain_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + 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[str]: + """Explain query + + This resource is useful for debugging and tuning DWH queries. The resource accepts standard DWH Queries (see [acceptQueries](#operation/acceptQueries))and shows the corresponding SQL statement.) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_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._explain_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_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': "str", + } + 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 explain_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + 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: + """Explain query + + This resource is useful for debugging and tuning DWH queries. The resource accepts standard DWH Queries (see [acceptQueries](#operation/acceptQueries))and shows the corresponding SQL statement.) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_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._explain_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_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': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _explain_serialize( + self, + project_id, + dwh_cluster_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 + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_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( + [ + 'text/plain;charset=UTF-8' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='POST', + resource_path='/projects/{projectId}/dwh/{dwhClusterId}/explain', + 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/export_api.py b/cm_python_openapi_sdk/api/export_api.py new file mode 100644 index 0000000..e5699b6 --- /dev/null +++ b/cm_python_openapi_sdk/api/export_api.py @@ -0,0 +1,315 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_extensions import Annotated + +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 ExportApi: + """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_exported_data( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + export_id: Annotated[str, Field(strict=True, description="ID of export returned as result of job")], + _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, + ) -> str: + """Get exported data + + Get exported data file from S3. Data can be exported by submitting an `export` job to the `/rest/jobs` endpoint. + + :param project_id: Id of the project (required) + :type project_id: str + :param export_id: ID of export returned as result of job (required) + :type export_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_exported_data_serialize( + project_id=project_id, + export_id=export_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + 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_exported_data_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + export_id: Annotated[str, Field(strict=True, description="ID of export returned as result of job")], + _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[str]: + """Get exported data + + Get exported data file from S3. Data can be exported by submitting an `export` job to the `/rest/jobs` endpoint. + + :param project_id: Id of the project (required) + :type project_id: str + :param export_id: ID of export returned as result of job (required) + :type export_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_exported_data_serialize( + project_id=project_id, + export_id=export_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + 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_exported_data_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + export_id: Annotated[str, Field(strict=True, description="ID of export returned as result of job")], + _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 exported data + + Get exported data file from S3. Data can be exported by submitting an `export` job to the `/rest/jobs` endpoint. + + :param project_id: Id of the project (required) + :type project_id: str + :param export_id: ID of export returned as result of job (required) + :type export_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_exported_data_serialize( + project_id=project_id, + export_id=export_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "str", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_exported_data_serialize( + self, + project_id, + export_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 export_id is not None: + _path_params['exportId'] = export_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( + [ + 'text/csv', + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + ] + ) + + + # authentication setting + _auth_settings: List[str] = [ + 'bearerAuth' + ] + + return self.api_client.param_serialize( + method='GET', + resource_path='/projects/{projectId}/export/{exportId}', + 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 index 164684c..2cc2846 100644 --- a/cm_python_openapi_sdk/api/exports_api.py +++ b/cm_python_openapi_sdk/api/exports_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/indicator_drills_api.py b/cm_python_openapi_sdk/api/indicator_drills_api.py index d286e47..a8202e7 100644 --- a/cm_python_openapi_sdk/api/indicator_drills_api.py +++ b/cm_python_openapi_sdk/api/indicator_drills_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/indicators_api.py b/cm_python_openapi_sdk/api/indicators_api.py index 314b9ae..0d563dd 100644 --- a/cm_python_openapi_sdk/api/indicators_api.py +++ b/cm_python_openapi_sdk/api/indicators_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/user_invitations_api.py b/cm_python_openapi_sdk/api/invitation_api.py similarity index 95% rename from cm_python_openapi_sdk/api/user_invitations_api.py rename to cm_python_openapi_sdk/api/invitation_api.py index fd1af43..74f7a2b 100644 --- a/cm_python_openapi_sdk/api/user_invitations_api.py +++ b/cm_python_openapi_sdk/api/invitation_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -25,7 +26,7 @@ from cm_python_openapi_sdk.rest import RESTResponseType -class UserInvitationsApi: +class InvitationApi: """NOTE: This class is auto generated by OpenAPI Generator Ref: https://openapi-generator.tech @@ -39,7 +40,7 @@ def __init__(self, api_client=None) -> None: @validate_call - def accept_user_invitation( + def accept_project_invitation( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -83,7 +84,7 @@ def accept_user_invitation( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_user_invitation_serialize( + _param = self._accept_project_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -109,7 +110,7 @@ def accept_user_invitation( @validate_call - def accept_user_invitation_with_http_info( + def accept_project_invitation_with_http_info( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -153,7 +154,7 @@ def accept_user_invitation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_user_invitation_serialize( + _param = self._accept_project_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -179,7 +180,7 @@ def accept_user_invitation_with_http_info( @validate_call - def accept_user_invitation_without_preload_content( + def accept_project_invitation_without_preload_content( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -223,7 +224,7 @@ def accept_user_invitation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._accept_user_invitation_serialize( + _param = self._accept_project_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -244,7 +245,7 @@ def accept_user_invitation_without_preload_content( return response_data.response - def _accept_user_invitation_serialize( + def _accept_project_invitation_serialize( self, invitation_hash, _request_auth, @@ -309,7 +310,7 @@ def _accept_user_invitation_serialize( @validate_call - def get_user_invitation( + def get_invitation( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -353,7 +354,7 @@ def get_user_invitation( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_invitation_serialize( + _param = self._get_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -376,7 +377,7 @@ def get_user_invitation( @validate_call - def get_user_invitation_with_http_info( + def get_invitation_with_http_info( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -420,7 +421,7 @@ def get_user_invitation_with_http_info( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_invitation_serialize( + _param = self._get_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -443,7 +444,7 @@ def get_user_invitation_with_http_info( @validate_call - def get_user_invitation_without_preload_content( + def get_invitation_without_preload_content( self, invitation_hash: Annotated[str, Field(strict=True, description="Hash of the invitation")], _request_timeout: Union[ @@ -487,7 +488,7 @@ def get_user_invitation_without_preload_content( :return: Returns the result object. """ # noqa: E501 - _param = self._get_user_invitation_serialize( + _param = self._get_invitation_serialize( invitation_hash=invitation_hash, _request_auth=_request_auth, _content_type=_content_type, @@ -505,7 +506,7 @@ def get_user_invitation_without_preload_content( return response_data.response - def _get_user_invitation_serialize( + def _get_invitation_serialize( self, invitation_hash, _request_auth, diff --git a/cm_python_openapi_sdk/api/isochrone_api.py b/cm_python_openapi_sdk/api/isochrone_api.py index 7ee2935..57db34d 100644 --- a/cm_python_openapi_sdk/api/isochrone_api.py +++ b/cm_python_openapi_sdk/api/isochrone_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -62,9 +63,9 @@ def get_isochrone( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> IsochronePagedModelDTO: - """get_isochrone + """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 + 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 @@ -153,9 +154,9 @@ def get_isochrone_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[IsochronePagedModelDTO]: - """get_isochrone + """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 + 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 @@ -244,9 +245,9 @@ def get_isochrone_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_isochrone + """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 + 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 diff --git a/cm_python_openapi_sdk/api/jobs_api.py b/cm_python_openapi_sdk/api/jobs_api.py index e662f45..0532332 100644 --- a/cm_python_openapi_sdk/api/jobs_api.py +++ b/cm_python_openapi_sdk/api/jobs_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -59,7 +60,7 @@ def get_job_status( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> JobDetailResponse: - """get_job_status + """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. @@ -130,7 +131,7 @@ def get_job_status_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[JobDetailResponse]: - """get_job_status + """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. @@ -201,7 +202,7 @@ def get_job_status_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_job_status + """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. @@ -322,13 +323,12 @@ def _get_job_status_serialize( @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, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = 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)], @@ -342,24 +342,22 @@ def get_jobs_history( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> JobHistoryPagedModelDTO: - """get_jobs_history + """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) + :param project_id: Id of the project, used as query parameter (required) :type project_id: str - :param account_id: AccountId that started the job executions + :param account_id: Id of the account, used in query parameters :type account_id: str + :param sort_direction: Sort direction + :type sort_direction: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: 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 @@ -385,11 +383,10 @@ def get_jobs_history( _param = self._get_jobs_history_serialize( project_id=project_id, account_id=account_id, + sort_direction=sort_direction, + last_evaluated_timestamp=last_evaluated_timestamp, 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, @@ -413,13 +410,12 @@ def get_jobs_history( @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, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = 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)], @@ -433,24 +429,22 @@ def get_jobs_history_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[JobHistoryPagedModelDTO]: - """get_jobs_history + """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) + :param project_id: Id of the project, used as query parameter (required) :type project_id: str - :param account_id: AccountId that started the job executions + :param account_id: Id of the account, used in query parameters :type account_id: str + :param sort_direction: Sort direction + :type sort_direction: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: 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 @@ -476,11 +470,10 @@ def get_jobs_history_with_http_info( _param = self._get_jobs_history_serialize( project_id=project_id, account_id=account_id, + sort_direction=sort_direction, + last_evaluated_timestamp=last_evaluated_timestamp, 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, @@ -504,13 +497,12 @@ def get_jobs_history_with_http_info( @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, + project_id: Annotated[str, Field(strict=True, description="Id of the project, used as query parameter")], + account_id: Annotated[Optional[Annotated[str, Field(strict=True)]], Field(description="Id of the account, used in query parameters")] = None, + sort_direction: Annotated[Optional[StrictStr], Field(description="Sort direction")] = None, + last_evaluated_timestamp: Annotated[Optional[StrictStr], Field(description="Last evaluated timestamp when requesting next page (UTC timestamp format)")] = 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)], @@ -524,24 +516,22 @@ def get_jobs_history_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """get_jobs_history + """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) + :param project_id: Id of the project, used as query parameter (required) :type project_id: str - :param account_id: AccountId that started the job executions + :param account_id: Id of the account, used in query parameters :type account_id: str + :param sort_direction: Sort direction + :type sort_direction: str + :param last_evaluated_timestamp: Last evaluated timestamp when requesting next page (UTC timestamp format) + :type last_evaluated_timestamp: 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 @@ -567,11 +557,10 @@ def get_jobs_history_without_preload_content( _param = self._get_jobs_history_serialize( project_id=project_id, account_id=account_id, + sort_direction=sort_direction, + last_evaluated_timestamp=last_evaluated_timestamp, 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, @@ -592,11 +581,10 @@ def _get_jobs_history_serialize( self, project_id, account_id, + sort_direction, + last_evaluated_timestamp, type, dataset, - last_evaluated_timestamp, - size, - sort_direction, _request_auth, _content_type, _headers, @@ -627,25 +615,21 @@ def _get_jobs_history_serialize( _query_params.append(('accountId', account_id)) - if type is not None: - - _query_params.append(('type', type)) - - if dataset is not None: + if sort_direction is not None: - _query_params.append(('dataset', dataset)) + _query_params.append(('sortDirection', sort_direction)) if last_evaluated_timestamp is not None: _query_params.append(('lastEvaluatedTimestamp', last_evaluated_timestamp)) - if size is not None: + if type is not None: - _query_params.append(('size', size)) + _query_params.append(('type', type)) - if sort_direction is not None: + if dataset is not None: - _query_params.append(('sortDirection', sort_direction)) + _query_params.append(('dataset', dataset)) # process the header parameters # process the form parameters @@ -701,7 +685,7 @@ def submit_job_execution( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> JobDetailResponse: - """submit_job_execution + """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. @@ -768,7 +752,7 @@ def submit_job_execution_with_http_info( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> ApiResponse[JobDetailResponse]: - """submit_job_execution + """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. @@ -835,7 +819,7 @@ def submit_job_execution_without_preload_content( _headers: Optional[Dict[StrictStr, Any]] = None, _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, ) -> RESTResponseType: - """submit_job_execution + """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. diff --git a/cm_python_openapi_sdk/api/maps_api.py b/cm_python_openapi_sdk/api/maps_api.py index 9939bb8..81da8a8 100644 --- a/cm_python_openapi_sdk/api/maps_api.py +++ b/cm_python_openapi_sdk/api/maps_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/marker_selectors_api.py b/cm_python_openapi_sdk/api/marker_selectors_api.py index 661386a..0e45c4a 100644 --- a/cm_python_openapi_sdk/api/marker_selectors_api.py +++ b/cm_python_openapi_sdk/api/marker_selectors_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/markers_api.py b/cm_python_openapi_sdk/api/markers_api.py index 236dbcd..ffd4a16 100644 --- a/cm_python_openapi_sdk/api/markers_api.py +++ b/cm_python_openapi_sdk/api/markers_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/members_api.py b/cm_python_openapi_sdk/api/members_api.py index 31a0fb2..04a8bb3 100644 --- a/cm_python_openapi_sdk/api/members_api.py +++ b/cm_python_openapi_sdk/api/members_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -62,7 +63,7 @@ def add_project_member( ) -> 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. + 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 @@ -133,7 +134,7 @@ def add_project_member_with_http_info( ) -> 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. + 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 @@ -204,7 +205,7 @@ def add_project_member_without_preload_content( ) -> 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. + 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 diff --git a/cm_python_openapi_sdk/api/metric_ranges_api.py b/cm_python_openapi_sdk/api/metric_ranges_api.py new file mode 100644 index 0000000..3934a0b --- /dev/null +++ b/cm_python_openapi_sdk/api/metric_ranges_api.py @@ -0,0 +1,639 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_metric_range_response import DwhMetricRangeResponse +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +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 MetricRangesApi: + """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_metric_ranges( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + _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, + ) -> QueriesResponse: + """Accept metric ranges + + Accepts a metric ranges request and returns the range values for all given metrics. The range values depend on selected granularity defined in the query properties. Metric Ranges is used for the map legend range. This request starts an asynchronous action, which computes the metric ranges result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getMetricRanges](#operation/getMetricRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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_metric_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_metric_ranges_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + _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[QueriesResponse]: + """Accept metric ranges + + Accepts a metric ranges request and returns the range values for all given metrics. The range values depend on selected granularity defined in the query properties. Metric Ranges is used for the map legend range. This request starts an asynchronous action, which computes the metric ranges result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getMetricRanges](#operation/getMetricRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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_metric_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_metric_ranges_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + _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 metric ranges + + Accepts a metric ranges request and returns the range values for all given metrics. The range values depend on selected granularity defined in the query properties. Metric Ranges is used for the map legend range. This request starts an asynchronous action, which computes the metric ranges result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getMetricRanges](#operation/getMetricRanges)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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_metric_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_metric_ranges_serialize( + self, + project_id, + dwh_cluster_id, + dwh_query_request1, + _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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_query_request1 is not None: + _body_params = dwh_query_request1 + + + # 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}/dwh/{dwhClusterId}/metricRanges', + 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_ranges( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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, + ) -> DwhMetricRangeResponse: + """Get metric ranges + + Get the result of the asynchronous metric ranges request submitted in [acceptMetricRanges](#operation/acceptMetricRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). The resource returns these values for each metric: * `min` - minimal value for metric in given scope * `max` - maximal value for metric in given scope + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricRangeResponse", + '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_ranges_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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[DwhMetricRangeResponse]: + """Get metric ranges + + Get the result of the asynchronous metric ranges request submitted in [acceptMetricRanges](#operation/acceptMetricRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). The resource returns these values for each metric: * `min` - minimal value for metric in given scope * `max` - maximal value for metric in given scope + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricRangeResponse", + '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_ranges_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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 metric ranges + + Get the result of the asynchronous metric ranges request submitted in [acceptMetricRanges](#operation/acceptMetricRanges). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). The resource returns these values for each metric: * `min` - minimal value for metric in given scope * `max` - maximal value for metric in given scope + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_ranges_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricRangeResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_metric_ranges_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_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}/dwh/{dwhClusterId}/metricRanges/{dwhCacheId}', + 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 index 87acd2d..0e64dde 100644 --- a/cm_python_openapi_sdk/api/metrics_api.py +++ b/cm_python_openapi_sdk/api/metrics_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/organizations_api.py b/cm_python_openapi_sdk/api/organizations_api.py index 66b8cad..3392300 100644 --- a/cm_python_openapi_sdk/api/organizations_api.py +++ b/cm_python_openapi_sdk/api/organizations_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/overlaps_api.py b/cm_python_openapi_sdk/api/overlaps_api.py new file mode 100644 index 0000000..ce21be8 --- /dev/null +++ b/cm_python_openapi_sdk/api/overlaps_api.py @@ -0,0 +1,639 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_overlaps_request import DwhOverlapsRequest +from cm_python_openapi_sdk.models.dwh_overlaps_response import DwhOverlapsResponse +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +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 OverlapsApi: + """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_overlaps( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_overlaps_request: DwhOverlapsRequest, + _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, + ) -> QueriesResponse: + """Accept overlaps + + Computes set of operations between two objects for given metric on selected granularity level. The result is the metric value for the areas. Supported operations: * `subtract` - metric value for areas exclusively covered by one object (areas covered by objectA subtract areas covered by objectB) * `intersect` - metric value for areas covered by both objects (areas covered by objectA and by objectB) * `major_dominance` - metric value for areas where an object has a major dominance (a value of it's metric is more than 90% in compare with the other object) * `minor_dominance` - metric value for areas where an object has minor dominance (a value of it's metric is less than 90% but more than 60% in compare with the other object) * `equivalent_dominance` - metric value for areas where both objects have a similar share (a ratio of metric's values is between 40 - 60%) This request starts an asynchronous action, which computes the overlaps result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getOverlaps](#operation/getOverlaps)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_overlaps_request: (required) + :type dwh_overlaps_request: DwhOverlapsRequest + :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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_overlaps_request=dwh_overlaps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_overlaps_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_overlaps_request: DwhOverlapsRequest, + _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[QueriesResponse]: + """Accept overlaps + + Computes set of operations between two objects for given metric on selected granularity level. The result is the metric value for the areas. Supported operations: * `subtract` - metric value for areas exclusively covered by one object (areas covered by objectA subtract areas covered by objectB) * `intersect` - metric value for areas covered by both objects (areas covered by objectA and by objectB) * `major_dominance` - metric value for areas where an object has a major dominance (a value of it's metric is more than 90% in compare with the other object) * `minor_dominance` - metric value for areas where an object has minor dominance (a value of it's metric is less than 90% but more than 60% in compare with the other object) * `equivalent_dominance` - metric value for areas where both objects have a similar share (a ratio of metric's values is between 40 - 60%) This request starts an asynchronous action, which computes the overlaps result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getOverlaps](#operation/getOverlaps)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_overlaps_request: (required) + :type dwh_overlaps_request: DwhOverlapsRequest + :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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_overlaps_request=dwh_overlaps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_overlaps_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_overlaps_request: DwhOverlapsRequest, + _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 overlaps + + Computes set of operations between two objects for given metric on selected granularity level. The result is the metric value for the areas. Supported operations: * `subtract` - metric value for areas exclusively covered by one object (areas covered by objectA subtract areas covered by objectB) * `intersect` - metric value for areas covered by both objects (areas covered by objectA and by objectB) * `major_dominance` - metric value for areas where an object has a major dominance (a value of it's metric is more than 90% in compare with the other object) * `minor_dominance` - metric value for areas where an object has minor dominance (a value of it's metric is less than 90% but more than 60% in compare with the other object) * `equivalent_dominance` - metric value for areas where both objects have a similar share (a ratio of metric's values is between 40 - 60%) This request starts an asynchronous action, which computes the overlaps result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getOverlaps](#operation/getOverlaps)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_overlaps_request: (required) + :type dwh_overlaps_request: DwhOverlapsRequest + :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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_overlaps_request=dwh_overlaps_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_overlaps_serialize( + self, + project_id, + dwh_cluster_id, + dwh_overlaps_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 + if project_id is not None: + _path_params['projectId'] = project_id + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_overlaps_request is not None: + _body_params = dwh_overlaps_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='/projects/{projectId}/dwh/{dwhClusterId}/overlaps', + 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_overlaps( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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, + ) -> DwhOverlapsResponse: + """Get overlaps + + Get the result of the asynchronous overlaps request submitted in [acceptOverlaps](#operation/acceptOverlaps). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhOverlapsResponse", + '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_overlaps_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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[DwhOverlapsResponse]: + """Get overlaps + + Get the result of the asynchronous overlaps request submitted in [acceptOverlaps](#operation/acceptOverlaps). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhOverlapsResponse", + '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_overlaps_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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 overlaps + + Get the result of the asynchronous overlaps request submitted in [acceptOverlaps](#operation/acceptOverlaps). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_overlaps_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhOverlapsResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_overlaps_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_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}/dwh/{dwhClusterId}/overlaps/{dwhCacheId}', + 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 index 1edd55d..2532412 100644 --- a/cm_python_openapi_sdk/api/project_invitations_api.py +++ b/cm_python_openapi_sdk/api/project_invitations_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -1233,7 +1234,7 @@ def update_invitation( ) -> 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. + 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 @@ -1309,7 +1310,7 @@ def update_invitation_with_http_info( ) -> 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. + 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 @@ -1385,7 +1386,7 @@ def update_invitation_without_preload_content( ) -> 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. + 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 diff --git a/cm_python_openapi_sdk/api/project_settings_api.py b/cm_python_openapi_sdk/api/project_settings_api.py index 9d69e64..8ee7b83 100644 --- a/cm_python_openapi_sdk/api/project_settings_api.py +++ b/cm_python_openapi_sdk/api/project_settings_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/projects_api.py b/cm_python_openapi_sdk/api/projects_api.py index 25ca1b1..efe4d71 100644 --- a/cm_python_openapi_sdk/api/projects_api.py +++ b/cm_python_openapi_sdk/api/projects_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api/property_values_api.py b/cm_python_openapi_sdk/api/property_values_api.py new file mode 100644 index 0000000..e3a0c7d --- /dev/null +++ b/cm_python_openapi_sdk/api/property_values_api.py @@ -0,0 +1,725 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_property_values_request import DwhPropertyValuesRequest +from cm_python_openapi_sdk.models.property_values_response import PropertyValuesResponse +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +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 PropertyValuesApi: + """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_property_values( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_request: DwhPropertyValuesRequest, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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, + _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, + ) -> QueriesResponse: + """Accept property values + + Gets list of distinct values of given dataset's property. The property is set by mandatory request body attribute `property`. The distinct values are returned as pageable response. By default, the values are ordered ascending by the property value. Optionaly the sort order can be changed and the values can be sorted by another propety (eg. sort day of week by day id instead of day name). This resource is typically used for fetching of the multiSelect and singleSelect filter content. This request starts an asynchronous action, which computes the property values result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValues](#operation/getPropertyValues)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_request: (required) + :type dwh_property_values_request: DwhPropertyValuesRequest + :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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_request=dwh_property_values_request, + size=size, + page=page, + sort=sort, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_property_values_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_request: DwhPropertyValuesRequest, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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, + _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[QueriesResponse]: + """Accept property values + + Gets list of distinct values of given dataset's property. The property is set by mandatory request body attribute `property`. The distinct values are returned as pageable response. By default, the values are ordered ascending by the property value. Optionaly the sort order can be changed and the values can be sorted by another propety (eg. sort day of week by day id instead of day name). This resource is typically used for fetching of the multiSelect and singleSelect filter content. This request starts an asynchronous action, which computes the property values result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValues](#operation/getPropertyValues)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_request: (required) + :type dwh_property_values_request: DwhPropertyValuesRequest + :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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_request=dwh_property_values_request, + size=size, + page=page, + sort=sort, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_property_values_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_request: DwhPropertyValuesRequest, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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, + _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 property values + + Gets list of distinct values of given dataset's property. The property is set by mandatory request body attribute `property`. The distinct values are returned as pageable response. By default, the values are ordered ascending by the property value. Optionaly the sort order can be changed and the values can be sorted by another propety (eg. sort day of week by day id instead of day name). This resource is typically used for fetching of the multiSelect and singleSelect filter content. This request starts an asynchronous action, which computes the property values result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValues](#operation/getPropertyValues)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_request: (required) + :type dwh_property_values_request: DwhPropertyValuesRequest + :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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_request=dwh_property_values_request, + size=size, + page=page, + sort=sort, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_property_values_serialize( + self, + project_id, + dwh_cluster_id, + dwh_property_values_request, + size, + page, + 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 + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_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)) + + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_property_values_request is not None: + _body_params = dwh_property_values_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='/projects/{projectId}/dwh/{dwhClusterId}/propertyValues', + 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_property_values( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + size: Annotated[Optional[Annotated[int, Field(le=20000, 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, + ) -> PropertyValuesResponse: + """Get property values + + Get the result of the asynchronous property values request submitted in [acceptPropertyValues](#operation/acceptPropertyValues). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + 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': "PropertyValuesResponse", + '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_property_values_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + size: Annotated[Optional[Annotated[int, Field(le=20000, 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[PropertyValuesResponse]: + """Get property values + + Get the result of the asynchronous property values request submitted in [acceptPropertyValues](#operation/acceptPropertyValues). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + 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': "PropertyValuesResponse", + '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_property_values_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + size: Annotated[Optional[Annotated[int, Field(le=20000, 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 property values + + Get the result of the asynchronous property values request submitted in [acceptPropertyValues](#operation/acceptPropertyValues). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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 _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_property_values_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + 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': "PropertyValuesResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_property_values_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_id, + 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 + if project_id is not None: + _path_params['projectId'] = project_id + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_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)) + + # 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}/dwh/{dwhClusterId}/propertyValues/{dwhCacheId}', + 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/property_values_distribution_api.py b/cm_python_openapi_sdk/api/property_values_distribution_api.py new file mode 100644 index 0000000..f832660 --- /dev/null +++ b/cm_python_openapi_sdk/api/property_values_distribution_api.py @@ -0,0 +1,673 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_extensions import Annotated +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response import DwhMetricValuesDistributionResponse +from cm_python_openapi_sdk.models.dwh_property_values_distribution_request import DwhPropertyValuesDistributionRequest +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +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 PropertyValuesDistributionApi: + """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_property_values_distribution( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest, + _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, + ) -> QueriesResponse: + """accept_property_values_distribution + + Computes the distribution (frequency) of given fact (numeric dataset property). Result is splitted into required number of equal size buckets. The frequency is the count of occurencies of given metric in these buckets. This resource is typically used for the histogram filter distribution. This request starts an asynchronous action, which computes the property values distributions result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValuesDistribution](#operation/getPropertyValuesDistribution)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_distribution_request: (required) + :type dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest + :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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_distribution_request=dwh_property_values_distribution_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_property_values_distribution_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest, + _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[QueriesResponse]: + """accept_property_values_distribution + + Computes the distribution (frequency) of given fact (numeric dataset property). Result is splitted into required number of equal size buckets. The frequency is the count of occurencies of given metric in these buckets. This resource is typically used for the histogram filter distribution. This request starts an asynchronous action, which computes the property values distributions result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValuesDistribution](#operation/getPropertyValuesDistribution)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_distribution_request: (required) + :type dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest + :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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_distribution_request=dwh_property_values_distribution_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + 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_property_values_distribution_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest, + _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_property_values_distribution + + Computes the distribution (frequency) of given fact (numeric dataset property). Result is splitted into required number of equal size buckets. The frequency is the count of occurencies of given metric in these buckets. This resource is typically used for the histogram filter distribution. This request starts an asynchronous action, which computes the property values distributions result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValuesDistribution](#operation/getPropertyValuesDistribution)). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_property_values_distribution_request: (required) + :type dwh_property_values_distribution_request: DwhPropertyValuesDistributionRequest + :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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_property_values_distribution_request=dwh_property_values_distribution_request, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_property_values_distribution_serialize( + self, + project_id, + dwh_cluster_id, + dwh_property_values_distribution_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 + if project_id is not None: + _path_params['projectId'] = project_id + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + # process the query parameters + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_property_values_distribution_request is not None: + _body_params = dwh_property_values_distribution_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='/projects/{projectId}/dwh/{dwhClusterId}/propertyValuesDistributions', + 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_property_values_distribution( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + null_cache_id: Annotated[StrictStr, Field(description="The ID of a cached null values distribution result")], + var_property: Annotated[StrictStr, Field(description="Dataset's property identifier")], + _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, + ) -> DwhMetricValuesDistributionResponse: + """get_property_values_distribution + + Get the result of the asynchronous property values distributions request submitted in [acceptPropertyValuesDistribution](#operation/acceptPropertyValuesDistribution). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_id: str + :param null_cache_id: The ID of a cached null values distribution result (required) + :type null_cache_id: str + :param var_property: Dataset's property identifier (required) + :type var_property: 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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + null_cache_id=null_cache_id, + var_property=var_property, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricValuesDistributionResponse", + '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_property_values_distribution_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + null_cache_id: Annotated[StrictStr, Field(description="The ID of a cached null values distribution result")], + var_property: Annotated[StrictStr, Field(description="Dataset's property identifier")], + _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[DwhMetricValuesDistributionResponse]: + """get_property_values_distribution + + Get the result of the asynchronous property values distributions request submitted in [acceptPropertyValuesDistribution](#operation/acceptPropertyValuesDistribution). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_id: str + :param null_cache_id: The ID of a cached null values distribution result (required) + :type null_cache_id: str + :param var_property: Dataset's property identifier (required) + :type var_property: 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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + null_cache_id=null_cache_id, + var_property=var_property, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricValuesDistributionResponse", + '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_property_values_distribution_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + null_cache_id: Annotated[StrictStr, Field(description="The ID of a cached null values distribution result")], + var_property: Annotated[StrictStr, Field(description="Dataset's property identifier")], + _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_property_values_distribution + + Get the result of the asynchronous property values distributions request submitted in [acceptPropertyValuesDistribution](#operation/acceptPropertyValuesDistribution). This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_id: str + :param null_cache_id: The ID of a cached null values distribution result (required) + :type null_cache_id: str + :param var_property: Dataset's property identifier (required) + :type var_property: 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_property_values_distribution_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + null_cache_id=null_cache_id, + var_property=var_property, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "DwhMetricValuesDistributionResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_property_values_distribution_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_id, + null_cache_id, + var_property, + _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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_id + # process the query parameters + if null_cache_id is not None: + + _query_params.append(('nullCacheId', null_cache_id)) + + if var_property is not None: + + _query_params.append(('property', var_property)) + + # 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}/dwh/{dwhClusterId}/propertyValuesDistributions/{dwhCacheId}', + 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/queries_api.py b/cm_python_openapi_sdk/api/queries_api.py new file mode 100644 index 0000000..2b88acb --- /dev/null +++ b/cm_python_openapi_sdk/api/queries_api.py @@ -0,0 +1,674 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +from cm_python_openapi_sdk.models.query_response import QueryResponse + +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 QueriesApi: + """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_queries( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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, + ) -> QueriesResponse: + """Accept queries + + Accepts a query to be computed on a data warehouse. This is the main endpoint for computing data messages on a multidimensional data model. The POST of an query request starts an asynchronous task and returns the location URI of the result in `location` response header. To get the status of asynchronous report result computation, client must make another GET request on the URI from `location` header (see [getQueries](#operation/getQueries)). More information about functions and building CleverMaps metrics is described in the developer documentation: - [Metric's documentation](https://docs.clevermaps.io/docs/metrics) - [DWH query function list](https://docs.clevermaps.io/docs/metrics#Metrics-DWHqueryfunctionlistDWH-query-function-list) - [Filter operators list ](https://docs.clevermaps.io/docs/metrics#Metrics-FilteroperatorslistFilter-operators-list) - [Metrics cheatsheet](https://docs.clevermaps.io/docs/metrics-cheatsheet) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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._accept_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + 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]] = { + '202': "QueriesResponse", + } + 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_queries_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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[QueriesResponse]: + """Accept queries + + Accepts a query to be computed on a data warehouse. This is the main endpoint for computing data messages on a multidimensional data model. The POST of an query request starts an asynchronous task and returns the location URI of the result in `location` response header. To get the status of asynchronous report result computation, client must make another GET request on the URI from `location` header (see [getQueries](#operation/getQueries)). More information about functions and building CleverMaps metrics is described in the developer documentation: - [Metric's documentation](https://docs.clevermaps.io/docs/metrics) - [DWH query function list](https://docs.clevermaps.io/docs/metrics#Metrics-DWHqueryfunctionlistDWH-query-function-list) - [Filter operators list ](https://docs.clevermaps.io/docs/metrics#Metrics-FilteroperatorslistFilter-operators-list) - [Metrics cheatsheet](https://docs.clevermaps.io/docs/metrics-cheatsheet) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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._accept_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + 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]] = { + '202': "QueriesResponse", + } + 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_queries_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_query_request1: DwhQueryRequest1, + size: Annotated[Optional[Annotated[int, Field(le=20000, 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: + """Accept queries + + Accepts a query to be computed on a data warehouse. This is the main endpoint for computing data messages on a multidimensional data model. The POST of an query request starts an asynchronous task and returns the location URI of the result in `location` response header. To get the status of asynchronous report result computation, client must make another GET request on the URI from `location` header (see [getQueries](#operation/getQueries)). More information about functions and building CleverMaps metrics is described in the developer documentation: - [Metric's documentation](https://docs.clevermaps.io/docs/metrics) - [DWH query function list](https://docs.clevermaps.io/docs/metrics#Metrics-DWHqueryfunctionlistDWH-query-function-list) - [Filter operators list ](https://docs.clevermaps.io/docs/metrics#Metrics-FilteroperatorslistFilter-operators-list) - [Metrics cheatsheet](https://docs.clevermaps.io/docs/metrics-cheatsheet) + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_query_request1: (required) + :type dwh_query_request1: DwhQueryRequest1 + :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._accept_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_query_request1=dwh_query_request1, + 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]] = { + '202': "QueriesResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _accept_queries_serialize( + self, + project_id, + dwh_cluster_id, + dwh_query_request1, + 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 + if project_id is not None: + _path_params['projectId'] = project_id + if dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_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)) + + # process the header parameters + # process the form parameters + # process the body parameter + if dwh_query_request1 is not None: + _body_params = dwh_query_request1 + + + # 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}/dwh/{dwhClusterId}/queries', + 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_queries( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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, + ) -> QueryResponse: + """Get queries + + Get the result of the asynchronous query request submitted in [acceptQueries](#operation/acceptQueries). This endpoint implements long polling - the client polls the Location URI and the server holds the request open until the query result is available. Then returns either successful or failed response. It is also possible that the request will time out and respond with 404 after 30s. This can mean two things: * The result is still being computed * The result was not found In that case, the client can make another request and wait if the result will be computed in another 30s interval. The number of repeated GET requests is up to the client. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResponse", + '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_queries_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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[QueryResponse]: + """Get queries + + Get the result of the asynchronous query request submitted in [acceptQueries](#operation/acceptQueries). This endpoint implements long polling - the client polls the Location URI and the server holds the request open until the query result is available. Then returns either successful or failed response. It is also possible that the request will time out and respond with 404 after 30s. This can mean two things: * The result is still being computed * The result was not found In that case, the client can make another request and wait if the result will be computed in another 30s interval. The number of repeated GET requests is up to the client. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResponse", + '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_queries_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + dwh_cluster_id: Annotated[str, Field(strict=True, description="Id of the dwh cluster")], + dwh_cache_id: Annotated[str, Field(strict=True, description="Id of the dwh cache")], + _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 queries + + Get the result of the asynchronous query request submitted in [acceptQueries](#operation/acceptQueries). This endpoint implements long polling - the client polls the Location URI and the server holds the request open until the query result is available. Then returns either successful or failed response. It is also possible that the request will time out and respond with 404 after 30s. This can mean two things: * The result is still being computed * The result was not found In that case, the client can make another request and wait if the result will be computed in another 30s interval. The number of repeated GET requests is up to the client. + + :param project_id: Id of the project (required) + :type project_id: str + :param dwh_cluster_id: Id of the dwh cluster (required) + :type dwh_cluster_id: str + :param dwh_cache_id: Id of the dwh cache (required) + :type dwh_cache_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_queries_serialize( + project_id=project_id, + dwh_cluster_id=dwh_cluster_id, + dwh_cache_id=dwh_cache_id, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "QueryResponse", + '404': None, + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _get_queries_serialize( + self, + project_id, + dwh_cluster_id, + dwh_cache_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 dwh_cluster_id is not None: + _path_params['dwhClusterId'] = dwh_cluster_id + if dwh_cache_id is not None: + _path_params['dwhCacheId'] = dwh_cache_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}/dwh/{dwhClusterId}/queries/{dwhCacheId}', + 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/search_api.py b/cm_python_openapi_sdk/api/search_api.py new file mode 100644 index 0000000..2a32647 --- /dev/null +++ b/cm_python_openapi_sdk/api/search_api.py @@ -0,0 +1,718 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.geosearch_paged_model_dto import GeosearchPagedModelDTO +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse + +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 SearchApi: + """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 full_text_search( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + query: Annotated[StrictStr, Field(description="Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`.")], + 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, + dataset: Annotated[Optional[StrictStr], Field(description="Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers`")] = 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, + ) -> SearchQueryResponse: + """Full text search on all internal project data. + + Full text search on all internal project data. The search service indexes title and subtitle of all geometry datasets (`geometryPoint`, `geometryLine`, `geometryPolygon`). The dataset is indexed during dataset `pull job`. It means that if the `title` or `subtitle` definition is changed in dataset's metadata definition, the affected dataset must be fully loaded again. + + :param project_id: Id of the project (required) + :type project_id: str + :param query: Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`. (required) + :type query: 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 dataset: Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers` + :type dataset: 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._full_text_search_serialize( + project_id=project_id, + query=query, + page=page, + size=size, + dataset=dataset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SearchQueryResponse", + } + 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 full_text_search_with_http_info( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + query: Annotated[StrictStr, Field(description="Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`.")], + 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, + dataset: Annotated[Optional[StrictStr], Field(description="Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers`")] = 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[SearchQueryResponse]: + """Full text search on all internal project data. + + Full text search on all internal project data. The search service indexes title and subtitle of all geometry datasets (`geometryPoint`, `geometryLine`, `geometryPolygon`). The dataset is indexed during dataset `pull job`. It means that if the `title` or `subtitle` definition is changed in dataset's metadata definition, the affected dataset must be fully loaded again. + + :param project_id: Id of the project (required) + :type project_id: str + :param query: Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`. (required) + :type query: 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 dataset: Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers` + :type dataset: 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._full_text_search_serialize( + project_id=project_id, + query=query, + page=page, + size=size, + dataset=dataset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SearchQueryResponse", + } + 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 full_text_search_without_preload_content( + self, + project_id: Annotated[str, Field(strict=True, description="Id of the project")], + query: Annotated[StrictStr, Field(description="Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`.")], + 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, + dataset: Annotated[Optional[StrictStr], Field(description="Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers`")] = 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: + """Full text search on all internal project data. + + Full text search on all internal project data. The search service indexes title and subtitle of all geometry datasets (`geometryPoint`, `geometryLine`, `geometryPolygon`). The dataset is indexed during dataset `pull job`. It means that if the `title` or `subtitle` definition is changed in dataset's metadata definition, the affected dataset must be fully loaded again. + + :param project_id: Id of the project (required) + :type project_id: str + :param query: Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`. (required) + :type query: 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 dataset: Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers` + :type dataset: 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._full_text_search_serialize( + project_id=project_id, + query=query, + page=page, + size=size, + dataset=dataset, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "SearchQueryResponse", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _full_text_search_serialize( + self, + project_id, + query, + page, + size, + dataset, + _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 query is not None: + + _query_params.append(('query', query)) + + if dataset is not None: + + _query_params.append(('dataset', dataset)) + + # 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}/search', + 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 geographic_search( + self, + query: Annotated[StrictStr, Field(description="Query search phrase. It is highlighted in the query result.")], + 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, + country: Annotated[Optional[StrictStr], Field(description="Array of ISO 3166 alpha-2 country codes to limit the search.")] = None, + language: Annotated[Optional[StrictStr], Field(description="Language to use for query results as defined by ISO 639-1.")] = None, + types: Annotated[Optional[StrictStr], Field(description="Array of place types, available types are [region, district, city, locality, address, postcode]")] = 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, + ) -> GeosearchPagedModelDTO: + """Geographic search + + Wrapper of [Mapbox Geocoding service](https://docs.mapbox.com/api/search/geocoding/). Processes the query and validates the URL parameters. If the query is valid, it is executed on Mapbox API. The result is then translated and returned. + + :param query: Query search phrase. It is highlighted in the query result. (required) + :type query: 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 country: Array of ISO 3166 alpha-2 country codes to limit the search. + :type country: str + :param language: Language to use for query results as defined by ISO 639-1. + :type language: str + :param types: Array of place types, available types are [region, district, city, locality, address, postcode] + :type types: 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._geographic_search_serialize( + query=query, + page=page, + size=size, + country=country, + language=language, + types=types, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GeosearchPagedModelDTO", + } + 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 geographic_search_with_http_info( + self, + query: Annotated[StrictStr, Field(description="Query search phrase. It is highlighted in the query result.")], + 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, + country: Annotated[Optional[StrictStr], Field(description="Array of ISO 3166 alpha-2 country codes to limit the search.")] = None, + language: Annotated[Optional[StrictStr], Field(description="Language to use for query results as defined by ISO 639-1.")] = None, + types: Annotated[Optional[StrictStr], Field(description="Array of place types, available types are [region, district, city, locality, address, postcode]")] = 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[GeosearchPagedModelDTO]: + """Geographic search + + Wrapper of [Mapbox Geocoding service](https://docs.mapbox.com/api/search/geocoding/). Processes the query and validates the URL parameters. If the query is valid, it is executed on Mapbox API. The result is then translated and returned. + + :param query: Query search phrase. It is highlighted in the query result. (required) + :type query: 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 country: Array of ISO 3166 alpha-2 country codes to limit the search. + :type country: str + :param language: Language to use for query results as defined by ISO 639-1. + :type language: str + :param types: Array of place types, available types are [region, district, city, locality, address, postcode] + :type types: 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._geographic_search_serialize( + query=query, + page=page, + size=size, + country=country, + language=language, + types=types, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GeosearchPagedModelDTO", + } + 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 geographic_search_without_preload_content( + self, + query: Annotated[StrictStr, Field(description="Query search phrase. It is highlighted in the query result.")], + 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, + country: Annotated[Optional[StrictStr], Field(description="Array of ISO 3166 alpha-2 country codes to limit the search.")] = None, + language: Annotated[Optional[StrictStr], Field(description="Language to use for query results as defined by ISO 639-1.")] = None, + types: Annotated[Optional[StrictStr], Field(description="Array of place types, available types are [region, district, city, locality, address, postcode]")] = 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: + """Geographic search + + Wrapper of [Mapbox Geocoding service](https://docs.mapbox.com/api/search/geocoding/). Processes the query and validates the URL parameters. If the query is valid, it is executed on Mapbox API. The result is then translated and returned. + + :param query: Query search phrase. It is highlighted in the query result. (required) + :type query: 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 country: Array of ISO 3166 alpha-2 country codes to limit the search. + :type country: str + :param language: Language to use for query results as defined by ISO 639-1. + :type language: str + :param types: Array of place types, available types are [region, district, city, locality, address, postcode] + :type types: 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._geographic_search_serialize( + query=query, + page=page, + size=size, + country=country, + language=language, + types=types, + _request_auth=_request_auth, + _content_type=_content_type, + _headers=_headers, + _host_index=_host_index + ) + + _response_types_map: Dict[str, Optional[str]] = { + '200': "GeosearchPagedModelDTO", + } + response_data = self.api_client.call_api( + *_param, + _request_timeout=_request_timeout + ) + return response_data.response + + + def _geographic_search_serialize( + self, + query, + page, + size, + country, + language, + types, + _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 query is not None: + + _query_params.append(('query', query)) + + if country is not None: + + _query_params.append(('country', country)) + + if language is not None: + + _query_params.append(('language', language)) + + if types is not None: + + _query_params.append(('types', types)) + + # 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='/geosearch', + 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/views_api.py b/cm_python_openapi_sdk/api/views_api.py index fdc2267..462e8bf 100644 --- a/cm_python_openapi_sdk/api/views_api.py +++ b/cm_python_openapi_sdk/api/views_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/api_client.py b/cm_python_openapi_sdk/api_client.py index 02547d5..c5b65ef 100644 --- a/cm_python_openapi_sdk/api_client.py +++ b/cm_python_openapi_sdk/api_client.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/configuration.py b/cm_python_openapi_sdk/configuration.py index 53294cb..18e2cad 100644 --- a/cm_python_openapi_sdk/configuration.py +++ b/cm_python_openapi_sdk/configuration.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +19,7 @@ from logging import FileHandler import multiprocessing import sys -from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict +from typing import Any, ClassVar, Dict, List, Literal, Optional, TypedDict, Union from typing_extensions import NotRequired, Self import urllib3 @@ -161,6 +162,8 @@ class Configuration: :param ssl_ca_cert: str - the path to a file of concatenated CA certificates in PEM format. :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. :Example: """ @@ -175,13 +178,14 @@ def __init__( username: Optional[str]=None, password: Optional[str]=None, access_token: Optional[str]=None, - server_index: Optional[int]=None, + server_index: Optional[int]=None, server_variables: Optional[ServerVariablesT]=None, server_operation_index: Optional[Dict[int, int]]=None, server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, ignore_operation_servers: bool=False, ssl_ca_cert: Optional[str]=None, retries: Optional[int] = None, + ca_cert_data: Optional[Union[str, bytes]] = None, *, debug: Optional[bool] = None, ) -> None: @@ -259,6 +263,10 @@ def __init__( self.ssl_ca_cert = ssl_ca_cert """Set this to customize the certificate file to verify the peer. """ + self.ca_cert_data = ca_cert_data + """Set this to verify the peer using PEM (str) or DER (bytes) + certificate data. + """ self.cert_file = None """client certificate file """ diff --git a/cm_python_openapi_sdk/exceptions.py b/cm_python_openapi_sdk/exceptions.py index 7e83769..782b8da 100644 --- a/cm_python_openapi_sdk/exceptions.py +++ b/cm_python_openapi_sdk/exceptions.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/__init__.py b/cm_python_openapi_sdk/models/__init__.py index 9b02ade..917f7fb 100644 --- a/cm_python_openapi_sdk/models/__init__.py +++ b/cm_python_openapi_sdk/models/__init__.py @@ -4,9 +4,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,6 +15,11 @@ # import models into model package +from cm_python_openapi_sdk.models.account_dto import AccountDTO +from cm_python_openapi_sdk.models.account_job_info import AccountJobInfo +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +from cm_python_openapi_sdk.models.account_utm_parameters import AccountUtmParameters 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 @@ -30,19 +36,29 @@ 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.audit_log_paged_resource import AuditLogPagedResource +from cm_python_openapi_sdk.models.audit_log_paged_resource_page import AuditLogPagedResourcePage +from cm_python_openapi_sdk.models.audit_log_paged_resource_page_last_evaluated_key import AuditLogPagedResourcePageLastEvaluatedKey +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource +from cm_python_openapi_sdk.models.available_datasets_request import AvailableDatasetsRequest +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse +from cm_python_openapi_sdk.models.available_datasets_response_content_inner import AvailableDatasetsResponseContentInner 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.bounding_box_dto import BoundingBoxDTO 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_point_queries_isochrone import BulkPointQueryRequestPointQueriesIsochrone +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_isochrone_options import BulkPointQueryRequestPointQueriesIsochroneOptions +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_nearest import BulkPointQueryRequestPointQueriesNearest 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.central_point import CentralPoint 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 @@ -52,6 +68,10 @@ 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_complete_multipart_upload_request import DataCompleteMultipartUploadRequest +from cm_python_openapi_sdk.models.data_complete_multipart_upload_response import DataCompleteMultipartUploadResponse +from cm_python_openapi_sdk.models.data_create_multipart_upload_response import DataCreateMultipartUploadResponse +from cm_python_openapi_sdk.models.data_create_upload_response import DataCreateUploadResponse 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 @@ -64,6 +84,7 @@ 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.data_upload200_response import DataUpload200Response 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 @@ -75,6 +96,7 @@ 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_function_function import DateRangeFunctionFunction 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 @@ -86,14 +108,35 @@ 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.double_counting_warnings import DoubleCountingWarnings from cm_python_openapi_sdk.models.dwh_abstract_property import DwhAbstractProperty +from cm_python_openapi_sdk.models.dwh_date_range_request import DwhDateRangeRequest +from cm_python_openapi_sdk.models.dwh_date_range_request_filter import DwhDateRangeRequestFilter +from cm_python_openapi_sdk.models.dwh_date_range_response import DwhDateRangeResponse +from cm_python_openapi_sdk.models.dwh_date_range_response_content_inner import DwhDateRangeResponseContentInner 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_metric_range_response import DwhMetricRangeResponse +from cm_python_openapi_sdk.models.dwh_metric_range_response_content_inner import DwhMetricRangeResponseContentInner +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response import DwhMetricValuesDistributionResponse +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner import DwhMetricValuesDistributionResponseContentInner +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner_content_inner import DwhMetricValuesDistributionResponseContentInnerContentInner +from cm_python_openapi_sdk.models.dwh_overlaps_request import DwhOverlapsRequest +from cm_python_openapi_sdk.models.dwh_overlaps_response import DwhOverlapsResponse +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner import DwhOverlapsResponseContentInner +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner_results_inner import DwhOverlapsResponseContentInnerResultsInner from cm_python_openapi_sdk.models.dwh_property_dto import DwhPropertyDTO +from cm_python_openapi_sdk.models.dwh_property_values_distribution_request import DwhPropertyValuesDistributionRequest +from cm_python_openapi_sdk.models.dwh_property_values_request import DwhPropertyValuesRequest 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.dwh_query_property_types import DwhQueryPropertyTypes +from cm_python_openapi_sdk.models.dwh_query_request import DwhQueryRequest +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.execution_context import ExecutionContext +from cm_python_openapi_sdk.models.execution_detail import ExecutionDetail 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 @@ -108,19 +151,26 @@ 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.filter_by import FilterBy +from cm_python_openapi_sdk.models.filter_by_attribute import FilterByAttribute +from cm_python_openapi_sdk.models.filter_by_boolean import FilterByBoolean +from cm_python_openapi_sdk.models.filter_by_comp import FilterByComp +from cm_python_openapi_sdk.models.filter_by_in import FilterByIn +from cm_python_openapi_sdk.models.filter_by_in1 import FilterByIn1 +from cm_python_openapi_sdk.models.filter_by_unary import FilterByUnary 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_date_truncate_options import FunctionDateTruncateOptions 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_content_inner import FunctionNtileContentInner 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 @@ -129,6 +179,8 @@ 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.geosearch_paged_model_dto import GeosearchPagedModelDTO +from cm_python_openapi_sdk.models.get_account_by_account_id200_response import GetAccountByAccountId200Response 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 @@ -136,7 +188,15 @@ 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.having import Having +from cm_python_openapi_sdk.models.having1 import Having1 +from cm_python_openapi_sdk.models.having_comp import HavingComp +from cm_python_openapi_sdk.models.having_in import HavingIn +from cm_python_openapi_sdk.models.having_in1 import HavingIn1 +from cm_python_openapi_sdk.models.having_unary import HavingUnary +from cm_python_openapi_sdk.models.highlight_dto import HighlightDTO from cm_python_openapi_sdk.models.histogram_filter_dto import HistogramFilterDTO +from cm_python_openapi_sdk.models.hit_highlight import HitHighlight 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 @@ -188,10 +248,15 @@ 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.new_account_dto import NewAccountDTO +from cm_python_openapi_sdk.models.order_by import OrderBy 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.part_e_tag import PartETag +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO +from cm_python_openapi_sdk.models.position_dto import PositionDTO 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 @@ -200,9 +265,25 @@ 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.property_values_response import PropertyValuesResponse +from cm_python_openapi_sdk.models.property_values_response_content_inner import PropertyValuesResponseContentInner +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +from cm_python_openapi_sdk.models.query_hit_dto import QueryHitDTO +from cm_python_openapi_sdk.models.query_response import QueryResponse +from cm_python_openapi_sdk.models.query_response_item_wrapper import QueryResponseItemWrapper 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.reset_password_dto import ResetPasswordDTO +from cm_python_openapi_sdk.models.restricted_account_dto import RestrictedAccountDTO +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter +from cm_python_openapi_sdk.models.result_set_filter_comp import ResultSetFilterComp +from cm_python_openapi_sdk.models.result_set_filter_in import ResultSetFilterIn +from cm_python_openapi_sdk.models.result_set_filter_unary import ResultSetFilterUnary from cm_python_openapi_sdk.models.scale_options_dto import ScaleOptionsDTO +from cm_python_openapi_sdk.models.search_query_hit import SearchQueryHit +from cm_python_openapi_sdk.models.search_query_hit_id import SearchQueryHitId +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO 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 @@ -222,6 +303,7 @@ 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.variable_value import VariableValue 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 diff --git a/cm_python_openapi_sdk/models/account_dto.py b/cm_python_openapi_sdk/models/account_dto.py new file mode 100644 index 0000000..ae0049d --- /dev/null +++ b/cm_python_openapi_sdk/models/account_dto.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.account_job_info import AccountJobInfo +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +from typing import Optional, Set +from typing_extensions import Self + +class AccountDTO(BaseModel): + """ + AccountDTO + """ # noqa: E501 + id: StrictStr + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") + email: StrictStr + consent_granted: Optional[StrictBool] = Field(default=None, alias="consentGranted") + status: Optional[StrictStr] = None + anonymous: Optional[StrictBool] = None + phone_number: Optional[Annotated[str, Field(min_length=6, strict=True, max_length=20)]] = Field(default=None, alias="phoneNumber") + require_additional_attributes: Optional[StrictBool] = Field(default=None, alias="requireAdditionalAttributes") + preferences: Optional[AccountPreferences] = None + onboarding: Optional[AccountOnboardingParameters] = None + job_info: Optional[AccountJobInfo] = Field(default=None, alias="jobInfo") + 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", "fullName", "email", "consentGranted", "status", "anonymous", "phoneNumber", "requireAdditionalAttributes", "preferences", "onboarding", "jobInfo", "links"] + + @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 AccountDTO 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 preferences + if self.preferences: + _dict['preferences'] = self.preferences.to_dict() + # override the default output from pydantic by calling `to_dict()` of onboarding + if self.onboarding: + _dict['onboarding'] = self.onboarding.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_info + if self.job_info: + _dict['jobInfo'] = self.job_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AccountDTO 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"), + "fullName": obj.get("fullName"), + "email": obj.get("email"), + "consentGranted": obj.get("consentGranted"), + "status": obj.get("status"), + "anonymous": obj.get("anonymous"), + "phoneNumber": obj.get("phoneNumber"), + "requireAdditionalAttributes": obj.get("requireAdditionalAttributes"), + "preferences": AccountPreferences.from_dict(obj["preferences"]) if obj.get("preferences") is not None else None, + "onboarding": AccountOnboardingParameters.from_dict(obj["onboarding"]) if obj.get("onboarding") is not None else None, + "jobInfo": AccountJobInfo.from_dict(obj["jobInfo"]) if obj.get("jobInfo") is not None else None, + "links": obj.get("links") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/account_job_info.py b/cm_python_openapi_sdk/models/account_job_info.py new file mode 100644 index 0000000..7574220 --- /dev/null +++ b/cm_python_openapi_sdk/models/account_job_info.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AccountJobInfo(BaseModel): + """ + AccountJobInfo + """ # noqa: E501 + company_name: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = Field(default=None, alias="companyName") + job_position: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = Field(default=None, alias="jobPosition") + industry: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=100)]] = None + __properties: ClassVar[List[str]] = ["companyName", "jobPosition", "industry"] + + 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 AccountJobInfo 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 AccountJobInfo from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "companyName": obj.get("companyName"), + "jobPosition": obj.get("jobPosition"), + "industry": obj.get("industry") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/account_onboarding_parameters.py b/cm_python_openapi_sdk/models/account_onboarding_parameters.py new file mode 100644 index 0000000..503252c --- /dev/null +++ b/cm_python_openapi_sdk/models/account_onboarding_parameters.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AccountOnboardingParameters(BaseModel): + """ + AccountOnboardingParameters + """ # noqa: E501 + intro_shown: Optional[List[StrictStr]] = Field(default=None, alias="introShown") + tips_shown: Optional[List[StrictStr]] = Field(default=None, alias="tipsShown") + __properties: ClassVar[List[str]] = ["introShown", "tipsShown"] + + 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 AccountOnboardingParameters 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 AccountOnboardingParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "introShown": obj.get("introShown"), + "tipsShown": obj.get("tipsShown") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/account_preferences.py b/cm_python_openapi_sdk/models/account_preferences.py new file mode 100644 index 0000000..487d445 --- /dev/null +++ b/cm_python_openapi_sdk/models/account_preferences.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AccountPreferences(BaseModel): + """ + AccountPreferences + """ # noqa: E501 + language: Optional[Annotated[str, Field(min_length=2, strict=True, max_length=3)]] = None + last_active_project: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="lastActiveProject") + last_active_organization: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="lastActiveOrganization") + send_newsletter: Optional[StrictBool] = Field(default=None, alias="sendNewsletter") + __properties: ClassVar[List[str]] = ["language", "lastActiveProject", "lastActiveOrganization", "sendNewsletter"] + + @field_validator('last_active_project') + def last_active_project_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('last_active_organization') + def last_active_organization_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 AccountPreferences 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 AccountPreferences from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "language": obj.get("language"), + "lastActiveProject": obj.get("lastActiveProject"), + "lastActiveOrganization": obj.get("lastActiveOrganization"), + "sendNewsletter": obj.get("sendNewsletter") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/account_utm_parameters.py b/cm_python_openapi_sdk/models/account_utm_parameters.py new file mode 100644 index 0000000..03bccbb --- /dev/null +++ b/cm_python_openapi_sdk/models/account_utm_parameters.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, Optional +from typing import Optional, Set +from typing_extensions import Self + +class AccountUtmParameters(BaseModel): + """ + AccountUtmParameters + """ # noqa: E501 + medium: Optional[StrictStr] = None + source: Optional[StrictStr] = None + campaign: Optional[StrictStr] = None + referrer: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["medium", "source", "campaign", "referrer"] + + 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 AccountUtmParameters 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 AccountUtmParameters from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "medium": obj.get("medium"), + "source": obj.get("source"), + "campaign": obj.get("campaign"), + "referrer": obj.get("referrer") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/active_date_filter_dto.py b/cm_python_openapi_sdk/models/active_date_filter_dto.py index b54c564..702b693 100644 --- a/cm_python_openapi_sdk/models/active_date_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_feature_filter_dto.py b/cm_python_openapi_sdk/models/active_feature_filter_dto.py index 6ae9ad1..296e863 100644 --- a/cm_python_openapi_sdk/models/active_feature_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_feature_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_filter_abstract_type.py b/cm_python_openapi_sdk/models/active_filter_abstract_type.py index a128238..a7adb86 100644 --- a/cm_python_openapi_sdk/models/active_filter_abstract_type.py +++ b/cm_python_openapi_sdk/models/active_filter_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_global_date_filter_dto.py b/cm_python_openapi_sdk/models/active_global_date_filter_dto.py index a1c694a..c8a32f1 100644 --- a/cm_python_openapi_sdk/models/active_global_date_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_global_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_histogram_filter_dto.py b/cm_python_openapi_sdk/models/active_histogram_filter_dto.py index 21f198a..dd2896a 100644 --- a/cm_python_openapi_sdk/models/active_histogram_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_histogram_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_indicator_filter_dto.py b/cm_python_openapi_sdk/models/active_indicator_filter_dto.py index 3ed9dd4..9516324 100644 --- a/cm_python_openapi_sdk/models/active_indicator_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_indicator_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py b/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py index a635675..2ad38e3 100644 --- a/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_multi_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/active_single_select_filter_dto.py b/cm_python_openapi_sdk/models/active_single_select_filter_dto.py index ad8ba6d..b3c8c33 100644 --- a/cm_python_openapi_sdk/models/active_single_select_filter_dto.py +++ b/cm_python_openapi_sdk/models/active_single_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/additional_series_link_dto.py b/cm_python_openapi_sdk/models/additional_series_link_dto.py index 8d1fa70..a42f25e 100644 --- a/cm_python_openapi_sdk/models/additional_series_link_dto.py +++ b/cm_python_openapi_sdk/models/additional_series_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/annotation_link_dto.py b/cm_python_openapi_sdk/models/annotation_link_dto.py index 2d27ed7..011f618 100644 --- a/cm_python_openapi_sdk/models/annotation_link_dto.py +++ b/cm_python_openapi_sdk/models/annotation_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/attribute_format_dto.py b/cm_python_openapi_sdk/models/attribute_format_dto.py index 564acc0..b0f81f0 100644 --- a/cm_python_openapi_sdk/models/attribute_format_dto.py +++ b/cm_python_openapi_sdk/models/attribute_format_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/attribute_style_category_dto.py b/cm_python_openapi_sdk/models/attribute_style_category_dto.py index 13b2a1c..328416e 100644 --- a/cm_python_openapi_sdk/models/attribute_style_category_dto.py +++ b/cm_python_openapi_sdk/models/attribute_style_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/attribute_style_content_dto.py b/cm_python_openapi_sdk/models/attribute_style_content_dto.py index a93e084..8096db2 100644 --- a/cm_python_openapi_sdk/models/attribute_style_content_dto.py +++ b/cm_python_openapi_sdk/models/attribute_style_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/attribute_style_dto.py b/cm_python_openapi_sdk/models/attribute_style_dto.py index f5972cd..8810c1e 100644 --- a/cm_python_openapi_sdk/models/attribute_style_dto.py +++ b/cm_python_openapi_sdk/models/attribute_style_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 1157dd3..5cb1333 100644 --- a/cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py +++ b/cm_python_openapi_sdk/models/attribute_style_fallback_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 526e0b8..4c651a9 100644 --- a/cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/attribute_style_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/audit_log_paged_resource.py b/cm_python_openapi_sdk/models/audit_log_paged_resource.py new file mode 100644 index 0000000..9b83342 --- /dev/null +++ b/cm_python_openapi_sdk/models/audit_log_paged_resource.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.audit_log_paged_resource_page import AuditLogPagedResourcePage +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource +from typing import Optional, Set +from typing_extensions import Self + +class AuditLogPagedResource(BaseModel): + """ + AuditLogPagedResource + """ # noqa: E501 + links: List[Dict[str, Any]] = Field(description="define keys links and page that are mandatory for all pageble responses") + content: List[AuditLogSingleResource] + page: AuditLogPagedResourcePage + __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 AuditLogPagedResource 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 AuditLogPagedResource 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": [AuditLogSingleResource.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, + "page": AuditLogPagedResourcePage.from_dict(obj["page"]) if obj.get("page") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/audit_log_paged_resource_page.py b/cm_python_openapi_sdk/models/audit_log_paged_resource_page.py new file mode 100644 index 0000000..3e04401 --- /dev/null +++ b/cm_python_openapi_sdk/models/audit_log_paged_resource_page.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List, Optional +from cm_python_openapi_sdk.models.audit_log_paged_resource_page_last_evaluated_key import AuditLogPagedResourcePageLastEvaluatedKey +from typing import Optional, Set +from typing_extensions import Self + +class AuditLogPagedResourcePage(BaseModel): + """ + AuditLogPagedResourcePage + """ # noqa: E501 + last_evaluated_key: Optional[AuditLogPagedResourcePageLastEvaluatedKey] = Field(default=None, alias="lastEvaluatedKey") + size: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["lastEvaluatedKey", "size"] + + 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 AuditLogPagedResourcePage 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 last_evaluated_key + if self.last_evaluated_key: + _dict['lastEvaluatedKey'] = self.last_evaluated_key.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AuditLogPagedResourcePage from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "lastEvaluatedKey": AuditLogPagedResourcePageLastEvaluatedKey.from_dict(obj["lastEvaluatedKey"]) if obj.get("lastEvaluatedKey") is not None else None, + "size": obj.get("size") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/audit_log_paged_resource_page_last_evaluated_key.py b/cm_python_openapi_sdk/models/audit_log_paged_resource_page_last_evaluated_key.py new file mode 100644 index 0000000..5c96377 --- /dev/null +++ b/cm_python_openapi_sdk/models/audit_log_paged_resource_page_last_evaluated_key.py @@ -0,0 +1,114 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AuditLogPagedResourcePageLastEvaluatedKey(BaseModel): + """ + AuditLogPagedResourcePageLastEvaluatedKey + """ # noqa: E501 + project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId") + last_evaluated_event_id: Annotated[str, Field(strict=True)] = Field(alias="lastEvaluatedEventId") + last_evaluated_timestamp: Annotated[str, Field(strict=True)] = Field(alias="lastEvaluatedTimestamp") + __properties: ClassVar[List[str]] = ["projectId", "lastEvaluatedEventId", "lastEvaluatedTimestamp"] + + @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 + + @field_validator('last_evaluated_event_id') + def last_evaluated_event_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\d{56}$", value): + raise ValueError(r"must validate the regular expression /^\d{56}$/") + return value + + @field_validator('last_evaluated_timestamp') + def last_evaluated_timestamp_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}),(\d{3})$", value): + raise ValueError(r"must validate the regular expression /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}),(\d{3})$/") + 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 AuditLogPagedResourcePageLastEvaluatedKey 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 AuditLogPagedResourcePageLastEvaluatedKey from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "projectId": obj.get("projectId"), + "lastEvaluatedEventId": obj.get("lastEvaluatedEventId"), + "lastEvaluatedTimestamp": obj.get("lastEvaluatedTimestamp") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/audit_log_single_resource.py b/cm_python_openapi_sdk/models/audit_log_single_resource.py new file mode 100644 index 0000000..a40f542 --- /dev/null +++ b/cm_python_openapi_sdk/models/audit_log_single_resource.py @@ -0,0 +1,150 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AuditLogSingleResource(BaseModel): + """ + AuditLogSingleResource + """ # noqa: E501 + event_id: Annotated[str, Field(strict=True)] = Field(alias="eventId") + account_id: Annotated[str, Field(strict=True)] = Field(alias="accountId") + request_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="requestId") + remote_host: Optional[StrictStr] = Field(default=None, alias="remoteHost") + project_id: Annotated[str, Field(strict=True)] = Field(alias="projectId") + event_type: Annotated[str, Field(strict=True)] = Field(alias="eventType") + timestamp: Annotated[str, Field(strict=True)] + content: Dict[str, Any] + links: List[Dict[str, Any]] = Field(description="define keys links and page that are mandatory for all pageble responses") + __properties: ClassVar[List[str]] = ["eventId", "accountId", "requestId", "remoteHost", "projectId", "eventType", "timestamp", "content", "links"] + + @field_validator('event_id') + def event_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\d{56}$", value): + raise ValueError(r"must validate the regular expression /^\d{56}$/") + return value + + @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 + + @field_validator('request_id') + def request_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('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 + + @field_validator('event_type') + def event_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('timestamp') + def timestamp_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}),(\d{3})$", value): + raise ValueError(r"must validate the regular expression /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}),(\d{3})$/") + 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 AuditLogSingleResource 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 AuditLogSingleResource from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "eventId": obj.get("eventId"), + "accountId": obj.get("accountId"), + "requestId": obj.get("requestId"), + "remoteHost": obj.get("remoteHost"), + "projectId": obj.get("projectId"), + "eventType": obj.get("eventType"), + "timestamp": obj.get("timestamp"), + "content": obj.get("content"), + "links": obj.get("links") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/available_datasets_request.py b/cm_python_openapi_sdk/models/available_datasets_request.py new file mode 100644 index 0000000..dbb470d --- /dev/null +++ b/cm_python_openapi_sdk/models/available_datasets_request.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.dwh_query_property_types import DwhQueryPropertyTypes +from typing import Optional, Set +from typing_extensions import Self + +class AvailableDatasetsRequest(BaseModel): + """ + AvailableDatasetsRequest + """ # noqa: E501 + metrics: Annotated[List[DwhQueryPropertyTypes], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["metrics"] + + 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 AvailableDatasetsRequest 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 metrics (list) + _items = [] + if self.metrics: + for _item_metrics in self.metrics: + if _item_metrics: + _items.append(_item_metrics.to_dict()) + _dict['metrics'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of AvailableDatasetsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metrics": [DwhQueryPropertyTypes.from_dict(_item) for _item in obj["metrics"]] if obj.get("metrics") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/available_datasets_response.py b/cm_python_openapi_sdk/models/available_datasets_response.py new file mode 100644 index 0000000..ec7b6c2 --- /dev/null +++ b/cm_python_openapi_sdk/models/available_datasets_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.available_datasets_response_content_inner import AvailableDatasetsResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class AvailableDatasetsResponse(BaseModel): + """ + AvailableDatasetsResponse + """ # noqa: E501 + content: Optional[Annotated[List[AvailableDatasetsResponseContentInner], Field(min_length=1)]] = None + __properties: ClassVar[List[str]] = ["content"] + + 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 AvailableDatasetsResponse 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 AvailableDatasetsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [AvailableDatasetsResponseContentInner.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/available_datasets_response_content_inner.py b/cm_python_openapi_sdk/models/available_datasets_response_content_inner.py new file mode 100644 index 0000000..cefadb7 --- /dev/null +++ b/cm_python_openapi_sdk/models/available_datasets_response_content_inner.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 AvailableDatasetsResponseContentInner(BaseModel): + """ + AvailableDatasetsResponseContentInner + """ # noqa: E501 + metric_id: Optional[StrictStr] = Field(default=None, alias="metricId") + available_datasets: Optional[List[Dict[str, Any]]] = Field(default=None, alias="availableDatasets") + __properties: ClassVar[List[str]] = ["metricId", "availableDatasets"] + + 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 AvailableDatasetsResponseContentInner 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 AvailableDatasetsResponseContentInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "metricId": obj.get("metricId"), + "availableDatasets": obj.get("availableDatasets") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/block_abstract_type.py b/cm_python_openapi_sdk/models/block_abstract_type.py index fa9dbcc..46674c5 100644 --- a/cm_python_openapi_sdk/models/block_abstract_type.py +++ b/cm_python_openapi_sdk/models/block_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/block_row_abstract_type.py b/cm_python_openapi_sdk/models/block_row_abstract_type.py index fa73a1d..c4eb833 100644 --- a/cm_python_openapi_sdk/models/block_row_abstract_type.py +++ b/cm_python_openapi_sdk/models/block_row_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/block_row_dto.py b/cm_python_openapi_sdk/models/block_row_dto.py index 8a0ed25..0a76de4 100644 --- a/cm_python_openapi_sdk/models/block_row_dto.py +++ b/cm_python_openapi_sdk/models/block_row_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/bounding_box_dto.py b/cm_python_openapi_sdk/models/bounding_box_dto.py new file mode 100644 index 0000000..54f549e --- /dev/null +++ b/cm_python_openapi_sdk/models/bounding_box_dto.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing import Optional, Set +from typing_extensions import Self + +class BoundingBoxDTO(BaseModel): + """ + BoundingBoxDTO + """ # noqa: E501 + min_x: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="minX") + min_y: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="minY") + max_x: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="maxX") + max_y: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="maxY") + __properties: ClassVar[List[str]] = ["minX", "minY", "maxX", "maxY"] + + 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 BoundingBoxDTO 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 BoundingBoxDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "minX": obj.get("minX"), + "minY": obj.get("minY"), + "maxX": obj.get("maxX"), + "maxY": obj.get("maxY") + }) + return _obj + + 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 index baacbfe..0909974 100644 --- a/cm_python_openapi_sdk/models/bulk_point_query_job_request.py +++ b/cm_python_openapi_sdk/models/bulk_point_query_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 751373d..fe1d907 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request.py b/cm_python_openapi_sdk/models/bulk_point_query_request.py index d4bc585..7818ef3 100644 --- a/cm_python_openapi_sdk/models/bulk_point_query_request.py +++ b/cm_python_openapi_sdk/models/bulk_point_query_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index f5df3b1..a5f6955 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -13,108 +14,125 @@ from __future__ import annotations -import pprint -import re # noqa: F401 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_request_point_queries_isochrone import BulkPointQueryRequestPointQueriesIsochrone +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_nearest import BulkPointQueryRequestPointQueriesNearest +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self -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 +BULKPOINTQUERYREQUESTPOINTQUERIESINNER_ONE_OF_SCHEMAS = ["BulkPointQueryRequestPointQueriesIsochrone", "BulkPointQueryRequestPointQueriesNearest"] 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 + """ + # data type: BulkPointQueryRequestPointQueriesIsochrone + oneof_schema_1_validator: Optional[BulkPointQueryRequestPointQueriesIsochrone] = None + # data type: BulkPointQueryRequestPointQueriesNearest + oneof_schema_2_validator: Optional[BulkPointQueryRequestPointQueriesNearest] = None + actual_instance: Optional[Union[BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest]] = None + one_of_schemas: Set[str] = { "BulkPointQueryRequestPointQueriesIsochrone", "BulkPointQueryRequestPointQueriesNearest" } 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()) + 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 = BulkPointQueryRequestPointQueriesInner.model_construct() + error_messages = [] + match = 0 + # validate data type: BulkPointQueryRequestPointQueriesIsochrone + if not isinstance(v, BulkPointQueryRequestPointQueriesIsochrone): + error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryRequestPointQueriesIsochrone`") + else: + match += 1 + # validate data type: BulkPointQueryRequestPointQueriesNearest + if not isinstance(v, BulkPointQueryRequestPointQueriesNearest): + error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryRequestPointQueriesNearest`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in BulkPointQueryRequestPointQueriesInner with oneOf schemas: BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in BulkPointQueryRequestPointQueriesInner with oneOf schemas: BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest. Details: " + ", ".join(error_messages)) + else: + return v @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 + def from_dict(cls, obj: Union[str, Dict[str, Any]]) -> Self: + return cls.from_json(json.dumps(obj)) @classmethod - def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BulkPointQueryRequestPointQueriesInner from a dict""" - if obj is None: + 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 BulkPointQueryRequestPointQueriesIsochrone + try: + instance.actual_instance = BulkPointQueryRequestPointQueriesIsochrone.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into BulkPointQueryRequestPointQueriesNearest + try: + instance.actual_instance = BulkPointQueryRequestPointQueriesNearest.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 BulkPointQueryRequestPointQueriesInner with oneOf schemas: BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into BulkPointQueryRequestPointQueriesInner with oneOf schemas: BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest. 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], BulkPointQueryRequestPointQueriesIsochrone, BulkPointQueryRequestPointQueriesNearest]]: + """Returns the dict representation of the actual instance""" + if self.actual_instance 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 + 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_point_queries_isochrone.py b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone.py new file mode 100644 index 0000000..a752156 --- /dev/null +++ b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_isochrone_options import BulkPointQueryRequestPointQueriesIsochroneOptions +from typing import Optional, Set +from typing_extensions import Self + +class BulkPointQueryRequestPointQueriesIsochrone(BaseModel): + """ + BulkPointQueryRequestPointQueriesIsochrone + """ # noqa: E501 + query_id: Optional[StrictStr] = Field(default=None, alias="queryId") + type: StrictStr + options: BulkPointQueryRequestPointQueriesIsochroneOptions + 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']): + raise ValueError("must be one of enum values ('isochrone')") + 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 BulkPointQueryRequestPointQueriesIsochrone 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 BulkPointQueryRequestPointQueriesIsochrone 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": BulkPointQueryRequestPointQueriesIsochroneOptions.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_point_queries_option_isochrone.py b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone_options.py similarity index 80% rename from cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_isochrone.py rename to cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone_options.py index 9053c78..182d3e5 100644 --- a/cm_python_openapi_sdk/models/bulk_point_query_point_queries_option_isochrone.py +++ b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_isochrone_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -23,9 +24,9 @@ from typing import Optional, Set from typing_extensions import Self -class BulkPointQueryPointQueriesOptionIsochrone(BaseModel): +class BulkPointQueryRequestPointQueriesIsochroneOptions(BaseModel): """ - BulkPointQueryPointQueriesOptionIsochrone + BulkPointQueryRequestPointQueriesIsochroneOptions """ # noqa: E501 profile: StrictStr unit: StrictStr @@ -64,7 +65,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of BulkPointQueryPointQueriesOptionIsochrone from a JSON string""" + """Create an instance of BulkPointQueryRequestPointQueriesIsochroneOptions from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -89,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of BulkPointQueryPointQueriesOptionIsochrone from a dict""" + """Create an instance of BulkPointQueryRequestPointQueriesIsochroneOptions from a dict""" if obj is None: return None diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_nearest.py b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_nearest.py new file mode 100644 index 0000000..2999b29 --- /dev/null +++ b/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_nearest.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_point_queries_option_nearest import BulkPointQueryPointQueriesOptionNearest +from typing import Optional, Set +from typing_extensions import Self + +class BulkPointQueryRequestPointQueriesNearest(BaseModel): + """ + BulkPointQueryRequestPointQueriesNearest + """ # noqa: E501 + query_id: Optional[StrictStr] = Field(default=None, alias="queryId") + type: StrictStr + options: BulkPointQueryPointQueriesOptionNearest + 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(['nearest']): + raise ValueError("must be one of enum values ('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 BulkPointQueryRequestPointQueriesNearest 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 BulkPointQueryRequestPointQueriesNearest 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": BulkPointQueryPointQueriesOptionNearest.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_points_inner.py b/cm_python_openapi_sdk/models/bulk_point_query_request_points_inner.py index 423e516..aaf905f 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/categories_dto.py b/cm_python_openapi_sdk/models/categories_dto.py index f921b8e..12fcaab 100644 --- a/cm_python_openapi_sdk/models/categories_dto.py +++ b/cm_python_openapi_sdk/models/categories_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/category_dto.py b/cm_python_openapi_sdk/models/category_dto.py index 3978c1e..0baa114 100644 --- a/cm_python_openapi_sdk/models/category_dto.py +++ b/cm_python_openapi_sdk/models/category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/center_dto.py b/cm_python_openapi_sdk/models/center_dto.py index 9b367bc..d40ae67 100644 --- a/cm_python_openapi_sdk/models/center_dto.py +++ b/cm_python_openapi_sdk/models/center_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/central_point.py b/cm_python_openapi_sdk/models/central_point.py new file mode 100644 index 0000000..03d2d85 --- /dev/null +++ b/cm_python_openapi_sdk/models/central_point.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 CentralPoint(BaseModel): + """ + CentralPoint + """ # 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 CentralPoint 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 CentralPoint 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/create_invitation.py b/cm_python_openapi_sdk/models/create_invitation.py index 0615dfa..5e276ff 100644 --- a/cm_python_openapi_sdk/models/create_invitation.py +++ b/cm_python_openapi_sdk/models/create_invitation.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/create_membership_dto.py b/cm_python_openapi_sdk/models/create_membership_dto.py index 942eaff..42c40d4 100644 --- a/cm_python_openapi_sdk/models/create_membership_dto.py +++ b/cm_python_openapi_sdk/models/create_membership_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/create_organization_dto.py b/cm_python_openapi_sdk/models/create_organization_dto.py index 6d95840..48c57a0 100644 --- a/cm_python_openapi_sdk/models/create_organization_dto.py +++ b/cm_python_openapi_sdk/models/create_organization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/create_project_dto.py b/cm_python_openapi_sdk/models/create_project_dto.py index 9dca8a3..b31fb53 100644 --- a/cm_python_openapi_sdk/models/create_project_dto.py +++ b/cm_python_openapi_sdk/models/create_project_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py b/cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py index 1052691..a95370c 100644 --- a/cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py +++ b/cm_python_openapi_sdk/models/cuzk_parcel_info_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dashboard_content_dto.py b/cm_python_openapi_sdk/models/dashboard_content_dto.py index df04c3f..106f9cb 100644 --- a/cm_python_openapi_sdk/models/dashboard_content_dto.py +++ b/cm_python_openapi_sdk/models/dashboard_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py b/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py index 8e0fa95..6ff9226 100644 --- a/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py +++ b/cm_python_openapi_sdk/models/dashboard_dataset_properties_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dashboard_dto.py b/cm_python_openapi_sdk/models/dashboard_dto.py index bedfe19..d3bef6e 100644 --- a/cm_python_openapi_sdk/models/dashboard_dto.py +++ b/cm_python_openapi_sdk/models/dashboard_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py b/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py index 187f91d..7402522 100644 --- a/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/dashboard_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_complete_multipart_upload_request.py b/cm_python_openapi_sdk/models/data_complete_multipart_upload_request.py new file mode 100644 index 0000000..f4822cd --- /dev/null +++ b/cm_python_openapi_sdk/models/data_complete_multipart_upload_request.py @@ -0,0 +1,118 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.part_e_tag import PartETag +from typing import Optional, Set +from typing_extensions import Self + +class DataCompleteMultipartUploadRequest(BaseModel): + """ + DataCompleteMultipartUploadRequest + """ # noqa: E501 + id: Annotated[str, Field(strict=True)] + upload_id: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="uploadId") + part_e_tags: List[PartETag] = Field(alias="partETags") + __properties: ClassVar[List[str]] = ["id", "uploadId", "partETags"] + + @field_validator('id') + def id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w]{32}$", value): + raise ValueError(r"must validate the regular expression /^[\w]{32}$/") + return value + + @field_validator('upload_id') + def upload_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 + + 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 DataCompleteMultipartUploadRequest 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 part_e_tags (list) + _items = [] + if self.part_e_tags: + for _item_part_e_tags in self.part_e_tags: + if _item_part_e_tags: + _items.append(_item_part_e_tags.to_dict()) + _dict['partETags'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DataCompleteMultipartUploadRequest 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"), + "uploadId": obj.get("uploadId"), + "partETags": [PartETag.from_dict(_item) for _item in obj["partETags"]] if obj.get("partETags") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/data_complete_multipart_upload_response.py b/cm_python_openapi_sdk/models/data_complete_multipart_upload_response.py new file mode 100644 index 0000000..7db2fa4 --- /dev/null +++ b/cm_python_openapi_sdk/models/data_complete_multipart_upload_response.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Optional, Set +from typing_extensions import Self + +class DataCompleteMultipartUploadResponse(BaseModel): + """ + DataCompleteMultipartUploadResponse + """ # noqa: E501 + id: StrictStr + e_tag: StrictStr = Field(alias="eTag") + __properties: ClassVar[List[str]] = ["id", "eTag"] + + 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 DataCompleteMultipartUploadResponse 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 DataCompleteMultipartUploadResponse 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"), + "eTag": obj.get("eTag") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/data_create_multipart_upload_response.py b/cm_python_openapi_sdk/models/data_create_multipart_upload_response.py new file mode 100644 index 0000000..a599e2f --- /dev/null +++ b/cm_python_openapi_sdk/models/data_create_multipart_upload_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 DataCreateMultipartUploadResponse(BaseModel): + """ + DataCreateMultipartUploadResponse + """ # noqa: E501 + id: StrictStr + upload_id: StrictStr = Field(alias="uploadId") + upload_urls: List[StrictStr] = Field(alias="uploadUrls") + upload_urls_encoded: Optional[List[StrictStr]] = Field(default=None, alias="uploadUrlsEncoded") + 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", "uploadId", "uploadUrls", "uploadUrlsEncoded", "links"] + + 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 DataCreateMultipartUploadResponse 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 DataCreateMultipartUploadResponse 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"), + "uploadId": obj.get("uploadId"), + "uploadUrls": obj.get("uploadUrls"), + "uploadUrlsEncoded": obj.get("uploadUrlsEncoded"), + "links": obj.get("links") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/data_create_upload_response.py b/cm_python_openapi_sdk/models/data_create_upload_response.py new file mode 100644 index 0000000..46e431c --- /dev/null +++ b/cm_python_openapi_sdk/models/data_create_upload_response.py @@ -0,0 +1,94 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 DataCreateUploadResponse(BaseModel): + """ + DataCreateUploadResponse + """ # noqa: E501 + id: StrictStr + upload_url: StrictStr = Field(alias="uploadUrl") + upload_url_encoded: Optional[StrictStr] = Field(default=None, alias="uploadUrlEncoded") + 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", "uploadUrl", "uploadUrlEncoded", "links"] + + 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 DataCreateUploadResponse 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 DataCreateUploadResponse 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"), + "uploadUrl": obj.get("uploadUrl"), + "uploadUrlEncoded": obj.get("uploadUrlEncoded"), + "links": obj.get("links") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/data_dump_job_request.py b/cm_python_openapi_sdk/models/data_dump_job_request.py index d0247f1..c924730 100644 --- a/cm_python_openapi_sdk/models/data_dump_job_request.py +++ b/cm_python_openapi_sdk/models/data_dump_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_dump_request.py b/cm_python_openapi_sdk/models/data_dump_request.py index a43d25e..56b9be7 100644 --- a/cm_python_openapi_sdk/models/data_dump_request.py +++ b/cm_python_openapi_sdk/models/data_dump_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_permission_content_dto.py b/cm_python_openapi_sdk/models/data_permission_content_dto.py index c54b7cb..1d9da5f 100644 --- a/cm_python_openapi_sdk/models/data_permission_content_dto.py +++ b/cm_python_openapi_sdk/models/data_permission_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +21,7 @@ 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.filter_by import FilterBy from typing import Optional, Set from typing_extensions import Self @@ -28,7 +30,7 @@ class DataPermissionContentDTO(BaseModel): DataPermissionContentDTO """ # noqa: E501 account_id: Annotated[str, Field(strict=True)] = Field(alias="accountId") - filters: List[Any] + filters: List[FilterBy] __properties: ClassVar[List[str]] = ["accountId", "filters"] @field_validator('account_id') @@ -77,6 +79,13 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of each item in filters (list) + _items = [] + if self.filters: + for _item_filters in self.filters: + if _item_filters: + _items.append(_item_filters.to_dict()) + _dict['filters'] = _items return _dict @classmethod @@ -90,7 +99,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "accountId": obj.get("accountId"), - "filters": obj.get("filters") + "filters": [FilterBy.from_dict(_item) for _item in obj["filters"]] if obj.get("filters") is not None else None }) return _obj diff --git a/cm_python_openapi_sdk/models/data_permission_dto.py b/cm_python_openapi_sdk/models/data_permission_dto.py index 1edfba6..aa62757 100644 --- a/cm_python_openapi_sdk/models/data_permission_dto.py +++ b/cm_python_openapi_sdk/models/data_permission_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 96f6b19..c46d3ca 100644 --- a/cm_python_openapi_sdk/models/data_permission_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/data_permission_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_pull_job_request.py b/cm_python_openapi_sdk/models/data_pull_job_request.py index e9286ea..61744ff 100644 --- a/cm_python_openapi_sdk/models/data_pull_job_request.py +++ b/cm_python_openapi_sdk/models/data_pull_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_pull_request.py b/cm_python_openapi_sdk/models/data_pull_request.py index 61e0329..69e2e20 100644 --- a/cm_python_openapi_sdk/models/data_pull_request.py +++ b/cm_python_openapi_sdk/models/data_pull_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index b40f8ef..96ff4ed 100644 --- a/cm_python_openapi_sdk/models/data_pull_request_csv_options.py +++ b/cm_python_openapi_sdk/models/data_pull_request_csv_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 8f0a0db..0650eb2 100644 --- a/cm_python_openapi_sdk/models/data_pull_request_https_upload.py +++ b/cm_python_openapi_sdk/models/data_pull_request_https_upload.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 7c20c84..9f913c1 100644 --- a/cm_python_openapi_sdk/models/data_pull_request_s3_upload.py +++ b/cm_python_openapi_sdk/models/data_pull_request_s3_upload.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_source_dto.py b/cm_python_openapi_sdk/models/data_source_dto.py index 2253686..6a51132 100644 --- a/cm_python_openapi_sdk/models/data_source_dto.py +++ b/cm_python_openapi_sdk/models/data_source_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index d93bb14..e642072 100644 --- a/cm_python_openapi_sdk/models/data_source_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/data_source_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/data_upload200_response.py b/cm_python_openapi_sdk/models/data_upload200_response.py new file mode 100644 index 0000000..f253d4f --- /dev/null +++ b/cm_python_openapi_sdk/models/data_upload200_response.py @@ -0,0 +1,138 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.data_create_multipart_upload_response import DataCreateMultipartUploadResponse +from cm_python_openapi_sdk.models.data_create_upload_response import DataCreateUploadResponse +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +DATAUPLOAD200RESPONSE_ONE_OF_SCHEMAS = ["DataCreateMultipartUploadResponse", "DataCreateUploadResponse"] + +class DataUpload200Response(BaseModel): + """ + DataUpload200Response + """ + # data type: DataCreateUploadResponse + oneof_schema_1_validator: Optional[DataCreateUploadResponse] = None + # data type: DataCreateMultipartUploadResponse + oneof_schema_2_validator: Optional[DataCreateMultipartUploadResponse] = None + actual_instance: Optional[Union[DataCreateMultipartUploadResponse, DataCreateUploadResponse]] = None + one_of_schemas: Set[str] = { "DataCreateMultipartUploadResponse", "DataCreateUploadResponse" } + + 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 = DataUpload200Response.model_construct() + error_messages = [] + match = 0 + # validate data type: DataCreateUploadResponse + if not isinstance(v, DataCreateUploadResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataCreateUploadResponse`") + else: + match += 1 + # validate data type: DataCreateMultipartUploadResponse + if not isinstance(v, DataCreateMultipartUploadResponse): + error_messages.append(f"Error! Input type `{type(v)}` is not `DataCreateMultipartUploadResponse`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DataUpload200Response with oneOf schemas: DataCreateMultipartUploadResponse, DataCreateUploadResponse. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DataUpload200Response with oneOf schemas: DataCreateMultipartUploadResponse, DataCreateUploadResponse. 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 DataCreateUploadResponse + try: + instance.actual_instance = DataCreateUploadResponse.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into DataCreateMultipartUploadResponse + try: + instance.actual_instance = DataCreateMultipartUploadResponse.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 DataUpload200Response with oneOf schemas: DataCreateMultipartUploadResponse, DataCreateUploadResponse. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DataUpload200Response with oneOf schemas: DataCreateMultipartUploadResponse, DataCreateUploadResponse. 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], DataCreateMultipartUploadResponse, DataCreateUploadResponse]]: + """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_dto.py b/cm_python_openapi_sdk/models/dataset_dto.py index 6aa335c..0ebaf7e 100644 --- a/cm_python_openapi_sdk/models/dataset_dto.py +++ b/cm_python_openapi_sdk/models/dataset_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py b/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py index f9592a8..ede0c7e 100644 --- a/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py +++ b/cm_python_openapi_sdk/models/dataset_dwh_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 27a1603..4315646 100644 --- a/cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py +++ b/cm_python_openapi_sdk/models/dataset_h3_grid_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_paged_model_dto.py b/cm_python_openapi_sdk/models/dataset_paged_model_dto.py index c58b355..5b918ad 100644 --- a/cm_python_openapi_sdk/models/dataset_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/dataset_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_properties_dto.py b/cm_python_openapi_sdk/models/dataset_properties_dto.py index ee5774e..a155146 100644 --- a/cm_python_openapi_sdk/models/dataset_properties_dto.py +++ b/cm_python_openapi_sdk/models/dataset_properties_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_type.py b/cm_python_openapi_sdk/models/dataset_type.py index 9a8dcb2..0919913 100644 --- a/cm_python_openapi_sdk/models/dataset_type.py +++ b/cm_python_openapi_sdk/models/dataset_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_visualization_dto.py b/cm_python_openapi_sdk/models/dataset_visualization_dto.py index 80a7399..07f889f 100644 --- a/cm_python_openapi_sdk/models/dataset_visualization_dto.py +++ b/cm_python_openapi_sdk/models/dataset_visualization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dataset_vt_type_dto.py b/cm_python_openapi_sdk/models/dataset_vt_type_dto.py index dfab419..b722d6a 100644 --- a/cm_python_openapi_sdk/models/dataset_vt_type_dto.py +++ b/cm_python_openapi_sdk/models/dataset_vt_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/date_filter_default_value_type.py b/cm_python_openapi_sdk/models/date_filter_default_value_type.py index fa8d85b..e2005c0 100644 --- a/cm_python_openapi_sdk/models/date_filter_default_value_type.py +++ b/cm_python_openapi_sdk/models/date_filter_default_value_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/date_filter_dto.py b/cm_python_openapi_sdk/models/date_filter_dto.py index 6fa6550..29f5932 100644 --- a/cm_python_openapi_sdk/models/date_filter_dto.py +++ b/cm_python_openapi_sdk/models/date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/date_range_function.py b/cm_python_openapi_sdk/models/date_range_function.py index 692ed5c..c4cf1d8 100644 --- a/cm_python_openapi_sdk/models/date_range_function.py +++ b/cm_python_openapi_sdk/models/date_range_function.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,6 +20,7 @@ from pydantic import BaseModel, ConfigDict from typing import Any, ClassVar, Dict, List +from cm_python_openapi_sdk.models.date_range_function_function import DateRangeFunctionFunction from typing import Optional, Set from typing_extensions import Self @@ -26,7 +28,7 @@ class DateRangeFunction(BaseModel): """ DateRangeFunction """ # noqa: E501 - function: Dict[str, Any] + function: DateRangeFunctionFunction __properties: ClassVar[List[str]] = ["function"] model_config = ConfigDict( @@ -68,6 +70,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of function + if self.function: + _dict['function'] = self.function.to_dict() return _dict @classmethod @@ -80,7 +85,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: return cls.model_validate(obj) _obj = cls.model_validate({ - "function": obj.get("function") + "function": DateRangeFunctionFunction.from_dict(obj["function"]) if obj.get("function") is not None else None }) return _obj diff --git a/cm_python_openapi_sdk/models/date_range_function_function.py b/cm_python_openapi_sdk/models/date_range_function_function.py new file mode 100644 index 0000000..afa6040 --- /dev/null +++ b/cm_python_openapi_sdk/models/date_range_function_function.py @@ -0,0 +1,180 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.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_date_trunc import FunctionDateTrunc +from cm_python_openapi_sdk.models.function_interval import FunctionInterval +from cm_python_openapi_sdk.models.function_today import FunctionToday +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +DATERANGEFUNCTIONFUNCTION_ONE_OF_SCHEMAS = ["FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionDateTrunc", "FunctionInterval", "FunctionToday"] + +class DateRangeFunctionFunction(BaseModel): + """ + DateRangeFunctionFunction + """ + # data type: FunctionAggTypeGeneral + oneof_schema_1_validator: Optional[FunctionAggTypeGeneral] = None + # data type: FunctionArithmTypeGeneral + oneof_schema_2_validator: Optional[FunctionArithmTypeGeneral] = None + # data type: FunctionDateTrunc + oneof_schema_3_validator: Optional[FunctionDateTrunc] = None + # data type: FunctionInterval + oneof_schema_4_validator: Optional[FunctionInterval] = None + # data type: FunctionToday + oneof_schema_5_validator: Optional[FunctionToday] = None + actual_instance: Optional[Union[FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday]] = None + one_of_schemas: Set[str] = { "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionDateTrunc", "FunctionInterval", "FunctionToday" } + + 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 = DateRangeFunctionFunction.model_construct() + error_messages = [] + match = 0 + # 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: FunctionArithmTypeGeneral + if not isinstance(v, FunctionArithmTypeGeneral): + error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionArithmTypeGeneral`") + 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: FunctionToday + if not isinstance(v, FunctionToday): + error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionToday`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DateRangeFunctionFunction with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DateRangeFunctionFunction with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday. 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 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 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 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 FunctionToday + try: + instance.actual_instance = FunctionToday.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 DateRangeFunctionFunction with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DateRangeFunctionFunction with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday. 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], FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionDateTrunc, FunctionInterval, FunctionToday]]: + """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/date_range_value.py b/cm_python_openapi_sdk/models/date_range_value.py index 34351bb..fb864e1 100644 --- a/cm_python_openapi_sdk/models/date_range_value.py +++ b/cm_python_openapi_sdk/models/date_range_value.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/default_distribution_dto.py b/cm_python_openapi_sdk/models/default_distribution_dto.py index 25a59a8..8ef4e9a 100644 --- a/cm_python_openapi_sdk/models/default_distribution_dto.py +++ b/cm_python_openapi_sdk/models/default_distribution_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -26,7 +27,7 @@ class DefaultDistributionDTO(BaseModel): """ DefaultDistributionDTO """ # noqa: E501 - range: Optional[List[Optional[Union[StrictFloat, StrictInt]]]] = None + range: Optional[List[Union[StrictFloat, StrictInt]]] = None breaks: Optional[List[Union[StrictFloat, StrictInt]]] = None display_intervals: Optional[List[Union[StrictFloat, StrictInt]]] = Field(default=None, alias="displayIntervals") __properties: ClassVar[List[str]] = ["range", "breaks", "displayIntervals"] diff --git a/cm_python_openapi_sdk/models/default_selected_dto.py b/cm_python_openapi_sdk/models/default_selected_dto.py index 762062f..de8ad4c 100644 --- a/cm_python_openapi_sdk/models/default_selected_dto.py +++ b/cm_python_openapi_sdk/models/default_selected_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/default_values_date_dto.py b/cm_python_openapi_sdk/models/default_values_date_dto.py index ab8d2d0..3bfb514 100644 --- a/cm_python_openapi_sdk/models/default_values_date_dto.py +++ b/cm_python_openapi_sdk/models/default_values_date_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/default_values_feature_dto.py b/cm_python_openapi_sdk/models/default_values_feature_dto.py index ae7ecf5..e3b6e02 100644 --- a/cm_python_openapi_sdk/models/default_values_feature_dto.py +++ b/cm_python_openapi_sdk/models/default_values_feature_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -18,7 +19,7 @@ import json from pydantic import BaseModel, ConfigDict, Field -from typing import Any, ClassVar, Dict, List, Optional +from typing import Any, ClassVar, Dict, List from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class DefaultValuesFeatureDTO(BaseModel): """ DefaultValuesFeatureDTO """ # noqa: E501 - values: List[Optional[Annotated[str, Field(strict=True, max_length=255)]]] + values: List[Annotated[str, Field(strict=True, max_length=255)]] __properties: ClassVar[List[str]] = ["values"] model_config = ConfigDict( diff --git a/cm_python_openapi_sdk/models/default_values_histogram_dto.py b/cm_python_openapi_sdk/models/default_values_histogram_dto.py index 242d057..c75faa2 100644 --- a/cm_python_openapi_sdk/models/default_values_histogram_dto.py +++ b/cm_python_openapi_sdk/models/default_values_histogram_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,8 +18,8 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt -from typing import Any, ClassVar, Dict, List, Optional, Union +from pydantic import BaseModel, ConfigDict, Field, StrictBool +from typing import Any, ClassVar, Dict, List, Optional from typing_extensions import Annotated from typing import Optional, Set from typing_extensions import Self @@ -27,7 +28,7 @@ class DefaultValuesHistogramDTO(BaseModel): """ DefaultValuesHistogramDTO """ # noqa: E501 - values: Optional[Annotated[List[Optional[Union[StrictFloat, StrictInt]]], Field(min_length=2, max_length=2)]] = None + values: Optional[Annotated[List[Any], Field(min_length=2, max_length=2)]] = None null_filtered: Optional[StrictBool] = Field(default=None, alias="nullFiltered") __properties: ClassVar[List[str]] = ["values", "nullFiltered"] diff --git a/cm_python_openapi_sdk/models/default_values_indicator_dto.py b/cm_python_openapi_sdk/models/default_values_indicator_dto.py index 610955c..bed4813 100644 --- a/cm_python_openapi_sdk/models/default_values_indicator_dto.py +++ b/cm_python_openapi_sdk/models/default_values_indicator_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -27,7 +28,7 @@ class DefaultValuesIndicatorDTO(BaseModel): """ DefaultValuesIndicatorDTO """ # noqa: E501 - values: Optional[Annotated[List[Optional[Union[StrictFloat, StrictInt]]], Field(min_length=2, max_length=2)]] = None + values: Optional[Annotated[List[Any], Field(min_length=2, max_length=2)]] = None breaks: Optional[Annotated[List[Union[StrictFloat, StrictInt]], Field(min_length=1)]] = None display_intervals: Optional[List[StrictInt]] = Field(default=None, alias="displayIntervals") granularity: Optional[Annotated[str, Field(strict=True)]] = None diff --git a/cm_python_openapi_sdk/models/default_values_multi_select_dto.py b/cm_python_openapi_sdk/models/default_values_multi_select_dto.py index 12d31a3..f82b47b 100644 --- a/cm_python_openapi_sdk/models/default_values_multi_select_dto.py +++ b/cm_python_openapi_sdk/models/default_values_multi_select_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -68,11 +69,6 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) - # set to None if values (nullable) is None - # and model_fields_set contains the field - if self.values is None and "values" in self.model_fields_set: - _dict['values'] = None - return _dict @classmethod diff --git a/cm_python_openapi_sdk/models/default_values_single_select_dto.py b/cm_python_openapi_sdk/models/default_values_single_select_dto.py index c22ccb1..7529a25 100644 --- a/cm_python_openapi_sdk/models/default_values_single_select_dto.py +++ b/cm_python_openapi_sdk/models/default_values_single_select_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/display_options_dto.py b/cm_python_openapi_sdk/models/display_options_dto.py index 3c578b2..79d9906 100644 --- a/cm_python_openapi_sdk/models/display_options_dto.py +++ b/cm_python_openapi_sdk/models/display_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/distribution_dto.py b/cm_python_openapi_sdk/models/distribution_dto.py index bd362a2..4bacae3 100644 --- a/cm_python_openapi_sdk/models/distribution_dto.py +++ b/cm_python_openapi_sdk/models/distribution_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/double_counting_warnings.py b/cm_python_openapi_sdk/models/double_counting_warnings.py new file mode 100644 index 0000000..eb65182 --- /dev/null +++ b/cm_python_openapi_sdk/models/double_counting_warnings.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 DoubleCountingWarnings(BaseModel): + """ + DoubleCountingWarnings + """ # noqa: E501 + property_id: Optional[StrictStr] = Field(default=None, alias="propertyId") + detail_message: Optional[StrictStr] = Field(default=None, alias="detailMessage") + __properties: ClassVar[List[str]] = ["propertyId", "detailMessage"] + + 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 DoubleCountingWarnings 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 DoubleCountingWarnings from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "detailMessage": obj.get("detailMessage") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_abstract_property.py b/cm_python_openapi_sdk/models/dwh_abstract_property.py index 9a5e0d6..7b66eb4 100644 --- a/cm_python_openapi_sdk/models/dwh_abstract_property.py +++ b/cm_python_openapi_sdk/models/dwh_abstract_property.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_date_range_request.py b/cm_python_openapi_sdk/models/dwh_date_range_request.py new file mode 100644 index 0000000..bf49091 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_date_range_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_date_range_request_filter import DwhDateRangeRequestFilter +from cm_python_openapi_sdk.models.execution_context import ExecutionContext +from typing import Optional, Set +from typing_extensions import Self + +class DwhDateRangeRequest(BaseModel): + """ + DwhDateRangeRequest + """ # noqa: E501 + execution_context: Optional[ExecutionContext] = Field(default=None, alias="executionContext") + var_from: Annotated[str, Field(strict=True)] = Field(description="defines the date property in a fact table", alias="from") + filter: Optional[DwhDateRangeRequestFilter] = None + __properties: ClassVar[List[str]] = ["executionContext", "from", "filter"] + + @field_validator('var_from') + def var_from_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 DwhDateRangeRequest 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 execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + # override the default output from pydantic by calling `to_dict()` of filter + if self.filter: + _dict['filter'] = self.filter.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhDateRangeRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionContext": ExecutionContext.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None, + "from": obj.get("from"), + "filter": DwhDateRangeRequestFilter.from_dict(obj["filter"]) if obj.get("filter") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_date_range_request_filter.py b/cm_python_openapi_sdk/models/dwh_date_range_request_filter.py new file mode 100644 index 0000000..8d6a89d --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_date_range_request_filter.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.date_filter_default_value_type import DateFilterDefaultValueType +from typing import Optional, Set +from typing_extensions import Self + +class DwhDateRangeRequestFilter(BaseModel): + """ + DwhDateRangeRequestFilter + """ # noqa: E501 + start_date: Optional[DateFilterDefaultValueType] = Field(default=None, alias="startDate") + end_date: Optional[DateFilterDefaultValueType] = Field(default=None, alias="endDate") + __properties: ClassVar[List[str]] = ["startDate", "endDate"] + + 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 DwhDateRangeRequestFilter 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 start_date + if self.start_date: + _dict['startDate'] = self.start_date.to_dict() + # override the default output from pydantic by calling `to_dict()` of end_date + if self.end_date: + _dict['endDate'] = self.end_date.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhDateRangeRequestFilter from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "startDate": DateFilterDefaultValueType.from_dict(obj["startDate"]) if obj.get("startDate") is not None else None, + "endDate": DateFilterDefaultValueType.from_dict(obj["endDate"]) if obj.get("endDate") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_date_range_response.py b/cm_python_openapi_sdk/models/dwh_date_range_response.py new file mode 100644 index 0000000..80400e5 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_date_range_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.dwh_date_range_response_content_inner import DwhDateRangeResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhDateRangeResponse(BaseModel): + """ + DwhDateRangeResponse + """ # noqa: E501 + content: Annotated[List[DwhDateRangeResponseContentInner], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["content"] + + 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 DwhDateRangeResponse 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 DwhDateRangeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [DwhDateRangeResponseContentInner.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/dwh_date_range_response_content_inner.py b/cm_python_openapi_sdk/models/dwh_date_range_response_content_inner.py new file mode 100644 index 0000000..5cedbc6 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_date_range_response_content_inner.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 typing import Optional, Set +from typing_extensions import Self + +class DwhDateRangeResponseContentInner(BaseModel): + """ + DwhDateRangeResponseContentInner + """ # noqa: E501 + var_property: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="property") + filtered: Optional[StrictBool] = None + min: Optional[StrictStr] = None + max: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["property", "filtered", "min", "max"] + + @field_validator('var_property') + def var_property_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_-]*\.[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 DwhDateRangeResponseContentInner 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 DwhDateRangeResponseContentInner 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"), + "filtered": obj.get("filtered"), + "min": obj.get("min"), + "max": obj.get("max") + }) + 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 index acbca50..7798d57 100644 --- a/cm_python_openapi_sdk/models/dwh_foreign_key_dto.py +++ b/cm_python_openapi_sdk/models/dwh_foreign_key_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_geometry_dto.py b/cm_python_openapi_sdk/models/dwh_geometry_dto.py index a4da645..b55f22f 100644 --- a/cm_python_openapi_sdk/models/dwh_geometry_dto.py +++ b/cm_python_openapi_sdk/models/dwh_geometry_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_metric_range_response.py b/cm_python_openapi_sdk/models/dwh_metric_range_response.py new file mode 100644 index 0000000..c2b8f15 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_metric_range_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.dwh_metric_range_response_content_inner import DwhMetricRangeResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhMetricRangeResponse(BaseModel): + """ + DwhMetricRangeResponse + """ # noqa: E501 + content: Annotated[List[DwhMetricRangeResponseContentInner], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["content"] + + 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 DwhMetricRangeResponse 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 DwhMetricRangeResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [DwhMetricRangeResponseContentInner.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/dwh_metric_range_response_content_inner.py b/cm_python_openapi_sdk/models/dwh_metric_range_response_content_inner.py new file mode 100644 index 0000000..9711253 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_metric_range_response_content_inner.py @@ -0,0 +1,93 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 DwhMetricRangeResponseContentInner(BaseModel): + """ + DwhMetricRangeResponseContentInner + """ # noqa: E501 + property_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, alias="propertyId") + min: Optional[Dict[str, Any]] = None + max: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["propertyId", "min", "max"] + + 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 DwhMetricRangeResponseContentInner 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 DwhMetricRangeResponseContentInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "min": obj.get("min"), + "max": obj.get("max") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response.py b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response.py new file mode 100644 index 0000000..88cf59b --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response.py @@ -0,0 +1,96 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner import DwhMetricValuesDistributionResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhMetricValuesDistributionResponse(BaseModel): + """ + DwhMetricValuesDistributionResponse + """ # noqa: E501 + content: List[DwhMetricValuesDistributionResponseContentInner] + __properties: ClassVar[List[str]] = ["content"] + + 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 DwhMetricValuesDistributionResponse 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 DwhMetricValuesDistributionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [DwhMetricValuesDistributionResponseContentInner.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/dwh_metric_values_distribution_response_content_inner.py b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner.py new file mode 100644 index 0000000..e48218e --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner_content_inner import DwhMetricValuesDistributionResponseContentInnerContentInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhMetricValuesDistributionResponseContentInner(BaseModel): + """ + DwhMetricValuesDistributionResponseContentInner + """ # noqa: E501 + min: Optional[Union[StrictFloat, StrictInt]] = None + max: Optional[Union[StrictFloat, StrictInt]] = None + content: Optional[Annotated[List[DwhMetricValuesDistributionResponseContentInnerContentInner], Field(min_length=1)]] = None + __properties: ClassVar[List[str]] = ["min", "max", "content"] + + 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 DwhMetricValuesDistributionResponseContentInner 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 DwhMetricValuesDistributionResponseContentInner 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"), + "max": obj.get("max"), + "content": [DwhMetricValuesDistributionResponseContentInnerContentInner.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/dwh_metric_values_distribution_response_content_inner_content_inner.py b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner_content_inner.py new file mode 100644 index 0000000..0c041ce --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_metric_values_distribution_response_content_inner_content_inner.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List, Optional +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class DwhMetricValuesDistributionResponseContentInnerContentInner(BaseModel): + """ + DwhMetricValuesDistributionResponseContentInnerContentInner + """ # noqa: E501 + property_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, alias="propertyId") + frequency: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["propertyId", "frequency"] + + 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 DwhMetricValuesDistributionResponseContentInnerContentInner 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 DwhMetricValuesDistributionResponseContentInnerContentInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "frequency": obj.get("frequency") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_overlaps_request.py b/cm_python_openapi_sdk/models/dwh_overlaps_request.py new file mode 100644 index 0000000..9272029 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_overlaps_request.py @@ -0,0 +1,122 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.filter_by import FilterBy +from typing import Optional, Set +from typing_extensions import Self + +class DwhOverlapsRequest(BaseModel): + """ + DwhOverlapsRequest + """ # noqa: E501 + operators: Annotated[List[StrictStr], Field(min_length=1)] + objects: Annotated[List[FilterBy], Field(min_length=2, max_length=2)] + granularity: Annotated[str, Field(strict=True)] + query: DwhQueryRequest1 + __properties: ClassVar[List[str]] = ["operators", "objects", "granularity", "query"] + + @field_validator('operators') + def operators_validate_enum(cls, value): + """Validates the enum""" + for i in value: + if i not in set(['self', 'subtract', 'intersect', 'major_dominance', 'minor_dominance', 'equivalent_dominance']): + raise ValueError("each list item must be one of ('self', 'subtract', 'intersect', 'major_dominance', 'minor_dominance', 'equivalent_dominance')") + return value + + @field_validator('granularity') + def granularity_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 DwhOverlapsRequest 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 objects (list) + _items = [] + if self.objects: + for _item_objects in self.objects: + if _item_objects: + _items.append(_item_objects.to_dict()) + _dict['objects'] = _items + # override the default output from pydantic by calling `to_dict()` of query + if self.query: + _dict['query'] = self.query.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhOverlapsRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operators": obj.get("operators"), + "objects": [FilterBy.from_dict(_item) for _item in obj["objects"]] if obj.get("objects") is not None else None, + "granularity": obj.get("granularity"), + "query": DwhQueryRequest1.from_dict(obj["query"]) if obj.get("query") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_overlaps_response.py b/cm_python_openapi_sdk/models/dwh_overlaps_response.py new file mode 100644 index 0000000..c339fc5 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_overlaps_response.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner import DwhOverlapsResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhOverlapsResponse(BaseModel): + """ + DwhOverlapsResponse + """ # noqa: E501 + content: Annotated[List[DwhOverlapsResponseContentInner], Field(min_length=1)] + __properties: ClassVar[List[str]] = ["content"] + + 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 DwhOverlapsResponse 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 DwhOverlapsResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [DwhOverlapsResponseContentInner.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/dwh_overlaps_response_content_inner.py b/cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner.py new file mode 100644 index 0000000..e085107 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_overlaps_response_content_inner_results_inner import DwhOverlapsResponseContentInnerResultsInner +from typing import Optional, Set +from typing_extensions import Self + +class DwhOverlapsResponseContentInner(BaseModel): + """ + DwhOverlapsResponseContentInner + """ # noqa: E501 + property_id: Optional[Annotated[str, Field(min_length=1, strict=True)]] = Field(default=None, alias="propertyId") + results: Optional[List[DwhOverlapsResponseContentInnerResultsInner]] = None + __properties: ClassVar[List[str]] = ["propertyId", "results"] + + 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 DwhOverlapsResponseContentInner 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 results (list) + _items = [] + if self.results: + for _item_results in self.results: + if _item_results: + _items.append(_item_results.to_dict()) + _dict['results'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhOverlapsResponseContentInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "results": [DwhOverlapsResponseContentInnerResultsInner.from_dict(_item) for _item in obj["results"]] if obj.get("results") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner_results_inner.py b/cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner_results_inner.py new file mode 100644 index 0000000..1c9bf34 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_overlaps_response_content_inner_results_inner.py @@ -0,0 +1,103 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 DwhOverlapsResponseContentInnerResultsInner(BaseModel): + """ + DwhOverlapsResponseContentInnerResultsInner + """ # noqa: E501 + operator: Optional[StrictStr] = None + objects: Optional[Annotated[List[Annotated[str, Field(min_length=1, strict=True)]], Field(min_length=1)]] = None + value: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["operator", "objects", "value"] + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['self', 'subtract', 'intersect', 'major_dominance', 'minor_dominance', 'equivalent_dominance']): + raise ValueError("must be one of enum values ('self', 'subtract', 'intersect', 'major_dominance', 'minor_dominance', 'equivalent_dominance')") + 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 DwhOverlapsResponseContentInnerResultsInner 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 DwhOverlapsResponseContentInnerResultsInner from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operator": obj.get("operator"), + "objects": obj.get("objects"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_property_dto.py b/cm_python_openapi_sdk/models/dwh_property_dto.py index 50a2340..cec2d8a 100644 --- a/cm_python_openapi_sdk/models/dwh_property_dto.py +++ b/cm_python_openapi_sdk/models/dwh_property_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_property_values_distribution_request.py b/cm_python_openapi_sdk/models/dwh_property_values_distribution_request.py new file mode 100644 index 0000000..fd58468 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_property_values_distribution_request.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, field_validator +from typing import Any, ClassVar, Dict, List, Optional, Union +from typing_extensions import Annotated +from cm_python_openapi_sdk.models.execution_context import ExecutionContext +from typing import Optional, Set +from typing_extensions import Self + +class DwhPropertyValuesDistributionRequest(BaseModel): + """ + DwhPropertyValuesDistributionRequest + """ # noqa: E501 + execution_context: Optional[ExecutionContext] = Field(default=None, alias="executionContext") + var_property: Annotated[str, Field(strict=True)] = Field(alias="property") + buckets: Optional[StrictInt] = 20 + min: Optional[Union[StrictFloat, StrictInt]] = None + max: Optional[Union[StrictFloat, StrictInt]] = None + __properties: ClassVar[List[str]] = ["executionContext", "property", "buckets", "min", "max"] + + @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 DwhPropertyValuesDistributionRequest 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 execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhPropertyValuesDistributionRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionContext": ExecutionContext.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None, + "property": obj.get("property"), + "buckets": obj.get("buckets") if obj.get("buckets") is not None else 20, + "min": obj.get("min"), + "max": obj.get("max") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/dwh_property_values_request.py b/cm_python_openapi_sdk/models/dwh_property_values_request.py new file mode 100644 index 0000000..25e6144 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_property_values_request.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.execution_context import ExecutionContext +from typing import Optional, Set +from typing_extensions import Self + +class DwhPropertyValuesRequest(BaseModel): + """ + DwhPropertyValuesRequest + """ # noqa: E501 + execution_context: Optional[ExecutionContext] = Field(default=None, alias="executionContext") + var_property: Annotated[str, Field(strict=True)] = Field(description="identifier of a property from data model", alias="property") + filter: Optional[StrictStr] = Field(default=None, description="substring filter of the property values. Only property values containing given string will be returned. Filtering is case insensitive.") + __properties: ClassVar[List[str]] = ["executionContext", "property", "filter"] + + @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 DwhPropertyValuesRequest 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 execution_context + if self.execution_context: + _dict['executionContext'] = self.execution_context.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhPropertyValuesRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionContext": ExecutionContext.from_dict(obj["executionContext"]) if obj.get("executionContext") is not None else None, + "property": obj.get("property"), + "filter": obj.get("filter") + }) + 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 index 961adfc..a01820f 100644 --- a/cm_python_openapi_sdk/models/dwh_query_function_types.py +++ b/cm_python_openapi_sdk/models/dwh_query_function_types.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_query_metric_type.py b/cm_python_openapi_sdk/models/dwh_query_metric_type.py index 72849a1..3c62605 100644 --- a/cm_python_openapi_sdk/models/dwh_query_metric_type.py +++ b/cm_python_openapi_sdk/models/dwh_query_metric_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_query_number_type.py b/cm_python_openapi_sdk/models/dwh_query_number_type.py index 5c68a00..1e90dc1 100644 --- a/cm_python_openapi_sdk/models/dwh_query_number_type.py +++ b/cm_python_openapi_sdk/models/dwh_query_number_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_query_property_type.py b/cm_python_openapi_sdk/models/dwh_query_property_type.py index 6047221..32147bb 100644 --- a/cm_python_openapi_sdk/models/dwh_query_property_type.py +++ b/cm_python_openapi_sdk/models/dwh_query_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/dwh_query_property_types.py b/cm_python_openapi_sdk/models/dwh_query_property_types.py new file mode 100644 index 0000000..a558eec --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_query_property_types.py @@ -0,0 +1,196 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_arithm_type_general import FunctionArithmTypeGeneral +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 + +DWHQUERYPROPERTYTYPES_ONE_OF_SCHEMAS = ["DwhQueryMetricType", "DwhQueryNumberType", "DwhQueryPropertyType", "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "VariableType"] + +class DwhQueryPropertyTypes(BaseModel): + """ + DwhQueryPropertyTypes + """ + # 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: FunctionAggTypeGeneral + oneof_schema_5_validator: Optional[FunctionAggTypeGeneral] = None + # data type: FunctionArithmTypeGeneral + oneof_schema_6_validator: Optional[FunctionArithmTypeGeneral] = None + actual_instance: Optional[Union[DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, VariableType]] = None + one_of_schemas: Set[str] = { "DwhQueryMetricType", "DwhQueryNumberType", "DwhQueryPropertyType", "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "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 = DwhQueryPropertyTypes.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: FunctionAggTypeGeneral + if not isinstance(v, FunctionAggTypeGeneral): + error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionAggTypeGeneral`") + 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 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in DwhQueryPropertyTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, VariableType. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in DwhQueryPropertyTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, 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 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 FunctionArithmTypeGeneral + try: + instance.actual_instance = FunctionArithmTypeGeneral.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 DwhQueryPropertyTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, VariableType. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into DwhQueryPropertyTypes with oneOf schemas: DwhQueryMetricType, DwhQueryNumberType, DwhQueryPropertyType, FunctionAggTypeGeneral, FunctionArithmTypeGeneral, 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, 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()) + +from cm_python_openapi_sdk.models.function_agg_type_general import FunctionAggTypeGeneral +# TODO: Rewrite to not use raise_errors +DwhQueryPropertyTypes.model_rebuild(raise_errors=False) + diff --git a/cm_python_openapi_sdk/models/dwh_query_request.py b/cm_python_openapi_sdk/models/dwh_query_request.py new file mode 100644 index 0000000..ed9feef --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_query_request.py @@ -0,0 +1,158 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_query_property_types import DwhQueryPropertyTypes +from cm_python_openapi_sdk.models.having import Having +from cm_python_openapi_sdk.models.order_by import OrderBy +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter +from cm_python_openapi_sdk.models.variable_value import VariableValue +from typing import Optional, Set +from typing_extensions import Self + +class DwhQueryRequest(BaseModel): + """ + DwhQueryRequest + """ # noqa: E501 + execution_context: Optional[Any] = Field(default=None, alias="executionContext") + properties: Annotated[List[DwhQueryPropertyTypes], Field(min_length=1)] + filter_by: Optional[List[FilterBy]] = Field(default=None, alias="filterBy") + having: Optional[List[Having]] = None + result_set_filter: Optional[List[ResultSetFilter]] = Field(default=None, alias="resultSetFilter") + order_by: Optional[List[OrderBy]] = Field(default=None, alias="orderBy") + variables: Optional[List[VariableValue]] = None + limit: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + __properties: ClassVar[List[str]] = ["executionContext", "properties", "filterBy", "having", "resultSetFilter", "orderBy", "variables", "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 DwhQueryRequest 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 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 each item in filter_by (list) + _items = [] + if self.filter_by: + for _item_filter_by in self.filter_by: + if _item_filter_by: + _items.append(_item_filter_by.to_dict()) + _dict['filterBy'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in having (list) + _items = [] + if self.having: + for _item_having in self.having: + if _item_having: + _items.append(_item_having.to_dict()) + _dict['having'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in result_set_filter (list) + _items = [] + if self.result_set_filter: + for _item_result_set_filter in self.result_set_filter: + if _item_result_set_filter: + _items.append(_item_result_set_filter.to_dict()) + _dict['resultSetFilter'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in order_by (list) + _items = [] + if self.order_by: + for _item_order_by in self.order_by: + if _item_order_by: + _items.append(_item_order_by.to_dict()) + _dict['orderBy'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in variables (list) + _items = [] + if self.variables: + for _item_variables in self.variables: + if _item_variables: + _items.append(_item_variables.to_dict()) + _dict['variables'] = _items + # set to None if execution_context (nullable) is None + # and model_fields_set contains the field + if self.execution_context is None and "execution_context" in self.model_fields_set: + _dict['executionContext'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhQueryRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionContext": obj.get("executionContext"), + "properties": [DwhQueryPropertyTypes.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None, + "filterBy": [FilterBy.from_dict(_item) for _item in obj["filterBy"]] if obj.get("filterBy") is not None else None, + "having": [Having.from_dict(_item) for _item in obj["having"]] if obj.get("having") is not None else None, + "resultSetFilter": [ResultSetFilter.from_dict(_item) for _item in obj["resultSetFilter"]] if obj.get("resultSetFilter") is not None else None, + "orderBy": [OrderBy.from_dict(_item) for _item in obj["orderBy"]] if obj.get("orderBy") is not None else None, + "variables": [VariableValue.from_dict(_item) for _item in obj["variables"]] if obj.get("variables") is not None else None, + "limit": obj.get("limit") + }) + return _obj + +from cm_python_openapi_sdk.models.filter_by import FilterBy +# TODO: Rewrite to not use raise_errors +DwhQueryRequest.model_rebuild(raise_errors=False) + diff --git a/cm_python_openapi_sdk/models/dwh_query_request1.py b/cm_python_openapi_sdk/models/dwh_query_request1.py new file mode 100644 index 0000000..1c47ae5 --- /dev/null +++ b/cm_python_openapi_sdk/models/dwh_query_request1.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.dwh_query_property_types import DwhQueryPropertyTypes +from cm_python_openapi_sdk.models.filter_by import FilterBy +from cm_python_openapi_sdk.models.having1 import Having1 +from cm_python_openapi_sdk.models.order_by import OrderBy +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter +from cm_python_openapi_sdk.models.variable_value import VariableValue +from typing import Optional, Set +from typing_extensions import Self + +class DwhQueryRequest1(BaseModel): + """ + DwhQueryRequest1 + """ # noqa: E501 + execution_context: Optional[Any] = Field(default=None, alias="executionContext") + properties: Annotated[List[DwhQueryPropertyTypes], Field(min_length=1)] + filter_by: Optional[List[FilterBy]] = Field(default=None, alias="filterBy") + having: Optional[List[Having1]] = None + result_set_filter: Optional[List[ResultSetFilter]] = Field(default=None, alias="resultSetFilter") + order_by: Optional[List[OrderBy]] = Field(default=None, alias="orderBy") + variables: Optional[List[VariableValue]] = None + limit: Optional[Annotated[int, Field(strict=True, ge=1)]] = None + __properties: ClassVar[List[str]] = ["executionContext", "properties", "filterBy", "having", "resultSetFilter", "orderBy", "variables", "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 DwhQueryRequest1 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 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 each item in filter_by (list) + _items = [] + if self.filter_by: + for _item_filter_by in self.filter_by: + if _item_filter_by: + _items.append(_item_filter_by.to_dict()) + _dict['filterBy'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in having (list) + _items = [] + if self.having: + for _item_having in self.having: + if _item_having: + _items.append(_item_having.to_dict()) + _dict['having'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in result_set_filter (list) + _items = [] + if self.result_set_filter: + for _item_result_set_filter in self.result_set_filter: + if _item_result_set_filter: + _items.append(_item_result_set_filter.to_dict()) + _dict['resultSetFilter'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in order_by (list) + _items = [] + if self.order_by: + for _item_order_by in self.order_by: + if _item_order_by: + _items.append(_item_order_by.to_dict()) + _dict['orderBy'] = _items + # override the default output from pydantic by calling `to_dict()` of each item in variables (list) + _items = [] + if self.variables: + for _item_variables in self.variables: + if _item_variables: + _items.append(_item_variables.to_dict()) + _dict['variables'] = _items + # set to None if execution_context (nullable) is None + # and model_fields_set contains the field + if self.execution_context is None and "execution_context" in self.model_fields_set: + _dict['executionContext'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of DwhQueryRequest1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionContext": obj.get("executionContext"), + "properties": [DwhQueryPropertyTypes.from_dict(_item) for _item in obj["properties"]] if obj.get("properties") is not None else None, + "filterBy": [FilterBy.from_dict(_item) for _item in obj["filterBy"]] if obj.get("filterBy") is not None else None, + "having": [Having1.from_dict(_item) for _item in obj["having"]] if obj.get("having") is not None else None, + "resultSetFilter": [ResultSetFilter.from_dict(_item) for _item in obj["resultSetFilter"]] if obj.get("resultSetFilter") is not None else None, + "orderBy": [OrderBy.from_dict(_item) for _item in obj["orderBy"]] if obj.get("orderBy") is not None else None, + "variables": [VariableValue.from_dict(_item) for _item in obj["variables"]] if obj.get("variables") is not None else None, + "limit": obj.get("limit") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/execution_context.py b/cm_python_openapi_sdk/models/execution_context.py new file mode 100644 index 0000000..802a175 --- /dev/null +++ b/cm_python_openapi_sdk/models/execution_context.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 ExecutionContext(BaseModel): + """ + ExecutionContext + """ # noqa: E501 + feature: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + view_name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="viewName") + __properties: ClassVar[List[str]] = ["feature", "viewName"] + + @field_validator('view_name') + def view_name_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 ExecutionContext 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 ExecutionContext from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "feature": obj.get("feature"), + "viewName": obj.get("viewName") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/execution_detail.py b/cm_python_openapi_sdk/models/execution_detail.py new file mode 100644 index 0000000..ee772e8 --- /dev/null +++ b/cm_python_openapi_sdk/models/execution_detail.py @@ -0,0 +1,113 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.double_counting_warnings import DoubleCountingWarnings +from typing import Optional, Set +from typing_extensions import Self + +class ExecutionDetail(BaseModel): + """ + ExecutionDetail + """ # noqa: E501 + double_counting_warnings: Optional[List[DoubleCountingWarnings]] = Field(default=None, alias="doubleCountingWarnings") + dwh_query_metric_names: Optional[List[StrictStr]] = Field(default=None, alias="dwhQueryMetricNames") + feature: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + view_name: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="viewName") + __properties: ClassVar[List[str]] = ["doubleCountingWarnings", "dwhQueryMetricNames", "feature", "viewName"] + + @field_validator('view_name') + def view_name_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 ExecutionDetail 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 double_counting_warnings (list) + _items = [] + if self.double_counting_warnings: + for _item_double_counting_warnings in self.double_counting_warnings: + if _item_double_counting_warnings: + _items.append(_item_double_counting_warnings.to_dict()) + _dict['doubleCountingWarnings'] = _items + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ExecutionDetail from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "doubleCountingWarnings": [DoubleCountingWarnings.from_dict(_item) for _item in obj["doubleCountingWarnings"]] if obj.get("doubleCountingWarnings") is not None else None, + "dwhQueryMetricNames": obj.get("dwhQueryMetricNames"), + "feature": obj.get("feature"), + "viewName": obj.get("viewName") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/export_content_dto.py b/cm_python_openapi_sdk/models/export_content_dto.py index f5ed0e8..00d2ea3 100644 --- a/cm_python_openapi_sdk/models/export_content_dto.py +++ b/cm_python_openapi_sdk/models/export_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_dto.py b/cm_python_openapi_sdk/models/export_dto.py index 0b7a20e..c59afa6 100644 --- a/cm_python_openapi_sdk/models/export_dto.py +++ b/cm_python_openapi_sdk/models/export_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_job_request.py b/cm_python_openapi_sdk/models/export_job_request.py index a9346c6..0340b7b 100644 --- a/cm_python_openapi_sdk/models/export_job_request.py +++ b/cm_python_openapi_sdk/models/export_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_link_dto.py b/cm_python_openapi_sdk/models/export_link_dto.py index 08ed32c..3696953 100644 --- a/cm_python_openapi_sdk/models/export_link_dto.py +++ b/cm_python_openapi_sdk/models/export_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_paged_model_dto.py b/cm_python_openapi_sdk/models/export_paged_model_dto.py index a74a393..ea6da8b 100644 --- a/cm_python_openapi_sdk/models/export_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/export_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_request.py b/cm_python_openapi_sdk/models/export_request.py index 1fffd26..36d07ac 100644 --- a/cm_python_openapi_sdk/models/export_request.py +++ b/cm_python_openapi_sdk/models/export_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/export_request_csv_options.py b/cm_python_openapi_sdk/models/export_request_csv_options.py index 0fd13cd..9d8c3d3 100644 --- a/cm_python_openapi_sdk/models/export_request_csv_options.py +++ b/cm_python_openapi_sdk/models/export_request_csv_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_attribute_dto.py b/cm_python_openapi_sdk/models/feature_attribute_dto.py index ac3f81c..daa6c83 100644 --- a/cm_python_openapi_sdk/models/feature_attribute_dto.py +++ b/cm_python_openapi_sdk/models/feature_attribute_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_filter_dto.py b/cm_python_openapi_sdk/models/feature_filter_dto.py index 00cd85d..470c6ad 100644 --- a/cm_python_openapi_sdk/models/feature_filter_dto.py +++ b/cm_python_openapi_sdk/models/feature_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_function_dto.py b/cm_python_openapi_sdk/models/feature_function_dto.py index fb7cc55..9a46d7f 100644 --- a/cm_python_openapi_sdk/models/feature_function_dto.py +++ b/cm_python_openapi_sdk/models/feature_function_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_property_dto.py b/cm_python_openapi_sdk/models/feature_property_dto.py index f59e763..3952a7a 100644 --- a/cm_python_openapi_sdk/models/feature_property_dto.py +++ b/cm_python_openapi_sdk/models/feature_property_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_property_type.py b/cm_python_openapi_sdk/models/feature_property_type.py index da370ec..aa1e578 100644 --- a/cm_python_openapi_sdk/models/feature_property_type.py +++ b/cm_python_openapi_sdk/models/feature_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/feature_text_dto.py b/cm_python_openapi_sdk/models/feature_text_dto.py index e6ad759..613b534 100644 --- a/cm_python_openapi_sdk/models/feature_text_dto.py +++ b/cm_python_openapi_sdk/models/feature_text_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/filter_abstract_type.py b/cm_python_openapi_sdk/models/filter_abstract_type.py index b83f01d..1e306fc 100644 --- a/cm_python_openapi_sdk/models/filter_abstract_type.py +++ b/cm_python_openapi_sdk/models/filter_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/filter_by.py b/cm_python_openapi_sdk/models/filter_by.py new file mode 100644 index 0000000..9e6a575 --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by.py @@ -0,0 +1,182 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.filter_by_comp import FilterByComp +from cm_python_openapi_sdk.models.filter_by_in import FilterByIn +from cm_python_openapi_sdk.models.filter_by_unary import FilterByUnary +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +FILTERBY_ONE_OF_SCHEMAS = ["FilterByAttribute", "FilterByBoolean", "FilterByComp", "FilterByIn", "FilterByUnary"] + +class FilterBy(BaseModel): + """ + FilterBy + """ + # data type: FilterByComp + oneof_schema_1_validator: Optional[FilterByComp] = None + # data type: FilterByIn + oneof_schema_2_validator: Optional[FilterByIn] = None + # data type: FilterByAttribute + oneof_schema_3_validator: Optional[FilterByAttribute] = None + # data type: FilterByUnary + oneof_schema_4_validator: Optional[FilterByUnary] = None + # data type: FilterByBoolean + oneof_schema_5_validator: Optional[FilterByBoolean] = None + actual_instance: Optional[Union[FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary]] = None + one_of_schemas: Set[str] = { "FilterByAttribute", "FilterByBoolean", "FilterByComp", "FilterByIn", "FilterByUnary" } + + 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 = FilterBy.model_construct() + error_messages = [] + match = 0 + # validate data type: FilterByComp + if not isinstance(v, FilterByComp): + error_messages.append(f"Error! Input type `{type(v)}` is not `FilterByComp`") + else: + match += 1 + # validate data type: FilterByIn + if not isinstance(v, FilterByIn): + error_messages.append(f"Error! Input type `{type(v)}` is not `FilterByIn`") + else: + match += 1 + # validate data type: FilterByAttribute + if not isinstance(v, FilterByAttribute): + error_messages.append(f"Error! Input type `{type(v)}` is not `FilterByAttribute`") + else: + match += 1 + # validate data type: FilterByUnary + if not isinstance(v, FilterByUnary): + error_messages.append(f"Error! Input type `{type(v)}` is not `FilterByUnary`") + else: + match += 1 + # validate data type: FilterByBoolean + if not isinstance(v, FilterByBoolean): + error_messages.append(f"Error! Input type `{type(v)}` is not `FilterByBoolean`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in FilterBy with oneOf schemas: FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in FilterBy with oneOf schemas: FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary. 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 FilterByComp + try: + instance.actual_instance = FilterByComp.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FilterByIn + try: + instance.actual_instance = FilterByIn.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FilterByAttribute + try: + instance.actual_instance = FilterByAttribute.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FilterByUnary + try: + instance.actual_instance = FilterByUnary.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into FilterByBoolean + try: + instance.actual_instance = FilterByBoolean.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 FilterBy with oneOf schemas: FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into FilterBy with oneOf schemas: FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary. 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], FilterByAttribute, FilterByBoolean, FilterByComp, FilterByIn, FilterByUnary]]: + """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()) + +from cm_python_openapi_sdk.models.filter_by_attribute import FilterByAttribute +from cm_python_openapi_sdk.models.filter_by_boolean import FilterByBoolean +# TODO: Rewrite to not use raise_errors +FilterBy.model_rebuild(raise_errors=False) + diff --git a/cm_python_openapi_sdk/models/filter_by_attribute.py b/cm_python_openapi_sdk/models/filter_by_attribute.py new file mode 100644 index 0000000..dbf74b3 --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_attribute.py @@ -0,0 +1,123 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 FilterByAttribute(BaseModel): + """ + FilterByAttribute + """ # noqa: E501 + var_property: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="property") + function: Optional[Any] = None + query: DwhQueryRequest + operator: StrictStr + __properties: ClassVar[List[str]] = ["property", "function", "query", "operator"] + + @field_validator('var_property') + def var_property_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_-]*\.[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 + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['inAttribute', 'notInAttribute']): + raise ValueError("must be one of enum values ('inAttribute', 'notInAttribute')") + 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 FilterByAttribute 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 query + if self.query: + _dict['query'] = self.query.to_dict() + # set to None if function (nullable) is None + # and model_fields_set contains the field + if self.function is None and "function" in self.model_fields_set: + _dict['function'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FilterByAttribute 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"), + "function": obj.get("function"), + "query": DwhQueryRequest.from_dict(obj["query"]) if obj.get("query") is not None else None, + "operator": obj.get("operator") + }) + return _obj + +from cm_python_openapi_sdk.models.dwh_query_request import DwhQueryRequest +# TODO: Rewrite to not use raise_errors +FilterByAttribute.model_rebuild(raise_errors=False) + diff --git a/cm_python_openapi_sdk/models/filter_by_boolean.py b/cm_python_openapi_sdk/models/filter_by_boolean.py new file mode 100644 index 0000000..74f6b2f --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_boolean.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 FilterByBoolean(BaseModel): + """ + FilterByBoolean + """ # noqa: E501 + operator: StrictStr + content: List[FilterBy] + __properties: ClassVar[List[str]] = ["operator", "content"] + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['and', 'or', 'not']): + raise ValueError("must be one of enum values ('and', 'or', 'not')") + 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 FilterByBoolean 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 FilterByBoolean from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "operator": obj.get("operator"), + "content": [FilterBy.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None + }) + return _obj + +from cm_python_openapi_sdk.models.filter_by import FilterBy +# TODO: Rewrite to not use raise_errors +FilterByBoolean.model_rebuild(raise_errors=False) + diff --git a/cm_python_openapi_sdk/models/filter_by_comp.py b/cm_python_openapi_sdk/models/filter_by_comp.py new file mode 100644 index 0000000..d256d3f --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_comp.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_property_types import DwhQueryPropertyTypes +from typing import Optional, Set +from typing_extensions import Self + +class FilterByComp(BaseModel): + """ + FilterByComp + """ # noqa: E501 + var_property: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="property") + value: Optional[Any] = None + function: Optional[DwhQueryPropertyTypes] = None + operator: StrictStr + __properties: ClassVar[List[str]] = ["property", "value", "function", "operator"] + + @field_validator('var_property') + def var_property_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_-]*\.[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 + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 FilterByComp 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 function + if self.function: + _dict['function'] = self.function.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 FilterByComp 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"), + "value": obj.get("value"), + "function": DwhQueryPropertyTypes.from_dict(obj["function"]) if obj.get("function") is not None else None, + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/filter_by_in.py b/cm_python_openapi_sdk/models/filter_by_in.py new file mode 100644 index 0000000..0110d6b --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_in.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 FilterByIn(BaseModel): + """ + FilterByIn + """ # noqa: E501 + var_property: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="property") + function: Optional[Any] = None + value: List[Any] + operator: StrictStr + __properties: ClassVar[List[str]] = ["property", "function", "value", "operator"] + + @field_validator('var_property') + def var_property_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_-]*\.[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 + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 FilterByIn 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 function (nullable) is None + # and model_fields_set contains the field + if self.function is None and "function" in self.model_fields_set: + _dict['function'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FilterByIn 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"), + "function": obj.get("function"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/filter_by_in1.py b/cm_python_openapi_sdk/models/filter_by_in1.py new file mode 100644 index 0000000..0b9caf8 --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_in1.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 FilterByIn1(BaseModel): + """ + FilterByIn1 + """ # noqa: E501 + var_property: Optional[Annotated[str, Field(strict=True)]] = Field(default=None, alias="property") + function: Optional[Any] = None + value: List[Any] + operator: StrictStr + __properties: ClassVar[List[str]] = ["property", "function", "value", "operator"] + + @field_validator('var_property') + def var_property_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_-]*\.[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 + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 FilterByIn1 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 function (nullable) is None + # and model_fields_set contains the field + if self.function is None and "function" in self.model_fields_set: + _dict['function'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of FilterByIn1 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"), + "function": obj.get("function"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/filter_by_unary.py b/cm_python_openapi_sdk/models/filter_by_unary.py new file mode 100644 index 0000000..c0675ec --- /dev/null +++ b/cm_python_openapi_sdk/models/filter_by_unary.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 FilterByUnary(BaseModel): + """ + FilterByUnary + """ # noqa: E501 + var_property: Annotated[str, Field(strict=True)] = Field(alias="property") + operator: StrictStr + __properties: ClassVar[List[str]] = ["property", "operator"] + + @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 + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['isNull', 'isNotNull']): + raise ValueError("must be one of enum values ('isNull', 'isNotNull')") + 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 FilterByUnary 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 FilterByUnary 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"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/format_dto.py b/cm_python_openapi_sdk/models/format_dto.py index ac6352d..4881024 100644 --- a/cm_python_openapi_sdk/models/format_dto.py +++ b/cm_python_openapi_sdk/models/format_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_agg_type_general.py b/cm_python_openapi_sdk/models/function_agg_type_general.py index 4474485..5248f83 100644 --- a/cm_python_openapi_sdk/models/function_agg_type_general.py +++ b/cm_python_openapi_sdk/models/function_agg_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,7 +30,7 @@ class FunctionAggTypeGeneral(BaseModel): """ # 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)] + content: Annotated[List[DwhQueryPropertyTypes], Field(min_length=1, max_length=1)] options: Optional[Dict[str, Any]] = None __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @@ -89,11 +90,13 @@ def to_dict(self) -> Dict[str, Any]: 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 - + # 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 @@ -108,9 +111,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "content": obj.get("content"), + "content": [DwhQueryPropertyTypes.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, "options": obj.get("options") }) return _obj +from cm_python_openapi_sdk.models.dwh_query_property_types import DwhQueryPropertyTypes +# TODO: Rewrite to not use raise_errors +FunctionAggTypeGeneral.model_rebuild(raise_errors=False) diff --git a/cm_python_openapi_sdk/models/function_arithm_type_general.py b/cm_python_openapi_sdk/models/function_arithm_type_general.py index 197a77a..8eba75d 100644 --- a/cm_python_openapi_sdk/models/function_arithm_type_general.py +++ b/cm_python_openapi_sdk/models/function_arithm_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_condition_type_general.py b/cm_python_openapi_sdk/models/function_condition_type_general.py index b2702ba..19815e6 100644 --- a/cm_python_openapi_sdk/models/function_condition_type_general.py +++ b/cm_python_openapi_sdk/models/function_condition_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_date_trunc.py b/cm_python_openapi_sdk/models/function_date_trunc.py index 96b2639..87a900a 100644 --- a/cm_python_openapi_sdk/models/function_date_trunc.py +++ b/cm_python_openapi_sdk/models/function_date_trunc.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +21,7 @@ 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 cm_python_openapi_sdk.models.function_date_truncate_options import FunctionDateTruncateOptions from typing import Optional, Set from typing_extensions import Self @@ -31,7 +32,7 @@ class FunctionDateTrunc(BaseModel): 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 + options: FunctionDateTruncateOptions __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @field_validator('id') @@ -108,7 +109,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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 + "options": FunctionDateTruncateOptions.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_truncate_options.py similarity index 79% rename from cm_python_openapi_sdk/models/function_date_trunc_options.py rename to cm_python_openapi_sdk/models/function_date_truncate_options.py index f6ecf0d..7f8faf8 100644 --- a/cm_python_openapi_sdk/models/function_date_trunc_options.py +++ b/cm_python_openapi_sdk/models/function_date_truncate_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class FunctionDateTruncOptions(BaseModel): +class FunctionDateTruncateOptions(BaseModel): """ - FunctionDateTruncOptions + FunctionDateTruncateOptions """ # noqa: E501 interval: StrictStr __properties: ClassVar[List[str]] = ["interval"] @@ -54,7 +55,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDateTruncOptions from a JSON string""" + """Create an instance of FunctionDateTruncateOptions from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -79,7 +80,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDateTruncOptions from a dict""" + """Create an instance of FunctionDateTruncateOptions from a dict""" if obj is None: return None diff --git a/cm_python_openapi_sdk/models/function_distance.py b/cm_python_openapi_sdk/models/function_distance.py index 176e2be..60adc94 100644 --- a/cm_python_openapi_sdk/models/function_distance.py +++ b/cm_python_openapi_sdk/models/function_distance.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_distance_options.py b/cm_python_openapi_sdk/models/function_distance_options.py index 615fedc..7b94576 100644 --- a/cm_python_openapi_sdk/models/function_distance_options.py +++ b/cm_python_openapi_sdk/models/function_distance_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,7 +21,7 @@ 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 cm_python_openapi_sdk.models.central_point import CentralPoint from typing import Optional, Set from typing_extensions import Self @@ -29,7 +30,7 @@ class FunctionDistanceOptions(BaseModel): FunctionDistanceOptions """ # noqa: E501 dataset: Annotated[str, Field(strict=True)] - central_point: FunctionDistanceOptionsCentralPoint = Field(alias="centralPoint") + central_point: CentralPoint = Field(alias="centralPoint") __properties: ClassVar[List[str]] = ["dataset", "centralPoint"] @field_validator('dataset') @@ -94,7 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "dataset": obj.get("dataset"), - "centralPoint": FunctionDistanceOptionsCentralPoint.from_dict(obj["centralPoint"]) if obj.get("centralPoint") is not None else None + "centralPoint": CentralPoint.from_dict(obj["centralPoint"]) if obj.get("centralPoint") is not None else None }) return _obj diff --git a/cm_python_openapi_sdk/models/function_h3_grid.py b/cm_python_openapi_sdk/models/function_h3_grid.py index f9ec829..9c49087 100644 --- a/cm_python_openapi_sdk/models/function_h3_grid.py +++ b/cm_python_openapi_sdk/models/function_h3_grid.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_h3_grid_options.py b/cm_python_openapi_sdk/models/function_h3_grid_options.py index cc27cb5..d2bd79e 100644 --- a/cm_python_openapi_sdk/models/function_h3_grid_options.py +++ b/cm_python_openapi_sdk/models/function_h3_grid_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_interval.py b/cm_python_openapi_sdk/models/function_interval.py index 6ac8d29..e2f8f2d 100644 --- a/cm_python_openapi_sdk/models/function_interval.py +++ b/cm_python_openapi_sdk/models/function_interval.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -21,7 +22,7 @@ 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 cm_python_openapi_sdk.models.function_date_truncate_options import FunctionDateTruncateOptions from typing import Optional, Set from typing_extensions import Self @@ -32,7 +33,7 @@ class FunctionInterval(BaseModel): 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 + options: FunctionDateTruncateOptions __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @field_validator('id') @@ -116,7 +117,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "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 + "options": FunctionDateTruncateOptions.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 index ebdfc11..0c86a93 100644 --- a/cm_python_openapi_sdk/models/function_ntile.py +++ b/cm_python_openapi_sdk/models/function_ntile.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +21,7 @@ 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_content_inner import FunctionNtileContentInner from cm_python_openapi_sdk.models.function_ntile_options import FunctionNtileOptions from typing import Optional, Set from typing_extensions import Self @@ -30,7 +32,7 @@ class FunctionNtile(BaseModel): """ # 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)] + content: Annotated[List[FunctionNtileContentInner], Field(min_length=1)] options: Optional[FunctionNtileOptions] = None __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @@ -90,6 +92,13 @@ def to_dict(self) -> Dict[str, Any]: 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() @@ -107,7 +116,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "content": obj.get("content"), + "content": [FunctionNtileContentInner.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, "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_content_inner.py b/cm_python_openapi_sdk/models/function_ntile_content_inner.py new file mode 100644 index 0000000..6e404e0 --- /dev/null +++ b/cm_python_openapi_sdk/models/function_ntile_content_inner.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.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_round_type_general import FunctionRoundTypeGeneral +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +FUNCTIONNTILECONTENTINNER_ONE_OF_SCHEMAS = ["FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionRoundTypeGeneral"] + +class FunctionNtileContentInner(BaseModel): + """ + FunctionNtileContentInner + """ + # data type: FunctionAggTypeGeneral + oneof_schema_1_validator: Optional[FunctionAggTypeGeneral] = None + # data type: FunctionArithmTypeGeneral + oneof_schema_2_validator: Optional[FunctionArithmTypeGeneral] = None + # data type: FunctionRoundTypeGeneral + oneof_schema_3_validator: Optional[FunctionRoundTypeGeneral] = None + actual_instance: Optional[Union[FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral]] = None + one_of_schemas: Set[str] = { "FunctionAggTypeGeneral", "FunctionArithmTypeGeneral", "FunctionRoundTypeGeneral" } + + 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 = FunctionNtileContentInner.model_construct() + error_messages = [] + match = 0 + # 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: FunctionArithmTypeGeneral + if not isinstance(v, FunctionArithmTypeGeneral): + error_messages.append(f"Error! Input type `{type(v)}` is not `FunctionArithmTypeGeneral`") + 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 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in FunctionNtileContentInner with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in FunctionNtileContentInner with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral. 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 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 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 FunctionRoundTypeGeneral + try: + instance.actual_instance = FunctionRoundTypeGeneral.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 FunctionNtileContentInner with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into FunctionNtileContentInner with oneOf schemas: FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral. 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], FunctionAggTypeGeneral, FunctionArithmTypeGeneral, FunctionRoundTypeGeneral]]: + """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_ntile_options.py b/cm_python_openapi_sdk/models/function_ntile_options.py index 0dab79d..d8e289d 100644 --- a/cm_python_openapi_sdk/models/function_ntile_options.py +++ b/cm_python_openapi_sdk/models/function_ntile_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 359937c..f36eb0c 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -89,11 +90,6 @@ def to_dict(self) -> Dict[str, Any]: 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 diff --git a/cm_python_openapi_sdk/models/function_percentile.py b/cm_python_openapi_sdk/models/function_percentile.py index dd483d2..d0a3d3a 100644 --- a/cm_python_openapi_sdk/models/function_percentile.py +++ b/cm_python_openapi_sdk/models/function_percentile.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +21,7 @@ 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_content_inner import FunctionNtileContentInner from typing import Optional, Set from typing_extensions import Self @@ -29,8 +31,8 @@ class FunctionPercentile(BaseModel): """ # 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]] + content: Annotated[List[FunctionNtileContentInner], Field(min_length=1)] + options: Dict[str, Any] __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @field_validator('id') @@ -89,11 +91,13 @@ def to_dict(self) -> Dict[str, Any]: 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 - + # 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 @@ -108,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "content": obj.get("content"), + "content": [FunctionNtileContentInner.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, "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 index 0bb20da..98a8cca 100644 --- a/cm_python_openapi_sdk/models/function_property_type.py +++ b/cm_python_openapi_sdk/models/function_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/function_rank.py b/cm_python_openapi_sdk/models/function_rank.py index b393c8d..4a22492 100644 --- a/cm_python_openapi_sdk/models/function_rank.py +++ b/cm_python_openapi_sdk/models/function_rank.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +21,7 @@ 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_content_inner import FunctionNtileContentInner from typing import Optional, Set from typing_extensions import Self @@ -29,8 +31,8 @@ class FunctionRank(BaseModel): """ # 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]] + content: Annotated[List[FunctionNtileContentInner], Field(min_length=1)] + options: Dict[str, Any] __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @field_validator('id') @@ -89,11 +91,13 @@ def to_dict(self) -> Dict[str, Any]: 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 - + # 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 @@ -108,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "content": obj.get("content"), + "content": [FunctionNtileContentInner.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, "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 index 27d2180..58e44be 100644 --- a/cm_python_openapi_sdk/models/function_round_type_general.py +++ b/cm_python_openapi_sdk/models/function_round_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -89,11 +90,6 @@ def to_dict(self) -> Dict[str, Any]: 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 diff --git a/cm_python_openapi_sdk/models/function_row_number.py b/cm_python_openapi_sdk/models/function_row_number.py index feaf0c9..b8f2bb2 100644 --- a/cm_python_openapi_sdk/models/function_row_number.py +++ b/cm_python_openapi_sdk/models/function_row_number.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -20,6 +21,7 @@ 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_content_inner import FunctionNtileContentInner from typing import Optional, Set from typing_extensions import Self @@ -29,8 +31,8 @@ class FunctionRowNumber(BaseModel): """ # 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]] + content: Annotated[List[FunctionNtileContentInner], Field(min_length=1)] + options: Dict[str, Any] __properties: ClassVar[List[str]] = ["id", "type", "content", "options"] @field_validator('id') @@ -89,11 +91,13 @@ def to_dict(self) -> Dict[str, Any]: 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 - + # 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 @@ -108,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: _obj = cls.model_validate({ "id": obj.get("id"), "type": obj.get("type"), - "content": obj.get("content"), + "content": [FunctionNtileContentInner.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, "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 index 45d52b0..7858dbf 100644 --- a/cm_python_openapi_sdk/models/function_today.py +++ b/cm_python_openapi_sdk/models/function_today.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/geosearch_paged_model_dto.py b/cm_python_openapi_sdk/models/geosearch_paged_model_dto.py new file mode 100644 index 0000000..fb675b0 --- /dev/null +++ b/cm_python_openapi_sdk/models/geosearch_paged_model_dto.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.query_hit_dto import QueryHitDTO +from typing import Optional, Set +from typing_extensions import Self + +class GeosearchPagedModelDTO(BaseModel): + """ + GeosearchPagedModelDTO + """ # 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[QueryHitDTO]] = 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 GeosearchPagedModelDTO 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 GeosearchPagedModelDTO 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": [QueryHitDTO.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/get_account_by_account_id200_response.py b/cm_python_openapi_sdk/models/get_account_by_account_id200_response.py new file mode 100644 index 0000000..dc8a822 --- /dev/null +++ b/cm_python_openapi_sdk/models/get_account_by_account_id200_response.py @@ -0,0 +1,135 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.account_dto import AccountDTO +from cm_python_openapi_sdk.models.restricted_account_dto import RestrictedAccountDTO +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +GETACCOUNTBYACCOUNTID200RESPONSE_ANY_OF_SCHEMAS = ["AccountDTO", "RestrictedAccountDTO"] + +class GetAccountByAccountId200Response(BaseModel): + """ + GetAccountByAccountId200Response + """ + + # data type: RestrictedAccountDTO + anyof_schema_1_validator: Optional[RestrictedAccountDTO] = None + # data type: AccountDTO + anyof_schema_2_validator: Optional[AccountDTO] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[AccountDTO, RestrictedAccountDTO]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "AccountDTO", "RestrictedAccountDTO" } + + 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 = GetAccountByAccountId200Response.model_construct() + error_messages = [] + # validate data type: RestrictedAccountDTO + if not isinstance(v, RestrictedAccountDTO): + error_messages.append(f"Error! Input type `{type(v)}` is not `RestrictedAccountDTO`") + else: + return v + + # validate data type: AccountDTO + if not isinstance(v, AccountDTO): + error_messages.append(f"Error! Input type `{type(v)}` is not `AccountDTO`") + else: + return v + + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in GetAccountByAccountId200Response with anyOf schemas: AccountDTO, RestrictedAccountDTO. 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[RestrictedAccountDTO] = None + try: + instance.actual_instance = RestrictedAccountDTO.from_json(json_str) + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # anyof_schema_2_validator: Optional[AccountDTO] = None + try: + instance.actual_instance = AccountDTO.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 GetAccountByAccountId200Response with anyOf schemas: AccountDTO, RestrictedAccountDTO. 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], AccountDTO, RestrictedAccountDTO]]: + """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_organizations200_response.py b/cm_python_openapi_sdk/models/get_organizations200_response.py index 2578979..49fd8d5 100644 --- a/cm_python_openapi_sdk/models/get_organizations200_response.py +++ b/cm_python_openapi_sdk/models/get_organizations200_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/get_project_members200_response.py b/cm_python_openapi_sdk/models/get_project_members200_response.py index ff3d466..36221f5 100644 --- a/cm_python_openapi_sdk/models/get_project_members200_response.py +++ b/cm_python_openapi_sdk/models/get_project_members200_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/global_date_filter_dto.py b/cm_python_openapi_sdk/models/global_date_filter_dto.py index a427d0a..90b94da 100644 --- a/cm_python_openapi_sdk/models/global_date_filter_dto.py +++ b/cm_python_openapi_sdk/models/global_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/google_earth_dto.py b/cm_python_openapi_sdk/models/google_earth_dto.py index ca7b4dc..53f7fc7 100644 --- a/cm_python_openapi_sdk/models/google_earth_dto.py +++ b/cm_python_openapi_sdk/models/google_earth_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/google_satellite_dto.py b/cm_python_openapi_sdk/models/google_satellite_dto.py index 52788a0..06fcea0 100644 --- a/cm_python_openapi_sdk/models/google_satellite_dto.py +++ b/cm_python_openapi_sdk/models/google_satellite_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/google_street_view_dto.py b/cm_python_openapi_sdk/models/google_street_view_dto.py index 3f23f31..52b47f8 100644 --- a/cm_python_openapi_sdk/models/google_street_view_dto.py +++ b/cm_python_openapi_sdk/models/google_street_view_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/granularity_category_dto.py b/cm_python_openapi_sdk/models/granularity_category_dto.py index 31a95f7..06257f5 100644 --- a/cm_python_openapi_sdk/models/granularity_category_dto.py +++ b/cm_python_openapi_sdk/models/granularity_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py b/cm_python_openapi_sdk/models/having.py similarity index 54% rename from cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py rename to cm_python_openapi_sdk/models/having.py index 4dab399..1adebc4 100644 --- a/cm_python_openapi_sdk/models/bulk_point_query_request_point_queries_inner_options.py +++ b/cm_python_openapi_sdk/models/having.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -17,24 +18,27 @@ 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 cm_python_openapi_sdk.models.having_comp import HavingComp +from cm_python_openapi_sdk.models.having_in import HavingIn +from cm_python_openapi_sdk.models.having_unary import HavingUnary 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"] +HAVING_ONE_OF_SCHEMAS = ["HavingComp", "HavingIn", "HavingUnary"] -class BulkPointQueryRequestPointQueriesInnerOptions(BaseModel): +class Having(BaseModel): """ - BulkPointQueryRequestPointQueriesInnerOptions + Having """ - # 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" } + # data type: HavingComp + oneof_schema_1_validator: Optional[HavingComp] = None + # data type: HavingIn + oneof_schema_2_validator: Optional[HavingIn] = None + # data type: HavingUnary + oneof_schema_3_validator: Optional[HavingUnary] = None + actual_instance: Optional[Union[HavingComp, HavingIn, HavingUnary]] = None + one_of_schemas: Set[str] = { "HavingComp", "HavingIn", "HavingUnary" } model_config = ConfigDict( validate_assignment=True, @@ -54,25 +58,30 @@ def __init__(self, *args, **kwargs) -> None: @field_validator('actual_instance') def actual_instance_must_validate_oneof(cls, v): - instance = BulkPointQueryRequestPointQueriesInnerOptions.model_construct() + instance = Having.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`") + # validate data type: HavingComp + if not isinstance(v, HavingComp): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingComp`") else: match += 1 - # validate data type: BulkPointQueryPointQueriesOptionNearest - if not isinstance(v, BulkPointQueryPointQueriesOptionNearest): - error_messages.append(f"Error! Input type `{type(v)}` is not `BulkPointQueryPointQueriesOptionNearest`") + # validate data type: HavingIn + if not isinstance(v, HavingIn): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingIn`") + else: + match += 1 + # validate data type: HavingUnary + if not isinstance(v, HavingUnary): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingUnary`") 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)) + raise ValueError("Multiple matches found when setting `actual_instance` in Having with oneOf schemas: HavingComp, HavingIn, HavingUnary. 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)) + raise ValueError("No match found when setting `actual_instance` in Having with oneOf schemas: HavingComp, HavingIn, HavingUnary. Details: " + ", ".join(error_messages)) else: return v @@ -87,25 +96,31 @@ def from_json(cls, json_str: str) -> Self: error_messages = [] match = 0 - # deserialize data into BulkPointQueryPointQueriesOptionIsochrone + # deserialize data into HavingComp + try: + instance.actual_instance = HavingComp.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into HavingIn try: - instance.actual_instance = BulkPointQueryPointQueriesOptionIsochrone.from_json(json_str) + instance.actual_instance = HavingIn.from_json(json_str) match += 1 except (ValidationError, ValueError) as e: error_messages.append(str(e)) - # deserialize data into BulkPointQueryPointQueriesOptionNearest + # deserialize data into HavingUnary try: - instance.actual_instance = BulkPointQueryPointQueriesOptionNearest.from_json(json_str) + instance.actual_instance = HavingUnary.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)) + raise ValueError("Multiple matches found when deserializing the JSON string into Having with oneOf schemas: HavingComp, HavingIn, HavingUnary. 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)) + raise ValueError("No match found when deserializing the JSON string into Having with oneOf schemas: HavingComp, HavingIn, HavingUnary. Details: " + ", ".join(error_messages)) else: return instance @@ -119,7 +134,7 @@ def to_json(self) -> str: else: return json.dumps(self.actual_instance) - def to_dict(self) -> Optional[Union[Dict[str, Any], BulkPointQueryPointQueriesOptionIsochrone, BulkPointQueryPointQueriesOptionNearest]]: + def to_dict(self) -> Optional[Union[Dict[str, Any], HavingComp, HavingIn, HavingUnary]]: """Returns the dict representation of the actual instance""" if self.actual_instance is None: return None diff --git a/cm_python_openapi_sdk/models/having1.py b/cm_python_openapi_sdk/models/having1.py new file mode 100644 index 0000000..fae750c --- /dev/null +++ b/cm_python_openapi_sdk/models/having1.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.having_comp import HavingComp +from cm_python_openapi_sdk.models.having_in1 import HavingIn1 +from cm_python_openapi_sdk.models.having_unary import HavingUnary +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +HAVING1_ONE_OF_SCHEMAS = ["HavingComp", "HavingIn1", "HavingUnary"] + +class Having1(BaseModel): + """ + Having1 + """ + # data type: HavingComp + oneof_schema_1_validator: Optional[HavingComp] = None + # data type: HavingIn1 + oneof_schema_2_validator: Optional[HavingIn1] = None + # data type: HavingUnary + oneof_schema_3_validator: Optional[HavingUnary] = None + actual_instance: Optional[Union[HavingComp, HavingIn1, HavingUnary]] = None + one_of_schemas: Set[str] = { "HavingComp", "HavingIn1", "HavingUnary" } + + 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 = Having1.model_construct() + error_messages = [] + match = 0 + # validate data type: HavingComp + if not isinstance(v, HavingComp): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingComp`") + else: + match += 1 + # validate data type: HavingIn1 + if not isinstance(v, HavingIn1): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingIn1`") + else: + match += 1 + # validate data type: HavingUnary + if not isinstance(v, HavingUnary): + error_messages.append(f"Error! Input type `{type(v)}` is not `HavingUnary`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in Having1 with oneOf schemas: HavingComp, HavingIn1, HavingUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in Having1 with oneOf schemas: HavingComp, HavingIn1, HavingUnary. 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 HavingComp + try: + instance.actual_instance = HavingComp.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into HavingIn1 + try: + instance.actual_instance = HavingIn1.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into HavingUnary + try: + instance.actual_instance = HavingUnary.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 Having1 with oneOf schemas: HavingComp, HavingIn1, HavingUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into Having1 with oneOf schemas: HavingComp, HavingIn1, HavingUnary. 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], HavingComp, HavingIn1, HavingUnary]]: + """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/having_comp.py b/cm_python_openapi_sdk/models/having_comp.py new file mode 100644 index 0000000..5f9fe84 --- /dev/null +++ b/cm_python_openapi_sdk/models/having_comp.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class HavingComp(BaseModel): + """ + HavingComp + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + value: Union[StrictFloat, StrictInt] + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "value", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 HavingComp 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 HavingComp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/having_in.py b/cm_python_openapi_sdk/models/having_in.py new file mode 100644 index 0000000..fdf98d5 --- /dev/null +++ b/cm_python_openapi_sdk/models/having_in.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 HavingIn(BaseModel): + """ + HavingIn + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + value: List[Any] + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "value", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 HavingIn 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 HavingIn from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/having_in1.py b/cm_python_openapi_sdk/models/having_in1.py new file mode 100644 index 0000000..e1b0bdd --- /dev/null +++ b/cm_python_openapi_sdk/models/having_in1.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 HavingIn1(BaseModel): + """ + HavingIn1 + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + value: List[Any] + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "value", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 HavingIn1 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 HavingIn1 from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/having_unary.py b/cm_python_openapi_sdk/models/having_unary.py new file mode 100644 index 0000000..2070ba0 --- /dev/null +++ b/cm_python_openapi_sdk/models/having_unary.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 HavingUnary(BaseModel): + """ + HavingUnary + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['isNull', 'isNotNull']): + raise ValueError("must be one of enum values ('isNull', 'isNotNull')") + 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 HavingUnary 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 HavingUnary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/highlight_dto.py b/cm_python_openapi_sdk/models/highlight_dto.py new file mode 100644 index 0000000..b104e4e --- /dev/null +++ b/cm_python_openapi_sdk/models/highlight_dto.py @@ -0,0 +1,91 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 HighlightDTO(BaseModel): + """ + HighlightDTO + """ # noqa: E501 + title: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + subtitle: Optional[Annotated[str, Field(min_length=1, strict=True)]] = None + __properties: ClassVar[List[str]] = ["title", "subtitle"] + + 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 HighlightDTO 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 HighlightDTO 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"), + "subtitle": obj.get("subtitle") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/histogram_filter_dto.py b/cm_python_openapi_sdk/models/histogram_filter_dto.py index a4cfb02..a1a1b12 100644 --- a/cm_python_openapi_sdk/models/histogram_filter_dto.py +++ b/cm_python_openapi_sdk/models/histogram_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/hit_highlight.py b/cm_python_openapi_sdk/models/hit_highlight.py new file mode 100644 index 0000000..59f4cab --- /dev/null +++ b/cm_python_openapi_sdk/models/hit_highlight.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, Optional +from typing import Optional, Set +from typing_extensions import Self + +class HitHighlight(BaseModel): + """ + HitHighlight + """ # noqa: E501 + title: Optional[StrictStr] = None + subtitle: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["title", "subtitle"] + + 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 HitHighlight 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 HitHighlight 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"), + "subtitle": obj.get("subtitle") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/import_project_job_request.py b/cm_python_openapi_sdk/models/import_project_job_request.py index 316d679..8118672 100644 --- a/cm_python_openapi_sdk/models/import_project_job_request.py +++ b/cm_python_openapi_sdk/models/import_project_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/import_project_request.py b/cm_python_openapi_sdk/models/import_project_request.py index 729c3e6..933b70a 100644 --- a/cm_python_openapi_sdk/models/import_project_request.py +++ b/cm_python_openapi_sdk/models/import_project_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_content_dto.py b/cm_python_openapi_sdk/models/indicator_content_dto.py index 1127bcd..792cbad 100644 --- a/cm_python_openapi_sdk/models/indicator_content_dto.py +++ b/cm_python_openapi_sdk/models/indicator_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_drill_content_dto.py b/cm_python_openapi_sdk/models/indicator_drill_content_dto.py index 78011ba..ed26314 100644 --- a/cm_python_openapi_sdk/models/indicator_drill_content_dto.py +++ b/cm_python_openapi_sdk/models/indicator_drill_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_drill_dto.py b/cm_python_openapi_sdk/models/indicator_drill_dto.py index c1b4eee..3fc3e12 100644 --- a/cm_python_openapi_sdk/models/indicator_drill_dto.py +++ b/cm_python_openapi_sdk/models/indicator_drill_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py b/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py index b90d232..ffaae1f 100644 --- a/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/indicator_drill_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_dto.py b/cm_python_openapi_sdk/models/indicator_dto.py index 9bdbeb6..4b70a41 100644 --- a/cm_python_openapi_sdk/models/indicator_dto.py +++ b/cm_python_openapi_sdk/models/indicator_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_filter_dto.py b/cm_python_openapi_sdk/models/indicator_filter_dto.py index 371d47d..69eaeb4 100644 --- a/cm_python_openapi_sdk/models/indicator_filter_dto.py +++ b/cm_python_openapi_sdk/models/indicator_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_group_dto.py b/cm_python_openapi_sdk/models/indicator_group_dto.py index 0255822..f443dfb 100644 --- a/cm_python_openapi_sdk/models/indicator_group_dto.py +++ b/cm_python_openapi_sdk/models/indicator_group_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_link_dto.py b/cm_python_openapi_sdk/models/indicator_link_dto.py index 60e10c7..6896ccb 100644 --- a/cm_python_openapi_sdk/models/indicator_link_dto.py +++ b/cm_python_openapi_sdk/models/indicator_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py b/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py index a748d3a..e6aac91 100644 --- a/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py +++ b/cm_python_openapi_sdk/models/indicator_link_dto_block_rows_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_paged_model_dto.py b/cm_python_openapi_sdk/models/indicator_paged_model_dto.py index 6a10b5f..de57aa8 100644 --- a/cm_python_openapi_sdk/models/indicator_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/indicator_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/indicator_visualizations_dto.py b/cm_python_openapi_sdk/models/indicator_visualizations_dto.py index 43f6b26..1f5862c 100644 --- a/cm_python_openapi_sdk/models/indicator_visualizations_dto.py +++ b/cm_python_openapi_sdk/models/indicator_visualizations_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/invitation_dto.py b/cm_python_openapi_sdk/models/invitation_dto.py index ca3fcdc..0f74f39 100644 --- a/cm_python_openapi_sdk/models/invitation_dto.py +++ b/cm_python_openapi_sdk/models/invitation_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/invitation_paged_model_dto.py b/cm_python_openapi_sdk/models/invitation_paged_model_dto.py index 2c1a76f..991ff67 100644 --- a/cm_python_openapi_sdk/models/invitation_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/invitation_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/isochrone_dto.py b/cm_python_openapi_sdk/models/isochrone_dto.py index 33a5e65..9a3676d 100644 --- a/cm_python_openapi_sdk/models/isochrone_dto.py +++ b/cm_python_openapi_sdk/models/isochrone_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py b/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py index cbd9b34..f6462a2 100644 --- a/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/isochrone_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/job_detail_response.py b/cm_python_openapi_sdk/models/job_detail_response.py index 7f5bbf3..d885d8c 100644 --- a/cm_python_openapi_sdk/models/job_detail_response.py +++ b/cm_python_openapi_sdk/models/job_detail_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 0ff8fa9..ed1f368 100644 --- a/cm_python_openapi_sdk/models/job_history_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/job_history_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/layer_dto.py b/cm_python_openapi_sdk/models/layer_dto.py index cb7a32d..84b6fda 100644 --- a/cm_python_openapi_sdk/models/layer_dto.py +++ b/cm_python_openapi_sdk/models/layer_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py b/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py index f8bd777..ab902a0 100644 --- a/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py +++ b/cm_python_openapi_sdk/models/layer_dto_datasets_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py b/cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py index b8e85d6..415d827 100644 --- a/cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py +++ b/cm_python_openapi_sdk/models/layer_dto_datasets_inner_attribute_styles_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/linked_layer_dto.py b/cm_python_openapi_sdk/models/linked_layer_dto.py index fda9a13..36ca91b 100644 --- a/cm_python_openapi_sdk/models/linked_layer_dto.py +++ b/cm_python_openapi_sdk/models/linked_layer_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py b/cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py index 587403c..9219cea 100644 --- a/cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py +++ b/cm_python_openapi_sdk/models/mandatory_keys_for_pagable_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_content_dto.py b/cm_python_openapi_sdk/models/map_content_dto.py index b419f35..121da5e 100644 --- a/cm_python_openapi_sdk/models/map_content_dto.py +++ b/cm_python_openapi_sdk/models/map_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_content_dto_base_layer.py b/cm_python_openapi_sdk/models/map_content_dto_base_layer.py index f2ea209..17c6c06 100644 --- a/cm_python_openapi_sdk/models/map_content_dto_base_layer.py +++ b/cm_python_openapi_sdk/models/map_content_dto_base_layer.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_content_dto_options.py b/cm_python_openapi_sdk/models/map_content_dto_options.py index 0f9169d..0fd3e28 100644 --- a/cm_python_openapi_sdk/models/map_content_dto_options.py +++ b/cm_python_openapi_sdk/models/map_content_dto_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_context_menu_dto.py b/cm_python_openapi_sdk/models/map_context_menu_dto.py index 2ed5045..d876d9c 100644 --- a/cm_python_openapi_sdk/models/map_context_menu_dto.py +++ b/cm_python_openapi_sdk/models/map_context_menu_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py b/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py index c5a78a6..268dfd6 100644 --- a/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py +++ b/cm_python_openapi_sdk/models/map_context_menu_item_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_dto.py b/cm_python_openapi_sdk/models/map_dto.py index 94272aa..5e9151a 100644 --- a/cm_python_openapi_sdk/models/map_dto.py +++ b/cm_python_openapi_sdk/models/map_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_options_dto.py b/cm_python_openapi_sdk/models/map_options_dto.py index 64f9445..737f3f0 100644 --- a/cm_python_openapi_sdk/models/map_options_dto.py +++ b/cm_python_openapi_sdk/models/map_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py b/cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py index 8e9e570..01cc6f6 100644 --- a/cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py +++ b/cm_python_openapi_sdk/models/map_options_dto_custom_tile_layer.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/map_paged_model_dto.py b/cm_python_openapi_sdk/models/map_paged_model_dto.py index 4c9450c..84903cc 100644 --- a/cm_python_openapi_sdk/models/map_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/map_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py b/cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py index a0f2fa4..31bd0d0 100644 --- a/cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py +++ b/cm_python_openapi_sdk/models/mapycz_ortophoto_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/mapycz_panorama_dto.py b/cm_python_openapi_sdk/models/mapycz_panorama_dto.py index 47aa5c6..dcc0c55 100644 --- a/cm_python_openapi_sdk/models/mapycz_panorama_dto.py +++ b/cm_python_openapi_sdk/models/mapycz_panorama_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_content_dto.py b/cm_python_openapi_sdk/models/marker_content_dto.py index 38f4adf..9ea0741 100644 --- a/cm_python_openapi_sdk/models/marker_content_dto.py +++ b/cm_python_openapi_sdk/models/marker_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 8ccb681..9a0697b 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_dto.py b/cm_python_openapi_sdk/models/marker_dto.py index bc23126..78e6f70 100644 --- a/cm_python_openapi_sdk/models/marker_dto.py +++ b/cm_python_openapi_sdk/models/marker_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_link_dto.py b/cm_python_openapi_sdk/models/marker_link_dto.py index 808e104..dfa1b58 100644 --- a/cm_python_openapi_sdk/models/marker_link_dto.py +++ b/cm_python_openapi_sdk/models/marker_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_paged_model_dto.py b/cm_python_openapi_sdk/models/marker_paged_model_dto.py index 0e6cef0..8f173cb 100644 --- a/cm_python_openapi_sdk/models/marker_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/marker_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_selector_content_dto.py b/cm_python_openapi_sdk/models/marker_selector_content_dto.py index a4bf002..9196dea 100644 --- a/cm_python_openapi_sdk/models/marker_selector_content_dto.py +++ b/cm_python_openapi_sdk/models/marker_selector_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 9e79dee..0908eb2 100644 --- 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 @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/marker_selector_dto.py b/cm_python_openapi_sdk/models/marker_selector_dto.py index 51168f1..75c9066 100644 --- a/cm_python_openapi_sdk/models/marker_selector_dto.py +++ b/cm_python_openapi_sdk/models/marker_selector_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 451233b..ca0962b 100644 --- a/cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/marker_selector_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/max_value_dto.py b/cm_python_openapi_sdk/models/max_value_dto.py index 1632f6c..3b7a18c 100644 --- a/cm_python_openapi_sdk/models/max_value_dto.py +++ b/cm_python_openapi_sdk/models/max_value_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/measure_dto.py b/cm_python_openapi_sdk/models/measure_dto.py index 5007ff9..fe4edfd 100644 --- a/cm_python_openapi_sdk/models/measure_dto.py +++ b/cm_python_openapi_sdk/models/measure_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/membership_dto.py b/cm_python_openapi_sdk/models/membership_dto.py index 5b31185..207c5e2 100644 --- a/cm_python_openapi_sdk/models/membership_dto.py +++ b/cm_python_openapi_sdk/models/membership_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -19,6 +20,7 @@ from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator from typing import Any, ClassVar, Dict, List, Optional +from cm_python_openapi_sdk.models.account_dto import AccountDTO from typing import Optional, Set from typing_extensions import Self @@ -32,7 +34,7 @@ class MembershipDTO(BaseModel): 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 + account: Optional[AccountDTO] = 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"] @@ -89,6 +91,9 @@ def to_dict(self) -> Dict[str, Any]: exclude=excluded_fields, exclude_none=True, ) + # override the default output from pydantic by calling `to_dict()` of account + if self.account: + _dict['account'] = self.account.to_dict() return _dict @classmethod @@ -107,7 +112,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "role": obj.get("role"), "createdAt": obj.get("createdAt"), "modifiedAt": obj.get("modifiedAt"), - "account": obj.get("account"), + "account": AccountDTO.from_dict(obj["account"]) if obj.get("account") is not None else None, "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 index 0e621b3..b28ceab 100644 --- a/cm_python_openapi_sdk/models/membership_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/membership_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/metric_dto.py b/cm_python_openapi_sdk/models/metric_dto.py index 68a626d..c1e7dd4 100644 --- a/cm_python_openapi_sdk/models/metric_dto.py +++ b/cm_python_openapi_sdk/models/metric_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/metric_paged_model_dto.py b/cm_python_openapi_sdk/models/metric_paged_model_dto.py index c10abc2..e522af5 100644 --- a/cm_python_openapi_sdk/models/metric_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/metric_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/multi_select_filter_dto.py b/cm_python_openapi_sdk/models/multi_select_filter_dto.py index 3ffb8df..889a5bc 100644 --- a/cm_python_openapi_sdk/models/multi_select_filter_dto.py +++ b/cm_python_openapi_sdk/models/multi_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/new_account_dto.py b/cm_python_openapi_sdk/models/new_account_dto.py new file mode 100644 index 0000000..b4b919a --- /dev/null +++ b/cm_python_openapi_sdk/models/new_account_dto.py @@ -0,0 +1,133 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.account_job_info import AccountJobInfo +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +from cm_python_openapi_sdk.models.account_utm_parameters import AccountUtmParameters +from typing import Optional, Set +from typing_extensions import Self + +class NewAccountDTO(BaseModel): + """ + NewAccountDTO + """ # noqa: E501 + given_name: Annotated[str, Field(min_length=1, strict=True, max_length=50)] = Field(alias="givenName") + surname: Annotated[str, Field(min_length=1, strict=True, max_length=50)] + email: StrictStr + password: Annotated[str, Field(strict=True, max_length=100)] + consent_granted: Optional[StrictBool] = Field(default=None, alias="consentGranted") + phone_number: Optional[Annotated[str, Field(min_length=6, strict=True, max_length=20)]] = Field(default=None, alias="phoneNumber") + require_additional_attributes: Optional[StrictBool] = Field(default=None, alias="requireAdditionalAttributes") + preferences: Optional[AccountPreferences] = None + utm_parameters: Optional[AccountUtmParameters] = Field(default=None, alias="utmParameters") + job_info: Optional[AccountJobInfo] = Field(default=None, alias="jobInfo") + __properties: ClassVar[List[str]] = ["givenName", "surname", "email", "password", "consentGranted", "phoneNumber", "requireAdditionalAttributes", "preferences", "utmParameters", "jobInfo"] + + @field_validator('given_name') + def given_name_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\p{L} \'-]+$", value): + raise ValueError(r"must validate the regular expression /^[\p{L} '-]+$/") + return value + + @field_validator('surname') + def surname_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\p{L} \'-]+$", value): + raise ValueError(r"must validate the regular expression /^[\p{L} '-]+$/") + 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 NewAccountDTO 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 preferences + if self.preferences: + _dict['preferences'] = self.preferences.to_dict() + # override the default output from pydantic by calling `to_dict()` of utm_parameters + if self.utm_parameters: + _dict['utmParameters'] = self.utm_parameters.to_dict() + # override the default output from pydantic by calling `to_dict()` of job_info + if self.job_info: + _dict['jobInfo'] = self.job_info.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of NewAccountDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "givenName": obj.get("givenName"), + "surname": obj.get("surname"), + "email": obj.get("email"), + "password": obj.get("password"), + "consentGranted": obj.get("consentGranted"), + "phoneNumber": obj.get("phoneNumber"), + "requireAdditionalAttributes": obj.get("requireAdditionalAttributes"), + "preferences": AccountPreferences.from_dict(obj["preferences"]) if obj.get("preferences") is not None else None, + "utmParameters": AccountUtmParameters.from_dict(obj["utmParameters"]) if obj.get("utmParameters") is not None else None, + "jobInfo": AccountJobInfo.from_dict(obj["jobInfo"]) if obj.get("jobInfo") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/order_by.py b/cm_python_openapi_sdk/models/order_by.py new file mode 100644 index 0000000..eb99d3a --- /dev/null +++ b/cm_python_openapi_sdk/models/order_by.py @@ -0,0 +1,130 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 OrderBy(BaseModel): + """ + OrderBy + """ # noqa: E501 + var_property: Optional[Any] = Field(default=None, alias="property") + property_id: Optional[Annotated[str, Field(min_length=1, strict=True, max_length=60)]] = Field(default=None, alias="propertyId") + direction: Optional[StrictStr] = 'asc' + nulls: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["property", "propertyId", "direction", "nulls"] + + @field_validator('property_id') + def property_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('direction') + def direction_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 + + @field_validator('nulls') + def nulls_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['last', 'first']): + raise ValueError("must be one of enum values ('last', 'first')") + 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 OrderBy 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 var_property (nullable) is None + # and model_fields_set contains the field + if self.var_property is None and "var_property" in self.model_fields_set: + _dict['property'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of OrderBy 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"), + "propertyId": obj.get("propertyId"), + "direction": obj.get("direction") if obj.get("direction") is not None else 'asc', + "nulls": obj.get("nulls") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/order_by_dto.py b/cm_python_openapi_sdk/models/order_by_dto.py index a52a459..9b57247 100644 --- a/cm_python_openapi_sdk/models/order_by_dto.py +++ b/cm_python_openapi_sdk/models/order_by_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/organization_paged_model_dto.py b/cm_python_openapi_sdk/models/organization_paged_model_dto.py index 12e6a32..3276acf 100644 --- a/cm_python_openapi_sdk/models/organization_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/organization_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/organization_response_dto.py b/cm_python_openapi_sdk/models/organization_response_dto.py index 123872c..b938053 100644 --- a/cm_python_openapi_sdk/models/organization_response_dto.py +++ b/cm_python_openapi_sdk/models/organization_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/output_dto.py b/cm_python_openapi_sdk/models/output_dto.py index bf6dd60..21b9f16 100644 --- a/cm_python_openapi_sdk/models/output_dto.py +++ b/cm_python_openapi_sdk/models/output_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/part_e_tag.py b/cm_python_openapi_sdk/models/part_e_tag.py new file mode 100644 index 0000000..ed9d169 --- /dev/null +++ b/cm_python_openapi_sdk/models/part_e_tag.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, 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 PartETag(BaseModel): + """ + PartETag + """ # noqa: E501 + part_number: StrictInt = Field(alias="partNumber") + e_tag: Annotated[str, Field(strict=True)] = Field(alias="eTag") + __properties: ClassVar[List[str]] = ["partNumber", "eTag"] + + @field_validator('e_tag') + def e_tag_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^\"[\w]{32}\"$|^[\w]{32}$", value): + raise ValueError(r"must validate the regular expression /^\"[\w]{32}\"$|^[\w]{32}$/") + 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 PartETag 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 PartETag from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "partNumber": obj.get("partNumber"), + "eTag": obj.get("eTag") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/password_change_dto.py b/cm_python_openapi_sdk/models/password_change_dto.py new file mode 100644 index 0000000..4a65233 --- /dev/null +++ b/cm_python_openapi_sdk/models/password_change_dto.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 PasswordChangeDTO(BaseModel): + """ + PasswordChangeDTO + """ # noqa: E501 + old_password: Annotated[str, Field(strict=True, max_length=100)] = Field(alias="oldPassword") + new_password: Annotated[str, Field(strict=True, max_length=100)] = Field(alias="newPassword") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["oldPassword", "newPassword"] + + 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 PasswordChangeDTO 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of PasswordChangeDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "oldPassword": obj.get("oldPassword"), + "newPassword": obj.get("newPassword") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/cm_python_openapi_sdk/models/function_distance_options_central_point.py b/cm_python_openapi_sdk/models/position_dto.py similarity index 79% rename from cm_python_openapi_sdk/models/function_distance_options_central_point.py rename to cm_python_openapi_sdk/models/position_dto.py index 0fb28fd..d1836e7 100644 --- a/cm_python_openapi_sdk/models/function_distance_options_central_point.py +++ b/cm_python_openapi_sdk/models/position_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -22,9 +23,9 @@ from typing import Optional, Set from typing_extensions import Self -class FunctionDistanceOptionsCentralPoint(BaseModel): +class PositionDTO(BaseModel): """ - FunctionDistanceOptionsCentralPoint + PositionDTO """ # noqa: E501 lat: Union[StrictFloat, StrictInt] lng: Union[StrictFloat, StrictInt] @@ -48,7 +49,7 @@ def to_json(self) -> str: @classmethod def from_json(cls, json_str: str) -> Optional[Self]: - """Create an instance of FunctionDistanceOptionsCentralPoint from a JSON string""" + """Create an instance of PositionDTO from a JSON string""" return cls.from_dict(json.loads(json_str)) def to_dict(self) -> Dict[str, Any]: @@ -73,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]: @classmethod def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: - """Create an instance of FunctionDistanceOptionsCentralPoint from a dict""" + """Create an instance of PositionDTO from a dict""" if obj is None: return None diff --git a/cm_python_openapi_sdk/models/project_paged_model_dto.py b/cm_python_openapi_sdk/models/project_paged_model_dto.py index e94b845..65ff855 100644 --- a/cm_python_openapi_sdk/models/project_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/project_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/project_response_dto.py b/cm_python_openapi_sdk/models/project_response_dto.py index c1b0647..1ff72b9 100644 --- a/cm_python_openapi_sdk/models/project_response_dto.py +++ b/cm_python_openapi_sdk/models/project_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/project_settings_content_dto.py b/cm_python_openapi_sdk/models/project_settings_content_dto.py index c97c986..60ac0d3 100644 --- a/cm_python_openapi_sdk/models/project_settings_content_dto.py +++ b/cm_python_openapi_sdk/models/project_settings_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/project_settings_dto.py b/cm_python_openapi_sdk/models/project_settings_dto.py index c761937..c7e752c 100644 --- a/cm_python_openapi_sdk/models/project_settings_dto.py +++ b/cm_python_openapi_sdk/models/project_settings_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. 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 index 3bdefb7..efa99ff 100644 --- a/cm_python_openapi_sdk/models/project_settings_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/project_settings_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/project_template_dto.py b/cm_python_openapi_sdk/models/project_template_dto.py index 0bc76ba..de9ce61 100644 --- a/cm_python_openapi_sdk/models/project_template_dto.py +++ b/cm_python_openapi_sdk/models/project_template_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/property_filter_compare_dto.py b/cm_python_openapi_sdk/models/property_filter_compare_dto.py index 887318b..69d4892 100644 --- a/cm_python_openapi_sdk/models/property_filter_compare_dto.py +++ b/cm_python_openapi_sdk/models/property_filter_compare_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/property_filter_in_dto.py b/cm_python_openapi_sdk/models/property_filter_in_dto.py index d86403b..bec3b00 100644 --- a/cm_python_openapi_sdk/models/property_filter_in_dto.py +++ b/cm_python_openapi_sdk/models/property_filter_in_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/property_values_response.py b/cm_python_openapi_sdk/models/property_values_response.py new file mode 100644 index 0000000..2f7b681 --- /dev/null +++ b/cm_python_openapi_sdk/models/property_values_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse +from cm_python_openapi_sdk.models.property_values_response_content_inner import PropertyValuesResponseContentInner +from typing import Optional, Set +from typing_extensions import Self + +class PropertyValuesResponse(BaseModel): + """ + PropertyValuesResponse + """ # noqa: E501 + content: List[PropertyValuesResponseContentInner] + links: List[Dict[str, Any]] = Field(description="define keys links and page that are mandatory for all pageble responses") + page: MandatoryKeysForPagableResponse + __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 PropertyValuesResponse 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 PropertyValuesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [PropertyValuesResponseContentInner.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/property_values_response_content_inner.py b/cm_python_openapi_sdk/models/property_values_response_content_inner.py new file mode 100644 index 0000000..ba76b52 --- /dev/null +++ b/cm_python_openapi_sdk/models/property_values_response_content_inner.py @@ -0,0 +1,156 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, StrictBool, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +PROPERTYVALUESRESPONSECONTENTINNER_ANY_OF_SCHEMAS = ["bool", "float", "str"] + +class PropertyValuesResponseContentInner(BaseModel): + """ + PropertyValuesResponseContentInner + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + # data type: bool + anyof_schema_3_validator: Optional[StrictBool] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[bool, float, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "bool", "float", "str" } + + 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 = PropertyValuesResponseContentInner.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: bool + try: + instance.anyof_schema_3_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in PropertyValuesResponseContentInner with anyOf schemas: bool, float, str. 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 = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into bool + try: + # validation + instance.anyof_schema_3_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_3_validator + 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 PropertyValuesResponseContentInner with anyOf schemas: bool, float, str. 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], bool, float, str]]: + """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/queries_response.py b/cm_python_openapi_sdk/models/queries_response.py new file mode 100644 index 0000000..ed73315 --- /dev/null +++ b/cm_python_openapi_sdk/models/queries_response.py @@ -0,0 +1,92 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.execution_detail import ExecutionDetail +from typing import Optional, Set +from typing_extensions import Self + +class QueriesResponse(BaseModel): + """ + QueriesResponse + """ # noqa: E501 + execution_detail: ExecutionDetail = Field(alias="executionDetail") + __properties: ClassVar[List[str]] = ["executionDetail"] + + 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 QueriesResponse 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 execution_detail + if self.execution_detail: + _dict['executionDetail'] = self.execution_detail.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueriesResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "executionDetail": ExecutionDetail.from_dict(obj["executionDetail"]) if obj.get("executionDetail") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/query_hit_dto.py b/cm_python_openapi_sdk/models/query_hit_dto.py new file mode 100644 index 0000000..fd46754 --- /dev/null +++ b/cm_python_openapi_sdk/models/query_hit_dto.py @@ -0,0 +1,121 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.bounding_box_dto import BoundingBoxDTO +from cm_python_openapi_sdk.models.highlight_dto import HighlightDTO +from cm_python_openapi_sdk.models.position_dto import PositionDTO +from typing import Optional, Set +from typing_extensions import Self + +class QueryHitDTO(BaseModel): + """ + QueryHitDTO + """ # noqa: E501 + title: Annotated[str, Field(min_length=1, strict=True)] + subtitle: Annotated[str, Field(min_length=1, strict=True)] + highlight: Optional[HighlightDTO] = None + position: PositionDTO + bounding_box: Optional[BoundingBoxDTO] = Field(default=None, alias="boundingBox") + place_type: Optional[StrictStr] = Field(default=None, alias="placeType") + __properties: ClassVar[List[str]] = ["title", "subtitle", "highlight", "position", "boundingBox", "placeType"] + + @field_validator('place_type') + def place_type_validate_enum(cls, value): + """Validates the enum""" + if value is None: + return value + + if value not in set(['region', 'district', 'city', 'locality', 'street', 'address', 'postcode']): + raise ValueError("must be one of enum values ('region', 'district', 'city', 'locality', 'street', 'address', 'postcode')") + 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 QueryHitDTO 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 highlight + if self.highlight: + _dict['highlight'] = self.highlight.to_dict() + # override the default output from pydantic by calling `to_dict()` of position + if self.position: + _dict['position'] = self.position.to_dict() + # override the default output from pydantic by calling `to_dict()` of bounding_box + if self.bounding_box: + _dict['boundingBox'] = self.bounding_box.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of QueryHitDTO 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"), + "subtitle": obj.get("subtitle"), + "highlight": HighlightDTO.from_dict(obj["highlight"]) if obj.get("highlight") is not None else None, + "position": PositionDTO.from_dict(obj["position"]) if obj.get("position") is not None else None, + "boundingBox": BoundingBoxDTO.from_dict(obj["boundingBox"]) if obj.get("boundingBox") is not None else None, + "placeType": obj.get("placeType") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/query_response.py b/cm_python_openapi_sdk/models/query_response.py new file mode 100644 index 0000000..d0613de --- /dev/null +++ b/cm_python_openapi_sdk/models/query_response.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.execution_detail import ExecutionDetail +from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse +from cm_python_openapi_sdk.models.query_response_item_wrapper import QueryResponseItemWrapper +from typing import Optional, Set +from typing_extensions import Self + +class QueryResponse(BaseModel): + """ + QueryResponse + """ # noqa: E501 + content: List[QueryResponseItemWrapper] + execution_detail: Optional[ExecutionDetail] = Field(default=None, alias="executionDetail") + links: List[Dict[str, Any]] = Field(description="define keys links and page that are mandatory for all pageble responses") + page: MandatoryKeysForPagableResponse + __properties: ClassVar[List[str]] = ["content", "executionDetail", "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 QueryResponse 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 execution_detail + if self.execution_detail: + _dict['executionDetail'] = self.execution_detail.to_dict() + # 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 QueryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [QueryResponseItemWrapper.from_dict(_item) for _item in obj["content"]] if obj.get("content") is not None else None, + "executionDetail": ExecutionDetail.from_dict(obj["executionDetail"]) if obj.get("executionDetail") 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/query_response_item_wrapper.py b/cm_python_openapi_sdk/models/query_response_item_wrapper.py new file mode 100644 index 0000000..0f39a4f --- /dev/null +++ b/cm_python_openapi_sdk/models/query_response_item_wrapper.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + +class QueryResponseItemWrapper(BaseModel): + """ + QueryResponseItemWrapper + """ # noqa: E501 + content: Optional[Dict[str, Any]] = None + __properties: ClassVar[List[str]] = ["content"] + + 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 QueryResponseItemWrapper 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 QueryResponseItemWrapper from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": obj.get("content") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/ranking_dto.py b/cm_python_openapi_sdk/models/ranking_dto.py index 832f56a..1036779 100644 --- a/cm_python_openapi_sdk/models/ranking_dto.py +++ b/cm_python_openapi_sdk/models/ranking_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/relations_dto.py b/cm_python_openapi_sdk/models/relations_dto.py index d27e21e..a3115c7 100644 --- a/cm_python_openapi_sdk/models/relations_dto.py +++ b/cm_python_openapi_sdk/models/relations_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/reset_password_dto.py b/cm_python_openapi_sdk/models/reset_password_dto.py new file mode 100644 index 0000000..ec2bc9a --- /dev/null +++ b/cm_python_openapi_sdk/models/reset_password_dto.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class ResetPasswordDTO(BaseModel): + """ + ResetPasswordDTO + """ # noqa: E501 + new_password: Annotated[str, Field(strict=True, max_length=100)] = Field(alias="newPassword") + consent_granted: Optional[StrictBool] = Field(default=None, alias="consentGranted") + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["newPassword", "consentGranted"] + + 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 ResetPasswordDTO 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of ResetPasswordDTO from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "newPassword": obj.get("newPassword"), + "consentGranted": obj.get("consentGranted") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/cm_python_openapi_sdk/models/restricted_account_dto.py b/cm_python_openapi_sdk/models/restricted_account_dto.py new file mode 100644 index 0000000..1521254 --- /dev/null +++ b/cm_python_openapi_sdk/models/restricted_account_dto.py @@ -0,0 +1,108 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.account_preferences import AccountPreferences +from typing import Optional, Set +from typing_extensions import Self + +class RestrictedAccountDTO(BaseModel): + """ + RestrictedAccountDTO + """ # noqa: E501 + id: StrictStr + full_name: Annotated[str, Field(min_length=1, strict=True)] = Field(alias="fullName") + email: StrictStr + status: StrictStr + preferences: Optional[AccountPreferences] = None + __properties: ClassVar[List[str]] = ["id", "fullName", "email", "status", "preferences"] + + @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 + + 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 RestrictedAccountDTO 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 preferences + if self.preferences: + _dict['preferences'] = self.preferences.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of RestrictedAccountDTO 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"), + "fullName": obj.get("fullName"), + "email": obj.get("email"), + "status": obj.get("status"), + "preferences": AccountPreferences.from_dict(obj["preferences"]) if obj.get("preferences") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/result_set_filter.py b/cm_python_openapi_sdk/models/result_set_filter.py new file mode 100644 index 0000000..7447085 --- /dev/null +++ b/cm_python_openapi_sdk/models/result_set_filter.py @@ -0,0 +1,152 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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.result_set_filter_comp import ResultSetFilterComp +from cm_python_openapi_sdk.models.result_set_filter_in import ResultSetFilterIn +from cm_python_openapi_sdk.models.result_set_filter_unary import ResultSetFilterUnary +from pydantic import StrictStr, Field +from typing import Union, List, Set, Optional, Dict +from typing_extensions import Literal, Self + +RESULTSETFILTER_ONE_OF_SCHEMAS = ["ResultSetFilterComp", "ResultSetFilterIn", "ResultSetFilterUnary"] + +class ResultSetFilter(BaseModel): + """ + ResultSetFilter + """ + # data type: ResultSetFilterComp + oneof_schema_1_validator: Optional[ResultSetFilterComp] = None + # data type: ResultSetFilterIn + oneof_schema_2_validator: Optional[ResultSetFilterIn] = None + # data type: ResultSetFilterUnary + oneof_schema_3_validator: Optional[ResultSetFilterUnary] = None + actual_instance: Optional[Union[ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary]] = None + one_of_schemas: Set[str] = { "ResultSetFilterComp", "ResultSetFilterIn", "ResultSetFilterUnary" } + + 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 = ResultSetFilter.model_construct() + error_messages = [] + match = 0 + # validate data type: ResultSetFilterComp + if not isinstance(v, ResultSetFilterComp): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResultSetFilterComp`") + else: + match += 1 + # validate data type: ResultSetFilterIn + if not isinstance(v, ResultSetFilterIn): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResultSetFilterIn`") + else: + match += 1 + # validate data type: ResultSetFilterUnary + if not isinstance(v, ResultSetFilterUnary): + error_messages.append(f"Error! Input type `{type(v)}` is not `ResultSetFilterUnary`") + else: + match += 1 + if match > 1: + # more than 1 match + raise ValueError("Multiple matches found when setting `actual_instance` in ResultSetFilter with oneOf schemas: ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when setting `actual_instance` in ResultSetFilter with oneOf schemas: ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary. 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 ResultSetFilterComp + try: + instance.actual_instance = ResultSetFilterComp.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ResultSetFilterIn + try: + instance.actual_instance = ResultSetFilterIn.from_json(json_str) + match += 1 + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into ResultSetFilterUnary + try: + instance.actual_instance = ResultSetFilterUnary.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 ResultSetFilter with oneOf schemas: ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary. Details: " + ", ".join(error_messages)) + elif match == 0: + # no match + raise ValueError("No match found when deserializing the JSON string into ResultSetFilter with oneOf schemas: ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary. 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], ResultSetFilterComp, ResultSetFilterIn, ResultSetFilterUnary]]: + """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/result_set_filter_comp.py b/cm_python_openapi_sdk/models/result_set_filter_comp.py new file mode 100644 index 0000000..c2df7ef --- /dev/null +++ b/cm_python_openapi_sdk/models/result_set_filter_comp.py @@ -0,0 +1,112 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 ResultSetFilterComp(BaseModel): + """ + ResultSetFilterComp + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + value: Optional[Any] = None + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "value", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 ResultSetFilterComp 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 ResultSetFilterComp from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/result_set_filter_in.py b/cm_python_openapi_sdk/models/result_set_filter_in.py new file mode 100644 index 0000000..69fa98a --- /dev/null +++ b/cm_python_openapi_sdk/models/result_set_filter_in.py @@ -0,0 +1,107 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 ResultSetFilterIn(BaseModel): + """ + ResultSetFilterIn + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + value: List[Any] + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "value", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + 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 ResultSetFilterIn 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 ResultSetFilterIn from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "value": obj.get("value"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/result_set_filter_unary.py b/cm_python_openapi_sdk/models/result_set_filter_unary.py new file mode 100644 index 0000000..a8d128a --- /dev/null +++ b/cm_python_openapi_sdk/models/result_set_filter_unary.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 ResultSetFilterUnary(BaseModel): + """ + ResultSetFilterUnary + """ # noqa: E501 + property_id: Annotated[str, Field(min_length=1, strict=True, max_length=60)] = Field(alias="propertyId") + operator: StrictStr + __properties: ClassVar[List[str]] = ["propertyId", "operator"] + + @field_validator('property_id') + def property_id_validate_regular_expression(cls, value): + """Validates the regular expression""" + if not re.match(r"^[\w_-]+$", value): + raise ValueError(r"must validate the regular expression /^[\w_-]+$/") + return value + + @field_validator('operator') + def operator_validate_enum(cls, value): + """Validates the enum""" + if value not in set(['isNull', 'isNotNull']): + raise ValueError("must be one of enum values ('isNull', 'isNotNull')") + 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 ResultSetFilterUnary 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 ResultSetFilterUnary from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "propertyId": obj.get("propertyId"), + "operator": obj.get("operator") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/scale_options_dto.py b/cm_python_openapi_sdk/models/scale_options_dto.py index 31b3f63..c8995f9 100644 --- a/cm_python_openapi_sdk/models/scale_options_dto.py +++ b/cm_python_openapi_sdk/models/scale_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/search_query_hit.py b/cm_python_openapi_sdk/models/search_query_hit.py new file mode 100644 index 0000000..ecd3c56 --- /dev/null +++ b/cm_python_openapi_sdk/models/search_query_hit.py @@ -0,0 +1,105 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 cm_python_openapi_sdk.models.hit_highlight import HitHighlight +from cm_python_openapi_sdk.models.search_query_hit_id import SearchQueryHitId +from typing import Optional, Set +from typing_extensions import Self + +class SearchQueryHit(BaseModel): + """ + SearchQueryHit + """ # noqa: E501 + id: SearchQueryHitId + dataset: Annotated[str, Field(min_length=1, strict=True)] + title: StrictStr + subtitle: StrictStr + highlight: Optional[HitHighlight] = None + __properties: ClassVar[List[str]] = ["id", "dataset", "title", "subtitle", "highlight"] + + 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 SearchQueryHit 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 id + if self.id: + _dict['id'] = self.id.to_dict() + # override the default output from pydantic by calling `to_dict()` of highlight + if self.highlight: + _dict['highlight'] = self.highlight.to_dict() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SearchQueryHit from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "id": SearchQueryHitId.from_dict(obj["id"]) if obj.get("id") is not None else None, + "dataset": obj.get("dataset"), + "title": obj.get("title"), + "subtitle": obj.get("subtitle"), + "highlight": HitHighlight.from_dict(obj["highlight"]) if obj.get("highlight") is not None else None + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/search_query_hit_id.py b/cm_python_openapi_sdk/models/search_query_hit_id.py new file mode 100644 index 0000000..2dac3cc --- /dev/null +++ b/cm_python_openapi_sdk/models/search_query_hit_id.py @@ -0,0 +1,139 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, StrictFloat, StrictInt, StrictStr, ValidationError, field_validator +from typing import Optional, Union +from typing import Union, Any, List, Set, TYPE_CHECKING, Optional, Dict +from typing_extensions import Literal, Self +from pydantic import Field + +SEARCHQUERYHITID_ANY_OF_SCHEMAS = ["float", "str"] + +class SearchQueryHitId(BaseModel): + """ + SearchQueryHitId + """ + + # data type: str + anyof_schema_1_validator: Optional[StrictStr] = None + # data type: float + anyof_schema_2_validator: Optional[Union[StrictFloat, StrictInt]] = None + if TYPE_CHECKING: + actual_instance: Optional[Union[float, str]] = None + else: + actual_instance: Any = None + any_of_schemas: Set[str] = { "float", "str" } + + 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 = SearchQueryHitId.model_construct() + error_messages = [] + # validate data type: str + try: + instance.anyof_schema_1_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # validate data type: float + try: + instance.anyof_schema_2_validator = v + return v + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + if error_messages: + # no match + raise ValueError("No match found when setting the actual_instance in SearchQueryHitId with anyOf schemas: float, str. 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 = [] + # deserialize data into str + try: + # validation + instance.anyof_schema_1_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_1_validator + return instance + except (ValidationError, ValueError) as e: + error_messages.append(str(e)) + # deserialize data into float + try: + # validation + instance.anyof_schema_2_validator = json.loads(json_str) + # assign value to actual_instance + instance.actual_instance = instance.anyof_schema_2_validator + 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 SearchQueryHitId with anyOf schemas: float, str. 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], float, str]]: + """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/search_query_response.py b/cm_python_openapi_sdk/models/search_query_response.py new file mode 100644 index 0000000..89d6fda --- /dev/null +++ b/cm_python_openapi_sdk/models/search_query_response.py @@ -0,0 +1,104 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 +from typing import Any, ClassVar, Dict, List +from cm_python_openapi_sdk.models.mandatory_keys_for_pagable_response import MandatoryKeysForPagableResponse +from cm_python_openapi_sdk.models.search_query_hit import SearchQueryHit +from typing import Optional, Set +from typing_extensions import Self + +class SearchQueryResponse(BaseModel): + """ + SearchQueryResponse + """ # noqa: E501 + content: List[SearchQueryHit] + links: List[Dict[str, Any]] + page: MandatoryKeysForPagableResponse + __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 SearchQueryResponse 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 SearchQueryResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "content": [SearchQueryHit.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/send_reset_password_dto.py b/cm_python_openapi_sdk/models/send_reset_password_dto.py new file mode 100644 index 0000000..6ae267c --- /dev/null +++ b/cm_python_openapi_sdk/models/send_reset_password_dto.py @@ -0,0 +1,101 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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 SendResetPasswordDTO(BaseModel): + """ + SendResetPasswordDTO + """ # noqa: E501 + email: StrictStr + additional_properties: Dict[str, Any] = {} + __properties: ClassVar[List[str]] = ["email"] + + 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 SendResetPasswordDTO 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. + * Fields in `self.additional_properties` are added to the output dict. + """ + excluded_fields: Set[str] = set([ + "additional_properties", + ]) + + _dict = self.model_dump( + by_alias=True, + exclude=excluded_fields, + exclude_none=True, + ) + # puts key-value pairs in additional_properties in the top level + if self.additional_properties is not None: + for _key, _value in self.additional_properties.items(): + _dict[_key] = _value + + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of SendResetPasswordDTO 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") + }) + # store additional fields in additional_properties + for _key in obj.keys(): + if _key not in cls.__properties: + _obj.additional_properties[_key] = obj.get(_key) + + return _obj + + diff --git a/cm_python_openapi_sdk/models/single_select_filter_dto.py b/cm_python_openapi_sdk/models/single_select_filter_dto.py index 2eb7751..72f79d9 100644 --- a/cm_python_openapi_sdk/models/single_select_filter_dto.py +++ b/cm_python_openapi_sdk/models/single_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/static_scale_option_dto.py b/cm_python_openapi_sdk/models/static_scale_option_dto.py index fcab5eb..ebe4c7a 100644 --- a/cm_python_openapi_sdk/models/static_scale_option_dto.py +++ b/cm_python_openapi_sdk/models/static_scale_option_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py b/cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py index 35c8338..69f5431 100644 --- a/cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py +++ b/cm_python_openapi_sdk/models/static_scale_option_dto_breaks.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/style_dto.py b/cm_python_openapi_sdk/models/style_dto.py index 761a639..1be9478 100644 --- a/cm_python_openapi_sdk/models/style_dto.py +++ b/cm_python_openapi_sdk/models/style_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/submit_job_execution_request.py b/cm_python_openapi_sdk/models/submit_job_execution_request.py index 348ce65..a58bf38 100644 --- a/cm_python_openapi_sdk/models/submit_job_execution_request.py +++ b/cm_python_openapi_sdk/models/submit_job_execution_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -57,9 +58,6 @@ class SubmitJobExecutionRequest(BaseModel): ) - discriminator_value_class_map: Dict[str, str] = { - } - def __init__(self, *args, **kwargs) -> None: if args: if len(args) > 1: diff --git a/cm_python_openapi_sdk/models/template_dataset_dto.py b/cm_python_openapi_sdk/models/template_dataset_dto.py index ec04de5..a6dfb07 100644 --- a/cm_python_openapi_sdk/models/template_dataset_dto.py +++ b/cm_python_openapi_sdk/models/template_dataset_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/time_series_dto.py b/cm_python_openapi_sdk/models/time_series_dto.py index d882d7f..2ca601c 100644 --- a/cm_python_openapi_sdk/models/time_series_dto.py +++ b/cm_python_openapi_sdk/models/time_series_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/token_request_dto.py b/cm_python_openapi_sdk/models/token_request_dto.py index acb12db..6b42227 100644 --- a/cm_python_openapi_sdk/models/token_request_dto.py +++ b/cm_python_openapi_sdk/models/token_request_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/token_response_dto.py b/cm_python_openapi_sdk/models/token_response_dto.py index 85e1f63..1cb189b 100644 --- a/cm_python_openapi_sdk/models/token_response_dto.py +++ b/cm_python_openapi_sdk/models/token_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/truncate_job_request.py b/cm_python_openapi_sdk/models/truncate_job_request.py index eb1145b..ff7dc04 100644 --- a/cm_python_openapi_sdk/models/truncate_job_request.py +++ b/cm_python_openapi_sdk/models/truncate_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/update_invitation.py b/cm_python_openapi_sdk/models/update_invitation.py index 6f5eedb..b73d870 100644 --- a/cm_python_openapi_sdk/models/update_invitation.py +++ b/cm_python_openapi_sdk/models/update_invitation.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/update_membership.py b/cm_python_openapi_sdk/models/update_membership.py index e6e3c01..e50b9c3 100644 --- a/cm_python_openapi_sdk/models/update_membership.py +++ b/cm_python_openapi_sdk/models/update_membership.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/update_organization_dto.py b/cm_python_openapi_sdk/models/update_organization_dto.py index abc5779..b8ff8b7 100644 --- a/cm_python_openapi_sdk/models/update_organization_dto.py +++ b/cm_python_openapi_sdk/models/update_organization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/update_project_dto.py b/cm_python_openapi_sdk/models/update_project_dto.py index 0e04f57..1f047b6 100644 --- a/cm_python_openapi_sdk/models/update_project_dto.py +++ b/cm_python_openapi_sdk/models/update_project_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/validate_job_request.py b/cm_python_openapi_sdk/models/validate_job_request.py index 3734862..eaa987c 100644 --- a/cm_python_openapi_sdk/models/validate_job_request.py +++ b/cm_python_openapi_sdk/models/validate_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/validate_request.py b/cm_python_openapi_sdk/models/validate_request.py index 71b774b..843f25a 100644 --- a/cm_python_openapi_sdk/models/validate_request.py +++ b/cm_python_openapi_sdk/models/validate_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/value_option_dto.py b/cm_python_openapi_sdk/models/value_option_dto.py index 4bbe9ce..217bfe2 100644 --- a/cm_python_openapi_sdk/models/value_option_dto.py +++ b/cm_python_openapi_sdk/models/value_option_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/variable_dto.py b/cm_python_openapi_sdk/models/variable_dto.py index 27137c1..7ee5ceb 100644 --- a/cm_python_openapi_sdk/models/variable_dto.py +++ b/cm_python_openapi_sdk/models/variable_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/variable_type.py b/cm_python_openapi_sdk/models/variable_type.py index 2450d16..20760b9 100644 --- a/cm_python_openapi_sdk/models/variable_type.py +++ b/cm_python_openapi_sdk/models/variable_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/variable_value.py b/cm_python_openapi_sdk/models/variable_value.py new file mode 100644 index 0000000..8cca47a --- /dev/null +++ b/cm_python_openapi_sdk/models/variable_value.py @@ -0,0 +1,98 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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, field_validator +from typing import Any, ClassVar, Dict, List, Union +from typing_extensions import Annotated +from typing import Optional, Set +from typing_extensions import Self + +class VariableValue(BaseModel): + """ + VariableValue + """ # noqa: E501 + variable: Annotated[str, Field(strict=True)] + value: Union[StrictFloat, StrictInt] + __properties: ClassVar[List[str]] = ["variable", "value"] + + @field_validator('variable') + def variable_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 VariableValue 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 VariableValue from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({ + "variable": obj.get("variable"), + "value": obj.get("value") + }) + return _obj + + diff --git a/cm_python_openapi_sdk/models/variables_dto.py b/cm_python_openapi_sdk/models/variables_dto.py index c6cc992..2bb7cfd 100644 --- a/cm_python_openapi_sdk/models/variables_dto.py +++ b/cm_python_openapi_sdk/models/variables_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/view_content_dto.py b/cm_python_openapi_sdk/models/view_content_dto.py index 7d2802a..a47b85f 100644 --- a/cm_python_openapi_sdk/models/view_content_dto.py +++ b/cm_python_openapi_sdk/models/view_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/view_dto.py b/cm_python_openapi_sdk/models/view_dto.py index 5bf76a7..965b928 100644 --- a/cm_python_openapi_sdk/models/view_dto.py +++ b/cm_python_openapi_sdk/models/view_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/view_paged_model_dto.py b/cm_python_openapi_sdk/models/view_paged_model_dto.py index cac95a7..4a8d82c 100644 --- a/cm_python_openapi_sdk/models/view_paged_model_dto.py +++ b/cm_python_openapi_sdk/models/view_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/models/zoom_dto.py b/cm_python_openapi_sdk/models/zoom_dto.py index 2702246..7d8b22e 100644 --- a/cm_python_openapi_sdk/models/zoom_dto.py +++ b/cm_python_openapi_sdk/models/zoom_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/cm_python_openapi_sdk/rest.py b/cm_python_openapi_sdk/rest.py index 913f69d..1e4853a 100644 --- a/cm_python_openapi_sdk/rest.py +++ b/cm_python_openapi_sdk/rest.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -76,6 +77,7 @@ def __init__(self, configuration) -> None: "ca_certs": configuration.ssl_ca_cert, "cert_file": configuration.cert_file, "key_file": configuration.key_file, + "ca_cert_data": configuration.ca_cert_data, } if configuration.assert_hostname is not None: pool_args['assert_hostname'] = ( diff --git a/docs/AccountDTO.md b/docs/AccountDTO.md new file mode 100644 index 0000000..f87cfe9 --- /dev/null +++ b/docs/AccountDTO.md @@ -0,0 +1,40 @@ +# AccountDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**full_name** | **str** | | +**email** | **str** | | +**consent_granted** | **bool** | | [optional] +**status** | **str** | | [optional] +**anonymous** | **bool** | | [optional] +**phone_number** | **str** | | [optional] +**require_additional_attributes** | **bool** | | [optional] +**preferences** | [**AccountPreferences**](AccountPreferences.md) | | [optional] +**onboarding** | [**AccountOnboardingParameters**](AccountOnboardingParameters.md) | | [optional] +**job_info** | [**AccountJobInfo**](AccountJobInfo.md) | | [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.account_dto import AccountDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of AccountDTO from a JSON string +account_dto_instance = AccountDTO.from_json(json) +# print the JSON string representation of the object +print(AccountDTO.to_json()) + +# convert the object into a dict +account_dto_dict = account_dto_instance.to_dict() +# create an instance of AccountDTO from a dict +account_dto_from_dict = AccountDTO.from_dict(account_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/AccountJobInfo.md b/docs/AccountJobInfo.md new file mode 100644 index 0000000..6af0922 --- /dev/null +++ b/docs/AccountJobInfo.md @@ -0,0 +1,31 @@ +# AccountJobInfo + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**company_name** | **str** | | [optional] +**job_position** | **str** | | [optional] +**industry** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.account_job_info import AccountJobInfo + +# TODO update the JSON string below +json = "{}" +# create an instance of AccountJobInfo from a JSON string +account_job_info_instance = AccountJobInfo.from_json(json) +# print the JSON string representation of the object +print(AccountJobInfo.to_json()) + +# convert the object into a dict +account_job_info_dict = account_job_info_instance.to_dict() +# create an instance of AccountJobInfo from a dict +account_job_info_from_dict = AccountJobInfo.from_dict(account_job_info_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/AccountOnboardingParameters.md b/docs/AccountOnboardingParameters.md new file mode 100644 index 0000000..782c868 --- /dev/null +++ b/docs/AccountOnboardingParameters.md @@ -0,0 +1,30 @@ +# AccountOnboardingParameters + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**intro_shown** | **List[str]** | | [optional] +**tips_shown** | **List[str]** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters + +# TODO update the JSON string below +json = "{}" +# create an instance of AccountOnboardingParameters from a JSON string +account_onboarding_parameters_instance = AccountOnboardingParameters.from_json(json) +# print the JSON string representation of the object +print(AccountOnboardingParameters.to_json()) + +# convert the object into a dict +account_onboarding_parameters_dict = account_onboarding_parameters_instance.to_dict() +# create an instance of AccountOnboardingParameters from a dict +account_onboarding_parameters_from_dict = AccountOnboardingParameters.from_dict(account_onboarding_parameters_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/AccountPreferences.md b/docs/AccountPreferences.md new file mode 100644 index 0000000..e3fa620 --- /dev/null +++ b/docs/AccountPreferences.md @@ -0,0 +1,32 @@ +# AccountPreferences + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**language** | **str** | | [optional] +**last_active_project** | **str** | | [optional] +**last_active_organization** | **str** | | [optional] +**send_newsletter** | **bool** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences + +# TODO update the JSON string below +json = "{}" +# create an instance of AccountPreferences from a JSON string +account_preferences_instance = AccountPreferences.from_json(json) +# print the JSON string representation of the object +print(AccountPreferences.to_json()) + +# convert the object into a dict +account_preferences_dict = account_preferences_instance.to_dict() +# create an instance of AccountPreferences from a dict +account_preferences_from_dict = AccountPreferences.from_dict(account_preferences_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/AccountUtmParameters.md b/docs/AccountUtmParameters.md new file mode 100644 index 0000000..bfcdbb2 --- /dev/null +++ b/docs/AccountUtmParameters.md @@ -0,0 +1,32 @@ +# AccountUtmParameters + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**medium** | **str** | | [optional] +**source** | **str** | | [optional] +**campaign** | **str** | | [optional] +**referrer** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.account_utm_parameters import AccountUtmParameters + +# TODO update the JSON string below +json = "{}" +# create an instance of AccountUtmParameters from a JSON string +account_utm_parameters_instance = AccountUtmParameters.from_json(json) +# print the JSON string representation of the object +print(AccountUtmParameters.to_json()) + +# convert the object into a dict +account_utm_parameters_dict = account_utm_parameters_instance.to_dict() +# create an instance of AccountUtmParameters from a dict +account_utm_parameters_from_dict = AccountUtmParameters.from_dict(account_utm_parameters_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/AccountsApi.md b/docs/AccountsApi.md new file mode 100644 index 0000000..6317ce8 --- /dev/null +++ b/docs/AccountsApi.md @@ -0,0 +1,655 @@ +# cm_python_openapi_sdk.AccountsApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**change_onboarding**](AccountsApi.md#change_onboarding) | **PUT** /accounts/{accountId}/onboarding | Change account onboarding +[**change_password**](AccountsApi.md#change_password) | **PUT** /accounts/{accountId}/password | Change password +[**change_preferences**](AccountsApi.md#change_preferences) | **PUT** /accounts/{accountId}/preferences | Change account preferences +[**delete_account_by_id**](AccountsApi.md#delete_account_by_id) | **DELETE** /accounts/{accountId} | Delete account. +[**get_account_by_account_id**](AccountsApi.md#get_account_by_account_id) | **GET** /accounts/{accountId} | Get account by accountId +[**get_account_by_email**](AccountsApi.md#get_account_by_email) | **GET** /accounts | Find if account with email exists. +[**get_current_account**](AccountsApi.md#get_current_account) | **GET** /accounts/current | Get current account. +[**register_account**](AccountsApi.md#register_account) | **POST** /accounts | Register new account + + +# **change_onboarding** +> change_onboarding(account_id, account_onboarding_parameters=account_onboarding_parameters) + +Change account onboarding + +Section of account profile for tracking onboarding steps for each user. It has two sections: +- `introShown` - tracks the project views that were already visited by current user +- `tipsShown` - list of unique tips that were already presented to current user +**Security:** +User is allowed to change only it's own onboarding. Bearer token must match `accountId` + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters +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.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + account_onboarding_parameters = cm_python_openapi_sdk.AccountOnboardingParameters() # AccountOnboardingParameters | (optional) + + try: + # Change account onboarding + api_instance.change_onboarding(account_id, account_onboarding_parameters=account_onboarding_parameters) + except Exception as e: + print("Exception when calling AccountsApi->change_onboarding: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Id of the account | + **account_onboarding_parameters** | [**AccountOnboardingParameters**](AccountOnboardingParameters.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Onboarding changed | - | + +[[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) + +# **change_password** +> change_password(account_id, password_change_dto=password_change_dto) + +Change password + +Set password for user Account. New password must match all of following restrictions: +- minimal length 8 characters +- must contains at least one uppercase character +- must contains at least one lowercase character +- must contains at least one numeric character + +**Security:** +User is allowed to change only it's own password. Bearer token must match `accountId` + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO +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.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + password_change_dto = cm_python_openapi_sdk.PasswordChangeDTO() # PasswordChangeDTO | (optional) + + try: + # Change password + api_instance.change_password(account_id, password_change_dto=password_change_dto) + except Exception as e: + print("Exception when calling AccountsApi->change_password: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Id of the account | + **password_change_dto** | [**PasswordChangeDTO**](PasswordChangeDTO.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Password changed | - | +**400** | Bad request, new password does not match requirements for password or old password is invalid | - | +**403** | accountId does not match user account provided in bearer token | - | + +[[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) + +# **change_preferences** +> change_preferences(account_id, account_preferences=account_preferences) + +Change account preferences + +Preferences for user Account. Structure contains currently two keys: +- language - preferred language for user (supported values: "en", "cs") +- lastActiveProject - project that was last active for a user Both these preferences are used by CleverMaps Client JavaScript application and have no direct impact on backend behaviour. + +Updates the preferences by merge. If some of preference keys is not present, value of this key is not reset. + +**Security:** +User is allowed to change only it's own preferences. Bearer token must match `accountId` + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences +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.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + account_preferences = cm_python_openapi_sdk.AccountPreferences() # AccountPreferences | (optional) + + try: + # Change account preferences + api_instance.change_preferences(account_id, account_preferences=account_preferences) + except Exception as e: + print("Exception when calling AccountsApi->change_preferences: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Id of the account | + **account_preferences** | [**AccountPreferences**](AccountPreferences.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Preferences changed | - | +**403** | accountId does not match user account provided in bearer token | - | + +[[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_account_by_id** +> delete_account_by_id(account_id) + +Delete account. + +Deletes user account from Okta. Destroys Okta session. Delete from Intercom. + +**Security:** +User can delete only himself. + + +### 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.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + + try: + # Delete account. + api_instance.delete_account_by_id(account_id) + except Exception as e: + print("Exception when calling AccountsApi->delete_account_by_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Id of the account | + +### 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** | Account 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_account_by_account_id** +> GetAccountByAccountId200Response get_account_by_account_id(account_id) + +Get account by accountId + +Account for user identified accountId. The resource has two type of responses: +- full account detail (for request on currently authenticated account) +- restricted account detail - when getting details about another user + - `accountId`, `fullName`, `language` and `status` properties are returned + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.get_account_by_account_id200_response import GetAccountByAccountId200Response +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.AccountsApi(api_client) + account_id = 'account_id_example' # str | Id of the account + + try: + # Get account by accountId + api_response = api_instance.get_account_by_account_id(account_id) + print("The response of AccountsApi->get_account_by_account_id:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccountsApi->get_account_by_account_id: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **account_id** | **str**| Id of the account | + +### Return type + +[**GetAccountByAccountId200Response**](GetAccountByAccountId200Response.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** | Information about account | - | + +[[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_account_by_email** +> get_account_by_email(email) + +Find if account with email exists. + +Find if account with email exists. Search is limited on `ENABLED` accounts. + + +### 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.AccountsApi(api_client) + email = 'john.smith@clevermaps.io' # str | Email address + + try: + # Find if account with email exists. + api_instance.get_account_by_email(email) + except Exception as e: + print("Exception when calling AccountsApi->get_account_by_email: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **email** | **str**| Email address | + +### 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** | Account with email exists | - | +**404** | Account with email 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_current_account** +> AccountDTO get_current_account() + +Get current account. + +Account for user identified by Bearer token. Resource is the same as the `/rest/accounts/{accountId}`. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.account_dto import AccountDTO +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.AccountsApi(api_client) + + try: + # Get current account. + api_response = api_instance.get_current_account() + print("The response of AccountsApi->get_current_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccountsApi->get_current_account: %s\n" % e) +``` + + + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**AccountDTO**](AccountDTO.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** | Information about account | - | + +[[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) + +# **register_account** +> AccountDTO register_account(new_account_dto) + +Register new account + +### Example + + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.account_dto import AccountDTO +from cm_python_openapi_sdk.models.new_account_dto import NewAccountDTO +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" +) + + +# 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.AccountsApi(api_client) + new_account_dto = cm_python_openapi_sdk.NewAccountDTO() # NewAccountDTO | + + try: + # Register new account + api_response = api_instance.register_account(new_account_dto) + print("The response of AccountsApi->register_account:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccountsApi->register_account: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **new_account_dto** | [**NewAccountDTO**](NewAccountDTO.md)| | + +### Return type + +[**AccountDTO**](AccountDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Account was successfully registered | - | +**409** | Account with this email 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) + diff --git a/docs/AccountsResetPasswordApi.md b/docs/AccountsResetPasswordApi.md new file mode 100644 index 0000000..8fc0a66 --- /dev/null +++ b/docs/AccountsResetPasswordApi.md @@ -0,0 +1,228 @@ +# cm_python_openapi_sdk.AccountsResetPasswordApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**reset_password_with_token**](AccountsResetPasswordApi.md#reset_password_with_token) | **POST** /accounts/passwordReset/{passwordResetToken} | Finish reset password with token +[**send_reset_password_token**](AccountsResetPasswordApi.md#send_reset_password_token) | **POST** /accounts/passwordReset | Ask for reset password token +[**verify_reset_password_token**](AccountsResetPasswordApi.md#verify_reset_password_token) | **GET** /accounts/passwordReset/{passwordResetToken} | Verify reset password token is valid + + +# **reset_password_with_token** +> reset_password_with_token(password_reset_token, reset_password_dto=reset_password_dto) + +Finish reset password with token + +Finish the process of resetting the password by sending a valid token and a new password. +**Security:** +Unauthorized resource, anonymous users are allowed to finish password reset. + + +### Example + + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.reset_password_dto import ResetPasswordDTO +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" +) + + +# 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.AccountsResetPasswordApi(api_client) + password_reset_token = 'password_reset_token_example' # str | Password reset token + reset_password_dto = cm_python_openapi_sdk.ResetPasswordDTO() # ResetPasswordDTO | (optional) + + try: + # Finish reset password with token + api_instance.reset_password_with_token(password_reset_token, reset_password_dto=reset_password_dto) + except Exception as e: + print("Exception when calling AccountsResetPasswordApi->reset_password_with_token: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **password_reset_token** | **str**| Password reset token | + **reset_password_dto** | [**ResetPasswordDTO**](ResetPasswordDTO.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | Password was reset to new password | - | +**404** | Request token was not found | - | +**400** | New password does not match requirements for passwords (see changePassword for requirements) | - | + +[[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) + +# **send_reset_password_token** +> send_reset_password_token(send_reset_password_dto=send_reset_password_dto) + +Ask for reset password token + +Create new request for resetting password. + +**Security:** +Unauthorized resource, anonymous users are allowed to initiate password reset. + + +### Example + + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO +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" +) + + +# 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.AccountsResetPasswordApi(api_client) + send_reset_password_dto = cm_python_openapi_sdk.SendResetPasswordDTO() # SendResetPasswordDTO | (optional) + + try: + # Ask for reset password token + api_instance.send_reset_password_token(send_reset_password_dto=send_reset_password_dto) + except Exception as e: + print("Exception when calling AccountsResetPasswordApi->send_reset_password_token: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **send_reset_password_dto** | [**SendResetPasswordDTO**](SendResetPasswordDTO.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: Not defined + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created request for resetting password | - | +**404** | No account was found for given 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) + +# **verify_reset_password_token** +> AccountDTO verify_reset_password_token(password_reset_token) + +Verify reset password token is valid + +Test if given token exists and is valid. Returns account which password is resetting. + +**Security:** +Unauthorized resource, anonymous users are allowed to verify password reset token. + + +### Example + + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.account_dto import AccountDTO +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" +) + + +# 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.AccountsResetPasswordApi(api_client) + password_reset_token = 'password_reset_token_example' # str | Password reset token + + try: + # Verify reset password token is valid + api_response = api_instance.verify_reset_password_token(password_reset_token) + print("The response of AccountsResetPasswordApi->verify_reset_password_token:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AccountsResetPasswordApi->verify_reset_password_token: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **password_reset_token** | **str**| Password reset token | + +### Return type + +[**AccountDTO**](AccountDTO.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Information about account | - | +**404** | Request token 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) + diff --git a/docs/AuditLogApi.md b/docs/AuditLogApi.md new file mode 100644 index 0000000..2b10f24 --- /dev/null +++ b/docs/AuditLogApi.md @@ -0,0 +1,192 @@ +# cm_python_openapi_sdk.AuditLogApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_audit_log_event**](AuditLogApi.md#get_audit_log_event) | **GET** /auditlog/{eventId} | Get audit log event by eventId +[**get_audit_logs**](AuditLogApi.md#get_audit_logs) | **GET** /auditlog | Get audit logs for project + + +# **get_audit_log_event** +> AuditLogSingleResource get_audit_log_event(event_id, project_id) + +Get audit log event by eventId + +Get audit log event by event ID for project. + +**Security:** +Resource return only audit log events for those projects where the authenticated user is Admin. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource +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.AuditLogApi(api_client) + event_id = '49608916084546516127288104563488184528966319983011299378' # str | Event ID + project_id = 'project_id_example' # str | Id of the project, used as query parameter + + try: + # Get audit log event by eventId + api_response = api_instance.get_audit_log_event(event_id, project_id) + print("The response of AuditLogApi->get_audit_log_event:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogApi->get_audit_log_event: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **event_id** | **str**| Event ID | + **project_id** | **str**| Id of the project, used as query parameter | + +### Return type + +[**AuditLogSingleResource**](AuditLogSingleResource.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** | Single audit log event | - | + +[[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_audit_logs** +> AuditLogPagedResource get_audit_logs(project_id, account_id=account_id, event_types=event_types, var_from=var_from, to=to, last_evaluated_event_id=last_evaluated_event_id, last_evaluated_timestamp=last_evaluated_timestamp, page_size=page_size, sort_direction=sort_direction) + +Get audit logs for project + +Get audit logs for project + +**Security:** +Resource return only audit log for those projects where the authenticated user is Admin. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.audit_log_paged_resource import AuditLogPagedResource +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.AuditLogApi(api_client) + project_id = 'project_id_example' # str | Id of the project, used as query parameter + account_id = 'account_id_example' # str | Id of the account, used in query parameters (optional) + event_types = 'search' # str | Event type (optional) + var_from = '2019-01-17T19:09:28,918' # str | Timestamp lower bound (UTC timestamp format) (optional) + to = '2022-01-17T19:09:28,918' # str | Timestamp upper bound (UTC timestamp format) (optional) + last_evaluated_event_id = 'last_evaluated_event_id_example' # str | Last evaluated event ID when requesting next page (optional) + last_evaluated_timestamp = '2020-11-18T08:39:56,199' # str | Last evaluated timestamp when requesting next page (UTC timestamp format) (optional) + page_size = 56 # int | page size (optional) + sort_direction = 'ASC' # str | Sort direction (optional) + + try: + # Get audit logs for project + api_response = api_instance.get_audit_logs(project_id, account_id=account_id, event_types=event_types, var_from=var_from, to=to, last_evaluated_event_id=last_evaluated_event_id, last_evaluated_timestamp=last_evaluated_timestamp, page_size=page_size, sort_direction=sort_direction) + print("The response of AuditLogApi->get_audit_logs:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AuditLogApi->get_audit_logs: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project, used as query parameter | + **account_id** | **str**| Id of the account, used in query parameters | [optional] + **event_types** | **str**| Event type | [optional] + **var_from** | **str**| Timestamp lower bound (UTC timestamp format) | [optional] + **to** | **str**| Timestamp upper bound (UTC timestamp format) | [optional] + **last_evaluated_event_id** | **str**| Last evaluated event ID when requesting next page | [optional] + **last_evaluated_timestamp** | **str**| Last evaluated timestamp when requesting next page (UTC timestamp format) | [optional] + **page_size** | **int**| page size | [optional] + **sort_direction** | **str**| Sort direction | [optional] + +### Return type + +[**AuditLogPagedResource**](AuditLogPagedResource.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 collection of audit logs | - | + +[[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/AuditLogPagedResource.md b/docs/AuditLogPagedResource.md new file mode 100644 index 0000000..25f1cf1 --- /dev/null +++ b/docs/AuditLogPagedResource.md @@ -0,0 +1,31 @@ +# AuditLogPagedResource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | +**content** | [**List[AuditLogSingleResource]**](AuditLogSingleResource.md) | | +**page** | [**AuditLogPagedResourcePage**](AuditLogPagedResourcePage.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.audit_log_paged_resource import AuditLogPagedResource + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditLogPagedResource from a JSON string +audit_log_paged_resource_instance = AuditLogPagedResource.from_json(json) +# print the JSON string representation of the object +print(AuditLogPagedResource.to_json()) + +# convert the object into a dict +audit_log_paged_resource_dict = audit_log_paged_resource_instance.to_dict() +# create an instance of AuditLogPagedResource from a dict +audit_log_paged_resource_from_dict = AuditLogPagedResource.from_dict(audit_log_paged_resource_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/AuditLogPagedResourcePage.md b/docs/AuditLogPagedResourcePage.md new file mode 100644 index 0000000..f07750a --- /dev/null +++ b/docs/AuditLogPagedResourcePage.md @@ -0,0 +1,30 @@ +# AuditLogPagedResourcePage + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**last_evaluated_key** | [**AuditLogPagedResourcePageLastEvaluatedKey**](AuditLogPagedResourcePageLastEvaluatedKey.md) | | [optional] +**size** | **int** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.audit_log_paged_resource_page import AuditLogPagedResourcePage + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditLogPagedResourcePage from a JSON string +audit_log_paged_resource_page_instance = AuditLogPagedResourcePage.from_json(json) +# print the JSON string representation of the object +print(AuditLogPagedResourcePage.to_json()) + +# convert the object into a dict +audit_log_paged_resource_page_dict = audit_log_paged_resource_page_instance.to_dict() +# create an instance of AuditLogPagedResourcePage from a dict +audit_log_paged_resource_page_from_dict = AuditLogPagedResourcePage.from_dict(audit_log_paged_resource_page_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/AuditLogPagedResourcePageLastEvaluatedKey.md b/docs/AuditLogPagedResourcePageLastEvaluatedKey.md new file mode 100644 index 0000000..5bcd90c --- /dev/null +++ b/docs/AuditLogPagedResourcePageLastEvaluatedKey.md @@ -0,0 +1,31 @@ +# AuditLogPagedResourcePageLastEvaluatedKey + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**project_id** | **str** | | +**last_evaluated_event_id** | **str** | | +**last_evaluated_timestamp** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.audit_log_paged_resource_page_last_evaluated_key import AuditLogPagedResourcePageLastEvaluatedKey + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditLogPagedResourcePageLastEvaluatedKey from a JSON string +audit_log_paged_resource_page_last_evaluated_key_instance = AuditLogPagedResourcePageLastEvaluatedKey.from_json(json) +# print the JSON string representation of the object +print(AuditLogPagedResourcePageLastEvaluatedKey.to_json()) + +# convert the object into a dict +audit_log_paged_resource_page_last_evaluated_key_dict = audit_log_paged_resource_page_last_evaluated_key_instance.to_dict() +# create an instance of AuditLogPagedResourcePageLastEvaluatedKey from a dict +audit_log_paged_resource_page_last_evaluated_key_from_dict = AuditLogPagedResourcePageLastEvaluatedKey.from_dict(audit_log_paged_resource_page_last_evaluated_key_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/AuditLogSingleResource.md b/docs/AuditLogSingleResource.md new file mode 100644 index 0000000..8d943ca --- /dev/null +++ b/docs/AuditLogSingleResource.md @@ -0,0 +1,37 @@ +# AuditLogSingleResource + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**event_id** | **str** | | +**account_id** | **str** | | +**request_id** | **str** | | [optional] +**remote_host** | **str** | | [optional] +**project_id** | **str** | | +**event_type** | **str** | | +**timestamp** | **str** | | +**content** | **object** | | +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | + +## Example + +```python +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource + +# TODO update the JSON string below +json = "{}" +# create an instance of AuditLogSingleResource from a JSON string +audit_log_single_resource_instance = AuditLogSingleResource.from_json(json) +# print the JSON string representation of the object +print(AuditLogSingleResource.to_json()) + +# convert the object into a dict +audit_log_single_resource_dict = audit_log_single_resource_instance.to_dict() +# create an instance of AuditLogSingleResource from a dict +audit_log_single_resource_from_dict = AuditLogSingleResource.from_dict(audit_log_single_resource_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/AvailableDatasetsApi.md b/docs/AvailableDatasetsApi.md new file mode 100644 index 0000000..8f1a855 --- /dev/null +++ b/docs/AvailableDatasetsApi.md @@ -0,0 +1,102 @@ +# cm_python_openapi_sdk.AvailableDatasetsApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**available_datasets**](AvailableDatasetsApi.md#available_datasets) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/availableDatasets | + + +# **available_datasets** +> AvailableDatasetsResponse available_datasets(project_id, dwh_cluster_id, available_datasets_request, type=type, subtype=subtype, expand=expand, var_from=var_from) + +Finds list of datasets available as granularity for given metric(s). + +The project's data model defines the relations among datasets. Not all metrics are computable at all datasets granularity. E.g. population defined on state level cannot be calculated for granularity (dataset) city. + +This endpoint checks the relations from data model and lists only the available datasets for the metrics. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.available_datasets_request import AvailableDatasetsRequest +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse +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.AvailableDatasetsApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + available_datasets_request = cm_python_openapi_sdk.AvailableDatasetsRequest() # AvailableDatasetsRequest | + type = 'dwh' # str | If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated. (optional) + subtype = 'geometryPoint' # str | If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. (optional) + expand = 'expand_example' # str | Expand datasets to minimalize roundtrips. (optional) + var_from = 'clients.postcode_point' # str | Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. (optional) + + try: + api_response = api_instance.available_datasets(project_id, dwh_cluster_id, available_datasets_request, type=type, subtype=subtype, expand=expand, var_from=var_from) + print("The response of AvailableDatasetsApi->available_datasets:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling AvailableDatasetsApi->available_datasets: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **available_datasets_request** | [**AvailableDatasetsRequest**](AvailableDatasetsRequest.md)| | + **type** | **str**| If the parameter present, only the datasets of given type(s) are returned. Parameter can be repeated. | [optional] + **subtype** | **str**| If the parameter present, only the dwh datasets of given subtype(s) are returned. Parameter can be repeated, e.g. `?subtype=geometryLine&subtype=geometryPolygon` If a parameter `type=dwh` is present then a subtype parameter is ignored and all subtypes of dwh datasets are returned. | [optional] + **expand** | **str**| Expand datasets to minimalize roundtrips. | [optional] + **var_from** | **str**| Specify the dataset foreign key to limit list of available datasets. This allows to find just datasets from one date dimension. Alterantively, you can specify the model subtree by setting a primary key of dataset. In this case, only the dataset specified by it's primary key and the connected datasets will be returned. | [optional] + +### Return type + +[**AvailableDatasetsResponse**](AvailableDatasetsResponse.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** | OK | - | + +[[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/AvailableDatasetsRequest.md b/docs/AvailableDatasetsRequest.md new file mode 100644 index 0000000..523d5a9 --- /dev/null +++ b/docs/AvailableDatasetsRequest.md @@ -0,0 +1,29 @@ +# AvailableDatasetsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metrics** | [**List[DwhQueryPropertyTypes]**](DwhQueryPropertyTypes.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.available_datasets_request import AvailableDatasetsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of AvailableDatasetsRequest from a JSON string +available_datasets_request_instance = AvailableDatasetsRequest.from_json(json) +# print the JSON string representation of the object +print(AvailableDatasetsRequest.to_json()) + +# convert the object into a dict +available_datasets_request_dict = available_datasets_request_instance.to_dict() +# create an instance of AvailableDatasetsRequest from a dict +available_datasets_request_from_dict = AvailableDatasetsRequest.from_dict(available_datasets_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/AvailableDatasetsResponse.md b/docs/AvailableDatasetsResponse.md new file mode 100644 index 0000000..8cc2ea6 --- /dev/null +++ b/docs/AvailableDatasetsResponse.md @@ -0,0 +1,29 @@ +# AvailableDatasetsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[AvailableDatasetsResponseContentInner]**](AvailableDatasetsResponseContentInner.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of AvailableDatasetsResponse from a JSON string +available_datasets_response_instance = AvailableDatasetsResponse.from_json(json) +# print the JSON string representation of the object +print(AvailableDatasetsResponse.to_json()) + +# convert the object into a dict +available_datasets_response_dict = available_datasets_response_instance.to_dict() +# create an instance of AvailableDatasetsResponse from a dict +available_datasets_response_from_dict = AvailableDatasetsResponse.from_dict(available_datasets_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/AvailableDatasetsResponseContentInner.md b/docs/AvailableDatasetsResponseContentInner.md new file mode 100644 index 0000000..ee54c85 --- /dev/null +++ b/docs/AvailableDatasetsResponseContentInner.md @@ -0,0 +1,30 @@ +# AvailableDatasetsResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metric_id** | **str** | | [optional] +**available_datasets** | **List[object]** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.available_datasets_response_content_inner import AvailableDatasetsResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of AvailableDatasetsResponseContentInner from a JSON string +available_datasets_response_content_inner_instance = AvailableDatasetsResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(AvailableDatasetsResponseContentInner.to_json()) + +# convert the object into a dict +available_datasets_response_content_inner_dict = available_datasets_response_content_inner_instance.to_dict() +# create an instance of AvailableDatasetsResponseContentInner from a dict +available_datasets_response_content_inner_from_dict = AvailableDatasetsResponseContentInner.from_dict(available_datasets_response_content_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/BoundingBoxDTO.md b/docs/BoundingBoxDTO.md new file mode 100644 index 0000000..6ec12ee --- /dev/null +++ b/docs/BoundingBoxDTO.md @@ -0,0 +1,32 @@ +# BoundingBoxDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min_x** | **float** | | [optional] +**min_y** | **float** | | [optional] +**max_x** | **float** | | [optional] +**max_y** | **float** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.bounding_box_dto import BoundingBoxDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of BoundingBoxDTO from a JSON string +bounding_box_dto_instance = BoundingBoxDTO.from_json(json) +# print the JSON string representation of the object +print(BoundingBoxDTO.to_json()) + +# convert the object into a dict +bounding_box_dto_dict = bounding_box_dto_instance.to_dict() +# create an instance of BoundingBoxDTO from a dict +bounding_box_dto_from_dict = BoundingBoxDTO.from_dict(bounding_box_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/BulkPointQueryPointQueriesOptionIsochrone.md b/docs/BulkPointQueryPointQueriesOptionIsochrone.md deleted file mode 100644 index 86c71f5..0000000 --- a/docs/BulkPointQueryPointQueriesOptionIsochrone.md +++ /dev/null @@ -1,31 +0,0 @@ -# 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/BulkPointQueryRequestPointQueriesInner.md b/docs/BulkPointQueryRequestPointQueriesInner.md index 8f52f36..c6c46eb 100644 --- a/docs/BulkPointQueryRequestPointQueriesInner.md +++ b/docs/BulkPointQueryRequestPointQueriesInner.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **query_id** | **str** | | [optional] **type** | **str** | | -**options** | [**BulkPointQueryRequestPointQueriesInnerOptions**](BulkPointQueryRequestPointQueriesInnerOptions.md) | | [optional] +**options** | [**BulkPointQueryPointQueriesOptionNearest**](BulkPointQueryPointQueriesOptionNearest.md) | | **dataset** | **str** | | **execution_content** | **object** | | [optional] **properties** | **List[object]** | | [optional] diff --git a/docs/BulkPointQueryRequestPointQueriesInnerOptions.md b/docs/BulkPointQueryRequestPointQueriesInnerOptions.md deleted file mode 100644 index 8f92521..0000000 --- a/docs/BulkPointQueryRequestPointQueriesInnerOptions.md +++ /dev/null @@ -1,32 +0,0 @@ -# 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/BulkPointQueryRequestPointQueriesIsochrone.md b/docs/BulkPointQueryRequestPointQueriesIsochrone.md new file mode 100644 index 0000000..2d55d32 --- /dev/null +++ b/docs/BulkPointQueryRequestPointQueriesIsochrone.md @@ -0,0 +1,40 @@ +# BulkPointQueryRequestPointQueriesIsochrone + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query_id** | **str** | | [optional] +**type** | **str** | | +**options** | [**BulkPointQueryRequestPointQueriesIsochroneOptions**](BulkPointQueryRequestPointQueriesIsochroneOptions.md) | | +**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_isochrone import BulkPointQueryRequestPointQueriesIsochrone + +# TODO update the JSON string below +json = "{}" +# create an instance of BulkPointQueryRequestPointQueriesIsochrone from a JSON string +bulk_point_query_request_point_queries_isochrone_instance = BulkPointQueryRequestPointQueriesIsochrone.from_json(json) +# print the JSON string representation of the object +print(BulkPointQueryRequestPointQueriesIsochrone.to_json()) + +# convert the object into a dict +bulk_point_query_request_point_queries_isochrone_dict = bulk_point_query_request_point_queries_isochrone_instance.to_dict() +# create an instance of BulkPointQueryRequestPointQueriesIsochrone from a dict +bulk_point_query_request_point_queries_isochrone_from_dict = BulkPointQueryRequestPointQueriesIsochrone.from_dict(bulk_point_query_request_point_queries_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/BulkPointQueryRequestPointQueriesIsochroneOptions.md b/docs/BulkPointQueryRequestPointQueriesIsochroneOptions.md new file mode 100644 index 0000000..9b50c2c --- /dev/null +++ b/docs/BulkPointQueryRequestPointQueriesIsochroneOptions.md @@ -0,0 +1,31 @@ +# BulkPointQueryRequestPointQueriesIsochroneOptions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**profile** | **str** | | +**unit** | **str** | | +**amount** | **int** | | + +## Example + +```python +from cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_isochrone_options import BulkPointQueryRequestPointQueriesIsochroneOptions + +# TODO update the JSON string below +json = "{}" +# create an instance of BulkPointQueryRequestPointQueriesIsochroneOptions from a JSON string +bulk_point_query_request_point_queries_isochrone_options_instance = BulkPointQueryRequestPointQueriesIsochroneOptions.from_json(json) +# print the JSON string representation of the object +print(BulkPointQueryRequestPointQueriesIsochroneOptions.to_json()) + +# convert the object into a dict +bulk_point_query_request_point_queries_isochrone_options_dict = bulk_point_query_request_point_queries_isochrone_options_instance.to_dict() +# create an instance of BulkPointQueryRequestPointQueriesIsochroneOptions from a dict +bulk_point_query_request_point_queries_isochrone_options_from_dict = BulkPointQueryRequestPointQueriesIsochroneOptions.from_dict(bulk_point_query_request_point_queries_isochrone_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/BulkPointQueryRequestPointQueriesNearest.md b/docs/BulkPointQueryRequestPointQueriesNearest.md new file mode 100644 index 0000000..d599751 --- /dev/null +++ b/docs/BulkPointQueryRequestPointQueriesNearest.md @@ -0,0 +1,40 @@ +# BulkPointQueryRequestPointQueriesNearest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query_id** | **str** | | [optional] +**type** | **str** | | +**options** | [**BulkPointQueryPointQueriesOptionNearest**](BulkPointQueryPointQueriesOptionNearest.md) | | +**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_nearest import BulkPointQueryRequestPointQueriesNearest + +# TODO update the JSON string below +json = "{}" +# create an instance of BulkPointQueryRequestPointQueriesNearest from a JSON string +bulk_point_query_request_point_queries_nearest_instance = BulkPointQueryRequestPointQueriesNearest.from_json(json) +# print the JSON string representation of the object +print(BulkPointQueryRequestPointQueriesNearest.to_json()) + +# convert the object into a dict +bulk_point_query_request_point_queries_nearest_dict = bulk_point_query_request_point_queries_nearest_instance.to_dict() +# create an instance of BulkPointQueryRequestPointQueriesNearest from a dict +bulk_point_query_request_point_queries_nearest_from_dict = BulkPointQueryRequestPointQueriesNearest.from_dict(bulk_point_query_request_point_queries_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/CachesApi.md b/docs/CachesApi.md new file mode 100644 index 0000000..326760d --- /dev/null +++ b/docs/CachesApi.md @@ -0,0 +1,88 @@ +# cm_python_openapi_sdk.CachesApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cache**](CachesApi.md#get_cache) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/caches/{dwhMaterializedCacheId} | + + +# **get_cache** +> get_cache(project_id, dwh_cluster_id, dwh_materialized_cache_id) + +Parts of SQL query could be materialized as SQL materialized views and reused during report computations. This resource allow to check if the SQL cache is already materialized and or not. +No cache data is returned. + + +### 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.CachesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_materialized_cache_id = 'if_0xNW_I7qO2A9-1UmZecWvg' # str | Id of the dwh materialized cache + + try: + api_instance.get_cache(project_id, dwh_cluster_id, dwh_materialized_cache_id) + except Exception as e: + print("Exception when calling CachesApi->get_cache: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_materialized_cache_id** | **str**| Id of the dwh materialized cache | + +### 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** | No Content - cache exists | - | +**404** | Not Found - cache does not 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) + diff --git a/docs/CentralPoint.md b/docs/CentralPoint.md new file mode 100644 index 0000000..420f15d --- /dev/null +++ b/docs/CentralPoint.md @@ -0,0 +1,30 @@ +# CentralPoint + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lat** | **float** | | +**lng** | **float** | | + +## Example + +```python +from cm_python_openapi_sdk.models.central_point import CentralPoint + +# TODO update the JSON string below +json = "{}" +# create an instance of CentralPoint from a JSON string +central_point_instance = CentralPoint.from_json(json) +# print the JSON string representation of the object +print(CentralPoint.to_json()) + +# convert the object into a dict +central_point_dict = central_point_instance.to_dict() +# create an instance of CentralPoint from a dict +central_point_from_dict = CentralPoint.from_dict(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/DataCompleteMultipartUploadRequest.md b/docs/DataCompleteMultipartUploadRequest.md new file mode 100644 index 0000000..1cdb9c3 --- /dev/null +++ b/docs/DataCompleteMultipartUploadRequest.md @@ -0,0 +1,31 @@ +# DataCompleteMultipartUploadRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**upload_id** | **str** | | [optional] +**part_e_tags** | [**List[PartETag]**](PartETag.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.data_complete_multipart_upload_request import DataCompleteMultipartUploadRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DataCompleteMultipartUploadRequest from a JSON string +data_complete_multipart_upload_request_instance = DataCompleteMultipartUploadRequest.from_json(json) +# print the JSON string representation of the object +print(DataCompleteMultipartUploadRequest.to_json()) + +# convert the object into a dict +data_complete_multipart_upload_request_dict = data_complete_multipart_upload_request_instance.to_dict() +# create an instance of DataCompleteMultipartUploadRequest from a dict +data_complete_multipart_upload_request_from_dict = DataCompleteMultipartUploadRequest.from_dict(data_complete_multipart_upload_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/DataCompleteMultipartUploadResponse.md b/docs/DataCompleteMultipartUploadResponse.md new file mode 100644 index 0000000..a5357f9 --- /dev/null +++ b/docs/DataCompleteMultipartUploadResponse.md @@ -0,0 +1,30 @@ +# DataCompleteMultipartUploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**e_tag** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.data_complete_multipart_upload_response import DataCompleteMultipartUploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DataCompleteMultipartUploadResponse from a JSON string +data_complete_multipart_upload_response_instance = DataCompleteMultipartUploadResponse.from_json(json) +# print the JSON string representation of the object +print(DataCompleteMultipartUploadResponse.to_json()) + +# convert the object into a dict +data_complete_multipart_upload_response_dict = data_complete_multipart_upload_response_instance.to_dict() +# create an instance of DataCompleteMultipartUploadResponse from a dict +data_complete_multipart_upload_response_from_dict = DataCompleteMultipartUploadResponse.from_dict(data_complete_multipart_upload_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/DataCreateMultipartUploadResponse.md b/docs/DataCreateMultipartUploadResponse.md new file mode 100644 index 0000000..6ae1464 --- /dev/null +++ b/docs/DataCreateMultipartUploadResponse.md @@ -0,0 +1,33 @@ +# DataCreateMultipartUploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**upload_id** | **str** | | +**upload_urls** | **List[str]** | | +**upload_urls_encoded** | **List[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.data_create_multipart_upload_response import DataCreateMultipartUploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DataCreateMultipartUploadResponse from a JSON string +data_create_multipart_upload_response_instance = DataCreateMultipartUploadResponse.from_json(json) +# print the JSON string representation of the object +print(DataCreateMultipartUploadResponse.to_json()) + +# convert the object into a dict +data_create_multipart_upload_response_dict = data_create_multipart_upload_response_instance.to_dict() +# create an instance of DataCreateMultipartUploadResponse from a dict +data_create_multipart_upload_response_from_dict = DataCreateMultipartUploadResponse.from_dict(data_create_multipart_upload_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/DataCreateUploadResponse.md b/docs/DataCreateUploadResponse.md new file mode 100644 index 0000000..fad7c44 --- /dev/null +++ b/docs/DataCreateUploadResponse.md @@ -0,0 +1,32 @@ +# DataCreateUploadResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**upload_url** | **str** | | +**upload_url_encoded** | **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.data_create_upload_response import DataCreateUploadResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DataCreateUploadResponse from a JSON string +data_create_upload_response_instance = DataCreateUploadResponse.from_json(json) +# print the JSON string representation of the object +print(DataCreateUploadResponse.to_json()) + +# convert the object into a dict +data_create_upload_response_dict = data_create_upload_response_instance.to_dict() +# create an instance of DataCreateUploadResponse from a dict +data_create_upload_response_from_dict = DataCreateUploadResponse.from_dict(data_create_upload_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/DataDumpApi.md b/docs/DataDumpApi.md new file mode 100644 index 0000000..5632ed8 --- /dev/null +++ b/docs/DataDumpApi.md @@ -0,0 +1,100 @@ +# cm_python_openapi_sdk.DataDumpApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_data_dump**](DataDumpApi.md#get_data_dump) | **GET** /projects/{projectId}/data/dumps/{dumpId} | Get data dump file + + +# **get_data_dump** +> str get_data_dump(project_id, dump_id) + +Get data dump file + +When the dumpData job is complete, the **dumps** resource returns links for downloading the dumped files. +Dumps are available for the next **24 hours** and then are removed. + +### The Output CSV File Format + +The output follows the **comma-separated format** as defined by [RFC 4180](https://tools.ietf.org/html/rfc4180) with a header as the first line: + +- **HEADER** – The first line contains column headers. +- **DELIMITER `,`** – Cells are separated by a comma. + +**Security** +Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into 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.DataDumpApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dump_id = '1fuYh8ApOR1rwu3Zo8xqI0p333jnrLEU' # str | ID of dump returned as result of job + + try: + # Get data dump file + api_response = api_instance.get_data_dump(project_id, dump_id) + print("The response of DataDumpApi->get_data_dump:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DataDumpApi->get_data_dump: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dump_id** | **str**| ID of dump returned as result of job | + +### Return type + +**str** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/csv + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Data dump file | - | + +[[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/DataPermissionContentDTO.md b/docs/DataPermissionContentDTO.md index 507bf8c..ceecb30 100644 --- a/docs/DataPermissionContentDTO.md +++ b/docs/DataPermissionContentDTO.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **account_id** | **str** | | -**filters** | **List[object]** | | +**filters** | [**List[FilterBy]**](FilterBy.md) | | ## Example diff --git a/docs/DataUpload200Response.md b/docs/DataUpload200Response.md new file mode 100644 index 0000000..4733035 --- /dev/null +++ b/docs/DataUpload200Response.md @@ -0,0 +1,35 @@ +# DataUpload200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**upload_url** | **str** | | +**upload_url_encoded** | **str** | | [optional] +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional] +**upload_id** | **str** | | +**upload_urls** | **List[str]** | | +**upload_urls_encoded** | **List[str]** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.data_upload200_response import DataUpload200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of DataUpload200Response from a JSON string +data_upload200_response_instance = DataUpload200Response.from_json(json) +# print the JSON string representation of the object +print(DataUpload200Response.to_json()) + +# convert the object into a dict +data_upload200_response_dict = data_upload200_response_instance.to_dict() +# create an instance of DataUpload200Response from a dict +data_upload200_response_from_dict = DataUpload200Response.from_dict(data_upload200_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/DataUploadApi.md b/docs/DataUploadApi.md new file mode 100644 index 0000000..aca702f --- /dev/null +++ b/docs/DataUploadApi.md @@ -0,0 +1,308 @@ +# cm_python_openapi_sdk.DataUploadApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**complete_multipart_upload**](DataUploadApi.md#complete_multipart_upload) | **PUT** /projects/{projectId}/dwh/data/uploads/{id} | Complete multipart upload +[**data_upload**](DataUploadApi.md#data_upload) | **POST** /projects/{projectId}/dwh/data/uploads | Upload CSV file to dataset + + +# **complete_multipart_upload** +> DataCompleteMultipartUploadResponse complete_multipart_upload(project_id, id, data_complete_multipart_upload_request) + +Complete multipart upload + +This resource allows you to complete the multipart upload after all parts are uploaded. +The request body contains the id received in the previous request (e.g. nogeLAvMPlITfWC66ztEDOW6Vl3bwRrn), the uploadId and a list of ETags for each part. +ETag for each part can be found in the ETag response header from the PUT request to part upload. + +**Security** +Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.data_complete_multipart_upload_request import DataCompleteMultipartUploadRequest +from cm_python_openapi_sdk.models.data_complete_multipart_upload_response import DataCompleteMultipartUploadResponse +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.DataUploadApi(api_client) + project_id = 'project_id_example' # str | Id of the project + id = 'nogeLAvMPlITfWC66ztEDOW6Vl3bwRrn' # str | + data_complete_multipart_upload_request = cm_python_openapi_sdk.DataCompleteMultipartUploadRequest() # DataCompleteMultipartUploadRequest | + + try: + # Complete multipart upload + api_response = api_instance.complete_multipart_upload(project_id, id, data_complete_multipart_upload_request) + print("The response of DataUploadApi->complete_multipart_upload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DataUploadApi->complete_multipart_upload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **id** | **str**| | + **data_complete_multipart_upload_request** | [**DataCompleteMultipartUploadRequest**](DataCompleteMultipartUploadRequest.md)| | + +### Return type + +[**DataCompleteMultipartUploadResponse**](DataCompleteMultipartUploadResponse.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 completion of uploading data to S3 | - | + +[[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) + +# **data_upload** +> DataUpload200Response data_upload(project_id, parts=parts) + +Upload CSV file to dataset + +# Data Upload Methods + +There are four ways to update dataset data: + + 1. **CSV Upload** – Push a CSV file from your computer or server. + 2. **Multipart CSV Upload** – Push CSV file in parts from your computer or server (recommended for files larger then 50MB) + - you must specify parameter **parts** + 3. **S3 Pull** – Pull data stored in your S3 bucket. + 4. **HTTPS Pull** – Pull data from any HTTPS endpoint. + +--- + +## CSV Upload Flow + +1. Create a new upload resource via: `POST /rest/projects/{projectId}/dwh/data/uploads` +2. Receive a resource with an S3 pre-signed `uploadUrl`. +3. Upload the CSV file using: `PUT {uploadUrl}` (No authentication required) +4. Once the upload is finished, start a [dataPull](#operation/submitJobExecution) job with the correct input. + +### Pre-signed URL Usage +The pre-signed URL can be used with any HTTP tool. You can upload the content directly without additional authorization (no bearer token required). + +#### Example: Upload CSV File Using `curl` +```sh +curl -X PUT \ +'https://s3-eu-west-1.amazonaws.com/can-dwh-upload-uploads-prod/00ubftx6v6TSTKnAt0h7/o3d2ov0p43msl3hf/RjFJt5kW302QNLzFIVnxN369dlY6KUw4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJ6BXDNGJ7WFCT7SQ%2F20170915%2Feu-west-1%2Fs3%2Faws4_request&X-Amz-Date=20170915T141016Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=e053197d044345041268b7f22918e2e71e2a3d5a23ceed65a332e1782998739c' \ +-T /home/user/data/mydata.csv +``` +## Multipart Upload Flow + +To upload a large CSV file in multiple parts, follow these steps: + +1. **Start the multipart upload** by sending a `POST` request: POST /rest/projects/{projectId}/dwh/data/uploads?parts=3 + - This request initializes the upload and specifies the number of parts. +2. **Receive a response** containing: + - An `id` identifying the upload. + - A list of **uploadUrls**, which are S3 pre-signed URLs, one for each part. +3. **Split the CSV file** and upload each part to its corresponding URL using: PUT {uploadUrl} + - No additional authentication is required. +4. **Complete the upload** + - Once all parts are uploaded, send the [Complete Multipart Data Upload](#operation/completeMultipartUpload) request. +5. **Start the DataPull job** + - After completing the upload, start a [dataPull](#operation/submitJobExecution) job with the correct input. + +## S3 Pull Flow + +Start a [dataPull](#operation/submitJobExecution) job using an **S3 URL**. + +### Example: DataPull Request for S3 Upload +```json +{ + "type": "dataPull", + "projectId": "ncesksvg7rjeri7v", + "content": { + "dataset": "mystores", + "mode": "full", + "s3Upload": { + "uri": "s3://can-s3-dwh-pull-test/mystores.csv", + "accessKeyId": "myAccessKey", + "secretAccessKey": "mySecretAccessKey" + }, + "type": "csv" + } +} +``` +## HTTPS Pull Flow + +Start a [dataPull](#operation/submitJobExecution) job using an **HTTPS URL**. + +### Example: DataPull Request for HTTPS Upload +```json +{ + "type": "dataPull", + "projectId": "ncesksvg7rjeri7v", + "content": { + "dataset": "mystores", + "mode": "full", + "httpsUpload": "https://my-domain.com/mystores.csv", + "type": "csv" + } +} +``` +**Warning**: We do not recommend uploading sensitive information using the HTTPS pull flow, +as files hosted on public URLs are accessible to anyone on the internet. + +**Security** +Restricted to LOAD_DATA, DATA_EDITOR and ADMIN project's roles that have permission to load data into the project. + +## CSV Options + +With **CsvOptions**, you can specify how the CSV should be processed. The available options are: + +| Option | Type | Description | Default Value | +|-------------|----------|---------------------------------------------------------------|--------------| +| `header` | boolean | Specifies if the CSV has a header. | `true` | +| `separator` | char | Specifies the separator character between fields. | `,` | +| `quote` | char | Specifies the quote character. | `"` | +| `escape` | char | Specifies the escape character. | `\` | +| `null` | string | Specifies the replacement value for custom CSV nulls. | *None* | +| `forceNull` | string[] | Specifies which CSV columns should enforce null replacement. | *None* | + +### Example: DataPull Request for S3 Upload with CSV Options +```json +{ + "type": "dataPull", + "projectId": "ncesksvg7rjeri7v", + "content": { + "dataset": "mystores", + "mode": "full", + "s3Upload": { + "uri": "s3://can-s3-dwh-pull-test/mystores.csv", + "accessKeyId": "myAccessKey", + "secretAccessKey": "mySecretAccessKey" + }, + "type": "csv", + "csvOptions": { + "header": true, + "separator": ";", + "quote": "§", + "escape": "\\", + "null": "NULL_VALUE", + "forceNull": [ + "columnName", + "otherColumn" + ] + } + } +} +``` + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.data_upload200_response import DataUpload200Response +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.DataUploadApi(api_client) + project_id = 'project_id_example' # str | Id of the project + parts = 56 # int | (optional) + + try: + # Upload CSV file to dataset + api_response = api_instance.data_upload(project_id, parts=parts) + print("The response of DataUploadApi->data_upload:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DataUploadApi->data_upload: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **parts** | **int**| | [optional] + +### Return type + +[**DataUpload200Response**](DataUpload200Response.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** | Links to upload your data to | - | + +[[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/DateFilterDefaultValueType.md b/docs/DateFilterDefaultValueType.md index 631b768..ac4c13e 100644 --- a/docs/DateFilterDefaultValueType.md +++ b/docs/DateFilterDefaultValueType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **value** | **str** | | -**function** | **object** | | +**function** | [**DateRangeFunctionFunction**](DateRangeFunctionFunction.md) | | ## Example diff --git a/docs/DateRangeFunction.md b/docs/DateRangeFunction.md index 8d25c3e..425d56c 100644 --- a/docs/DateRangeFunction.md +++ b/docs/DateRangeFunction.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**function** | **object** | | +**function** | [**DateRangeFunctionFunction**](DateRangeFunctionFunction.md) | | ## Example diff --git a/docs/DateRangeFunctionFunction.md b/docs/DateRangeFunctionFunction.md new file mode 100644 index 0000000..75f82b7 --- /dev/null +++ b/docs/DateRangeFunctionFunction.md @@ -0,0 +1,32 @@ +# DateRangeFunctionFunction + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **str** | | +**content** | [**List[DwhQueryNumberType]**](DwhQueryNumberType.md) | | +**options** | [**FunctionDateTruncateOptions**](FunctionDateTruncateOptions.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.date_range_function_function import DateRangeFunctionFunction + +# TODO update the JSON string below +json = "{}" +# create an instance of DateRangeFunctionFunction from a JSON string +date_range_function_function_instance = DateRangeFunctionFunction.from_json(json) +# print the JSON string representation of the object +print(DateRangeFunctionFunction.to_json()) + +# convert the object into a dict +date_range_function_function_dict = date_range_function_function_instance.to_dict() +# create an instance of DateRangeFunctionFunction from a dict +date_range_function_function_from_dict = DateRangeFunctionFunction.from_dict(date_range_function_function_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/DateRangesApi.md b/docs/DateRangesApi.md new file mode 100644 index 0000000..6b4263a --- /dev/null +++ b/docs/DateRangesApi.md @@ -0,0 +1,183 @@ +# cm_python_openapi_sdk.DateRangesApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_date_ranges**](DateRangesApi.md#accept_date_ranges) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/dateRanges | Accept date ranges +[**get_date_ranges**](DateRangesApi.md#get_date_ranges) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/dateRanges/{dwhCacheId} | Get date ranges + + +# **accept_date_ranges** +> QueriesResponse accept_date_ranges(project_id, dwh_cluster_id, dwh_date_range_request) + +Accept date ranges + +Accepts a date ranges request. This endpoint returns date ranges for date property in fact table and connected date dimension (if present). + +There is one mandatory key `from` that defines the date property in a fact table. Optionally, request can specify `filter` for selecting a date range. In `filter`, it's possible to specify either `function`, or `value` as `startDate` and `endDate`. See the Request body example. + +This request starts an asynchronous action, which computes the date ranges result and returns the location URI of the result in the `location` response header. To get the result, client must make another GET request on this URI (see [getDateRanges](#operation/getDateRanges)). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_date_range_request import DwhDateRangeRequest +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.DateRangesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_date_range_request = cm_python_openapi_sdk.DwhDateRangeRequest() # DwhDateRangeRequest | + + try: + # Accept date ranges + api_response = api_instance.accept_date_ranges(project_id, dwh_cluster_id, dwh_date_range_request) + print("The response of DateRangesApi->accept_date_ranges:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DateRangesApi->accept_date_ranges: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_date_range_request** | [**DwhDateRangeRequest**](DwhDateRangeRequest.md)| | + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - date range request was successfully accepted for processing | * location - URI of overlaps result
| + +[[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_date_ranges** +> DwhDateRangeResponse get_date_ranges(project_id, dwh_cluster_id, dwh_cache_id) + +Get date ranges + +Get the result of the asynchronous date ranges request submitted in [acceptDateRanges](#operation/acceptDateRanges). +This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_date_range_response import DwhDateRangeResponse +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.DateRangesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + + try: + # Get date ranges + api_response = api_instance.get_date_ranges(project_id, dwh_cluster_id, dwh_cache_id) + print("The response of DateRangesApi->get_date_ranges:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling DateRangesApi->get_date_ranges: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + +### Return type + +[**DwhDateRangeResponse**](DwhDateRangeResponse.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** | OK - date ranges was successfully executed | - | +**404** | Not Found - date ranges cache 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) + diff --git a/docs/DefaultDistributionDTO.md b/docs/DefaultDistributionDTO.md index b5c06c7..bc9188d 100644 --- a/docs/DefaultDistributionDTO.md +++ b/docs/DefaultDistributionDTO.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**range** | **List[Optional[float]]** | | [optional] +**range** | **List[float]** | | [optional] **breaks** | **List[float]** | | [optional] **display_intervals** | **List[float]** | | [optional] diff --git a/docs/DefaultValuesFeatureDTO.md b/docs/DefaultValuesFeatureDTO.md index 26fd3a3..9a03c36 100644 --- a/docs/DefaultValuesFeatureDTO.md +++ b/docs/DefaultValuesFeatureDTO.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**values** | **List[Optional[str]]** | | +**values** | **List[str]** | | ## Example diff --git a/docs/DefaultValuesHistogramDTO.md b/docs/DefaultValuesHistogramDTO.md index 1eb6257..2fa9f94 100644 --- a/docs/DefaultValuesHistogramDTO.md +++ b/docs/DefaultValuesHistogramDTO.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**values** | **List[Optional[float]]** | | [optional] +**values** | **List[float]** | | [optional] **null_filtered** | **bool** | | [optional] ## Example diff --git a/docs/DefaultValuesIndicatorDTO.md b/docs/DefaultValuesIndicatorDTO.md index de2ca00..b06e8db 100644 --- a/docs/DefaultValuesIndicatorDTO.md +++ b/docs/DefaultValuesIndicatorDTO.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**values** | **List[Optional[float]]** | | [optional] +**values** | **List[float]** | | [optional] **breaks** | **List[float]** | | [optional] **display_intervals** | **List[int]** | | [optional] **granularity** | **str** | | [optional] diff --git a/docs/DoubleCountingWarnings.md b/docs/DoubleCountingWarnings.md new file mode 100644 index 0000000..ef140de --- /dev/null +++ b/docs/DoubleCountingWarnings.md @@ -0,0 +1,30 @@ +# DoubleCountingWarnings + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | [optional] +**detail_message** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.double_counting_warnings import DoubleCountingWarnings + +# TODO update the JSON string below +json = "{}" +# create an instance of DoubleCountingWarnings from a JSON string +double_counting_warnings_instance = DoubleCountingWarnings.from_json(json) +# print the JSON string representation of the object +print(DoubleCountingWarnings.to_json()) + +# convert the object into a dict +double_counting_warnings_dict = double_counting_warnings_instance.to_dict() +# create an instance of DoubleCountingWarnings from a dict +double_counting_warnings_from_dict = DoubleCountingWarnings.from_dict(double_counting_warnings_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/DwhDateRangeRequest.md b/docs/DwhDateRangeRequest.md new file mode 100644 index 0000000..1a94637 --- /dev/null +++ b/docs/DwhDateRangeRequest.md @@ -0,0 +1,31 @@ +# DwhDateRangeRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_context** | [**ExecutionContext**](ExecutionContext.md) | | [optional] +**var_from** | **str** | defines the date property in a fact table | +**filter** | [**DwhDateRangeRequestFilter**](DwhDateRangeRequestFilter.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_date_range_request import DwhDateRangeRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhDateRangeRequest from a JSON string +dwh_date_range_request_instance = DwhDateRangeRequest.from_json(json) +# print the JSON string representation of the object +print(DwhDateRangeRequest.to_json()) + +# convert the object into a dict +dwh_date_range_request_dict = dwh_date_range_request_instance.to_dict() +# create an instance of DwhDateRangeRequest from a dict +dwh_date_range_request_from_dict = DwhDateRangeRequest.from_dict(dwh_date_range_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/DwhDateRangeRequestFilter.md b/docs/DwhDateRangeRequestFilter.md new file mode 100644 index 0000000..230a13c --- /dev/null +++ b/docs/DwhDateRangeRequestFilter.md @@ -0,0 +1,30 @@ +# DwhDateRangeRequestFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**start_date** | [**DateFilterDefaultValueType**](DateFilterDefaultValueType.md) | | [optional] +**end_date** | [**DateFilterDefaultValueType**](DateFilterDefaultValueType.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_date_range_request_filter import DwhDateRangeRequestFilter + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhDateRangeRequestFilter from a JSON string +dwh_date_range_request_filter_instance = DwhDateRangeRequestFilter.from_json(json) +# print the JSON string representation of the object +print(DwhDateRangeRequestFilter.to_json()) + +# convert the object into a dict +dwh_date_range_request_filter_dict = dwh_date_range_request_filter_instance.to_dict() +# create an instance of DwhDateRangeRequestFilter from a dict +dwh_date_range_request_filter_from_dict = DwhDateRangeRequestFilter.from_dict(dwh_date_range_request_filter_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/DwhDateRangeResponse.md b/docs/DwhDateRangeResponse.md new file mode 100644 index 0000000..41c59d5 --- /dev/null +++ b/docs/DwhDateRangeResponse.md @@ -0,0 +1,29 @@ +# DwhDateRangeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[DwhDateRangeResponseContentInner]**](DwhDateRangeResponseContentInner.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_date_range_response import DwhDateRangeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhDateRangeResponse from a JSON string +dwh_date_range_response_instance = DwhDateRangeResponse.from_json(json) +# print the JSON string representation of the object +print(DwhDateRangeResponse.to_json()) + +# convert the object into a dict +dwh_date_range_response_dict = dwh_date_range_response_instance.to_dict() +# create an instance of DwhDateRangeResponse from a dict +dwh_date_range_response_from_dict = DwhDateRangeResponse.from_dict(dwh_date_range_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/DwhDateRangeResponseContentInner.md b/docs/DwhDateRangeResponseContentInner.md new file mode 100644 index 0000000..3934db4 --- /dev/null +++ b/docs/DwhDateRangeResponseContentInner.md @@ -0,0 +1,32 @@ +# DwhDateRangeResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | [optional] +**filtered** | **bool** | | [optional] +**min** | **str** | | [optional] +**max** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_date_range_response_content_inner import DwhDateRangeResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhDateRangeResponseContentInner from a JSON string +dwh_date_range_response_content_inner_instance = DwhDateRangeResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(DwhDateRangeResponseContentInner.to_json()) + +# convert the object into a dict +dwh_date_range_response_content_inner_dict = dwh_date_range_response_content_inner_instance.to_dict() +# create an instance of DwhDateRangeResponseContentInner from a dict +dwh_date_range_response_content_inner_from_dict = DwhDateRangeResponseContentInner.from_dict(dwh_date_range_response_content_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/DwhMetricRangeResponse.md b/docs/DwhMetricRangeResponse.md new file mode 100644 index 0000000..73518c8 --- /dev/null +++ b/docs/DwhMetricRangeResponse.md @@ -0,0 +1,29 @@ +# DwhMetricRangeResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[DwhMetricRangeResponseContentInner]**](DwhMetricRangeResponseContentInner.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_metric_range_response import DwhMetricRangeResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhMetricRangeResponse from a JSON string +dwh_metric_range_response_instance = DwhMetricRangeResponse.from_json(json) +# print the JSON string representation of the object +print(DwhMetricRangeResponse.to_json()) + +# convert the object into a dict +dwh_metric_range_response_dict = dwh_metric_range_response_instance.to_dict() +# create an instance of DwhMetricRangeResponse from a dict +dwh_metric_range_response_from_dict = DwhMetricRangeResponse.from_dict(dwh_metric_range_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/DwhMetricRangeResponseContentInner.md b/docs/DwhMetricRangeResponseContentInner.md new file mode 100644 index 0000000..434ee50 --- /dev/null +++ b/docs/DwhMetricRangeResponseContentInner.md @@ -0,0 +1,31 @@ +# DwhMetricRangeResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | [optional] +**min** | **object** | | [optional] +**max** | **object** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_metric_range_response_content_inner import DwhMetricRangeResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhMetricRangeResponseContentInner from a JSON string +dwh_metric_range_response_content_inner_instance = DwhMetricRangeResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(DwhMetricRangeResponseContentInner.to_json()) + +# convert the object into a dict +dwh_metric_range_response_content_inner_dict = dwh_metric_range_response_content_inner_instance.to_dict() +# create an instance of DwhMetricRangeResponseContentInner from a dict +dwh_metric_range_response_content_inner_from_dict = DwhMetricRangeResponseContentInner.from_dict(dwh_metric_range_response_content_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/DwhMetricValuesDistributionResponse.md b/docs/DwhMetricValuesDistributionResponse.md new file mode 100644 index 0000000..9367ec3 --- /dev/null +++ b/docs/DwhMetricValuesDistributionResponse.md @@ -0,0 +1,29 @@ +# DwhMetricValuesDistributionResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[DwhMetricValuesDistributionResponseContentInner]**](DwhMetricValuesDistributionResponseContentInner.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response import DwhMetricValuesDistributionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhMetricValuesDistributionResponse from a JSON string +dwh_metric_values_distribution_response_instance = DwhMetricValuesDistributionResponse.from_json(json) +# print the JSON string representation of the object +print(DwhMetricValuesDistributionResponse.to_json()) + +# convert the object into a dict +dwh_metric_values_distribution_response_dict = dwh_metric_values_distribution_response_instance.to_dict() +# create an instance of DwhMetricValuesDistributionResponse from a dict +dwh_metric_values_distribution_response_from_dict = DwhMetricValuesDistributionResponse.from_dict(dwh_metric_values_distribution_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/DwhMetricValuesDistributionResponseContentInner.md b/docs/DwhMetricValuesDistributionResponseContentInner.md new file mode 100644 index 0000000..f109dba --- /dev/null +++ b/docs/DwhMetricValuesDistributionResponseContentInner.md @@ -0,0 +1,31 @@ +# DwhMetricValuesDistributionResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**min** | **float** | | [optional] +**max** | **float** | | [optional] +**content** | [**List[DwhMetricValuesDistributionResponseContentInnerContentInner]**](DwhMetricValuesDistributionResponseContentInnerContentInner.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner import DwhMetricValuesDistributionResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhMetricValuesDistributionResponseContentInner from a JSON string +dwh_metric_values_distribution_response_content_inner_instance = DwhMetricValuesDistributionResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(DwhMetricValuesDistributionResponseContentInner.to_json()) + +# convert the object into a dict +dwh_metric_values_distribution_response_content_inner_dict = dwh_metric_values_distribution_response_content_inner_instance.to_dict() +# create an instance of DwhMetricValuesDistributionResponseContentInner from a dict +dwh_metric_values_distribution_response_content_inner_from_dict = DwhMetricValuesDistributionResponseContentInner.from_dict(dwh_metric_values_distribution_response_content_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/DwhMetricValuesDistributionResponseContentInnerContentInner.md b/docs/DwhMetricValuesDistributionResponseContentInnerContentInner.md new file mode 100644 index 0000000..1819084 --- /dev/null +++ b/docs/DwhMetricValuesDistributionResponseContentInnerContentInner.md @@ -0,0 +1,30 @@ +# DwhMetricValuesDistributionResponseContentInnerContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | [optional] +**frequency** | **int** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response_content_inner_content_inner import DwhMetricValuesDistributionResponseContentInnerContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhMetricValuesDistributionResponseContentInnerContentInner from a JSON string +dwh_metric_values_distribution_response_content_inner_content_inner_instance = DwhMetricValuesDistributionResponseContentInnerContentInner.from_json(json) +# print the JSON string representation of the object +print(DwhMetricValuesDistributionResponseContentInnerContentInner.to_json()) + +# convert the object into a dict +dwh_metric_values_distribution_response_content_inner_content_inner_dict = dwh_metric_values_distribution_response_content_inner_content_inner_instance.to_dict() +# create an instance of DwhMetricValuesDistributionResponseContentInnerContentInner from a dict +dwh_metric_values_distribution_response_content_inner_content_inner_from_dict = DwhMetricValuesDistributionResponseContentInnerContentInner.from_dict(dwh_metric_values_distribution_response_content_inner_content_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/DwhOverlapsRequest.md b/docs/DwhOverlapsRequest.md new file mode 100644 index 0000000..85b92ba --- /dev/null +++ b/docs/DwhOverlapsRequest.md @@ -0,0 +1,32 @@ +# DwhOverlapsRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operators** | **List[str]** | | +**objects** | [**List[FilterBy]**](FilterBy.md) | | +**granularity** | **str** | | +**query** | [**DwhQueryRequest1**](DwhQueryRequest1.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_overlaps_request import DwhOverlapsRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhOverlapsRequest from a JSON string +dwh_overlaps_request_instance = DwhOverlapsRequest.from_json(json) +# print the JSON string representation of the object +print(DwhOverlapsRequest.to_json()) + +# convert the object into a dict +dwh_overlaps_request_dict = dwh_overlaps_request_instance.to_dict() +# create an instance of DwhOverlapsRequest from a dict +dwh_overlaps_request_from_dict = DwhOverlapsRequest.from_dict(dwh_overlaps_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/DwhOverlapsResponse.md b/docs/DwhOverlapsResponse.md new file mode 100644 index 0000000..7c836f3 --- /dev/null +++ b/docs/DwhOverlapsResponse.md @@ -0,0 +1,29 @@ +# DwhOverlapsResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[DwhOverlapsResponseContentInner]**](DwhOverlapsResponseContentInner.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_overlaps_response import DwhOverlapsResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhOverlapsResponse from a JSON string +dwh_overlaps_response_instance = DwhOverlapsResponse.from_json(json) +# print the JSON string representation of the object +print(DwhOverlapsResponse.to_json()) + +# convert the object into a dict +dwh_overlaps_response_dict = dwh_overlaps_response_instance.to_dict() +# create an instance of DwhOverlapsResponse from a dict +dwh_overlaps_response_from_dict = DwhOverlapsResponse.from_dict(dwh_overlaps_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/DwhOverlapsResponseContentInner.md b/docs/DwhOverlapsResponseContentInner.md new file mode 100644 index 0000000..6d68068 --- /dev/null +++ b/docs/DwhOverlapsResponseContentInner.md @@ -0,0 +1,30 @@ +# DwhOverlapsResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | [optional] +**results** | [**List[DwhOverlapsResponseContentInnerResultsInner]**](DwhOverlapsResponseContentInnerResultsInner.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner import DwhOverlapsResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhOverlapsResponseContentInner from a JSON string +dwh_overlaps_response_content_inner_instance = DwhOverlapsResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(DwhOverlapsResponseContentInner.to_json()) + +# convert the object into a dict +dwh_overlaps_response_content_inner_dict = dwh_overlaps_response_content_inner_instance.to_dict() +# create an instance of DwhOverlapsResponseContentInner from a dict +dwh_overlaps_response_content_inner_from_dict = DwhOverlapsResponseContentInner.from_dict(dwh_overlaps_response_content_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/DwhOverlapsResponseContentInnerResultsInner.md b/docs/DwhOverlapsResponseContentInnerResultsInner.md new file mode 100644 index 0000000..f8fea33 --- /dev/null +++ b/docs/DwhOverlapsResponseContentInnerResultsInner.md @@ -0,0 +1,31 @@ +# DwhOverlapsResponseContentInnerResultsInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | **str** | | [optional] +**objects** | **List[str]** | | [optional] +**value** | **float** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_overlaps_response_content_inner_results_inner import DwhOverlapsResponseContentInnerResultsInner + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhOverlapsResponseContentInnerResultsInner from a JSON string +dwh_overlaps_response_content_inner_results_inner_instance = DwhOverlapsResponseContentInnerResultsInner.from_json(json) +# print the JSON string representation of the object +print(DwhOverlapsResponseContentInnerResultsInner.to_json()) + +# convert the object into a dict +dwh_overlaps_response_content_inner_results_inner_dict = dwh_overlaps_response_content_inner_results_inner_instance.to_dict() +# create an instance of DwhOverlapsResponseContentInnerResultsInner from a dict +dwh_overlaps_response_content_inner_results_inner_from_dict = DwhOverlapsResponseContentInnerResultsInner.from_dict(dwh_overlaps_response_content_inner_results_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/DwhPropertyValuesDistributionRequest.md b/docs/DwhPropertyValuesDistributionRequest.md new file mode 100644 index 0000000..1027e6c --- /dev/null +++ b/docs/DwhPropertyValuesDistributionRequest.md @@ -0,0 +1,33 @@ +# DwhPropertyValuesDistributionRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_context** | [**ExecutionContext**](ExecutionContext.md) | | [optional] +**var_property** | **str** | | +**buckets** | **int** | | [optional] [default to 20] +**min** | **float** | | [optional] +**max** | **float** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_property_values_distribution_request import DwhPropertyValuesDistributionRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhPropertyValuesDistributionRequest from a JSON string +dwh_property_values_distribution_request_instance = DwhPropertyValuesDistributionRequest.from_json(json) +# print the JSON string representation of the object +print(DwhPropertyValuesDistributionRequest.to_json()) + +# convert the object into a dict +dwh_property_values_distribution_request_dict = dwh_property_values_distribution_request_instance.to_dict() +# create an instance of DwhPropertyValuesDistributionRequest from a dict +dwh_property_values_distribution_request_from_dict = DwhPropertyValuesDistributionRequest.from_dict(dwh_property_values_distribution_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/DwhPropertyValuesRequest.md b/docs/DwhPropertyValuesRequest.md new file mode 100644 index 0000000..649b7fd --- /dev/null +++ b/docs/DwhPropertyValuesRequest.md @@ -0,0 +1,31 @@ +# DwhPropertyValuesRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_context** | [**ExecutionContext**](ExecutionContext.md) | | [optional] +**var_property** | **str** | identifier of a property from data model | +**filter** | **str** | substring filter of the property values. Only property values containing given string will be returned. Filtering is case insensitive. | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_property_values_request import DwhPropertyValuesRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhPropertyValuesRequest from a JSON string +dwh_property_values_request_instance = DwhPropertyValuesRequest.from_json(json) +# print the JSON string representation of the object +print(DwhPropertyValuesRequest.to_json()) + +# convert the object into a dict +dwh_property_values_request_dict = dwh_property_values_request_instance.to_dict() +# create an instance of DwhPropertyValuesRequest from a dict +dwh_property_values_request_from_dict = DwhPropertyValuesRequest.from_dict(dwh_property_values_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/DwhQueryPropertyTypes.md b/docs/DwhQueryPropertyTypes.md new file mode 100644 index 0000000..fef4e45 --- /dev/null +++ b/docs/DwhQueryPropertyTypes.md @@ -0,0 +1,34 @@ +# DwhQueryPropertyTypes + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | [optional] +**type** | **str** | | +**value** | **str** | | +**metric** | **str** | | +**content** | **List[object]** | | +**options** | **object** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_query_property_types import DwhQueryPropertyTypes + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhQueryPropertyTypes from a JSON string +dwh_query_property_types_instance = DwhQueryPropertyTypes.from_json(json) +# print the JSON string representation of the object +print(DwhQueryPropertyTypes.to_json()) + +# convert the object into a dict +dwh_query_property_types_dict = dwh_query_property_types_instance.to_dict() +# create an instance of DwhQueryPropertyTypes from a dict +dwh_query_property_types_from_dict = DwhQueryPropertyTypes.from_dict(dwh_query_property_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/DwhQueryRequest.md b/docs/DwhQueryRequest.md new file mode 100644 index 0000000..48a5c2e --- /dev/null +++ b/docs/DwhQueryRequest.md @@ -0,0 +1,36 @@ +# DwhQueryRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_context** | **object** | | [optional] +**properties** | [**List[DwhQueryPropertyTypes]**](DwhQueryPropertyTypes.md) | | +**filter_by** | [**List[FilterBy]**](FilterBy.md) | | [optional] +**having** | [**List[Having]**](Having.md) | | [optional] +**result_set_filter** | [**List[ResultSetFilter]**](ResultSetFilter.md) | | [optional] +**order_by** | [**List[OrderBy]**](OrderBy.md) | | [optional] +**variables** | [**List[VariableValue]**](VariableValue.md) | | [optional] +**limit** | **int** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_query_request import DwhQueryRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhQueryRequest from a JSON string +dwh_query_request_instance = DwhQueryRequest.from_json(json) +# print the JSON string representation of the object +print(DwhQueryRequest.to_json()) + +# convert the object into a dict +dwh_query_request_dict = dwh_query_request_instance.to_dict() +# create an instance of DwhQueryRequest from a dict +dwh_query_request_from_dict = DwhQueryRequest.from_dict(dwh_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/DwhQueryRequest1.md b/docs/DwhQueryRequest1.md new file mode 100644 index 0000000..b43dc1d --- /dev/null +++ b/docs/DwhQueryRequest1.md @@ -0,0 +1,36 @@ +# DwhQueryRequest1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_context** | **object** | | [optional] +**properties** | [**List[DwhQueryPropertyTypes]**](DwhQueryPropertyTypes.md) | | +**filter_by** | [**List[FilterBy]**](FilterBy.md) | | [optional] +**having** | [**List[Having1]**](Having1.md) | | [optional] +**result_set_filter** | [**List[ResultSetFilter]**](ResultSetFilter.md) | | [optional] +**order_by** | [**List[OrderBy]**](OrderBy.md) | | [optional] +**variables** | [**List[VariableValue]**](VariableValue.md) | | [optional] +**limit** | **int** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 + +# TODO update the JSON string below +json = "{}" +# create an instance of DwhQueryRequest1 from a JSON string +dwh_query_request1_instance = DwhQueryRequest1.from_json(json) +# print the JSON string representation of the object +print(DwhQueryRequest1.to_json()) + +# convert the object into a dict +dwh_query_request1_dict = dwh_query_request1_instance.to_dict() +# create an instance of DwhQueryRequest1 from a dict +dwh_query_request1_from_dict = DwhQueryRequest1.from_dict(dwh_query_request1_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/ExecutionContext.md b/docs/ExecutionContext.md new file mode 100644 index 0000000..0e3af7a --- /dev/null +++ b/docs/ExecutionContext.md @@ -0,0 +1,30 @@ +# ExecutionContext + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**feature** | **str** | | [optional] +**view_name** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.execution_context import ExecutionContext + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionContext from a JSON string +execution_context_instance = ExecutionContext.from_json(json) +# print the JSON string representation of the object +print(ExecutionContext.to_json()) + +# convert the object into a dict +execution_context_dict = execution_context_instance.to_dict() +# create an instance of ExecutionContext from a dict +execution_context_from_dict = ExecutionContext.from_dict(execution_context_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/ExecutionDetail.md b/docs/ExecutionDetail.md new file mode 100644 index 0000000..1e0c37e --- /dev/null +++ b/docs/ExecutionDetail.md @@ -0,0 +1,32 @@ +# ExecutionDetail + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**double_counting_warnings** | [**List[DoubleCountingWarnings]**](DoubleCountingWarnings.md) | | [optional] +**dwh_query_metric_names** | **List[str]** | | [optional] +**feature** | **str** | | [optional] +**view_name** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.execution_detail import ExecutionDetail + +# TODO update the JSON string below +json = "{}" +# create an instance of ExecutionDetail from a JSON string +execution_detail_instance = ExecutionDetail.from_json(json) +# print the JSON string representation of the object +print(ExecutionDetail.to_json()) + +# convert the object into a dict +execution_detail_dict = execution_detail_instance.to_dict() +# create an instance of ExecutionDetail from a dict +execution_detail_from_dict = ExecutionDetail.from_dict(execution_detail_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/ExplainApi.md b/docs/ExplainApi.md new file mode 100644 index 0000000..55ebb6e --- /dev/null +++ b/docs/ExplainApi.md @@ -0,0 +1,93 @@ +# cm_python_openapi_sdk.ExplainApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**explain**](ExplainApi.md#explain) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/explain | Explain query + + +# **explain** +> str explain(project_id, dwh_cluster_id, page=page, size=size) + +Explain query + +This resource is useful for debugging and tuning DWH queries. The resource accepts standard DWH Queries (see [acceptQueries](#operation/acceptQueries))and shows the corresponding SQL statement.) + + +### 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.ExplainApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + 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: + # Explain query + api_response = api_instance.explain(project_id, dwh_cluster_id, page=page, size=size) + print("The response of ExplainApi->explain:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExplainApi->explain: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **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 + +**str** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/plain;charset=UTF-8 + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK - query explain was successfully prepared | - | + +[[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/ExportApi.md b/docs/ExportApi.md new file mode 100644 index 0000000..aca5b81 --- /dev/null +++ b/docs/ExportApi.md @@ -0,0 +1,89 @@ +# cm_python_openapi_sdk.ExportApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_exported_data**](ExportApi.md#get_exported_data) | **GET** /projects/{projectId}/export/{exportId} | Get exported data + + +# **get_exported_data** +> str get_exported_data(project_id, export_id) + +Get exported data + +Get exported data file from S3. Data can be exported by submitting an `export` job to the `/rest/jobs` endpoint. + + +### 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.ExportApi(api_client) + project_id = 'project_id_example' # str | Id of the project + export_id = '1fuYh8ApOR1rwu3Zo8xqI0p333jnrLEU' # str | ID of export returned as result of job + + try: + # Get exported data + api_response = api_instance.get_exported_data(project_id, export_id) + print("The response of ExportApi->get_exported_data:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling ExportApi->get_exported_data: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **export_id** | **str**| ID of export returned as result of job | + +### Return type + +**str** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet + +### HTTP response details + +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Export data file | - | + +[[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/FilterBy.md b/docs/FilterBy.md new file mode 100644 index 0000000..f7aa7fc --- /dev/null +++ b/docs/FilterBy.md @@ -0,0 +1,34 @@ +# FilterBy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | +**value** | **List[object]** | | +**function** | **object** | | [optional] +**operator** | **str** | | +**query** | [**DwhQueryRequest**](DwhQueryRequest.md) | | +**content** | [**List[FilterBy]**](FilterBy.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by import FilterBy + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterBy from a JSON string +filter_by_instance = FilterBy.from_json(json) +# print the JSON string representation of the object +print(FilterBy.to_json()) + +# convert the object into a dict +filter_by_dict = filter_by_instance.to_dict() +# create an instance of FilterBy from a dict +filter_by_from_dict = FilterBy.from_dict(filter_by_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/FilterByAttribute.md b/docs/FilterByAttribute.md new file mode 100644 index 0000000..e85d474 --- /dev/null +++ b/docs/FilterByAttribute.md @@ -0,0 +1,32 @@ +# FilterByAttribute + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | [optional] +**function** | **object** | | [optional] +**query** | [**DwhQueryRequest**](DwhQueryRequest.md) | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_attribute import FilterByAttribute + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByAttribute from a JSON string +filter_by_attribute_instance = FilterByAttribute.from_json(json) +# print the JSON string representation of the object +print(FilterByAttribute.to_json()) + +# convert the object into a dict +filter_by_attribute_dict = filter_by_attribute_instance.to_dict() +# create an instance of FilterByAttribute from a dict +filter_by_attribute_from_dict = FilterByAttribute.from_dict(filter_by_attribute_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/FilterByBoolean.md b/docs/FilterByBoolean.md new file mode 100644 index 0000000..3f910be --- /dev/null +++ b/docs/FilterByBoolean.md @@ -0,0 +1,30 @@ +# FilterByBoolean + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operator** | **str** | | +**content** | [**List[FilterBy]**](FilterBy.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_boolean import FilterByBoolean + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByBoolean from a JSON string +filter_by_boolean_instance = FilterByBoolean.from_json(json) +# print the JSON string representation of the object +print(FilterByBoolean.to_json()) + +# convert the object into a dict +filter_by_boolean_dict = filter_by_boolean_instance.to_dict() +# create an instance of FilterByBoolean from a dict +filter_by_boolean_from_dict = FilterByBoolean.from_dict(filter_by_boolean_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/FilterByComp.md b/docs/FilterByComp.md new file mode 100644 index 0000000..06f7591 --- /dev/null +++ b/docs/FilterByComp.md @@ -0,0 +1,32 @@ +# FilterByComp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | [optional] +**value** | **object** | | [optional] +**function** | [**DwhQueryPropertyTypes**](DwhQueryPropertyTypes.md) | | [optional] +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_comp import FilterByComp + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByComp from a JSON string +filter_by_comp_instance = FilterByComp.from_json(json) +# print the JSON string representation of the object +print(FilterByComp.to_json()) + +# convert the object into a dict +filter_by_comp_dict = filter_by_comp_instance.to_dict() +# create an instance of FilterByComp from a dict +filter_by_comp_from_dict = FilterByComp.from_dict(filter_by_comp_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/FilterByIn.md b/docs/FilterByIn.md new file mode 100644 index 0000000..ee032ba --- /dev/null +++ b/docs/FilterByIn.md @@ -0,0 +1,32 @@ +# FilterByIn + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | [optional] +**function** | **object** | | [optional] +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_in import FilterByIn + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByIn from a JSON string +filter_by_in_instance = FilterByIn.from_json(json) +# print the JSON string representation of the object +print(FilterByIn.to_json()) + +# convert the object into a dict +filter_by_in_dict = filter_by_in_instance.to_dict() +# create an instance of FilterByIn from a dict +filter_by_in_from_dict = FilterByIn.from_dict(filter_by_in_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/FilterByIn1.md b/docs/FilterByIn1.md new file mode 100644 index 0000000..ae5a17a --- /dev/null +++ b/docs/FilterByIn1.md @@ -0,0 +1,32 @@ +# FilterByIn1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | [optional] +**function** | **object** | | [optional] +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_in1 import FilterByIn1 + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByIn1 from a JSON string +filter_by_in1_instance = FilterByIn1.from_json(json) +# print the JSON string representation of the object +print(FilterByIn1.to_json()) + +# convert the object into a dict +filter_by_in1_dict = filter_by_in1_instance.to_dict() +# create an instance of FilterByIn1 from a dict +filter_by_in1_from_dict = FilterByIn1.from_dict(filter_by_in1_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/FilterByUnary.md b/docs/FilterByUnary.md new file mode 100644 index 0000000..1a86fc8 --- /dev/null +++ b/docs/FilterByUnary.md @@ -0,0 +1,30 @@ +# FilterByUnary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **str** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.filter_by_unary import FilterByUnary + +# TODO update the JSON string below +json = "{}" +# create an instance of FilterByUnary from a JSON string +filter_by_unary_instance = FilterByUnary.from_json(json) +# print the JSON string representation of the object +print(FilterByUnary.to_json()) + +# convert the object into a dict +filter_by_unary_dict = filter_by_unary_instance.to_dict() +# create an instance of FilterByUnary from a dict +filter_by_unary_from_dict = FilterByUnary.from_dict(filter_by_unary_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/FunctionAggTypeGeneral.md b/docs/FunctionAggTypeGeneral.md index 54afce9..6c72571 100644 --- a/docs/FunctionAggTypeGeneral.md +++ b/docs/FunctionAggTypeGeneral.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] **type** | **str** | | -**content** | **List[object]** | | +**content** | [**List[DwhQueryPropertyTypes]**](DwhQueryPropertyTypes.md) | | **options** | **object** | | [optional] ## Example diff --git a/docs/FunctionDateTrunc.md b/docs/FunctionDateTrunc.md index 1b91ff8..865fb36 100644 --- a/docs/FunctionDateTrunc.md +++ b/docs/FunctionDateTrunc.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **type** | **str** | | **content** | **List[object]** | | -**options** | [**FunctionDateTruncOptions**](FunctionDateTruncOptions.md) | | +**options** | [**FunctionDateTruncateOptions**](FunctionDateTruncateOptions.md) | | ## Example diff --git a/docs/FunctionDateTruncOptions.md b/docs/FunctionDateTruncOptions.md deleted file mode 100644 index edcb6d5..0000000 --- a/docs/FunctionDateTruncOptions.md +++ /dev/null @@ -1,29 +0,0 @@ -# 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/FunctionDateTruncateOptions.md b/docs/FunctionDateTruncateOptions.md new file mode 100644 index 0000000..d6296e3 --- /dev/null +++ b/docs/FunctionDateTruncateOptions.md @@ -0,0 +1,29 @@ +# FunctionDateTruncateOptions + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interval** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.function_date_truncate_options import FunctionDateTruncateOptions + +# TODO update the JSON string below +json = "{}" +# create an instance of FunctionDateTruncateOptions from a JSON string +function_date_truncate_options_instance = FunctionDateTruncateOptions.from_json(json) +# print the JSON string representation of the object +print(FunctionDateTruncateOptions.to_json()) + +# convert the object into a dict +function_date_truncate_options_dict = function_date_truncate_options_instance.to_dict() +# create an instance of FunctionDateTruncateOptions from a dict +function_date_truncate_options_from_dict = FunctionDateTruncateOptions.from_dict(function_date_truncate_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/FunctionDistanceOptions.md b/docs/FunctionDistanceOptions.md index d6df90e..e30dd84 100644 --- a/docs/FunctionDistanceOptions.md +++ b/docs/FunctionDistanceOptions.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **dataset** | **str** | | -**central_point** | [**FunctionDistanceOptionsCentralPoint**](FunctionDistanceOptionsCentralPoint.md) | | +**central_point** | [**CentralPoint**](CentralPoint.md) | | ## Example diff --git a/docs/FunctionDistanceOptionsCentralPoint.md b/docs/FunctionDistanceOptionsCentralPoint.md deleted file mode 100644 index 3823be7..0000000 --- a/docs/FunctionDistanceOptionsCentralPoint.md +++ /dev/null @@ -1,30 +0,0 @@ -# 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/FunctionInterval.md b/docs/FunctionInterval.md index c28ad51..856bf7b 100644 --- a/docs/FunctionInterval.md +++ b/docs/FunctionInterval.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **type** | **str** | | **content** | [**List[DwhQueryNumberType]**](DwhQueryNumberType.md) | | -**options** | [**FunctionDateTruncOptions**](FunctionDateTruncOptions.md) | | +**options** | [**FunctionDateTruncateOptions**](FunctionDateTruncateOptions.md) | | ## Example diff --git a/docs/FunctionNtile.md b/docs/FunctionNtile.md index 4213ff1..c5c453d 100644 --- a/docs/FunctionNtile.md +++ b/docs/FunctionNtile.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] **type** | **str** | | -**content** | **List[object]** | | +**content** | [**List[FunctionNtileContentInner]**](FunctionNtileContentInner.md) | | **options** | [**FunctionNtileOptions**](FunctionNtileOptions.md) | | [optional] ## Example diff --git a/docs/FunctionNtileContentInner.md b/docs/FunctionNtileContentInner.md new file mode 100644 index 0000000..eeb6036 --- /dev/null +++ b/docs/FunctionNtileContentInner.md @@ -0,0 +1,32 @@ +# FunctionNtileContentInner + + +## 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_ntile_content_inner import FunctionNtileContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of FunctionNtileContentInner from a JSON string +function_ntile_content_inner_instance = FunctionNtileContentInner.from_json(json) +# print the JSON string representation of the object +print(FunctionNtileContentInner.to_json()) + +# convert the object into a dict +function_ntile_content_inner_dict = function_ntile_content_inner_instance.to_dict() +# create an instance of FunctionNtileContentInner from a dict +function_ntile_content_inner_from_dict = FunctionNtileContentInner.from_dict(function_ntile_content_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/FunctionPercentile.md b/docs/FunctionPercentile.md index 8f1b961..a2eb1ae 100644 --- a/docs/FunctionPercentile.md +++ b/docs/FunctionPercentile.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] **type** | **str** | | -**content** | **List[object]** | | +**content** | [**List[FunctionNtileContentInner]**](FunctionNtileContentInner.md) | | **options** | **object** | | ## Example diff --git a/docs/FunctionRank.md b/docs/FunctionRank.md index 8f6d556..8b4b8f9 100644 --- a/docs/FunctionRank.md +++ b/docs/FunctionRank.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] **type** | **str** | | -**content** | **List[object]** | | +**content** | [**List[FunctionNtileContentInner]**](FunctionNtileContentInner.md) | | **options** | **object** | | ## Example diff --git a/docs/FunctionRowNumber.md b/docs/FunctionRowNumber.md index 04649f1..7acfe74 100644 --- a/docs/FunctionRowNumber.md +++ b/docs/FunctionRowNumber.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | [optional] **type** | **str** | | -**content** | **List[object]** | | +**content** | [**List[FunctionNtileContentInner]**](FunctionNtileContentInner.md) | | **options** | **object** | | ## Example diff --git a/docs/GeosearchPagedModelDTO.md b/docs/GeosearchPagedModelDTO.md new file mode 100644 index 0000000..54908df --- /dev/null +++ b/docs/GeosearchPagedModelDTO.md @@ -0,0 +1,31 @@ +# GeosearchPagedModelDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional] +**content** | [**List[QueryHitDTO]**](QueryHitDTO.md) | | [optional] +**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.geosearch_paged_model_dto import GeosearchPagedModelDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of GeosearchPagedModelDTO from a JSON string +geosearch_paged_model_dto_instance = GeosearchPagedModelDTO.from_json(json) +# print the JSON string representation of the object +print(GeosearchPagedModelDTO.to_json()) + +# convert the object into a dict +geosearch_paged_model_dto_dict = geosearch_paged_model_dto_instance.to_dict() +# create an instance of GeosearchPagedModelDTO from a dict +geosearch_paged_model_dto_from_dict = GeosearchPagedModelDTO.from_dict(geosearch_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/GetAccountByAccountId200Response.md b/docs/GetAccountByAccountId200Response.md new file mode 100644 index 0000000..99a8972 --- /dev/null +++ b/docs/GetAccountByAccountId200Response.md @@ -0,0 +1,40 @@ +# GetAccountByAccountId200Response + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**full_name** | **str** | | +**email** | **str** | | +**status** | **str** | | +**preferences** | [**AccountPreferences**](AccountPreferences.md) | | [optional] +**consent_granted** | **bool** | | [optional] +**anonymous** | **bool** | | [optional] +**phone_number** | **str** | | [optional] +**require_additional_attributes** | **bool** | | [optional] +**onboarding** | [**AccountOnboardingParameters**](AccountOnboardingParameters.md) | | [optional] +**job_info** | [**AccountJobInfo**](AccountJobInfo.md) | | [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.get_account_by_account_id200_response import GetAccountByAccountId200Response + +# TODO update the JSON string below +json = "{}" +# create an instance of GetAccountByAccountId200Response from a JSON string +get_account_by_account_id200_response_instance = GetAccountByAccountId200Response.from_json(json) +# print the JSON string representation of the object +print(GetAccountByAccountId200Response.to_json()) + +# convert the object into a dict +get_account_by_account_id200_response_dict = get_account_by_account_id200_response_instance.to_dict() +# create an instance of GetAccountByAccountId200Response from a dict +get_account_by_account_id200_response_from_dict = GetAccountByAccountId200Response.from_dict(get_account_by_account_id200_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 index c8af8e4..df25710 100644 --- a/docs/GetProjectMembers200Response.md +++ b/docs/GetProjectMembers200Response.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **role** | **str** | | **created_at** | **str** | | [optional] **modified_at** | **str** | | [optional] -**account** | **object** | | [optional] +**account** | [**AccountDTO**](AccountDTO.md) | | [optional] ## Example diff --git a/docs/Having.md b/docs/Having.md new file mode 100644 index 0000000..2edc495 --- /dev/null +++ b/docs/Having.md @@ -0,0 +1,31 @@ +# Having + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having import Having + +# TODO update the JSON string below +json = "{}" +# create an instance of Having from a JSON string +having_instance = Having.from_json(json) +# print the JSON string representation of the object +print(Having.to_json()) + +# convert the object into a dict +having_dict = having_instance.to_dict() +# create an instance of Having from a dict +having_from_dict = Having.from_dict(having_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/Having1.md b/docs/Having1.md new file mode 100644 index 0000000..c091bd0 --- /dev/null +++ b/docs/Having1.md @@ -0,0 +1,31 @@ +# Having1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having1 import Having1 + +# TODO update the JSON string below +json = "{}" +# create an instance of Having1 from a JSON string +having1_instance = Having1.from_json(json) +# print the JSON string representation of the object +print(Having1.to_json()) + +# convert the object into a dict +having1_dict = having1_instance.to_dict() +# create an instance of Having1 from a dict +having1_from_dict = Having1.from_dict(having1_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/HavingComp.md b/docs/HavingComp.md new file mode 100644 index 0000000..f69cfb9 --- /dev/null +++ b/docs/HavingComp.md @@ -0,0 +1,31 @@ +# HavingComp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **float** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having_comp import HavingComp + +# TODO update the JSON string below +json = "{}" +# create an instance of HavingComp from a JSON string +having_comp_instance = HavingComp.from_json(json) +# print the JSON string representation of the object +print(HavingComp.to_json()) + +# convert the object into a dict +having_comp_dict = having_comp_instance.to_dict() +# create an instance of HavingComp from a dict +having_comp_from_dict = HavingComp.from_dict(having_comp_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/HavingIn.md b/docs/HavingIn.md new file mode 100644 index 0000000..3df9e18 --- /dev/null +++ b/docs/HavingIn.md @@ -0,0 +1,31 @@ +# HavingIn + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having_in import HavingIn + +# TODO update the JSON string below +json = "{}" +# create an instance of HavingIn from a JSON string +having_in_instance = HavingIn.from_json(json) +# print the JSON string representation of the object +print(HavingIn.to_json()) + +# convert the object into a dict +having_in_dict = having_in_instance.to_dict() +# create an instance of HavingIn from a dict +having_in_from_dict = HavingIn.from_dict(having_in_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/HavingIn1.md b/docs/HavingIn1.md new file mode 100644 index 0000000..359737f --- /dev/null +++ b/docs/HavingIn1.md @@ -0,0 +1,31 @@ +# HavingIn1 + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having_in1 import HavingIn1 + +# TODO update the JSON string below +json = "{}" +# create an instance of HavingIn1 from a JSON string +having_in1_instance = HavingIn1.from_json(json) +# print the JSON string representation of the object +print(HavingIn1.to_json()) + +# convert the object into a dict +having_in1_dict = having_in1_instance.to_dict() +# create an instance of HavingIn1 from a dict +having_in1_from_dict = HavingIn1.from_dict(having_in1_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/HavingUnary.md b/docs/HavingUnary.md new file mode 100644 index 0000000..4e43f70 --- /dev/null +++ b/docs/HavingUnary.md @@ -0,0 +1,30 @@ +# HavingUnary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.having_unary import HavingUnary + +# TODO update the JSON string below +json = "{}" +# create an instance of HavingUnary from a JSON string +having_unary_instance = HavingUnary.from_json(json) +# print the JSON string representation of the object +print(HavingUnary.to_json()) + +# convert the object into a dict +having_unary_dict = having_unary_instance.to_dict() +# create an instance of HavingUnary from a dict +having_unary_from_dict = HavingUnary.from_dict(having_unary_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/HighlightDTO.md b/docs/HighlightDTO.md new file mode 100644 index 0000000..9d480ca --- /dev/null +++ b/docs/HighlightDTO.md @@ -0,0 +1,30 @@ +# HighlightDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**subtitle** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.highlight_dto import HighlightDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of HighlightDTO from a JSON string +highlight_dto_instance = HighlightDTO.from_json(json) +# print the JSON string representation of the object +print(HighlightDTO.to_json()) + +# convert the object into a dict +highlight_dto_dict = highlight_dto_instance.to_dict() +# create an instance of HighlightDTO from a dict +highlight_dto_from_dict = HighlightDTO.from_dict(highlight_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/HitHighlight.md b/docs/HitHighlight.md new file mode 100644 index 0000000..883c42f --- /dev/null +++ b/docs/HitHighlight.md @@ -0,0 +1,30 @@ +# HitHighlight + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | [optional] +**subtitle** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.hit_highlight import HitHighlight + +# TODO update the JSON string below +json = "{}" +# create an instance of HitHighlight from a JSON string +hit_highlight_instance = HitHighlight.from_json(json) +# print the JSON string representation of the object +print(HitHighlight.to_json()) + +# convert the object into a dict +hit_highlight_dict = hit_highlight_instance.to_dict() +# create an instance of HitHighlight from a dict +hit_highlight_from_dict = HitHighlight.from_dict(hit_highlight_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/InvitationApi.md similarity index 72% rename from docs/UserInvitationsApi.md rename to docs/InvitationApi.md index 576ba8e..0fcf064 100644 --- a/docs/UserInvitationsApi.md +++ b/docs/InvitationApi.md @@ -1,19 +1,27 @@ -# cm_python_openapi_sdk.UserInvitationsApi +# cm_python_openapi_sdk.InvitationApi 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_project_invitation**](InvitationApi.md#accept_project_invitation) | **POST** /invitations/{invitationHash} | Accept invitation. +[**get_invitation**](InvitationApi.md#get_invitation) | **GET** /invitations/{invitationHash} | Get detail of an invitation. -# **accept_user_invitation** -> InvitationDTO accept_user_invitation(invitation_hash) +# **accept_project_invitation** +> InvitationDTO accept_project_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. +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 @@ -44,16 +52,16 @@ configuration = cm_python_openapi_sdk.Configuration( # 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) + api_instance = cm_python_openapi_sdk.InvitationApi(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") + api_response = api_instance.accept_project_invitation(invitation_hash) + print("The response of InvitationApi->accept_project_invitation:\n") pprint(api_response) except Exception as e: - print("Exception when calling UserInvitationsApi->accept_user_invitation: %s\n" % e) + print("Exception when calling InvitationApi->accept_project_invitation: %s\n" % e) ``` @@ -89,12 +97,17 @@ 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) -# **get_user_invitation** -> InvitationDTO get_user_invitation(invitation_hash) +# **get_invitation** +> InvitationDTO get_invitation(invitation_hash) Get detail of an invitation. -An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED +An invitation status value is one of: +- PENDING +- ACCEPTED +- CANCELED +- EXPIRED + ### Example @@ -125,16 +138,16 @@ configuration = cm_python_openapi_sdk.Configuration( # 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) + api_instance = cm_python_openapi_sdk.InvitationApi(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") + api_response = api_instance.get_invitation(invitation_hash) + print("The response of InvitationApi->get_invitation:\n") pprint(api_response) except Exception as e: - print("Exception when calling UserInvitationsApi->get_user_invitation: %s\n" % e) + print("Exception when calling InvitationApi->get_invitation: %s\n" % e) ``` diff --git a/docs/IsochroneApi.md b/docs/IsochroneApi.md index dcdf3bc..5886857 100644 --- a/docs/IsochroneApi.md +++ b/docs/IsochroneApi.md @@ -4,15 +4,30 @@ 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**](IsochroneApi.md#get_isochrone) | **GET** /isochrone | Get isochrone # **get_isochrone** > IsochronePagedModelDTO get_isochrone(lat, lng, profile, unit, amount, size=size, page=page) +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 -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 @@ -53,6 +68,7 @@ with cm_python_openapi_sdk.ApiClient(configuration) as api_client: page = 0 # int | Number of the page (optional) (default to 0) try: + # Get isochrone 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) diff --git a/docs/JobsApi.md b/docs/JobsApi.md index c74d7ea..a02ab96 100644 --- a/docs/JobsApi.md +++ b/docs/JobsApi.md @@ -4,17 +4,25 @@ 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**](JobsApi.md#get_job_status) | **GET** /jobs/{jobId} | Get job status +[**get_jobs_history**](JobsApi.md#get_jobs_history) | **GET** /jobs/history | Get jobs history +[**submit_job_execution**](JobsApi.md#submit_job_execution) | **POST** /jobs | Submit job execution # **get_job_status** > JobDetailResponse get_job_status(job_id, type) +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. -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 @@ -50,6 +58,7 @@ with cm_python_openapi_sdk.ApiClient(configuration) as api_client: type = 'dataDump' # str | Jobs type try: + # Get job status api_response = api_instance.get_job_status(job_id, type) print("The response of JobsApi->get_job_status:\n") pprint(api_response) @@ -89,11 +98,21 @@ 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) # **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) +> JobHistoryPagedModelDTO get_jobs_history(project_id, account_id=account_id, sort_direction=sort_direction, last_evaluated_timestamp=last_evaluated_timestamp, type=type, dataset=dataset) + +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). -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 @@ -125,16 +144,16 @@ configuration = cm_python_openapi_sdk.Configuration( 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) + project_id = 'project_id_example' # str | Id of the project, used as query parameter + account_id = 'account_id_example' # str | Id of the account, used in query parameters (optional) + sort_direction = 'ASC' # str | Sort direction (optional) + last_evaluated_timestamp = '2020-11-18T08:39:56,199' # str | Last evaluated timestamp when requesting next page (UTC timestamp format) (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) + # Get jobs history + api_response = api_instance.get_jobs_history(project_id, account_id=account_id, sort_direction=sort_direction, last_evaluated_timestamp=last_evaluated_timestamp, type=type, dataset=dataset) print("The response of JobsApi->get_jobs_history:\n") pprint(api_response) except Exception as e: @@ -148,13 +167,12 @@ with cm_python_openapi_sdk.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **project_id** | **str**| projectId for which to retrieve jobs history | - **account_id** | **str**| AccountId that started the job executions | [optional] + **project_id** | **str**| Id of the project, used as query parameter | + **account_id** | **str**| Id of the account, used in query parameters | [optional] + **sort_direction** | **str**| Sort direction | [optional] + **last_evaluated_timestamp** | **str**| Last evaluated timestamp when requesting next page (UTC timestamp format) | [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 @@ -180,9 +198,25 @@ Name | Type | Description | Notes # **submit_job_execution** > JobDetailResponse submit_job_execution(submit_job_execution_request) +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. -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 @@ -218,6 +252,7 @@ with cm_python_openapi_sdk.ApiClient(configuration) as api_client: submit_job_execution_request = cm_python_openapi_sdk.SubmitJobExecutionRequest() # SubmitJobExecutionRequest | Successful response try: + # Submit job execution api_response = api_instance.submit_job_execution(submit_job_execution_request) print("The response of JobsApi->submit_job_execution:\n") pprint(api_response) diff --git a/docs/MembersApi.md b/docs/MembersApi.md index 473271c..830af84 100644 --- a/docs/MembersApi.md +++ b/docs/MembersApi.md @@ -16,7 +16,12 @@ Method | HTTP request | Description 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. +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 @@ -97,7 +102,11 @@ Name | Type | Description | Notes Deletes membership of user in project. -The user will be not able to access the project anymore. **Security:** Restricted to ADMIN project role. +The user will be not able to access the project anymore. + +**Security:** +Restricted to ADMIN project role. + ### Example @@ -166,7 +175,7 @@ void (empty response body) | 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. | - | +**400** | Deletion 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) @@ -175,7 +184,9 @@ void (empty response body) Get detail of user membership in project by membership id. -**Security:** Restricted to ADMIN project role. +**Security:** +Restricted to ADMIN project role. + ### Example @@ -255,7 +266,14 @@ Name | Type | Description | Notes 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. +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 @@ -343,7 +361,9 @@ Name | Type | Description | Notes Update membership by changing role or status in project. -**Security:** Restricted to ADMIN project role. +**Security:** +Restricted to ADMIN project role. + ### Example @@ -418,7 +438,7 @@ Name | Type | Description | Notes | 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. | - | +**400** | 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 index 252ce14..a4cc60c 100644 --- a/docs/MembershipDTO.md +++ b/docs/MembershipDTO.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **role** | **str** | | **created_at** | **str** | | [optional] **modified_at** | **str** | | [optional] -**account** | **object** | | [optional] +**account** | [**AccountDTO**](AccountDTO.md) | | [optional] **links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | [optional] ## Example diff --git a/docs/MetricRangesApi.md b/docs/MetricRangesApi.md new file mode 100644 index 0000000..1f690ce --- /dev/null +++ b/docs/MetricRangesApi.md @@ -0,0 +1,185 @@ +# cm_python_openapi_sdk.MetricRangesApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_metric_ranges**](MetricRangesApi.md#accept_metric_ranges) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/metricRanges | Accept metric ranges +[**get_metric_ranges**](MetricRangesApi.md#get_metric_ranges) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/metricRanges/{dwhCacheId} | Get metric ranges + + +# **accept_metric_ranges** +> QueriesResponse accept_metric_ranges(project_id, dwh_cluster_id, dwh_query_request1) + +Accept metric ranges + +Accepts a metric ranges request and returns the range values for all given metrics. The range values depend on selected granularity defined in the query properties. Metric Ranges is used for the map legend range. + +This request starts an asynchronous action, which computes the metric ranges result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getMetricRanges](#operation/getMetricRanges)). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.MetricRangesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_query_request1 = cm_python_openapi_sdk.DwhQueryRequest1() # DwhQueryRequest1 | + + try: + # Accept metric ranges + api_response = api_instance.accept_metric_ranges(project_id, dwh_cluster_id, dwh_query_request1) + print("The response of MetricRangesApi->accept_metric_ranges:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetricRangesApi->accept_metric_ranges: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_query_request1** | [**DwhQueryRequest1**](DwhQueryRequest1.md)| | + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - metric ranges query was successfully accepted for processing | * location - URI of overlaps result
| + +[[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_ranges** +> DwhMetricRangeResponse get_metric_ranges(project_id, dwh_cluster_id, dwh_cache_id) + +Get metric ranges + +Get the result of the asynchronous metric ranges request submitted in [acceptMetricRanges](#operation/acceptMetricRanges). +This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + +The resource returns these values for each metric: +* `min` - minimal value for metric in given scope +* `max` - maximal value for metric in given scope + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_metric_range_response import DwhMetricRangeResponse +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.MetricRangesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + + try: + # Get metric ranges + api_response = api_instance.get_metric_ranges(project_id, dwh_cluster_id, dwh_cache_id) + print("The response of MetricRangesApi->get_metric_ranges:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling MetricRangesApi->get_metric_ranges: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + +### Return type + +[**DwhMetricRangeResponse**](DwhMetricRangeResponse.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** | OK - metric ranges request was successfully executed | - | +**404** | Not Found - metric ranges result 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) + diff --git a/docs/NewAccountDTO.md b/docs/NewAccountDTO.md new file mode 100644 index 0000000..e4da3ce --- /dev/null +++ b/docs/NewAccountDTO.md @@ -0,0 +1,38 @@ +# NewAccountDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**given_name** | **str** | | +**surname** | **str** | | +**email** | **str** | | +**password** | **str** | | +**consent_granted** | **bool** | | [optional] +**phone_number** | **str** | | [optional] +**require_additional_attributes** | **bool** | | [optional] +**preferences** | [**AccountPreferences**](AccountPreferences.md) | | [optional] +**utm_parameters** | [**AccountUtmParameters**](AccountUtmParameters.md) | | [optional] +**job_info** | [**AccountJobInfo**](AccountJobInfo.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.new_account_dto import NewAccountDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of NewAccountDTO from a JSON string +new_account_dto_instance = NewAccountDTO.from_json(json) +# print the JSON string representation of the object +print(NewAccountDTO.to_json()) + +# convert the object into a dict +new_account_dto_dict = new_account_dto_instance.to_dict() +# create an instance of NewAccountDTO from a dict +new_account_dto_from_dict = NewAccountDTO.from_dict(new_account_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/OrderBy.md b/docs/OrderBy.md new file mode 100644 index 0000000..aafab96 --- /dev/null +++ b/docs/OrderBy.md @@ -0,0 +1,32 @@ +# OrderBy + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**var_property** | **object** | | [optional] +**property_id** | **str** | | [optional] +**direction** | **str** | | [optional] [default to 'asc'] +**nulls** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.order_by import OrderBy + +# TODO update the JSON string below +json = "{}" +# create an instance of OrderBy from a JSON string +order_by_instance = OrderBy.from_json(json) +# print the JSON string representation of the object +print(OrderBy.to_json()) + +# convert the object into a dict +order_by_dict = order_by_instance.to_dict() +# create an instance of OrderBy from a dict +order_by_from_dict = OrderBy.from_dict(order_by_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 index 7bbaf2b..4af16f1 100644 --- a/docs/OrganizationsApi.md +++ b/docs/OrganizationsApi.md @@ -16,7 +16,9 @@ Method | HTTP request | Description Creates a new organization. -**Security:** Creating of organization is restricted to CleverMaps platform administrators. +**Security:** +Creating of organization is restricted to CleverMaps platform administrators. + ### Example @@ -95,7 +97,9 @@ Name | Type | Description | Notes Delete an organization. -**Security:** Deleting of organization is restricted to CleverMaps platform administrators. +**Security:** +Deleting of organization is restricted to CleverMaps platform administrators. + ### Example @@ -326,7 +330,9 @@ Name | Type | Description | Notes Update organization. -**Security:** Updating of organization is restricted to CleverMaps platform administrators. +**Security:** +Updating of organization is restricted to CleverMaps platform administrators. + ### Example diff --git a/docs/OverlapsApi.md b/docs/OverlapsApi.md new file mode 100644 index 0000000..684d26d --- /dev/null +++ b/docs/OverlapsApi.md @@ -0,0 +1,189 @@ +# cm_python_openapi_sdk.OverlapsApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_overlaps**](OverlapsApi.md#accept_overlaps) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/overlaps | Accept overlaps +[**get_overlaps**](OverlapsApi.md#get_overlaps) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/overlaps/{dwhCacheId} | Get overlaps + + +# **accept_overlaps** +> QueriesResponse accept_overlaps(project_id, dwh_cluster_id, dwh_overlaps_request) + +Accept overlaps + +Computes set of operations between two objects for given metric on selected granularity level. The result is the metric value for the areas. + +Supported operations: + * `subtract` - metric value for areas exclusively covered by one object (areas covered by objectA subtract areas covered by objectB) + * `intersect` - metric value for areas covered by both objects (areas covered by objectA and by objectB) + * `major_dominance` - metric value for areas where an object has a major dominance (a value of it's metric is more than 90% in compare with the other object) + * `minor_dominance` - metric value for areas where an object has minor dominance (a value of it's metric is less than 90% but more than 60% in compare with the other object) + * `equivalent_dominance` - metric value for areas where both objects have a similar share (a ratio of metric's values is between 40 - 60%) + +This request starts an asynchronous action, which computes the overlaps result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getOverlaps](#operation/getOverlaps)). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_overlaps_request import DwhOverlapsRequest +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.OverlapsApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_overlaps_request = cm_python_openapi_sdk.DwhOverlapsRequest() # DwhOverlapsRequest | + + try: + # Accept overlaps + api_response = api_instance.accept_overlaps(project_id, dwh_cluster_id, dwh_overlaps_request) + print("The response of OverlapsApi->accept_overlaps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OverlapsApi->accept_overlaps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_overlaps_request** | [**DwhOverlapsRequest**](DwhOverlapsRequest.md)| | + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - request was accepted for processing | * location - URI of overlaps result
| + +[[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_overlaps** +> DwhOverlapsResponse get_overlaps(project_id, dwh_cluster_id, dwh_cache_id) + +Get overlaps + +Get the result of the asynchronous overlaps request submitted in [acceptOverlaps](#operation/acceptOverlaps). + +This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_overlaps_response import DwhOverlapsResponse +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.OverlapsApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + + try: + # Get overlaps + api_response = api_instance.get_overlaps(project_id, dwh_cluster_id, dwh_cache_id) + print("The response of OverlapsApi->get_overlaps:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OverlapsApi->get_overlaps: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + +### Return type + +[**DwhOverlapsResponse**](DwhOverlapsResponse.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** | OK - overlaps request was successfully executed | - | +**404** | Not Found - overlaps result 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) + diff --git a/docs/PartETag.md b/docs/PartETag.md new file mode 100644 index 0000000..598d5aa --- /dev/null +++ b/docs/PartETag.md @@ -0,0 +1,30 @@ +# PartETag + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**part_number** | **int** | | +**e_tag** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.part_e_tag import PartETag + +# TODO update the JSON string below +json = "{}" +# create an instance of PartETag from a JSON string +part_e_tag_instance = PartETag.from_json(json) +# print the JSON string representation of the object +print(PartETag.to_json()) + +# convert the object into a dict +part_e_tag_dict = part_e_tag_instance.to_dict() +# create an instance of PartETag from a dict +part_e_tag_from_dict = PartETag.from_dict(part_e_tag_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/PasswordChangeDTO.md b/docs/PasswordChangeDTO.md new file mode 100644 index 0000000..89dd1e6 --- /dev/null +++ b/docs/PasswordChangeDTO.md @@ -0,0 +1,30 @@ +# PasswordChangeDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**old_password** | **str** | | +**new_password** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PasswordChangeDTO from a JSON string +password_change_dto_instance = PasswordChangeDTO.from_json(json) +# print the JSON string representation of the object +print(PasswordChangeDTO.to_json()) + +# convert the object into a dict +password_change_dto_dict = password_change_dto_instance.to_dict() +# create an instance of PasswordChangeDTO from a dict +password_change_dto_from_dict = PasswordChangeDTO.from_dict(password_change_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/PositionDTO.md b/docs/PositionDTO.md new file mode 100644 index 0000000..5a8819c --- /dev/null +++ b/docs/PositionDTO.md @@ -0,0 +1,30 @@ +# PositionDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**lat** | **float** | | +**lng** | **float** | | + +## Example + +```python +from cm_python_openapi_sdk.models.position_dto import PositionDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of PositionDTO from a JSON string +position_dto_instance = PositionDTO.from_json(json) +# print the JSON string representation of the object +print(PositionDTO.to_json()) + +# convert the object into a dict +position_dto_dict = position_dto_instance.to_dict() +# create an instance of PositionDTO from a dict +position_dto_from_dict = PositionDTO.from_dict(position_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 index 2ec3764..dbc22bb 100644 --- a/docs/ProjectInvitationsApi.md +++ b/docs/ProjectInvitationsApi.md @@ -16,7 +16,11 @@ Method | HTTP request | Description 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. +User is specified by email address and invitation contains a project role. + +**Security:** +Restricted to ADMIN project role. + ### Example @@ -97,7 +101,12 @@ Name | Type | Description | Notes 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. +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 @@ -177,7 +186,15 @@ Name | Type | Description | Notes Get detail of an invitation. -An invitation status value is one of: - PENDING - ACCEPTED - CANCELED - EXPIRED **Security:** Restricted to ADMIN project role. +An invitation status value is one of: +- PENDING +- ACCEPTED +- CANCELED +- EXPIRED + +**Security:** +Restricted to ADMIN project role. + ### Example @@ -257,7 +274,9 @@ Name | Type | Description | Notes Get list of project invitations. -**Security:** Restricted to ADMIN project role. +**Security:** +Restricted to ADMIN project role. + ### Example @@ -343,7 +362,22 @@ Name | Type | Description | Notes 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. +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 diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 2c99aa2..8e2ca84 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -95,7 +95,9 @@ Name | Type | Description | Notes Delete project. -**Security:** Restricted to ADMIN project role. +**Security:** +Restricted to ADMIN project role. + ### Example @@ -170,7 +172,9 @@ void (empty response body) Get list of projects for authenticated account. -**Security:** Resource returns only those projects where the authenticated user is a member. +**Security:** +Resource returns only those projects where the authenticated user is a member. + ### Example @@ -258,7 +262,9 @@ Name | Type | Description | Notes Get project by given project id. -**Security:** Access is restricted only to users that are members of given project. +**Security:** +Access is restricted only to users that are members of given project. + ### Example @@ -338,7 +344,9 @@ Name | Type | Description | Notes Update the project. -**Security:** Restricted to ADMIN project role. +**Security:** +Restricted to ADMIN project role. + ### Example diff --git a/docs/PropertyValuesApi.md b/docs/PropertyValuesApi.md new file mode 100644 index 0000000..c697d61 --- /dev/null +++ b/docs/PropertyValuesApi.md @@ -0,0 +1,194 @@ +# cm_python_openapi_sdk.PropertyValuesApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_property_values**](PropertyValuesApi.md#accept_property_values) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/propertyValues | Accept property values +[**get_property_values**](PropertyValuesApi.md#get_property_values) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/propertyValues/{dwhCacheId} | Get property values + + +# **accept_property_values** +> QueriesResponse accept_property_values(project_id, dwh_cluster_id, dwh_property_values_request, size=size, page=page, sort=sort) + +Accept property values + +Gets list of distinct values of given dataset's property. The property is set by mandatory request body attribute `property`. The distinct values are returned as pageable response. By default, the values are ordered ascending by the property value. Optionaly the sort order can be changed and the values can be sorted by another propety (eg. sort day of week by day id instead of day name). + +This resource is typically used for fetching of the multiSelect and singleSelect filter content. + +This request starts an asynchronous action, which computes the property values result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValues](#operation/getPropertyValues)). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_property_values_request import DwhPropertyValuesRequest +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.PropertyValuesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_property_values_request = cm_python_openapi_sdk.DwhPropertyValuesRequest() # DwhPropertyValuesRequest | + size = 200 # int | The count of records to return for one page (optional) (default to 200) + 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) + + try: + # Accept property values + api_response = api_instance.accept_property_values(project_id, dwh_cluster_id, dwh_property_values_request, size=size, page=page, sort=sort) + print("The response of PropertyValuesApi->accept_property_values:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PropertyValuesApi->accept_property_values: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_property_values_request** | [**DwhPropertyValuesRequest**](DwhPropertyValuesRequest.md)| | + **size** | **int**| The count of records to return for one page | [optional] [default to 200] + **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] + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - request was accepted for processing | * location - URI of overlaps result
| + +[[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_property_values** +> PropertyValuesResponse get_property_values(project_id, dwh_cluster_id, dwh_cache_id, size=size, page=page) + +Get property values + +Get the result of the asynchronous property values request submitted in [acceptPropertyValues](#operation/acceptPropertyValues). + +This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.property_values_response import PropertyValuesResponse +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.PropertyValuesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + size = 200 # int | The count of records to return for one page (optional) (default to 200) + page = 0 # int | Number of the page (optional) (default to 0) + + try: + # Get property values + api_response = api_instance.get_property_values(project_id, dwh_cluster_id, dwh_cache_id, size=size, page=page) + print("The response of PropertyValuesApi->get_property_values:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PropertyValuesApi->get_property_values: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + **size** | **int**| The count of records to return for one page | [optional] [default to 200] + **page** | **int**| Number of the page | [optional] [default to 0] + +### Return type + +[**PropertyValuesResponse**](PropertyValuesResponse.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** | OK - property values was successfully executed | - | +**404** | Not Found - property values result 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) + diff --git a/docs/PropertyValuesDistributionApi.md b/docs/PropertyValuesDistributionApi.md new file mode 100644 index 0000000..3a038e7 --- /dev/null +++ b/docs/PropertyValuesDistributionApi.md @@ -0,0 +1,182 @@ +# cm_python_openapi_sdk.PropertyValuesDistributionApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_property_values_distribution**](PropertyValuesDistributionApi.md#accept_property_values_distribution) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/propertyValuesDistributions | +[**get_property_values_distribution**](PropertyValuesDistributionApi.md#get_property_values_distribution) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/propertyValuesDistributions/{dwhCacheId} | + + +# **accept_property_values_distribution** +> QueriesResponse accept_property_values_distribution(project_id, dwh_cluster_id, dwh_property_values_distribution_request) + +Computes the distribution (frequency) of given fact (numeric dataset property). Result is splitted into required number of equal size buckets. The frequency is the count of occurencies of given metric in these buckets. + +This resource is typically used for the histogram filter distribution. + +This request starts an asynchronous action, which computes the property values distributions result and returns the location URI of the result in `location` response header. To get the result, client must make another GET request on this URI (see [getPropertyValuesDistribution](#operation/getPropertyValuesDistribution)). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_property_values_distribution_request import DwhPropertyValuesDistributionRequest +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.PropertyValuesDistributionApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_property_values_distribution_request = cm_python_openapi_sdk.DwhPropertyValuesDistributionRequest() # DwhPropertyValuesDistributionRequest | + + try: + api_response = api_instance.accept_property_values_distribution(project_id, dwh_cluster_id, dwh_property_values_distribution_request) + print("The response of PropertyValuesDistributionApi->accept_property_values_distribution:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PropertyValuesDistributionApi->accept_property_values_distribution: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_property_values_distribution_request** | [**DwhPropertyValuesDistributionRequest**](DwhPropertyValuesDistributionRequest.md)| | + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - request was accepted for processing | * location - URI of overlaps result
| + +[[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_property_values_distribution** +> DwhMetricValuesDistributionResponse get_property_values_distribution(project_id, dwh_cluster_id, dwh_cache_id, null_cache_id, var_property) + +Get the result of the asynchronous property values distributions request submitted in [acceptPropertyValuesDistribution](#operation/acceptPropertyValuesDistribution). + +This endpoint implements long polling - see details in [getQueries](#operation/getQueries). + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_metric_values_distribution_response import DwhMetricValuesDistributionResponse +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.PropertyValuesDistributionApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + null_cache_id = 'q:vb2b3d8v91jao331:Ntit7mTcDMxvj7DTI6wuFA' # str | The ID of a cached null values distribution result + var_property = 'baskets.amount' # str | Dataset's property identifier + + try: + api_response = api_instance.get_property_values_distribution(project_id, dwh_cluster_id, dwh_cache_id, null_cache_id, var_property) + print("The response of PropertyValuesDistributionApi->get_property_values_distribution:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling PropertyValuesDistributionApi->get_property_values_distribution: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + **null_cache_id** | **str**| The ID of a cached null values distribution result | + **var_property** | **str**| Dataset's property identifier | + +### Return type + +[**DwhMetricValuesDistributionResponse**](DwhMetricValuesDistributionResponse.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** | OK - property values distributions was successfully executed | - | +**404** | Not Found - property values distributions result 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) + diff --git a/docs/PropertyValuesResponse.md b/docs/PropertyValuesResponse.md new file mode 100644 index 0000000..7ff02a5 --- /dev/null +++ b/docs/PropertyValuesResponse.md @@ -0,0 +1,31 @@ +# PropertyValuesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[PropertyValuesResponseContentInner]**](PropertyValuesResponseContentInner.md) | | +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | +**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.property_values_response import PropertyValuesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of PropertyValuesResponse from a JSON string +property_values_response_instance = PropertyValuesResponse.from_json(json) +# print the JSON string representation of the object +print(PropertyValuesResponse.to_json()) + +# convert the object into a dict +property_values_response_dict = property_values_response_instance.to_dict() +# create an instance of PropertyValuesResponse from a dict +property_values_response_from_dict = PropertyValuesResponse.from_dict(property_values_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/PropertyValuesResponseContentInner.md b/docs/PropertyValuesResponseContentInner.md new file mode 100644 index 0000000..0b09d47 --- /dev/null +++ b/docs/PropertyValuesResponseContentInner.md @@ -0,0 +1,28 @@ +# PropertyValuesResponseContentInner + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cm_python_openapi_sdk.models.property_values_response_content_inner import PropertyValuesResponseContentInner + +# TODO update the JSON string below +json = "{}" +# create an instance of PropertyValuesResponseContentInner from a JSON string +property_values_response_content_inner_instance = PropertyValuesResponseContentInner.from_json(json) +# print the JSON string representation of the object +print(PropertyValuesResponseContentInner.to_json()) + +# convert the object into a dict +property_values_response_content_inner_dict = property_values_response_content_inner_instance.to_dict() +# create an instance of PropertyValuesResponseContentInner from a dict +property_values_response_content_inner_from_dict = PropertyValuesResponseContentInner.from_dict(property_values_response_content_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/QueriesApi.md b/docs/QueriesApi.md new file mode 100644 index 0000000..9292094 --- /dev/null +++ b/docs/QueriesApi.md @@ -0,0 +1,199 @@ +# cm_python_openapi_sdk.QueriesApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**accept_queries**](QueriesApi.md#accept_queries) | **POST** /projects/{projectId}/dwh/{dwhClusterId}/queries | Accept queries +[**get_queries**](QueriesApi.md#get_queries) | **GET** /projects/{projectId}/dwh/{dwhClusterId}/queries/{dwhCacheId} | Get queries + + +# **accept_queries** +> QueriesResponse accept_queries(project_id, dwh_cluster_id, dwh_query_request1, size=size, page=page) + +Accept queries + +Accepts a query to be computed on a data warehouse. This is the main endpoint for computing data messages on a multidimensional data model. + +The POST of an query request starts an asynchronous task and returns the location URI of the result in `location` response header. +To get the status of asynchronous report result computation, client must make another GET request on the URI from `location` header (see [getQueries](#operation/getQueries)). + +More information about functions and building CleverMaps metrics is described in the developer documentation: +- [Metric's documentation](https://docs.clevermaps.io/docs/metrics) +- [DWH query function list](https://docs.clevermaps.io/docs/metrics#Metrics-DWHqueryfunctionlistDWH-query-function-list) +- [Filter operators list ](https://docs.clevermaps.io/docs/metrics#Metrics-FilteroperatorslistFilter-operators-list) +- [Metrics cheatsheet](https://docs.clevermaps.io/docs/metrics-cheatsheet) + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.dwh_query_request1 import DwhQueryRequest1 +from cm_python_openapi_sdk.models.queries_response import QueriesResponse +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.QueriesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_query_request1 = cm_python_openapi_sdk.DwhQueryRequest1() # DwhQueryRequest1 | + size = 200 # int | The count of records to return for one page (optional) (default to 200) + page = 0 # int | Number of the page (optional) (default to 0) + + try: + # Accept queries + api_response = api_instance.accept_queries(project_id, dwh_cluster_id, dwh_query_request1, size=size, page=page) + print("The response of QueriesApi->accept_queries:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling QueriesApi->accept_queries: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_query_request1** | [**DwhQueryRequest1**](DwhQueryRequest1.md)| | + **size** | **int**| The count of records to return for one page | [optional] [default to 200] + **page** | **int**| Number of the page | [optional] [default to 0] + +### Return type + +[**QueriesResponse**](QueriesResponse.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** | Accepted - query was successfully accepted for processing | * location - URI of overlaps result
| + +[[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_queries** +> QueryResponse get_queries(project_id, dwh_cluster_id, dwh_cache_id) + +Get queries + +Get the result of the asynchronous query request submitted in [acceptQueries](#operation/acceptQueries). + +This endpoint implements long polling - the client polls the Location URI and the server holds the request open until the query result is available. Then returns either successful or failed response. + +It is also possible that the request will time out and respond with 404 after 30s. This can mean two things: +* The result is still being computed +* The result was not found + +In that case, the client can make another request and wait if the result will be computed in another 30s interval. The number of repeated GET requests is up to the client. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.query_response import QueryResponse +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.QueriesApi(api_client) + project_id = 'project_id_example' # str | Id of the project + dwh_cluster_id = 'dwh_cluster_id_example' # str | Id of the dwh cluster + dwh_cache_id = 'q:vb2b3d8v91jao331:DqBZN5IjSwfufj-7rDMAOQ' # str | Id of the dwh cache + + try: + # Get queries + api_response = api_instance.get_queries(project_id, dwh_cluster_id, dwh_cache_id) + print("The response of QueriesApi->get_queries:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling QueriesApi->get_queries: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **dwh_cluster_id** | **str**| Id of the dwh cluster | + **dwh_cache_id** | **str**| Id of the dwh cache | + +### Return type + +[**QueryResponse**](QueryResponse.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** | OK - query was successfully executed | - | +**404** | Not Found - the cache 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) + diff --git a/docs/QueriesResponse.md b/docs/QueriesResponse.md new file mode 100644 index 0000000..635f98f --- /dev/null +++ b/docs/QueriesResponse.md @@ -0,0 +1,29 @@ +# QueriesResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**execution_detail** | [**ExecutionDetail**](ExecutionDetail.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of QueriesResponse from a JSON string +queries_response_instance = QueriesResponse.from_json(json) +# print the JSON string representation of the object +print(QueriesResponse.to_json()) + +# convert the object into a dict +queries_response_dict = queries_response_instance.to_dict() +# create an instance of QueriesResponse from a dict +queries_response_from_dict = QueriesResponse.from_dict(queries_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/QueryHitDTO.md b/docs/QueryHitDTO.md new file mode 100644 index 0000000..c4e2922 --- /dev/null +++ b/docs/QueryHitDTO.md @@ -0,0 +1,34 @@ +# QueryHitDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **str** | | +**subtitle** | **str** | | +**highlight** | [**HighlightDTO**](HighlightDTO.md) | | [optional] +**position** | [**PositionDTO**](PositionDTO.md) | | +**bounding_box** | [**BoundingBoxDTO**](BoundingBoxDTO.md) | | [optional] +**place_type** | **str** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.query_hit_dto import QueryHitDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of QueryHitDTO from a JSON string +query_hit_dto_instance = QueryHitDTO.from_json(json) +# print the JSON string representation of the object +print(QueryHitDTO.to_json()) + +# convert the object into a dict +query_hit_dto_dict = query_hit_dto_instance.to_dict() +# create an instance of QueryHitDTO from a dict +query_hit_dto_from_dict = QueryHitDTO.from_dict(query_hit_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/QueryResponse.md b/docs/QueryResponse.md new file mode 100644 index 0000000..a73b56b --- /dev/null +++ b/docs/QueryResponse.md @@ -0,0 +1,32 @@ +# QueryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[QueryResponseItemWrapper]**](QueryResponseItemWrapper.md) | | +**execution_detail** | [**ExecutionDetail**](ExecutionDetail.md) | | [optional] +**links** | **List[object]** | define keys links and page that are mandatory for all pageble responses | +**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.query_response import QueryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of QueryResponse from a JSON string +query_response_instance = QueryResponse.from_json(json) +# print the JSON string representation of the object +print(QueryResponse.to_json()) + +# convert the object into a dict +query_response_dict = query_response_instance.to_dict() +# create an instance of QueryResponse from a dict +query_response_from_dict = QueryResponse.from_dict(query_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/QueryResponseItemWrapper.md b/docs/QueryResponseItemWrapper.md new file mode 100644 index 0000000..5ded3de --- /dev/null +++ b/docs/QueryResponseItemWrapper.md @@ -0,0 +1,29 @@ +# QueryResponseItemWrapper + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **object** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.query_response_item_wrapper import QueryResponseItemWrapper + +# TODO update the JSON string below +json = "{}" +# create an instance of QueryResponseItemWrapper from a JSON string +query_response_item_wrapper_instance = QueryResponseItemWrapper.from_json(json) +# print the JSON string representation of the object +print(QueryResponseItemWrapper.to_json()) + +# convert the object into a dict +query_response_item_wrapper_dict = query_response_item_wrapper_instance.to_dict() +# create an instance of QueryResponseItemWrapper from a dict +query_response_item_wrapper_from_dict = QueryResponseItemWrapper.from_dict(query_response_item_wrapper_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/ResetPasswordDTO.md b/docs/ResetPasswordDTO.md new file mode 100644 index 0000000..7a9b306 --- /dev/null +++ b/docs/ResetPasswordDTO.md @@ -0,0 +1,30 @@ +# ResetPasswordDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**new_password** | **str** | | +**consent_granted** | **bool** | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.reset_password_dto import ResetPasswordDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of ResetPasswordDTO from a JSON string +reset_password_dto_instance = ResetPasswordDTO.from_json(json) +# print the JSON string representation of the object +print(ResetPasswordDTO.to_json()) + +# convert the object into a dict +reset_password_dto_dict = reset_password_dto_instance.to_dict() +# create an instance of ResetPasswordDTO from a dict +reset_password_dto_from_dict = ResetPasswordDTO.from_dict(reset_password_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/RestrictedAccountDTO.md b/docs/RestrictedAccountDTO.md new file mode 100644 index 0000000..2ac4d71 --- /dev/null +++ b/docs/RestrictedAccountDTO.md @@ -0,0 +1,33 @@ +# RestrictedAccountDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **str** | | +**full_name** | **str** | | +**email** | **str** | | +**status** | **str** | | +**preferences** | [**AccountPreferences**](AccountPreferences.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.restricted_account_dto import RestrictedAccountDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of RestrictedAccountDTO from a JSON string +restricted_account_dto_instance = RestrictedAccountDTO.from_json(json) +# print the JSON string representation of the object +print(RestrictedAccountDTO.to_json()) + +# convert the object into a dict +restricted_account_dto_dict = restricted_account_dto_instance.to_dict() +# create an instance of RestrictedAccountDTO from a dict +restricted_account_dto_from_dict = RestrictedAccountDTO.from_dict(restricted_account_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/ResultSetFilter.md b/docs/ResultSetFilter.md new file mode 100644 index 0000000..085d6ca --- /dev/null +++ b/docs/ResultSetFilter.md @@ -0,0 +1,31 @@ +# ResultSetFilter + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter + +# TODO update the JSON string below +json = "{}" +# create an instance of ResultSetFilter from a JSON string +result_set_filter_instance = ResultSetFilter.from_json(json) +# print the JSON string representation of the object +print(ResultSetFilter.to_json()) + +# convert the object into a dict +result_set_filter_dict = result_set_filter_instance.to_dict() +# create an instance of ResultSetFilter from a dict +result_set_filter_from_dict = ResultSetFilter.from_dict(result_set_filter_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/ResultSetFilterComp.md b/docs/ResultSetFilterComp.md new file mode 100644 index 0000000..dd9827b --- /dev/null +++ b/docs/ResultSetFilterComp.md @@ -0,0 +1,31 @@ +# ResultSetFilterComp + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **object** | | [optional] +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.result_set_filter_comp import ResultSetFilterComp + +# TODO update the JSON string below +json = "{}" +# create an instance of ResultSetFilterComp from a JSON string +result_set_filter_comp_instance = ResultSetFilterComp.from_json(json) +# print the JSON string representation of the object +print(ResultSetFilterComp.to_json()) + +# convert the object into a dict +result_set_filter_comp_dict = result_set_filter_comp_instance.to_dict() +# create an instance of ResultSetFilterComp from a dict +result_set_filter_comp_from_dict = ResultSetFilterComp.from_dict(result_set_filter_comp_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/ResultSetFilterIn.md b/docs/ResultSetFilterIn.md new file mode 100644 index 0000000..a733152 --- /dev/null +++ b/docs/ResultSetFilterIn.md @@ -0,0 +1,31 @@ +# ResultSetFilterIn + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**value** | **List[object]** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.result_set_filter_in import ResultSetFilterIn + +# TODO update the JSON string below +json = "{}" +# create an instance of ResultSetFilterIn from a JSON string +result_set_filter_in_instance = ResultSetFilterIn.from_json(json) +# print the JSON string representation of the object +print(ResultSetFilterIn.to_json()) + +# convert the object into a dict +result_set_filter_in_dict = result_set_filter_in_instance.to_dict() +# create an instance of ResultSetFilterIn from a dict +result_set_filter_in_from_dict = ResultSetFilterIn.from_dict(result_set_filter_in_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/ResultSetFilterUnary.md b/docs/ResultSetFilterUnary.md new file mode 100644 index 0000000..5485b20 --- /dev/null +++ b/docs/ResultSetFilterUnary.md @@ -0,0 +1,30 @@ +# ResultSetFilterUnary + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property_id** | **str** | | +**operator** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.result_set_filter_unary import ResultSetFilterUnary + +# TODO update the JSON string below +json = "{}" +# create an instance of ResultSetFilterUnary from a JSON string +result_set_filter_unary_instance = ResultSetFilterUnary.from_json(json) +# print the JSON string representation of the object +print(ResultSetFilterUnary.to_json()) + +# convert the object into a dict +result_set_filter_unary_dict = result_set_filter_unary_instance.to_dict() +# create an instance of ResultSetFilterUnary from a dict +result_set_filter_unary_from_dict = ResultSetFilterUnary.from_dict(result_set_filter_unary_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/SearchApi.md b/docs/SearchApi.md new file mode 100644 index 0000000..13d78ef --- /dev/null +++ b/docs/SearchApi.md @@ -0,0 +1,191 @@ +# cm_python_openapi_sdk.SearchApi + +All URIs are relative to *https://staging.dev.clevermaps.io/rest* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**full_text_search**](SearchApi.md#full_text_search) | **GET** /projects/{projectId}/search | Full text search on all internal project data. +[**geographic_search**](SearchApi.md#geographic_search) | **GET** /geosearch | Geographic search + + +# **full_text_search** +> SearchQueryResponse full_text_search(project_id, query, page=page, size=size, dataset=dataset) + +Full text search on all internal project data. + +Full text search on all internal project data. +The search service indexes title and subtitle of all geometry datasets +(`geometryPoint`, `geometryLine`, `geometryPolygon`). + +The dataset is indexed during dataset `pull job`. It means that if the `title` or `subtitle` +definition is changed in dataset's metadata definition, the affected dataset must be fully loaded again. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse +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.SearchApi(api_client) + project_id = 'project_id_example' # str | Id of the project + query = 'Birmingham' # str | Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`. + 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) + dataset = 'district' # str | Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers` (optional) + + try: + # Full text search on all internal project data. + api_response = api_instance.full_text_search(project_id, query, page=page, size=size, dataset=dataset) + print("The response of SearchApi->full_text_search:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SearchApi->full_text_search: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **project_id** | **str**| Id of the project | + **query** | **str**| Query search phrase. It is split into terms and the resource return dataset's object that contains all terms in their `title` or `subtitle`. | + **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] + **dataset** | **str**| Search only in given dataset. If the parameter present, only the search results of given datasets are returned. Parameter can be repeated, e.g. `&dataset=orders&dataset=customers` | [optional] + +### Return type + +[**SearchQueryResponse**](SearchQueryResponse.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) + +# **geographic_search** +> GeosearchPagedModelDTO geographic_search(query, page=page, size=size, country=country, language=language, types=types) + +Geographic search + +Wrapper of [Mapbox Geocoding service](https://docs.mapbox.com/api/search/geocoding/). Processes the query and validates the URL parameters. If the query is valid, it is executed on Mapbox API. The result is then translated and returned. + + +### Example + +* Bearer Authentication (bearerAuth): + +```python +import cm_python_openapi_sdk +from cm_python_openapi_sdk.models.geosearch_paged_model_dto import GeosearchPagedModelDTO +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.SearchApi(api_client) + query = 'Birmingham' # str | Query search phrase. It is highlighted in the query result. + 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) + country = 'GB' # str | Array of ISO 3166 alpha-2 country codes to limit the search. (optional) + language = 'en' # str | Language to use for query results as defined by ISO 639-1. (optional) + types = 'city, locality, address' # str | Array of place types, available types are [region, district, city, locality, address, postcode] (optional) + + try: + # Geographic search + api_response = api_instance.geographic_search(query, page=page, size=size, country=country, language=language, types=types) + print("The response of SearchApi->geographic_search:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SearchApi->geographic_search: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **query** | **str**| Query search phrase. It is highlighted in the query result. | + **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] + **country** | **str**| Array of ISO 3166 alpha-2 country codes to limit the search. | [optional] + **language** | **str**| Language to use for query results as defined by ISO 639-1. | [optional] + **types** | **str**| Array of place types, available types are [region, district, city, locality, address, postcode] | [optional] + +### Return type + +[**GeosearchPagedModelDTO**](GeosearchPagedModelDTO.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/SearchQueryHit.md b/docs/SearchQueryHit.md new file mode 100644 index 0000000..4ffb1ba --- /dev/null +++ b/docs/SearchQueryHit.md @@ -0,0 +1,33 @@ +# SearchQueryHit + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | [**SearchQueryHitId**](SearchQueryHitId.md) | | +**dataset** | **str** | | +**title** | **str** | | +**subtitle** | **str** | | +**highlight** | [**HitHighlight**](HitHighlight.md) | | [optional] + +## Example + +```python +from cm_python_openapi_sdk.models.search_query_hit import SearchQueryHit + +# TODO update the JSON string below +json = "{}" +# create an instance of SearchQueryHit from a JSON string +search_query_hit_instance = SearchQueryHit.from_json(json) +# print the JSON string representation of the object +print(SearchQueryHit.to_json()) + +# convert the object into a dict +search_query_hit_dict = search_query_hit_instance.to_dict() +# create an instance of SearchQueryHit from a dict +search_query_hit_from_dict = SearchQueryHit.from_dict(search_query_hit_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/SearchQueryHitId.md b/docs/SearchQueryHitId.md new file mode 100644 index 0000000..ed440cc --- /dev/null +++ b/docs/SearchQueryHitId.md @@ -0,0 +1,28 @@ +# SearchQueryHitId + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +## Example + +```python +from cm_python_openapi_sdk.models.search_query_hit_id import SearchQueryHitId + +# TODO update the JSON string below +json = "{}" +# create an instance of SearchQueryHitId from a JSON string +search_query_hit_id_instance = SearchQueryHitId.from_json(json) +# print the JSON string representation of the object +print(SearchQueryHitId.to_json()) + +# convert the object into a dict +search_query_hit_id_dict = search_query_hit_id_instance.to_dict() +# create an instance of SearchQueryHitId from a dict +search_query_hit_id_from_dict = SearchQueryHitId.from_dict(search_query_hit_id_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SearchQueryResponse.md b/docs/SearchQueryResponse.md new file mode 100644 index 0000000..dc6866f --- /dev/null +++ b/docs/SearchQueryResponse.md @@ -0,0 +1,31 @@ +# SearchQueryResponse + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | [**List[SearchQueryHit]**](SearchQueryHit.md) | | +**links** | **List[object]** | | +**page** | [**MandatoryKeysForPagableResponse**](MandatoryKeysForPagableResponse.md) | | + +## Example + +```python +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of SearchQueryResponse from a JSON string +search_query_response_instance = SearchQueryResponse.from_json(json) +# print the JSON string representation of the object +print(SearchQueryResponse.to_json()) + +# convert the object into a dict +search_query_response_dict = search_query_response_instance.to_dict() +# create an instance of SearchQueryResponse from a dict +search_query_response_from_dict = SearchQueryResponse.from_dict(search_query_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/SendResetPasswordDTO.md b/docs/SendResetPasswordDTO.md new file mode 100644 index 0000000..00cd043 --- /dev/null +++ b/docs/SendResetPasswordDTO.md @@ -0,0 +1,29 @@ +# SendResetPasswordDTO + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **str** | | + +## Example + +```python +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO + +# TODO update the JSON string below +json = "{}" +# create an instance of SendResetPasswordDTO from a JSON string +send_reset_password_dto_instance = SendResetPasswordDTO.from_json(json) +# print the JSON string representation of the object +print(SendResetPasswordDTO.to_json()) + +# convert the object into a dict +send_reset_password_dto_dict = send_reset_password_dto_instance.to_dict() +# create an instance of SendResetPasswordDTO from a dict +send_reset_password_dto_from_dict = SendResetPasswordDTO.from_dict(send_reset_password_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/VariableValue.md b/docs/VariableValue.md new file mode 100644 index 0000000..22d4181 --- /dev/null +++ b/docs/VariableValue.md @@ -0,0 +1,30 @@ +# VariableValue + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**variable** | **str** | | +**value** | **float** | | + +## Example + +```python +from cm_python_openapi_sdk.models.variable_value import VariableValue + +# TODO update the JSON string below +json = "{}" +# create an instance of VariableValue from a JSON string +variable_value_instance = VariableValue.from_json(json) +# print the JSON string representation of the object +print(VariableValue.to_json()) + +# convert the object into a dict +variable_value_dict = variable_value_instance.to_dict() +# create an instance of VariableValue from a dict +variable_value_from_dict = VariableValue.from_dict(variable_value_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/git_push.sh b/git_push.sh index f53a75d..a72d96f 100644 --- a/git_push.sh +++ b/git_push.sh @@ -14,12 +14,12 @@ if [ "$git_host" = "" ]; then fi if [ "$git_user_id" = "" ]; then - git_user_id="GIT_USER_ID" + git_user_id="clevermaps" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then - git_repo_id="GIT_REPO_ID" + git_repo_id="cm-python-openapi-sdk" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi diff --git a/pyproject.toml b/pyproject.toml index bbc692d..363d5b2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,10 +2,10 @@ name = "cm_python_openapi_sdk" version = "1.0.0" description = "clevermaps-client" -authors = ["OpenAPI Generator Community "] -license = "NoLicense" +authors = ["CleverMaps, a.s. "] +license = "MIT" readme = "README.md" -repository = "https://github.com/GIT_USER_ID/GIT_REPO_ID" +repository = "https://github.com/clevermaps/cm-python-openapi-sdk" keywords = ["OpenAPI", "OpenAPI-Generator", "clevermaps-client"] include = ["cm_python_openapi_sdk/py.typed"] diff --git a/setup.py b/setup.py index 37ccb05..0ed7832 100644 --- a/setup.py +++ b/setup.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -34,16 +35,17 @@ name=NAME, version=VERSION, description="clevermaps-client", - author="OpenAPI Generator community", - author_email="team@openapitools.org", + author="CleverMaps, a.s.", + author_email="support@clevermaps.io", url="", keywords=["OpenAPI", "OpenAPI-Generator", "clevermaps-client"], install_requires=REQUIRES, packages=find_packages(exclude=["test", "tests"]), include_package_data=True, + license="MIT", long_description_content_type='text/markdown', long_description="""\ - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations """, # noqa: E501 package_data={"cm_python_openapi_sdk": ["py.typed"]}, ) \ No newline at end of file diff --git a/test/test_account_dto.py b/test/test_account_dto.py new file mode 100644 index 0000000..8ee08f1 --- /dev/null +++ b/test/test_account_dto.py @@ -0,0 +1,68 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.account_dto import AccountDTO + +class TestAccountDTO(unittest.TestCase): + """AccountDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccountDTO: + """Test AccountDTO + 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 `AccountDTO` + """ + model = AccountDTO() + if include_optional: + return AccountDTO( + id = '', + full_name = '0', + email = '', + consent_granted = True, + status = 'ENABLED', + anonymous = True, + phone_number = '012345', + require_additional_attributes = True, + preferences = {sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, + onboarding = {introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, + job_info = {companyName=companyName, industry=industry, jobPosition=jobPosition}, + links = [ + None + ] + ) + else: + return AccountDTO( + id = '', + full_name = '0', + email = '', + ) + """ + + def testAccountDTO(self): + """Test AccountDTO""" + # 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_account_job_info.py b/test/test_account_job_info.py new file mode 100644 index 0000000..1d351a8 --- /dev/null +++ b/test/test_account_job_info.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.account_job_info import AccountJobInfo + +class TestAccountJobInfo(unittest.TestCase): + """AccountJobInfo unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccountJobInfo: + """Test AccountJobInfo + 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 `AccountJobInfo` + """ + model = AccountJobInfo() + if include_optional: + return AccountJobInfo( + company_name = '0', + job_position = '0', + industry = '0' + ) + else: + return AccountJobInfo( + ) + """ + + def testAccountJobInfo(self): + """Test AccountJobInfo""" + # 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_account_onboarding_parameters.py b/test/test_account_onboarding_parameters.py new file mode 100644 index 0000000..7360465 --- /dev/null +++ b/test/test_account_onboarding_parameters.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.account_onboarding_parameters import AccountOnboardingParameters + +class TestAccountOnboardingParameters(unittest.TestCase): + """AccountOnboardingParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccountOnboardingParameters: + """Test AccountOnboardingParameters + 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 `AccountOnboardingParameters` + """ + model = AccountOnboardingParameters() + if include_optional: + return AccountOnboardingParameters( + intro_shown = [ + '' + ], + tips_shown = [ + '' + ] + ) + else: + return AccountOnboardingParameters( + ) + """ + + def testAccountOnboardingParameters(self): + """Test AccountOnboardingParameters""" + # 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_account_preferences.py b/test/test_account_preferences.py new file mode 100644 index 0000000..8dbcb8e --- /dev/null +++ b/test/test_account_preferences.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.account_preferences import AccountPreferences + +class TestAccountPreferences(unittest.TestCase): + """AccountPreferences unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccountPreferences: + """Test AccountPreferences + 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 `AccountPreferences` + """ + model = AccountPreferences() + if include_optional: + return AccountPreferences( + language = '01', + last_active_project = 'w8q6zgckec0l3o4g', + last_active_organization = 'w8q6zgckec0l3o4g', + send_newsletter = True + ) + else: + return AccountPreferences( + ) + """ + + def testAccountPreferences(self): + """Test AccountPreferences""" + # 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_account_utm_parameters.py b/test/test_account_utm_parameters.py new file mode 100644 index 0000000..f1f1a16 --- /dev/null +++ b/test/test_account_utm_parameters.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.account_utm_parameters import AccountUtmParameters + +class TestAccountUtmParameters(unittest.TestCase): + """AccountUtmParameters unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AccountUtmParameters: + """Test AccountUtmParameters + 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 `AccountUtmParameters` + """ + model = AccountUtmParameters() + if include_optional: + return AccountUtmParameters( + medium = '', + source = '', + campaign = '', + referrer = '' + ) + else: + return AccountUtmParameters( + ) + """ + + def testAccountUtmParameters(self): + """Test AccountUtmParameters""" + # 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_accounts_api.py b/test/test_accounts_api.py new file mode 100644 index 0000000..fe9521b --- /dev/null +++ b/test/test_accounts_api.py @@ -0,0 +1,88 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.accounts_api import AccountsApi + + +class TestAccountsApi(unittest.TestCase): + """AccountsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AccountsApi() + + def tearDown(self) -> None: + pass + + def test_change_onboarding(self) -> None: + """Test case for change_onboarding + + Change account onboarding + """ + pass + + def test_change_password(self) -> None: + """Test case for change_password + + Change password + """ + pass + + def test_change_preferences(self) -> None: + """Test case for change_preferences + + Change account preferences + """ + pass + + def test_delete_account_by_id(self) -> None: + """Test case for delete_account_by_id + + Delete account. + """ + pass + + def test_get_account_by_account_id(self) -> None: + """Test case for get_account_by_account_id + + Get account by accountId + """ + pass + + def test_get_account_by_email(self) -> None: + """Test case for get_account_by_email + + Find if account with email exists. + """ + pass + + def test_get_current_account(self) -> None: + """Test case for get_current_account + + Get current account. + """ + pass + + def test_register_account(self) -> None: + """Test case for register_account + + Register new account + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_accounts_reset_password_api.py b/test/test_accounts_reset_password_api.py new file mode 100644 index 0000000..e389f13 --- /dev/null +++ b/test/test_accounts_reset_password_api.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.accounts_reset_password_api import AccountsResetPasswordApi + + +class TestAccountsResetPasswordApi(unittest.TestCase): + """AccountsResetPasswordApi unit test stubs""" + + def setUp(self) -> None: + self.api = AccountsResetPasswordApi() + + def tearDown(self) -> None: + pass + + def test_reset_password_with_token(self) -> None: + """Test case for reset_password_with_token + + Finish reset password with token + """ + pass + + def test_send_reset_password_token(self) -> None: + """Test case for send_reset_password_token + + Ask for reset password token + """ + pass + + def test_verify_reset_password_token(self) -> None: + """Test case for verify_reset_password_token + + Verify reset password token is valid + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_active_date_filter_dto.py b/test/test_active_date_filter_dto.py index 2663ec7..18e5d16 100644 --- a/test/test_active_date_filter_dto.py +++ b/test/test_active_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,17 +36,13 @@ def make_instance(self, include_optional) -> ActiveDateFilterDTO: model = ActiveDateFilterDTO() if include_optional: return ActiveDateFilterDTO( - default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO( - start_date = null, - end_date = null, ), + default_values = {endDate=null, startDate={value=value}}, type = 'date', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0' ) else: return ActiveDateFilterDTO( - default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO( - start_date = null, - end_date = null, ), + default_values = {endDate=null, startDate={value=value}}, type = 'date', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', ) diff --git a/test/test_active_feature_filter_dto.py b/test/test_active_feature_filter_dto.py index ff2bf75..a34eb59 100644 --- a/test/test_active_feature_filter_dto.py +++ b/test/test_active_feature_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_active_filter_abstract_type.py b/test/test_active_filter_abstract_type.py index 39bd5f4..4733629 100644 --- a/test/test_active_filter_abstract_type.py +++ b/test/test_active_filter_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,14 +40,9 @@ def make_instance(self, include_optional) -> ActiveFilterAbstractType: value = '', ), type = 'date', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), + format = {symbol=symbol, type=number, fraction=0}, order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ], indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', filter_selection = True, diff --git a/test/test_active_global_date_filter_dto.py b/test/test_active_global_date_filter_dto.py index 8accdd4..984e357 100644 --- a/test/test_active_global_date_filter_dto.py +++ b/test/test_active_global_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,17 +36,13 @@ def make_instance(self, include_optional) -> ActiveGlobalDateFilterDTO: model = ActiveGlobalDateFilterDTO() if include_optional: return ActiveGlobalDateFilterDTO( - default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO( - start_date = null, - end_date = null, ), + default_values = {endDate=null, startDate={value=value}}, type = 'globalDate', var_property = 'awat5ikwowtta-3mh2lcafqw3zhesit6mckwqaot6282x4vh' ) else: return ActiveGlobalDateFilterDTO( - default_values = cm_python_openapi_sdk.models.default_values_date_dto.DefaultValuesDateDTO( - start_date = null, - end_date = null, ), + default_values = {endDate=null, startDate={value=value}}, type = 'globalDate', var_property = 'awat5ikwowtta-3mh2lcafqw3zhesit6mckwqaot6282x4vh', ) diff --git a/test/test_active_histogram_filter_dto.py b/test/test_active_histogram_filter_dto.py index bb1bd89..a0f594b 100644 --- a/test/test_active_histogram_filter_dto.py +++ b/test/test_active_histogram_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,21 +38,18 @@ def make_instance(self, include_optional) -> ActiveHistogramFilterDTO: return ActiveHistogramFilterDTO( default_values = cm_python_openapi_sdk.models.default_values_histogram_dto.DefaultValuesHistogramDTO( values = [ - 1.337 + null ], null_filtered = True, ), type = 'histogram', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ) + format = {symbol=symbol, type=number, fraction=0} ) else: return ActiveHistogramFilterDTO( default_values = cm_python_openapi_sdk.models.default_values_histogram_dto.DefaultValuesHistogramDTO( values = [ - 1.337 + null ], null_filtered = True, ), type = 'histogram', diff --git a/test/test_active_indicator_filter_dto.py b/test/test_active_indicator_filter_dto.py index f6e91e2..0b8bbc0 100644 --- a/test/test_active_indicator_filter_dto.py +++ b/test/test_active_indicator_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,7 +38,7 @@ def make_instance(self, include_optional) -> ActiveIndicatorFilterDTO: return ActiveIndicatorFilterDTO( default_values = cm_python_openapi_sdk.models.default_values_indicator_dto.DefaultValuesIndicatorDTO( values = [ - 1.337 + null ], breaks = [ 1.337 @@ -54,7 +55,7 @@ def make_instance(self, include_optional) -> ActiveIndicatorFilterDTO: return ActiveIndicatorFilterDTO( default_values = cm_python_openapi_sdk.models.default_values_indicator_dto.DefaultValuesIndicatorDTO( values = [ - 1.337 + null ], breaks = [ 1.337 diff --git a/test/test_active_multi_select_filter_dto.py b/test/test_active_multi_select_filter_dto.py index 345546b..3f23b55 100644 --- a/test/test_active_multi_select_filter_dto.py +++ b/test/test_active_multi_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,9 +43,7 @@ def make_instance(self, include_optional) -> ActiveMultiSelectFilterDTO: type = 'multiSelect', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ] ) else: diff --git a/test/test_active_single_select_filter_dto.py b/test/test_active_single_select_filter_dto.py index 13c0dfa..443b425 100644 --- a/test/test_active_single_select_filter_dto.py +++ b/test/test_active_single_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,9 +41,7 @@ def make_instance(self, include_optional) -> ActiveSingleSelectFilterDTO: type = 'singleSelect', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ] ) else: diff --git a/test/test_additional_series_link_dto.py b/test/test_additional_series_link_dto.py index e091dab..29e5415 100644 --- a/test/test_additional_series_link_dto.py +++ b/test/test_additional_series_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_annotation_link_dto.py b/test/test_annotation_link_dto.py index 3cef351..abb033b 100644 --- a/test/test_annotation_link_dto.py +++ b/test/test_annotation_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_attribute_format_dto.py b/test/test_attribute_format_dto.py index d0bfc17..cb2e36c 100644 --- a/test/test_attribute_format_dto.py +++ b/test/test_attribute_format_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_attribute_style_category_dto.py b/test/test_attribute_style_category_dto.py index 139406c..e1868c4 100644 --- a/test/test_attribute_style_category_dto.py +++ b/test/test_attribute_style_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,27 +38,11 @@ def make_instance(self, include_optional) -> AttributeStyleCategoryDTO: 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, ) + style = {fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403} ) 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, ), + style = {fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, ) """ diff --git a/test/test_attribute_style_content_dto.py b/test/test_attribute_style_content_dto.py index 2ada9e4..58f09e0 100644 --- a/test/test_attribute_style_content_dto.py +++ b/test/test_attribute_style_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,30 +37,9 @@ def make_instance(self, include_optional) -> 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, ), ), + fallback_category = {style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title}, 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, ), ) + {style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=} ] ) else: diff --git a/test/test_attribute_style_dto.py b/test/test_attribute_style_dto.py index 4852e7c..4a37769 100644 --- a/test/test_attribute_style_dto.py +++ b/test/test_attribute_style_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,64 +41,12 @@ def make_instance(self, include_optional) -> AttributeStyleDTO: 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, ), ) - ], ) + content = {fallbackCategory={style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title}, property=property, categories=[{style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}, {style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}]} ) 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, ), ) - ], ), + content = {fallbackCategory={style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title}, property=property, categories=[{style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}, {style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}]}, ) """ diff --git a/test/test_attribute_style_fallback_category_dto.py b/test/test_attribute_style_fallback_category_dto.py index a01561b..2ede9c9 100644 --- a/test/test_attribute_style_fallback_category_dto.py +++ b/test/test_attribute_style_fallback_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,27 +37,11 @@ def make_instance(self, include_optional) -> 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, ) + style = {fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403} ) 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, ), + style = {fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, ) """ diff --git a/test/test_attribute_style_paged_model_dto.py b/test/test_attribute_style_paged_model_dto.py index 1c46003..b0481ee 100644 --- a/test/test_attribute_style_paged_model_dto.py +++ b/test/test_attribute_style_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,48 +37,12 @@ def make_instance(self, include_optional) -> 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, ), ) - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={fallbackCategory={style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title}, property=property, categories=[{style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}, {style={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, title=title, value=}]}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return AttributeStylePagedModelDTO( diff --git a/test/test_attribute_styles_api.py b/test/test_attribute_styles_api.py index 93f3289..d6f45fa 100644 --- a/test/test_attribute_styles_api.py +++ b/test/test_attribute_styles_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_audit_log_api.py b/test/test_audit_log_api.py new file mode 100644 index 0000000..8c4567a --- /dev/null +++ b/test/test_audit_log_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.audit_log_api import AuditLogApi + + +class TestAuditLogApi(unittest.TestCase): + """AuditLogApi unit test stubs""" + + def setUp(self) -> None: + self.api = AuditLogApi() + + def tearDown(self) -> None: + pass + + def test_get_audit_log_event(self) -> None: + """Test case for get_audit_log_event + + Get audit log event by eventId + """ + pass + + def test_get_audit_logs(self) -> None: + """Test case for get_audit_logs + + Get audit logs for project + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_audit_log_paged_resource.py b/test/test_audit_log_paged_resource.py new file mode 100644 index 0000000..cf55aef --- /dev/null +++ b/test/test_audit_log_paged_resource.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.audit_log_paged_resource import AuditLogPagedResource + +class TestAuditLogPagedResource(unittest.TestCase): + """AuditLogPagedResource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditLogPagedResource: + """Test AuditLogPagedResource + 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 `AuditLogPagedResource` + """ + model = AuditLogPagedResource() + if include_optional: + return AuditLogPagedResource( + links = [ + None + ], + content = [ + {eventId=eventId, accountId=accountId, remoteHost=remoteHost, requestId=requestId, links=[{}, {}], eventType=eventType, projectId=projectId, content={}, timestamp=timestamp} + ], + page = {size=0, lastEvaluatedKey={lastEvaluatedTimestamp=lastEvaluatedTimestamp, lastEvaluatedEventId=lastEvaluatedEventId, projectId=projectId}} + ) + else: + return AuditLogPagedResource( + links = [ + None + ], + content = [ + {eventId=eventId, accountId=accountId, remoteHost=remoteHost, requestId=requestId, links=[{}, {}], eventType=eventType, projectId=projectId, content={}, timestamp=timestamp} + ], + page = {size=0, lastEvaluatedKey={lastEvaluatedTimestamp=lastEvaluatedTimestamp, lastEvaluatedEventId=lastEvaluatedEventId, projectId=projectId}}, + ) + """ + + def testAuditLogPagedResource(self): + """Test AuditLogPagedResource""" + # 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_audit_log_paged_resource_page.py b/test/test_audit_log_paged_resource_page.py new file mode 100644 index 0000000..41d59c8 --- /dev/null +++ b/test/test_audit_log_paged_resource_page.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.audit_log_paged_resource_page import AuditLogPagedResourcePage + +class TestAuditLogPagedResourcePage(unittest.TestCase): + """AuditLogPagedResourcePage unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditLogPagedResourcePage: + """Test AuditLogPagedResourcePage + 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 `AuditLogPagedResourcePage` + """ + model = AuditLogPagedResourcePage() + if include_optional: + return AuditLogPagedResourcePage( + last_evaluated_key = {lastEvaluatedTimestamp=lastEvaluatedTimestamp, lastEvaluatedEventId=lastEvaluatedEventId, projectId=projectId}, + size = 56 + ) + else: + return AuditLogPagedResourcePage( + ) + """ + + def testAuditLogPagedResourcePage(self): + """Test AuditLogPagedResourcePage""" + # 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_audit_log_paged_resource_page_last_evaluated_key.py b/test/test_audit_log_paged_resource_page_last_evaluated_key.py new file mode 100644 index 0000000..4a8f7db --- /dev/null +++ b/test/test_audit_log_paged_resource_page_last_evaluated_key.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.audit_log_paged_resource_page_last_evaluated_key import AuditLogPagedResourcePageLastEvaluatedKey + +class TestAuditLogPagedResourcePageLastEvaluatedKey(unittest.TestCase): + """AuditLogPagedResourcePageLastEvaluatedKey unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditLogPagedResourcePageLastEvaluatedKey: + """Test AuditLogPagedResourcePageLastEvaluatedKey + 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 `AuditLogPagedResourcePageLastEvaluatedKey` + """ + model = AuditLogPagedResourcePageLastEvaluatedKey() + if include_optional: + return AuditLogPagedResourcePageLastEvaluatedKey( + project_id = 'w8q6zgckec0l3o4g', + last_evaluated_event_id = '04807288800152802179809622550085076206862933933397565068', + last_evaluated_timestamp = '0480-72-88T80:01:52,802' + ) + else: + return AuditLogPagedResourcePageLastEvaluatedKey( + project_id = 'w8q6zgckec0l3o4g', + last_evaluated_event_id = '04807288800152802179809622550085076206862933933397565068', + last_evaluated_timestamp = '0480-72-88T80:01:52,802', + ) + """ + + def testAuditLogPagedResourcePageLastEvaluatedKey(self): + """Test AuditLogPagedResourcePageLastEvaluatedKey""" + # 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_audit_log_single_resource.py b/test/test_audit_log_single_resource.py new file mode 100644 index 0000000..1b13427 --- /dev/null +++ b/test/test_audit_log_single_resource.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.audit_log_single_resource import AuditLogSingleResource + +class TestAuditLogSingleResource(unittest.TestCase): + """AuditLogSingleResource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AuditLogSingleResource: + """Test AuditLogSingleResource + 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 `AuditLogSingleResource` + """ + model = AuditLogSingleResource() + if include_optional: + return AuditLogSingleResource( + event_id = '04807288800152802179809622550085076206862933933397565068', + account_id = 'gCu2LC4aWwWL9Y864DZt', + request_id = 'w8q6zgckec0l3o4g', + remote_host = '', + project_id = 'w8q6zgckec0l3o4g', + event_type = '_', + timestamp = '0480-72-88T80:01:52,802', + content = None, + links = [ + None + ] + ) + else: + return AuditLogSingleResource( + event_id = '04807288800152802179809622550085076206862933933397565068', + account_id = 'gCu2LC4aWwWL9Y864DZt', + project_id = 'w8q6zgckec0l3o4g', + event_type = '_', + timestamp = '0480-72-88T80:01:52,802', + content = None, + links = [ + None + ], + ) + """ + + def testAuditLogSingleResource(self): + """Test AuditLogSingleResource""" + # 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_authentication_api.py b/test/test_authentication_api.py index cfc17a5..66e2d15 100644 --- a/test/test_authentication_api.py +++ b/test/test_authentication_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_available_datasets_api.py b/test/test_available_datasets_api.py new file mode 100644 index 0000000..eae8264 --- /dev/null +++ b/test/test_available_datasets_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.available_datasets_api import AvailableDatasetsApi + + +class TestAvailableDatasetsApi(unittest.TestCase): + """AvailableDatasetsApi unit test stubs""" + + def setUp(self) -> None: + self.api = AvailableDatasetsApi() + + def tearDown(self) -> None: + pass + + def test_available_datasets(self) -> None: + """Test case for available_datasets + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_available_datasets_request.py b/test/test_available_datasets_request.py new file mode 100644 index 0000000..91b175c --- /dev/null +++ b/test/test_available_datasets_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.available_datasets_request import AvailableDatasetsRequest + +class TestAvailableDatasetsRequest(unittest.TestCase): + """AvailableDatasetsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AvailableDatasetsRequest: + """Test AvailableDatasetsRequest + 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 `AvailableDatasetsRequest` + """ + model = AvailableDatasetsRequest() + if include_optional: + return AvailableDatasetsRequest( + metrics = [ + null + ] + ) + else: + return AvailableDatasetsRequest( + metrics = [ + null + ], + ) + """ + + def testAvailableDatasetsRequest(self): + """Test AvailableDatasetsRequest""" + # 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_available_datasets_response.py b/test/test_available_datasets_response.py new file mode 100644 index 0000000..126ff11 --- /dev/null +++ b/test/test_available_datasets_response.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.available_datasets_response import AvailableDatasetsResponse + +class TestAvailableDatasetsResponse(unittest.TestCase): + """AvailableDatasetsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AvailableDatasetsResponse: + """Test AvailableDatasetsResponse + 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 `AvailableDatasetsResponse` + """ + model = AvailableDatasetsResponse() + if include_optional: + return AvailableDatasetsResponse( + content = [ + {metricId=metricId, availableDatasets=[{}, {}]} + ] + ) + else: + return AvailableDatasetsResponse( + ) + """ + + def testAvailableDatasetsResponse(self): + """Test AvailableDatasetsResponse""" + # 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_available_datasets_response_content_inner.py b/test/test_available_datasets_response_content_inner.py new file mode 100644 index 0000000..e6a0a3d --- /dev/null +++ b/test/test_available_datasets_response_content_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.available_datasets_response_content_inner import AvailableDatasetsResponseContentInner + +class TestAvailableDatasetsResponseContentInner(unittest.TestCase): + """AvailableDatasetsResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AvailableDatasetsResponseContentInner: + """Test AvailableDatasetsResponseContentInner + 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 `AvailableDatasetsResponseContentInner` + """ + model = AvailableDatasetsResponseContentInner() + if include_optional: + return AvailableDatasetsResponseContentInner( + metric_id = '', + available_datasets = [ + None + ] + ) + else: + return AvailableDatasetsResponseContentInner( + ) + """ + + def testAvailableDatasetsResponseContentInner(self): + """Test AvailableDatasetsResponseContentInner""" + # 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_block_abstract_type.py b/test/test_block_abstract_type.py index 289cdf4..72bb340 100644 --- a/test/test_block_abstract_type.py +++ b/test/test_block_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,9 +47,7 @@ def make_instance(self, include_optional) -> BlockAbstractType: filterable = True, hide_null_items = True, size_limit = 56, - order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ), + order_by = {property=property, direction=asc}, vertical = True, condensed = True, dual_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', diff --git a/test/test_block_row_abstract_type.py b/test/test_block_row_abstract_type.py index 358aa6a..04e3624 100644 --- a/test/test_block_row_abstract_type.py +++ b/test/test_block_row_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,16 +38,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType: return BlockRowAbstractType( type = 'blockRow', blocks = [ - cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO( - type = 'indicator', - title = '', - indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - indicator_drill = '/rest/projects/8q6zgckec0l3o4gi/md/indicatorDrills?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - layout = 'primary', - collapsed = True, - block_rows = [ - null - ], ) + {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill} ], title = '', indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', @@ -63,9 +55,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType: filterable = True, hide_null_items = True, size_limit = 56, - order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ), + order_by = {property=property, direction=asc}, vertical = True, condensed = True, dual_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', @@ -89,16 +79,7 @@ def make_instance(self, include_optional) -> BlockRowAbstractType: return BlockRowAbstractType( type = 'blockRow', blocks = [ - cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO( - type = 'indicator', - title = '', - indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - indicator_drill = '/rest/projects/8q6zgckec0l3o4gi/md/indicatorDrills?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - layout = 'primary', - collapsed = True, - block_rows = [ - null - ], ) + {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill} ], 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 d770201..e89d1fb 100644 --- a/test/test_block_row_dto.py +++ b/test/test_block_row_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,32 +38,14 @@ def make_instance(self, include_optional) -> BlockRowDTO: return BlockRowDTO( type = 'blockRow', blocks = [ - cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO( - type = 'indicator', - title = '', - indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - indicator_drill = '/rest/projects/8q6zgckec0l3o4gi/md/indicatorDrills?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - layout = 'primary', - collapsed = True, - block_rows = [ - null - ], ) + {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill} ] ) else: return BlockRowDTO( type = 'blockRow', blocks = [ - cm_python_openapi_sdk.models.indicator_link_dto.IndicatorLinkDTO( - type = 'indicator', - title = '', - indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - indicator_drill = '/rest/projects/8q6zgckec0l3o4gi/md/indicatorDrills?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - layout = 'primary', - collapsed = True, - block_rows = [ - null - ], ) + {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill} ], ) """ diff --git a/test/test_bounding_box_dto.py b/test/test_bounding_box_dto.py new file mode 100644 index 0000000..9789479 --- /dev/null +++ b/test/test_bounding_box_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.bounding_box_dto import BoundingBoxDTO + +class TestBoundingBoxDTO(unittest.TestCase): + """BoundingBoxDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BoundingBoxDTO: + """Test BoundingBoxDTO + 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 `BoundingBoxDTO` + """ + model = BoundingBoxDTO() + if include_optional: + return BoundingBoxDTO( + min_x = 1.337, + min_y = 1.337, + max_x = 1.337, + max_y = 1.337 + ) + else: + return BoundingBoxDTO( + ) + """ + + def testBoundingBoxDTO(self): + """Test BoundingBoxDTO""" + # 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_job_request.py b/test/test_bulk_point_query_job_request.py index d6fbca7..39b10b3 100644 --- a/test/test_bulk_point_query_job_request.py +++ b/test/test_bulk_point_query_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,31 +47,7 @@ def make_instance(self, include_optional) -> BulkPointQueryJobRequest: 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, ) + null ], ) ) else: @@ -86,31 +63,7 @@ def make_instance(self, include_optional) -> BulkPointQueryJobRequest: 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, ) + null ], ), ) """ diff --git a/test/test_bulk_point_query_point_queries_option_isochrone.py b/test/test_bulk_point_query_point_queries_option_isochrone.py deleted file mode 100644 index 5319707..0000000 --- a/test/test_bulk_point_query_point_queries_option_isochrone.py +++ /dev/null @@ -1,56 +0,0 @@ -# coding: utf-8 - -""" - clevermaps-client - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The 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 index 517d86a..ba277db 100644 --- a/test/test_bulk_point_query_point_queries_option_nearest.py +++ b/test/test_bulk_point_query_point_queries_option_nearest.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_bulk_point_query_request.py b/test/test_bulk_point_query_request.py index d6f79e9..6d39ff6 100644 --- a/test/test_bulk_point_query_request.py +++ b/test/test_bulk_point_query_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,31 +44,7 @@ def make_instance(self, include_optional) -> BulkPointQueryRequest: 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, ) + null ] ) else: @@ -79,31 +56,7 @@ def make_instance(self, include_optional) -> BulkPointQueryRequest: 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, ) + null ], ) """ diff --git a/test/test_bulk_point_query_request_point_queries_inner.py b/test/test_bulk_point_query_request_point_queries_inner.py index f025cf6..0a0ef91 100644 --- a/test/test_bulk_point_query_request_point_queries_inner.py +++ b/test/test_bulk_point_query_request_point_queries_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,7 +38,8 @@ def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesIn return BulkPointQueryRequestPointQueriesInner( query_id = '', type = 'isochrone', - options = None, + options = cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest.BulkPointQueryPointQueriesOptionNearest( + limit = 56, ), dataset = '', execution_content = cm_python_openapi_sdk.models.execution_content.executionContent(), properties = [ @@ -63,6 +65,8 @@ def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesIn else: return BulkPointQueryRequestPointQueriesInner( type = 'isochrone', + options = cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest.BulkPointQueryPointQueriesOptionNearest( + limit = 56, ), dataset = '', ) """ 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 deleted file mode 100644 index 3cfcba5..0000000 --- a/test/test_bulk_point_query_request_point_queries_inner_options.py +++ /dev/null @@ -1,57 +0,0 @@ -# coding: utf-8 - -""" - clevermaps-client - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The 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_point_queries_isochrone.py b/test/test_bulk_point_query_request_point_queries_isochrone.py new file mode 100644 index 0000000..824d2c1 --- /dev/null +++ b/test/test_bulk_point_query_request_point_queries_isochrone.py @@ -0,0 +1,84 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_isochrone import BulkPointQueryRequestPointQueriesIsochrone + +class TestBulkPointQueryRequestPointQueriesIsochrone(unittest.TestCase): + """BulkPointQueryRequestPointQueriesIsochrone unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesIsochrone: + """Test BulkPointQueryRequestPointQueriesIsochrone + 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 `BulkPointQueryRequestPointQueriesIsochrone` + """ + model = BulkPointQueryRequestPointQueriesIsochrone() + if include_optional: + return BulkPointQueryRequestPointQueriesIsochrone( + query_id = '', + type = 'isochrone', + options = cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_isochrone_options.BulkPointQueryRequestPointQueriesIsochrone_options( + profile = 'car', + unit = 'time', + amount = 1, ), + 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 BulkPointQueryRequestPointQueriesIsochrone( + type = 'isochrone', + options = cm_python_openapi_sdk.models.bulk_point_query_request_point_queries_isochrone_options.BulkPointQueryRequestPointQueriesIsochrone_options( + profile = 'car', + unit = 'time', + amount = 1, ), + dataset = '', + ) + """ + + def testBulkPointQueryRequestPointQueriesIsochrone(self): + """Test BulkPointQueryRequestPointQueriesIsochrone""" + # 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_isochrone_options.py b/test/test_bulk_point_query_request_point_queries_isochrone_options.py new file mode 100644 index 0000000..22a4baf --- /dev/null +++ b/test/test_bulk_point_query_request_point_queries_isochrone_options.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_isochrone_options import BulkPointQueryRequestPointQueriesIsochroneOptions + +class TestBulkPointQueryRequestPointQueriesIsochroneOptions(unittest.TestCase): + """BulkPointQueryRequestPointQueriesIsochroneOptions unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesIsochroneOptions: + """Test BulkPointQueryRequestPointQueriesIsochroneOptions + 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 `BulkPointQueryRequestPointQueriesIsochroneOptions` + """ + model = BulkPointQueryRequestPointQueriesIsochroneOptions() + if include_optional: + return BulkPointQueryRequestPointQueriesIsochroneOptions( + profile = 'car', + unit = 'time', + amount = 1 + ) + else: + return BulkPointQueryRequestPointQueriesIsochroneOptions( + profile = 'car', + unit = 'time', + amount = 1, + ) + """ + + def testBulkPointQueryRequestPointQueriesIsochroneOptions(self): + """Test BulkPointQueryRequestPointQueriesIsochroneOptions""" + # 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_nearest.py b/test/test_bulk_point_query_request_point_queries_nearest.py new file mode 100644 index 0000000..a417757 --- /dev/null +++ b/test/test_bulk_point_query_request_point_queries_nearest.py @@ -0,0 +1,80 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_nearest import BulkPointQueryRequestPointQueriesNearest + +class TestBulkPointQueryRequestPointQueriesNearest(unittest.TestCase): + """BulkPointQueryRequestPointQueriesNearest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> BulkPointQueryRequestPointQueriesNearest: + """Test BulkPointQueryRequestPointQueriesNearest + 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 `BulkPointQueryRequestPointQueriesNearest` + """ + model = BulkPointQueryRequestPointQueriesNearest() + if include_optional: + return BulkPointQueryRequestPointQueriesNearest( + query_id = '', + type = 'nearest', + options = cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest.BulkPointQueryPointQueriesOptionNearest( + limit = 56, ), + 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 BulkPointQueryRequestPointQueriesNearest( + type = 'nearest', + options = cm_python_openapi_sdk.models.bulk_point_query_point_queries_option_nearest.BulkPointQueryPointQueriesOptionNearest( + limit = 56, ), + dataset = '', + ) + """ + + def testBulkPointQueryRequestPointQueriesNearest(self): + """Test BulkPointQueryRequestPointQueriesNearest""" + # 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 index 4edabdf..f0d4123 100644 --- a/test/test_bulk_point_query_request_points_inner.py +++ b/test/test_bulk_point_query_request_points_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_caches_api.py b/test/test_caches_api.py new file mode 100644 index 0000000..db9e901 --- /dev/null +++ b/test/test_caches_api.py @@ -0,0 +1,38 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.caches_api import CachesApi + + +class TestCachesApi(unittest.TestCase): + """CachesApi unit test stubs""" + + def setUp(self) -> None: + self.api = CachesApi() + + def tearDown(self) -> None: + pass + + def test_get_cache(self) -> None: + """Test case for get_cache + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_categories_dto.py b/test/test_categories_dto.py index 2c4f439..5cdb075 100644 --- a/test/test_categories_dto.py +++ b/test/test_categories_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,9 +47,7 @@ def make_instance(self, include_optional) -> CategoriesDTO: filterable = True, hide_null_items = True, size_limit = 56, - order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ), + order_by = {property=property, direction=asc}, vertical = True, condensed = True, dual_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', diff --git a/test/test_category_dto.py b/test/test_category_dto.py index 065a7db..c414757 100644 --- a/test/test_category_dto.py +++ b/test/test_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,26 +38,17 @@ def make_instance(self, include_optional) -> CategoryDTO: 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, ) + {addOnExpand=true, visible=true, marker=marker} ], 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, ) + {visible=true, style=style, dataset=dataset} ] ) 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, ) + {addOnExpand=true, visible=true, marker=marker} ], ) """ diff --git a/test/test_center_dto.py b/test/test_center_dto.py index 6ebf858..4fd2263 100644 --- a/test/test_center_dto.py +++ b/test/test_center_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_central_point.py b/test/test_central_point.py new file mode 100644 index 0000000..590c514 --- /dev/null +++ b/test/test_central_point.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.central_point import CentralPoint + +class TestCentralPoint(unittest.TestCase): + """CentralPoint unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> CentralPoint: + """Test CentralPoint + 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 `CentralPoint` + """ + model = CentralPoint() + if include_optional: + return CentralPoint( + lat = 1.337, + lng = 1.337 + ) + else: + return CentralPoint( + lat = 1.337, + lng = 1.337, + ) + """ + + def testCentralPoint(self): + """Test CentralPoint""" + # 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_invitation.py b/test/test_create_invitation.py index 897a798..e2fb757 100644 --- a/test/test_create_invitation.py +++ b/test/test_create_invitation.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_membership_dto.py b/test/test_create_membership_dto.py index 51cda77..62e451c 100644 --- a/test/test_create_membership_dto.py +++ b/test/test_create_membership_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_organization_dto.py b/test/test_create_organization_dto.py index e9d3117..ea0fa03 100644 --- a/test/test_create_organization_dto.py +++ b/test/test_create_organization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_create_project_dto.py b/test/test_create_project_dto.py index 5c184e4..fce321a 100644 --- a/test/test_create_project_dto.py +++ b/test/test_create_project_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_cuzk_parcel_info_dto.py b/test/test_cuzk_parcel_info_dto.py index 1705ab2..b44dd8a 100644 --- a/test/test_cuzk_parcel_info_dto.py +++ b/test/test_cuzk_parcel_info_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dashboard_content_dto.py b/test/test_dashboard_content_dto.py index fc9ecf1..d7b22b2 100644 --- a/test/test_dashboard_content_dto.py +++ b/test/test_dashboard_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,19 +40,7 @@ def make_instance(self, include_optional) -> DashboardContentDTO: null ], dataset_properties = [ - 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 = [ - 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', ) - ], ) + {defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset} ] ) else: diff --git a/test/test_dashboard_dataset_properties_dto.py b/test/test_dashboard_dataset_properties_dto.py index e3d9dcc..d1c0332 100644 --- a/test/test_dashboard_dataset_properties_dto.py +++ b/test/test_dashboard_dataset_properties_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,28 +39,14 @@ def make_instance(self, include_optional) -> DashboardDatasetPropertiesDTO: dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', default_search = 'enable', 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', ) + {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value} ] ) else: return DashboardDatasetPropertiesDTO( dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', 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', ) + {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value} ], ) """ diff --git a/test/test_dashboard_dto.py b/test/test_dashboard_dto.py index c0100e6..58d3bf9 100644 --- a/test/test_dashboard_dto.py +++ b/test/test_dashboard_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,48 +41,12 @@ def make_instance(self, include_optional) -> DashboardDTO: type = 'dataset', title = '0', description = '0', - content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO( - block_rows = [ - null - ], - dataset_properties = [ - 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 = [ - 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', ) - ], ) - ], ) + content = {blockRows=[{blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}, {blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}], datasetProperties=[{defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}, {defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}]} ) else: return DashboardDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', - content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO( - block_rows = [ - null - ], - dataset_properties = [ - 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 = [ - 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', ) - ], ) - ], ), + content = {blockRows=[{blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}, {blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}], datasetProperties=[{defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}, {defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}]}, ) """ diff --git a/test/test_dashboard_paged_model_dto.py b/test/test_dashboard_paged_model_dto.py index 6022ac0..7416cbf 100644 --- a/test/test_dashboard_paged_model_dto.py +++ b/test/test_dashboard_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,40 +37,12 @@ def make_instance(self, include_optional) -> DashboardPagedModelDTO: if include_optional: return DashboardPagedModelDTO( content = [ - cm_python_openapi_sdk.models.dashboard_dto.DashboardDTO( - id = '', - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - type = 'dataset', - title = '0', - description = '0', - content = cm_python_openapi_sdk.models.dashboard_content_dto.DashboardContentDTO( - block_rows = [ - null - ], - dataset_properties = [ - 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 = [ - 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', ) - ], ) - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={blockRows=[{blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}, {blocks=[{indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}, {indicator=indicator, layout=primary, collapsed=true, blockRows=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}], type=indicator, title=title, indicatorDrill=indicatorDrill}], type=blockRow}], datasetProperties=[{defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}, {defaultSearch=enable, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], dataset=dataset}]}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return DashboardPagedModelDTO( diff --git a/test/test_dashboards_api.py b/test/test_dashboards_api.py index de3e2d5..dbd9365 100644 --- a/test/test_dashboards_api.py +++ b/test/test_dashboards_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_complete_multipart_upload_request.py b/test/test_data_complete_multipart_upload_request.py new file mode 100644 index 0000000..ee3af4e --- /dev/null +++ b/test/test_data_complete_multipart_upload_request.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_complete_multipart_upload_request import DataCompleteMultipartUploadRequest + +class TestDataCompleteMultipartUploadRequest(unittest.TestCase): + """DataCompleteMultipartUploadRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataCompleteMultipartUploadRequest: + """Test DataCompleteMultipartUploadRequest + 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 `DataCompleteMultipartUploadRequest` + """ + model = DataCompleteMultipartUploadRequest() + if include_optional: + return DataCompleteMultipartUploadRequest( + id = 'eHqXzyCBw3_uufVPIPFhB9JcGRYnua_c', + upload_id = '2', + part_e_tags = [ + {partNumber=0, eTag=eTag} + ] + ) + else: + return DataCompleteMultipartUploadRequest( + id = 'eHqXzyCBw3_uufVPIPFhB9JcGRYnua_c', + part_e_tags = [ + {partNumber=0, eTag=eTag} + ], + ) + """ + + def testDataCompleteMultipartUploadRequest(self): + """Test DataCompleteMultipartUploadRequest""" + # 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_complete_multipart_upload_response.py b/test/test_data_complete_multipart_upload_response.py new file mode 100644 index 0000000..1f84d36 --- /dev/null +++ b/test/test_data_complete_multipart_upload_response.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_complete_multipart_upload_response import DataCompleteMultipartUploadResponse + +class TestDataCompleteMultipartUploadResponse(unittest.TestCase): + """DataCompleteMultipartUploadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataCompleteMultipartUploadResponse: + """Test DataCompleteMultipartUploadResponse + 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 `DataCompleteMultipartUploadResponse` + """ + model = DataCompleteMultipartUploadResponse() + if include_optional: + return DataCompleteMultipartUploadResponse( + id = '', + e_tag = '' + ) + else: + return DataCompleteMultipartUploadResponse( + id = '', + e_tag = '', + ) + """ + + def testDataCompleteMultipartUploadResponse(self): + """Test DataCompleteMultipartUploadResponse""" + # 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_create_multipart_upload_response.py b/test/test_data_create_multipart_upload_response.py new file mode 100644 index 0000000..df654d7 --- /dev/null +++ b/test/test_data_create_multipart_upload_response.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_create_multipart_upload_response import DataCreateMultipartUploadResponse + +class TestDataCreateMultipartUploadResponse(unittest.TestCase): + """DataCreateMultipartUploadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataCreateMultipartUploadResponse: + """Test DataCreateMultipartUploadResponse + 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 `DataCreateMultipartUploadResponse` + """ + model = DataCreateMultipartUploadResponse() + if include_optional: + return DataCreateMultipartUploadResponse( + id = '', + upload_id = '', + upload_urls = [ + '' + ], + upload_urls_encoded = [ + '' + ], + links = [ + None + ] + ) + else: + return DataCreateMultipartUploadResponse( + id = '', + upload_id = '', + upload_urls = [ + '' + ], + ) + """ + + def testDataCreateMultipartUploadResponse(self): + """Test DataCreateMultipartUploadResponse""" + # 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_create_upload_response.py b/test/test_data_create_upload_response.py new file mode 100644 index 0000000..26ad878 --- /dev/null +++ b/test/test_data_create_upload_response.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_create_upload_response import DataCreateUploadResponse + +class TestDataCreateUploadResponse(unittest.TestCase): + """DataCreateUploadResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataCreateUploadResponse: + """Test DataCreateUploadResponse + 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 `DataCreateUploadResponse` + """ + model = DataCreateUploadResponse() + if include_optional: + return DataCreateUploadResponse( + id = '', + upload_url = '', + upload_url_encoded = '', + links = [ + None + ] + ) + else: + return DataCreateUploadResponse( + id = '', + upload_url = '', + ) + """ + + def testDataCreateUploadResponse(self): + """Test DataCreateUploadResponse""" + # 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_api.py b/test/test_data_dump_api.py new file mode 100644 index 0000000..4a57b42 --- /dev/null +++ b/test/test_data_dump_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_dump_api import DataDumpApi + + +class TestDataDumpApi(unittest.TestCase): + """DataDumpApi unit test stubs""" + + def setUp(self) -> None: + self.api = DataDumpApi() + + def tearDown(self) -> None: + pass + + def test_get_data_dump(self) -> None: + """Test case for get_data_dump + + Get data dump file + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_data_dump_job_request.py b/test/test_data_dump_job_request.py index 2dc196f..6fc6a69 100644 --- a/test/test_data_dump_job_request.py +++ b/test/test_data_dump_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_dump_request.py b/test/test_data_dump_request.py index 968eca5..1237301 100644 --- a/test/test_data_dump_request.py +++ b/test/test_data_dump_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_permission_content_dto.py b/test/test_data_permission_content_dto.py index 87b3370..e0f2632 100644 --- a/test/test_data_permission_content_dto.py +++ b/test/test_data_permission_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_permission_dto.py b/test/test_data_permission_dto.py index bf798b2..e35fca1 100644 --- a/test/test_data_permission_dto.py +++ b/test/test_data_permission_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,20 +41,12 @@ def make_instance(self, include_optional) -> DataPermissionDTO: type = 'dataset', title = '0', description = '', - content = cm_python_openapi_sdk.models.data_permission_content_dto.DataPermissionContentDTO( - account_id = 'gCu2LC4aWwWL9Y864DZt', - filters = [ - null - ], ) + content = {accountId=accountId, filters=[{function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}, {function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}]} ) else: return DataPermissionDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', - content = cm_python_openapi_sdk.models.data_permission_content_dto.DataPermissionContentDTO( - account_id = 'gCu2LC4aWwWL9Y864DZt', - filters = [ - null - ], ), + content = {accountId=accountId, filters=[{function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}, {function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}]}, ) """ diff --git a/test/test_data_permission_paged_model_dto.py b/test/test_data_permission_paged_model_dto.py index bce4a9e..4026deb 100644 --- a/test/test_data_permission_paged_model_dto.py +++ b/test/test_data_permission_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,26 +37,12 @@ def make_instance(self, include_optional) -> 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 - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={accountId=accountId, filters=[{function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}, {function={id=id, type=number, value=0.8008281904610115}, property=property, value=, operator=eq}]}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return DataPermissionPagedModelDTO( diff --git a/test/test_data_permissions_api.py b/test/test_data_permissions_api.py index b775175..46fe0cc 100644 --- a/test/test_data_permissions_api.py +++ b/test/test_data_permissions_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_pull_job_request.py b/test/test_data_pull_job_request.py index 9980c61..51556f2 100644 --- a/test/test_data_pull_job_request.py +++ b/test/test_data_pull_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_pull_request.py b/test/test_data_pull_request.py index aadf2f0..f720026 100644 --- a/test/test_data_pull_request.py +++ b/test/test_data_pull_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_pull_request_csv_options.py b/test/test_data_pull_request_csv_options.py index 1500e07..82d1efe 100644 --- a/test/test_data_pull_request_csv_options.py +++ b/test/test_data_pull_request_csv_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_pull_request_https_upload.py b/test/test_data_pull_request_https_upload.py index 4425ead..b3dd504 100644 --- a/test/test_data_pull_request_https_upload.py +++ b/test/test_data_pull_request_https_upload.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_pull_request_s3_upload.py b/test/test_data_pull_request_s3_upload.py index c97f7d0..e3bbf0e 100644 --- a/test/test_data_pull_request_s3_upload.py +++ b/test/test_data_pull_request_s3_upload.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_source_dto.py b/test/test_data_source_dto.py index 23da126..3526e4f 100644 --- a/test/test_data_source_dto.py +++ b/test/test_data_source_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_source_paged_model_dto.py b/test/test_data_source_paged_model_dto.py index fc1754a..3288984 100644 --- a/test/test_data_source_paged_model_dto.py +++ b/test/test_data_source_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,20 +37,12 @@ def make_instance(self, include_optional) -> 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 = '', ) + {licenceHolderLogo=https://openapi-generator.tech, licenceUrl=https://openapi-generator.tech, licenceHolder=licenceHolder, licenceHolderUrl=https://openapi-generator.tech} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return DataSourcePagedModelDTO( diff --git a/test/test_data_sources_api.py b/test/test_data_sources_api.py index bec3937..65f5942 100644 --- a/test/test_data_sources_api.py +++ b/test/test_data_sources_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_data_upload200_response.py b/test/test_data_upload200_response.py new file mode 100644 index 0000000..a71d5ef --- /dev/null +++ b/test/test_data_upload200_response.py @@ -0,0 +1,70 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_upload200_response import DataUpload200Response + +class TestDataUpload200Response(unittest.TestCase): + """DataUpload200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DataUpload200Response: + """Test DataUpload200Response + 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 `DataUpload200Response` + """ + model = DataUpload200Response() + if include_optional: + return DataUpload200Response( + id = '', + upload_url = '', + upload_url_encoded = '', + links = [ + None + ], + upload_id = '', + upload_urls = [ + '' + ], + upload_urls_encoded = [ + '' + ] + ) + else: + return DataUpload200Response( + id = '', + upload_url = '', + upload_id = '', + upload_urls = [ + '' + ], + ) + """ + + def testDataUpload200Response(self): + """Test DataUpload200Response""" + # 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_upload_api.py b/test/test_data_upload_api.py new file mode 100644 index 0000000..aba9453 --- /dev/null +++ b/test/test_data_upload_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_upload_api import DataUploadApi + + +class TestDataUploadApi(unittest.TestCase): + """DataUploadApi unit test stubs""" + + def setUp(self) -> None: + self.api = DataUploadApi() + + def tearDown(self) -> None: + pass + + def test_complete_multipart_upload(self) -> None: + """Test case for complete_multipart_upload + + Complete multipart upload + """ + pass + + def test_data_upload(self) -> None: + """Test case for data_upload + + Upload CSV file to dataset + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_dataset_dto.py b/test/test_dataset_dto.py index 7d1ad4c..82848ad 100644 --- a/test/test_dataset_dto.py +++ b/test/test_dataset_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,26 +42,10 @@ def make_instance(self, include_optional) -> DatasetDTO: 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(), + properties = {featureTitle={type=property, value=value}, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], featureSubtitle=null}, + ref = None, data_sources = [ - cm_python_openapi_sdk.models.data_source_dto.DataSourceDTO( - licence_holder = '0', - licence_holder_url = '', - licence_holder_logo = '', - licence_url = '', ) + {licenceHolderLogo=https://openapi-generator.tech, licenceUrl=https://openapi-generator.tech, licenceHolder=licenceHolder, licenceHolderUrl=https://openapi-generator.tech} ], content = cm_python_openapi_sdk.models.dataset_content_dto.DatasetContentDTO() ) @@ -68,7 +53,7 @@ def make_instance(self, include_optional) -> DatasetDTO: return DatasetDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', type = 'dataset', - ref = cm_python_openapi_sdk.models.dataset_type.DatasetType(), + ref = None, ) """ diff --git a/test/test_dataset_dwh_type_dto.py b/test/test_dataset_dwh_type_dto.py index ad66b1f..2e44c26 100644 --- a/test/test_dataset_dwh_type_dto.py +++ b/test/test_dataset_dwh_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,13 +43,7 @@ def make_instance(self, include_optional) -> DatasetDwhTypeDTO: '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, ), ) + {zoom={min=3, optimal=11, max=4, visibleFrom=11}, type=areas} ], table = 'awat5ikwowtta-3mh2lcafqw3zhes', geometry_table = 'awat5ikwowtta-3mh2lcafqw3zhes', @@ -57,13 +52,9 @@ def make_instance(self, include_optional) -> DatasetDwhTypeDTO: full_text_index = True, spatial_index = True, properties = [ - null + {filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}} ], - zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO( - min = 2, - optimal = 2, - max = 2, - visible_from = 2, ) + zoom = {min=3, optimal=11, max=4, visibleFrom=11} ) else: return DatasetDwhTypeDTO( @@ -71,7 +62,7 @@ def make_instance(self, include_optional) -> DatasetDwhTypeDTO: subtype = 'geometryPolygon', primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes', properties = [ - null + {filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}} ], ) """ diff --git a/test/test_dataset_h3_grid_type_dto.py b/test/test_dataset_h3_grid_type_dto.py index 4d6b7e5..9c900fa 100644 --- a/test/test_dataset_h3_grid_type_dto.py +++ b/test/test_dataset_h3_grid_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,11 +38,7 @@ def make_instance(self, include_optional) -> DatasetH3GridTypeDTO: return DatasetH3GridTypeDTO( type = 'h3Grid', resolution = 2, - zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO( - min = 2, - optimal = 2, - max = 2, - visible_from = 2, ) + zoom = {min=3, optimal=11, max=4, visibleFrom=11} ) else: return DatasetH3GridTypeDTO( diff --git a/test/test_dataset_paged_model_dto.py b/test/test_dataset_paged_model_dto.py index 2a74f0e..32af96c 100644 --- a/test/test_dataset_paged_model_dto.py +++ b/test/test_dataset_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,44 +37,12 @@ def make_instance(self, include_optional) -> 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(), ) + {ref={visualizations=[{zoom={min=3, optimal=11, max=4, visibleFrom=11}, type=areas}, {zoom={min=3, optimal=11, max=4, visibleFrom=11}, type=areas}], spatialIndex=true, zoom={min=3, optimal=11, max=4, visibleFrom=11}, fullTextIndex=true, type=dwh, geometryTable=geometryTable, h3Geometries=[h3Geometries, h3Geometries], subtype=geometryPolygon, geometry=geometry, table=table, categorizable=true, properties=[{filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}}, {filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}}], primaryKey=primaryKey}, origin=origin, name=name, description=description, id=id, type=dataset, title=title, dataSources=[{licenceHolderLogo=https://openapi-generator.tech, licenceUrl=https://openapi-generator.tech, licenceHolder=licenceHolder, licenceHolderUrl=https://openapi-generator.tech}, {licenceHolderLogo=https://openapi-generator.tech, licenceUrl=https://openapi-generator.tech, licenceHolder=licenceHolder, licenceHolderUrl=https://openapi-generator.tech}], properties={featureTitle={type=property, value=value}, featureAttributes=[{layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}, {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value}], featureSubtitle=null}, content={}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return DatasetPagedModelDTO( diff --git a/test/test_dataset_properties_dto.py b/test/test_dataset_properties_dto.py index 79abb40..fc833c4 100644 --- a/test/test_dataset_properties_dto.py +++ b/test/test_dataset_properties_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,14 +39,7 @@ def make_instance(self, include_optional) -> 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', ) + {layout=primary, format={symbol=symbol, type=text, fraction=0}, type=property, value=value} ] ) else: diff --git a/test/test_dataset_type.py b/test/test_dataset_type.py index 745052b..cf6c45a 100644 --- a/test/test_dataset_type.py +++ b/test/test_dataset_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,13 +43,7 @@ def make_instance(self, include_optional) -> DatasetType: '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, ), ) + {zoom={min=3, optimal=11, max=4, visibleFrom=11}, type=areas} ], table = 'awat5ikwowtta-3mh2lcafqw3zhes', geometry_table = 'awat5ikwowtta-3mh2lcafqw3zhes', @@ -57,13 +52,9 @@ def make_instance(self, include_optional) -> DatasetType: full_text_index = True, spatial_index = True, properties = [ - null + {filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}} ], - zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO( - min = 2, - optimal = 2, - max = 2, - visible_from = 2, ), + zoom = {min=3, optimal=11, max=4, visibleFrom=11}, url_template = '', resolution = 2 ) @@ -73,7 +64,7 @@ def make_instance(self, include_optional) -> DatasetType: subtype = 'geometryPolygon', primary_key = 'awat5ikwowtta-3mh2lcafqw3zhes', properties = [ - null + {filterable=true, name=name, column=column, description=description, title=title, type=type, calculated=true, displayOptions={valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}} ], url_template = '', resolution = 2, diff --git a/test/test_dataset_visualization_dto.py b/test/test_dataset_visualization_dto.py index e8a016f..7853b1e 100644 --- a/test/test_dataset_visualization_dto.py +++ b/test/test_dataset_visualization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,11 +37,7 @@ def make_instance(self, include_optional) -> 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, ) + zoom = {min=3, optimal=11, max=4, visibleFrom=11} ) else: return DatasetVisualizationDTO( diff --git a/test/test_dataset_vt_type_dto.py b/test/test_dataset_vt_type_dto.py index 436e9f5..7b2704a 100644 --- a/test/test_dataset_vt_type_dto.py +++ b/test/test_dataset_vt_type_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,11 +38,7 @@ def make_instance(self, include_optional) -> DatasetVtTypeDTO: return DatasetVtTypeDTO( type = 'vt', url_template = '', - zoom = cm_python_openapi_sdk.models.zoom_dto.ZoomDTO( - min = 2, - optimal = 2, - max = 2, - visible_from = 2, ) + zoom = {min=3, optimal=11, max=4, visibleFrom=11} ) else: return DatasetVtTypeDTO( diff --git a/test/test_datasets_api.py b/test/test_datasets_api.py index 0b2f20b..d3ced80 100644 --- a/test/test_datasets_api.py +++ b/test/test_datasets_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_date_filter_default_value_type.py b/test/test_date_filter_default_value_type.py index 2403405..6f6ef36 100644 --- a/test/test_date_filter_default_value_type.py +++ b/test/test_date_filter_default_value_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,12 +37,12 @@ def make_instance(self, include_optional) -> DateFilterDefaultValueType: if include_optional: return DateFilterDefaultValueType( value = '0', - function = cm_python_openapi_sdk.models.function.function() + function = None ) else: return DateFilterDefaultValueType( value = '0', - function = cm_python_openapi_sdk.models.function.function(), + function = None, ) """ diff --git a/test/test_date_filter_dto.py b/test/test_date_filter_dto.py index c6bc431..32813f2 100644 --- a/test/test_date_filter_dto.py +++ b/test/test_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_date_range_function.py b/test/test_date_range_function.py index 5b9b2e1..425dd21 100644 --- a/test/test_date_range_function.py +++ b/test/test_date_range_function.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,11 +36,11 @@ def make_instance(self, include_optional) -> DateRangeFunction: model = DateRangeFunction() if include_optional: return DateRangeFunction( - function = cm_python_openapi_sdk.models.function.function() + function = None ) else: return DateRangeFunction( - function = cm_python_openapi_sdk.models.function.function(), + function = None, ) """ diff --git a/test/test_date_range_function_function.py b/test/test_date_range_function_function.py new file mode 100644 index 0000000..4d4a017 --- /dev/null +++ b/test/test_date_range_function_function.py @@ -0,0 +1,64 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.date_range_function_function import DateRangeFunctionFunction + +class TestDateRangeFunctionFunction(unittest.TestCase): + """DateRangeFunctionFunction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DateRangeFunctionFunction: + """Test DateRangeFunctionFunction + 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 `DateRangeFunctionFunction` + """ + model = DateRangeFunctionFunction() + if include_optional: + return DateRangeFunctionFunction( + id = 'z0', + type = 'function_avg', + content = [ + {id=id, type=number, value=0.8008281904610115} + ], + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( + interval = 'day', ) + ) + else: + return DateRangeFunctionFunction( + type = 'function_avg', + content = [ + {id=id, type=number, value=0.8008281904610115} + ], + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( + interval = 'day', ), + ) + """ + + def testDateRangeFunctionFunction(self): + """Test DateRangeFunctionFunction""" + # 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_date_range_value.py b/test/test_date_range_value.py index c70f806..690315a 100644 --- a/test/test_date_range_value.py +++ b/test/test_date_range_value.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_date_ranges_api.py b/test/test_date_ranges_api.py new file mode 100644 index 0000000..5cdb3b7 --- /dev/null +++ b/test/test_date_ranges_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.date_ranges_api import DateRangesApi + + +class TestDateRangesApi(unittest.TestCase): + """DateRangesApi unit test stubs""" + + def setUp(self) -> None: + self.api = DateRangesApi() + + def tearDown(self) -> None: + pass + + def test_accept_date_ranges(self) -> None: + """Test case for accept_date_ranges + + Accept date ranges + """ + pass + + def test_get_date_ranges(self) -> None: + """Test case for get_date_ranges + + Get date ranges + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_default_distribution_dto.py b/test/test_default_distribution_dto.py index a4bbad0..cbbb73d 100644 --- a/test/test_default_distribution_dto.py +++ b/test/test_default_distribution_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_default_selected_dto.py b/test/test_default_selected_dto.py index eddc6fd..3739418 100644 --- a/test/test_default_selected_dto.py +++ b/test/test_default_selected_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,9 +41,7 @@ def make_instance(self, include_optional) -> DefaultSelectedDTO: null ], coordinates = [ - cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ) + {lng=6.027456183070403, lat=0.8008281904610115} ] ) else: diff --git a/test/test_default_values_date_dto.py b/test/test_default_values_date_dto.py index 749798b..098c5a4 100644 --- a/test/test_default_values_date_dto.py +++ b/test/test_default_values_date_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_default_values_feature_dto.py b/test/test_default_values_feature_dto.py index e6c0756..126f23b 100644 --- a/test/test_default_values_feature_dto.py +++ b/test/test_default_values_feature_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_default_values_histogram_dto.py b/test/test_default_values_histogram_dto.py index 3b4346a..f43fc47 100644 --- a/test/test_default_values_histogram_dto.py +++ b/test/test_default_values_histogram_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,7 +37,7 @@ def make_instance(self, include_optional) -> DefaultValuesHistogramDTO: if include_optional: return DefaultValuesHistogramDTO( values = [ - 1.337 + null ], null_filtered = True ) diff --git a/test/test_default_values_indicator_dto.py b/test/test_default_values_indicator_dto.py index c12679e..34e541b 100644 --- a/test/test_default_values_indicator_dto.py +++ b/test/test_default_values_indicator_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,7 +37,7 @@ def make_instance(self, include_optional) -> DefaultValuesIndicatorDTO: if include_optional: return DefaultValuesIndicatorDTO( values = [ - 1.337 + null ], breaks = [ 1.337 diff --git a/test/test_default_values_multi_select_dto.py b/test/test_default_values_multi_select_dto.py index ddcdeb9..70c1c29 100644 --- a/test/test_default_values_multi_select_dto.py +++ b/test/test_default_values_multi_select_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_default_values_single_select_dto.py b/test/test_default_values_single_select_dto.py index 2eb5a53..c188c2e 100644 --- a/test/test_default_values_single_select_dto.py +++ b/test/test_default_values_single_select_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_display_options_dto.py b/test/test_display_options_dto.py index 315c223..47e94b5 100644 --- a/test/test_display_options_dto.py +++ b/test/test_display_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,12 +37,7 @@ def make_instance(self, include_optional) -> 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', ) + {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=} ] ) else: diff --git a/test/test_distribution_dto.py b/test/test_distribution_dto.py index bb9ec60..df5ee37 100644 --- a/test/test_distribution_dto.py +++ b/test/test_distribution_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_double_counting_warnings.py b/test/test_double_counting_warnings.py new file mode 100644 index 0000000..e73e4d2 --- /dev/null +++ b/test/test_double_counting_warnings.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.double_counting_warnings import DoubleCountingWarnings + +class TestDoubleCountingWarnings(unittest.TestCase): + """DoubleCountingWarnings unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DoubleCountingWarnings: + """Test DoubleCountingWarnings + 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 `DoubleCountingWarnings` + """ + model = DoubleCountingWarnings() + if include_optional: + return DoubleCountingWarnings( + property_id = '', + detail_message = '' + ) + else: + return DoubleCountingWarnings( + ) + """ + + def testDoubleCountingWarnings(self): + """Test DoubleCountingWarnings""" + # 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_abstract_property.py b/test/test_dwh_abstract_property.py index d769df7..9e1c181 100644 --- a/test/test_dwh_abstract_property.py +++ b/test/test_dwh_abstract_property.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -42,15 +43,7 @@ def make_instance(self, include_optional) -> DwhAbstractProperty: 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', ) - ], ), + display_options = {valueOptions=[{hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}, {hexColor=hexColor, color=purple, pattern=solid, weight=5.637376656633329, value=}]}, geometry = None, foreign_key = None ) diff --git a/test/test_dwh_date_range_request.py b/test/test_dwh_date_range_request.py new file mode 100644 index 0000000..295feb8 --- /dev/null +++ b/test/test_dwh_date_range_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_date_range_request import DwhDateRangeRequest + +class TestDwhDateRangeRequest(unittest.TestCase): + """DwhDateRangeRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhDateRangeRequest: + """Test DwhDateRangeRequest + 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 `DwhDateRangeRequest` + """ + model = DwhDateRangeRequest() + if include_optional: + return DwhDateRangeRequest( + execution_context = {feature=feature, viewName=viewName}, + var_from = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + filter = {endDate=null, startDate={value=value}} + ) + else: + return DwhDateRangeRequest( + var_from = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + ) + """ + + def testDwhDateRangeRequest(self): + """Test DwhDateRangeRequest""" + # 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_date_range_request_filter.py b/test/test_dwh_date_range_request_filter.py new file mode 100644 index 0000000..6b475ae --- /dev/null +++ b/test/test_dwh_date_range_request_filter.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_date_range_request_filter import DwhDateRangeRequestFilter + +class TestDwhDateRangeRequestFilter(unittest.TestCase): + """DwhDateRangeRequestFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhDateRangeRequestFilter: + """Test DwhDateRangeRequestFilter + 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 `DwhDateRangeRequestFilter` + """ + model = DwhDateRangeRequestFilter() + if include_optional: + return DwhDateRangeRequestFilter( + start_date = None, + end_date = None + ) + else: + return DwhDateRangeRequestFilter( + ) + """ + + def testDwhDateRangeRequestFilter(self): + """Test DwhDateRangeRequestFilter""" + # 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_date_range_response.py b/test/test_dwh_date_range_response.py new file mode 100644 index 0000000..69013c1 --- /dev/null +++ b/test/test_dwh_date_range_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_date_range_response import DwhDateRangeResponse + +class TestDwhDateRangeResponse(unittest.TestCase): + """DwhDateRangeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhDateRangeResponse: + """Test DwhDateRangeResponse + 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 `DwhDateRangeResponse` + """ + model = DwhDateRangeResponse() + if include_optional: + return DwhDateRangeResponse( + content = [ + {min=min, filtered=true, max=max, property=property} + ] + ) + else: + return DwhDateRangeResponse( + content = [ + {min=min, filtered=true, max=max, property=property} + ], + ) + """ + + def testDwhDateRangeResponse(self): + """Test DwhDateRangeResponse""" + # 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_date_range_response_content_inner.py b/test/test_dwh_date_range_response_content_inner.py new file mode 100644 index 0000000..26eeff7 --- /dev/null +++ b/test/test_dwh_date_range_response_content_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_date_range_response_content_inner import DwhDateRangeResponseContentInner + +class TestDwhDateRangeResponseContentInner(unittest.TestCase): + """DwhDateRangeResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhDateRangeResponseContentInner: + """Test DwhDateRangeResponseContentInner + 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 `DwhDateRangeResponseContentInner` + """ + model = DwhDateRangeResponseContentInner() + if include_optional: + return DwhDateRangeResponseContentInner( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + filtered = True, + min = '', + max = '' + ) + else: + return DwhDateRangeResponseContentInner( + ) + """ + + def testDwhDateRangeResponseContentInner(self): + """Test DwhDateRangeResponseContentInner""" + # 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 index c71aa1b..512b0b1 100644 --- a/test/test_dwh_foreign_key_dto.py +++ b/test/test_dwh_foreign_key_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_geometry_dto.py b/test/test_dwh_geometry_dto.py index 31f7f32..d0701dc 100644 --- a/test/test_dwh_geometry_dto.py +++ b/test/test_dwh_geometry_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_metric_range_response.py b/test/test_dwh_metric_range_response.py new file mode 100644 index 0000000..a6ca22a --- /dev/null +++ b/test/test_dwh_metric_range_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_metric_range_response import DwhMetricRangeResponse + +class TestDwhMetricRangeResponse(unittest.TestCase): + """DwhMetricRangeResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhMetricRangeResponse: + """Test DwhMetricRangeResponse + 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 `DwhMetricRangeResponse` + """ + model = DwhMetricRangeResponse() + if include_optional: + return DwhMetricRangeResponse( + content = [ + {min={}, max={}, propertyId=propertyId} + ] + ) + else: + return DwhMetricRangeResponse( + content = [ + {min={}, max={}, propertyId=propertyId} + ], + ) + """ + + def testDwhMetricRangeResponse(self): + """Test DwhMetricRangeResponse""" + # 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_metric_range_response_content_inner.py b/test/test_dwh_metric_range_response_content_inner.py new file mode 100644 index 0000000..b08519b --- /dev/null +++ b/test/test_dwh_metric_range_response_content_inner.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_metric_range_response_content_inner import DwhMetricRangeResponseContentInner + +class TestDwhMetricRangeResponseContentInner(unittest.TestCase): + """DwhMetricRangeResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhMetricRangeResponseContentInner: + """Test DwhMetricRangeResponseContentInner + 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 `DwhMetricRangeResponseContentInner` + """ + model = DwhMetricRangeResponseContentInner() + if include_optional: + return DwhMetricRangeResponseContentInner( + property_id = '0', + min = None, + max = None + ) + else: + return DwhMetricRangeResponseContentInner( + ) + """ + + def testDwhMetricRangeResponseContentInner(self): + """Test DwhMetricRangeResponseContentInner""" + # 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_metric_values_distribution_response.py b/test/test_dwh_metric_values_distribution_response.py new file mode 100644 index 0000000..86ded70 --- /dev/null +++ b/test/test_dwh_metric_values_distribution_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_metric_values_distribution_response import DwhMetricValuesDistributionResponse + +class TestDwhMetricValuesDistributionResponse(unittest.TestCase): + """DwhMetricValuesDistributionResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhMetricValuesDistributionResponse: + """Test DwhMetricValuesDistributionResponse + 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 `DwhMetricValuesDistributionResponse` + """ + model = DwhMetricValuesDistributionResponse() + if include_optional: + return DwhMetricValuesDistributionResponse( + content = [ + {min=0.8008281904610115, max=6.027456183070403, content=[{propertyId=propertyId, frequency=1}, {propertyId=propertyId, frequency=1}]} + ] + ) + else: + return DwhMetricValuesDistributionResponse( + content = [ + {min=0.8008281904610115, max=6.027456183070403, content=[{propertyId=propertyId, frequency=1}, {propertyId=propertyId, frequency=1}]} + ], + ) + """ + + def testDwhMetricValuesDistributionResponse(self): + """Test DwhMetricValuesDistributionResponse""" + # 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_metric_values_distribution_response_content_inner.py b/test/test_dwh_metric_values_distribution_response_content_inner.py new file mode 100644 index 0000000..e2f3ae9 --- /dev/null +++ b/test/test_dwh_metric_values_distribution_response_content_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_metric_values_distribution_response_content_inner import DwhMetricValuesDistributionResponseContentInner + +class TestDwhMetricValuesDistributionResponseContentInner(unittest.TestCase): + """DwhMetricValuesDistributionResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhMetricValuesDistributionResponseContentInner: + """Test DwhMetricValuesDistributionResponseContentInner + 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 `DwhMetricValuesDistributionResponseContentInner` + """ + model = DwhMetricValuesDistributionResponseContentInner() + if include_optional: + return DwhMetricValuesDistributionResponseContentInner( + min = 1.337, + max = 1.337, + content = [ + {propertyId=propertyId, frequency=1} + ] + ) + else: + return DwhMetricValuesDistributionResponseContentInner( + ) + """ + + def testDwhMetricValuesDistributionResponseContentInner(self): + """Test DwhMetricValuesDistributionResponseContentInner""" + # 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_metric_values_distribution_response_content_inner_content_inner.py b/test/test_dwh_metric_values_distribution_response_content_inner_content_inner.py new file mode 100644 index 0000000..9bd2341 --- /dev/null +++ b/test/test_dwh_metric_values_distribution_response_content_inner_content_inner.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_metric_values_distribution_response_content_inner_content_inner import DwhMetricValuesDistributionResponseContentInnerContentInner + +class TestDwhMetricValuesDistributionResponseContentInnerContentInner(unittest.TestCase): + """DwhMetricValuesDistributionResponseContentInnerContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhMetricValuesDistributionResponseContentInnerContentInner: + """Test DwhMetricValuesDistributionResponseContentInnerContentInner + 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 `DwhMetricValuesDistributionResponseContentInnerContentInner` + """ + model = DwhMetricValuesDistributionResponseContentInnerContentInner() + if include_optional: + return DwhMetricValuesDistributionResponseContentInnerContentInner( + property_id = '0', + frequency = 56 + ) + else: + return DwhMetricValuesDistributionResponseContentInnerContentInner( + ) + """ + + def testDwhMetricValuesDistributionResponseContentInnerContentInner(self): + """Test DwhMetricValuesDistributionResponseContentInnerContentInner""" + # 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_overlaps_request.py b/test/test_dwh_overlaps_request.py new file mode 100644 index 0000000..15b225a --- /dev/null +++ b/test/test_dwh_overlaps_request.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_overlaps_request import DwhOverlapsRequest + +class TestDwhOverlapsRequest(unittest.TestCase): + """DwhOverlapsRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhOverlapsRequest: + """Test DwhOverlapsRequest + 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 `DwhOverlapsRequest` + """ + model = DwhOverlapsRequest() + if include_optional: + return DwhOverlapsRequest( + operators = [ + 'self' + ], + objects = [ + null + ], + granularity = 'awat5ikwowtta-3mh2lcafqw3zhes', + query = {resultSetFilter=[{propertyId=propertyId, value=, operator=eq}, {propertyId=propertyId, value=, operator=eq}], variables=[{variable=variable, value=6.027456183070403}, {variable=variable, value=6.027456183070403}], having=[{propertyId=propertyId, value=0.8008281904610115, operator=eq}, {propertyId=propertyId, value=0.8008281904610115, operator=eq}], executionContext=, limit=1, orderBy=[{property=, nulls=last, propertyId=propertyId, direction=asc}, {property=, nulls=last, propertyId=propertyId, direction=asc}], filterBy=[null, null], properties=[{id=id, type=number, value=0.8008281904610115}, {id=id, type=number, value=0.8008281904610115}]} + ) + else: + return DwhOverlapsRequest( + operators = [ + 'self' + ], + objects = [ + null + ], + granularity = 'awat5ikwowtta-3mh2lcafqw3zhes', + query = {resultSetFilter=[{propertyId=propertyId, value=, operator=eq}, {propertyId=propertyId, value=, operator=eq}], variables=[{variable=variable, value=6.027456183070403}, {variable=variable, value=6.027456183070403}], having=[{propertyId=propertyId, value=0.8008281904610115, operator=eq}, {propertyId=propertyId, value=0.8008281904610115, operator=eq}], executionContext=, limit=1, orderBy=[{property=, nulls=last, propertyId=propertyId, direction=asc}, {property=, nulls=last, propertyId=propertyId, direction=asc}], filterBy=[null, null], properties=[{id=id, type=number, value=0.8008281904610115}, {id=id, type=number, value=0.8008281904610115}]}, + ) + """ + + def testDwhOverlapsRequest(self): + """Test DwhOverlapsRequest""" + # 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_overlaps_response.py b/test/test_dwh_overlaps_response.py new file mode 100644 index 0000000..3f534e6 --- /dev/null +++ b/test/test_dwh_overlaps_response.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_overlaps_response import DwhOverlapsResponse + +class TestDwhOverlapsResponse(unittest.TestCase): + """DwhOverlapsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhOverlapsResponse: + """Test DwhOverlapsResponse + 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 `DwhOverlapsResponse` + """ + model = DwhOverlapsResponse() + if include_optional: + return DwhOverlapsResponse( + content = [ + {propertyId=propertyId, results=[{objects=[objects, objects], value=0.8008281904610115, operator=self}, {objects=[objects, objects], value=0.8008281904610115, operator=self}]} + ] + ) + else: + return DwhOverlapsResponse( + content = [ + {propertyId=propertyId, results=[{objects=[objects, objects], value=0.8008281904610115, operator=self}, {objects=[objects, objects], value=0.8008281904610115, operator=self}]} + ], + ) + """ + + def testDwhOverlapsResponse(self): + """Test DwhOverlapsResponse""" + # 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_overlaps_response_content_inner.py b/test/test_dwh_overlaps_response_content_inner.py new file mode 100644 index 0000000..f807768 --- /dev/null +++ b/test/test_dwh_overlaps_response_content_inner.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_overlaps_response_content_inner import DwhOverlapsResponseContentInner + +class TestDwhOverlapsResponseContentInner(unittest.TestCase): + """DwhOverlapsResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhOverlapsResponseContentInner: + """Test DwhOverlapsResponseContentInner + 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 `DwhOverlapsResponseContentInner` + """ + model = DwhOverlapsResponseContentInner() + if include_optional: + return DwhOverlapsResponseContentInner( + property_id = '0', + results = [ + {objects=[objects, objects], value=0.8008281904610115, operator=self} + ] + ) + else: + return DwhOverlapsResponseContentInner( + ) + """ + + def testDwhOverlapsResponseContentInner(self): + """Test DwhOverlapsResponseContentInner""" + # 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_overlaps_response_content_inner_results_inner.py b/test/test_dwh_overlaps_response_content_inner_results_inner.py new file mode 100644 index 0000000..6c339eb --- /dev/null +++ b/test/test_dwh_overlaps_response_content_inner_results_inner.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_overlaps_response_content_inner_results_inner import DwhOverlapsResponseContentInnerResultsInner + +class TestDwhOverlapsResponseContentInnerResultsInner(unittest.TestCase): + """DwhOverlapsResponseContentInnerResultsInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhOverlapsResponseContentInnerResultsInner: + """Test DwhOverlapsResponseContentInnerResultsInner + 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 `DwhOverlapsResponseContentInnerResultsInner` + """ + model = DwhOverlapsResponseContentInnerResultsInner() + if include_optional: + return DwhOverlapsResponseContentInnerResultsInner( + operator = 'self', + objects = [ + '0' + ], + value = 1.337 + ) + else: + return DwhOverlapsResponseContentInnerResultsInner( + ) + """ + + def testDwhOverlapsResponseContentInnerResultsInner(self): + """Test DwhOverlapsResponseContentInnerResultsInner""" + # 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 index de9b048..0ae2592 100644 --- a/test/test_dwh_property_dto.py +++ b/test/test_dwh_property_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_property_values_distribution_request.py b/test/test_dwh_property_values_distribution_request.py new file mode 100644 index 0000000..cc93010 --- /dev/null +++ b/test/test_dwh_property_values_distribution_request.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_values_distribution_request import DwhPropertyValuesDistributionRequest + +class TestDwhPropertyValuesDistributionRequest(unittest.TestCase): + """DwhPropertyValuesDistributionRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhPropertyValuesDistributionRequest: + """Test DwhPropertyValuesDistributionRequest + 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 `DwhPropertyValuesDistributionRequest` + """ + model = DwhPropertyValuesDistributionRequest() + if include_optional: + return DwhPropertyValuesDistributionRequest( + execution_context = {feature=feature, viewName=viewName}, + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + buckets = 56, + min = 1.337, + max = 1.337 + ) + else: + return DwhPropertyValuesDistributionRequest( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + ) + """ + + def testDwhPropertyValuesDistributionRequest(self): + """Test DwhPropertyValuesDistributionRequest""" + # 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_values_request.py b/test/test_dwh_property_values_request.py new file mode 100644 index 0000000..96915a0 --- /dev/null +++ b/test/test_dwh_property_values_request.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_values_request import DwhPropertyValuesRequest + +class TestDwhPropertyValuesRequest(unittest.TestCase): + """DwhPropertyValuesRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhPropertyValuesRequest: + """Test DwhPropertyValuesRequest + 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 `DwhPropertyValuesRequest` + """ + model = DwhPropertyValuesRequest() + if include_optional: + return DwhPropertyValuesRequest( + execution_context = {feature=feature, viewName=viewName}, + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + filter = '' + ) + else: + return DwhPropertyValuesRequest( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + ) + """ + + def testDwhPropertyValuesRequest(self): + """Test DwhPropertyValuesRequest""" + # 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 index 430c201..2eaa66d 100644 --- a/test/test_dwh_query_function_types.py +++ b/test/test_dwh_query_function_types.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,14 +41,11 @@ def make_instance(self, include_optional) -> DwhQueryFunctionTypes: 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, ) + {id=id, type=number, value=0.8008281904610115} ], - options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options( + options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistanceOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', - central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint( + central_point = cm_python_openapi_sdk.models.central_point.CentralPoint( lat = 1.337, lng = 1.337, ), ) ) @@ -57,14 +55,11 @@ def make_instance(self, include_optional) -> DwhQueryFunctionTypes: 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, ) + {id=id, type=number, value=0.8008281904610115} ], - options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options( + options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistanceOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', - central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint( + central_point = cm_python_openapi_sdk.models.central_point.CentralPoint( lat = 1.337, lng = 1.337, ), ), ) diff --git a/test/test_dwh_query_metric_type.py b/test/test_dwh_query_metric_type.py index f158eba..e26db36 100644 --- a/test/test_dwh_query_metric_type.py +++ b/test/test_dwh_query_metric_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_query_number_type.py b/test/test_dwh_query_number_type.py index 2133705..7f993eb 100644 --- a/test/test_dwh_query_number_type.py +++ b/test/test_dwh_query_number_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_query_property_type.py b/test/test_dwh_query_property_type.py index af51c5a..d167f40 100644 --- a/test/test_dwh_query_property_type.py +++ b/test/test_dwh_query_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_dwh_query_property_types.py b/test/test_dwh_query_property_types.py new file mode 100644 index 0000000..23e4d3b --- /dev/null +++ b/test/test_dwh_query_property_types.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_types import DwhQueryPropertyTypes + +class TestDwhQueryPropertyTypes(unittest.TestCase): + """DwhQueryPropertyTypes unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhQueryPropertyTypes: + """Test DwhQueryPropertyTypes + 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 `DwhQueryPropertyTypes` + """ + model = DwhQueryPropertyTypes() + if include_optional: + return DwhQueryPropertyTypes( + id = 'z0', + type = 'number', + value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', + content = [ + null + ], + options = cm_python_openapi_sdk.models.function_options_arithm.FunctionOptionsArithm() + ) + else: + return DwhQueryPropertyTypes( + type = 'number', + value = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', + content = [ + null + ], + ) + """ + + def testDwhQueryPropertyTypes(self): + """Test DwhQueryPropertyTypes""" + # 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_request.py b/test/test_dwh_query_request.py new file mode 100644 index 0000000..d92c37e --- /dev/null +++ b/test/test_dwh_query_request.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_request import DwhQueryRequest + +class TestDwhQueryRequest(unittest.TestCase): + """DwhQueryRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhQueryRequest: + """Test DwhQueryRequest + 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 `DwhQueryRequest` + """ + model = DwhQueryRequest() + if include_optional: + return DwhQueryRequest( + execution_context = None, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1 + ) + else: + return DwhQueryRequest( + properties = [ + null + ], + ) + """ + + def testDwhQueryRequest(self): + """Test DwhQueryRequest""" + # 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_request1.py b/test/test_dwh_query_request1.py new file mode 100644 index 0000000..27e9939 --- /dev/null +++ b/test/test_dwh_query_request1.py @@ -0,0 +1,74 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_request1 import DwhQueryRequest1 + +class TestDwhQueryRequest1(unittest.TestCase): + """DwhQueryRequest1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> DwhQueryRequest1: + """Test DwhQueryRequest1 + 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 `DwhQueryRequest1` + """ + model = DwhQueryRequest1() + if include_optional: + return DwhQueryRequest1( + execution_context = None, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1 + ) + else: + return DwhQueryRequest1( + properties = [ + null + ], + ) + """ + + def testDwhQueryRequest1(self): + """Test DwhQueryRequest1""" + # 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_execution_context.py b/test/test_execution_context.py new file mode 100644 index 0000000..55e4343 --- /dev/null +++ b/test/test_execution_context.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.execution_context import ExecutionContext + +class TestExecutionContext(unittest.TestCase): + """ExecutionContext unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionContext: + """Test ExecutionContext + 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 `ExecutionContext` + """ + model = ExecutionContext() + if include_optional: + return ExecutionContext( + feature = '0', + view_name = 'awat5ikwowtta-3mh2lcafqw3zhes' + ) + else: + return ExecutionContext( + ) + """ + + def testExecutionContext(self): + """Test ExecutionContext""" + # 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_execution_detail.py b/test/test_execution_detail.py new file mode 100644 index 0000000..b0e81de --- /dev/null +++ b/test/test_execution_detail.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.execution_detail import ExecutionDetail + +class TestExecutionDetail(unittest.TestCase): + """ExecutionDetail unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ExecutionDetail: + """Test ExecutionDetail + 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 `ExecutionDetail` + """ + model = ExecutionDetail() + if include_optional: + return ExecutionDetail( + double_counting_warnings = [ + {detailMessage=detailMessage, propertyId=propertyId} + ], + dwh_query_metric_names = [ + '' + ], + feature = '0', + view_name = 'awat5ikwowtta-3mh2lcafqw3zhes' + ) + else: + return ExecutionDetail( + ) + """ + + def testExecutionDetail(self): + """Test ExecutionDetail""" + # 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_explain_api.py b/test/test_explain_api.py new file mode 100644 index 0000000..2c072b6 --- /dev/null +++ b/test/test_explain_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.explain_api import ExplainApi + + +class TestExplainApi(unittest.TestCase): + """ExplainApi unit test stubs""" + + def setUp(self) -> None: + self.api = ExplainApi() + + def tearDown(self) -> None: + pass + + def test_explain(self) -> None: + """Test case for explain + + Explain query + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_export_api.py b/test/test_export_api.py new file mode 100644 index 0000000..afc7330 --- /dev/null +++ b/test/test_export_api.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.export_api import ExportApi + + +class TestExportApi(unittest.TestCase): + """ExportApi unit test stubs""" + + def setUp(self) -> None: + self.api = ExportApi() + + def tearDown(self) -> None: + pass + + def test_get_exported_data(self) -> None: + """Test case for get_exported_data + + Get exported data + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_export_content_dto.py b/test/test_export_content_dto.py index 36cb6f3..4a81ac2 100644 --- a/test/test_export_content_dto.py +++ b/test/test_export_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,11 +39,7 @@ def make_instance(self, include_optional) -> 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', ) + output = {filename=filename, format=csv, header=basic, type=file} ) else: return ExportContentDTO( diff --git a/test/test_export_dto.py b/test/test_export_dto.py index e772150..4a4e82f 100644 --- a/test/test_export_dto.py +++ b/test/test_export_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,28 +41,12 @@ def make_instance(self, include_optional) -> ExportDTO: 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', ), ) + content = {output={filename=filename, format=csv, header=basic, type=file}, properties=[properties, properties]} ) 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', ), ), + content = {output={filename=filename, format=csv, header=basic, type=file}, properties=[properties, properties]}, ) """ diff --git a/test/test_export_job_request.py b/test/test_export_job_request.py index 8c08999..06ac54b 100644 --- a/test/test_export_job_request.py +++ b/test/test_export_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_export_link_dto.py b/test/test_export_link_dto.py index 3aee568..af3ba46 100644 --- a/test/test_export_link_dto.py +++ b/test/test_export_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_export_paged_model_dto.py b/test/test_export_paged_model_dto.py index 756673a..0a26690 100644 --- a/test/test_export_paged_model_dto.py +++ b/test/test_export_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,30 +37,12 @@ def make_instance(self, include_optional) -> 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', ), ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={output={filename=filename, format=csv, header=basic, type=file}, properties=[properties, properties]}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return ExportPagedModelDTO( diff --git a/test/test_export_request.py b/test/test_export_request.py index 2e78855..8fbb5e9 100644 --- a/test/test_export_request.py +++ b/test/test_export_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_export_request_csv_options.py b/test/test_export_request_csv_options.py index be63285..5fffc05 100644 --- a/test/test_export_request_csv_options.py +++ b/test/test_export_request_csv_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_exports_api.py b/test/test_exports_api.py index 12887f3..ba2b610 100644 --- a/test/test_exports_api.py +++ b/test/test_exports_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_feature_attribute_dto.py b/test/test_feature_attribute_dto.py index e958f75..0edefca 100644 --- a/test/test_feature_attribute_dto.py +++ b/test/test_feature_attribute_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,10 +38,7 @@ def make_instance(self, include_optional) -> FeatureAttributeDTO: return FeatureAttributeDTO( type = 'property', value = '', - format = cm_python_openapi_sdk.models.attribute_format_dto.AttributeFormatDTO( - type = 'text', - fraction = 0, - symbol = '', ), + format = {symbol=symbol, type=text, fraction=0}, layout = 'primary' ) else: diff --git a/test/test_feature_filter_dto.py b/test/test_feature_filter_dto.py index 41af79a..8565202 100644 --- a/test/test_feature_filter_dto.py +++ b/test/test_feature_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_feature_function_dto.py b/test/test_feature_function_dto.py index 19cd77e..36a98c1 100644 --- a/test/test_feature_function_dto.py +++ b/test/test_feature_function_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_feature_property_dto.py b/test/test_feature_property_dto.py index ae375e1..b730761 100644 --- a/test/test_feature_property_dto.py +++ b/test/test_feature_property_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_feature_property_type.py b/test/test_feature_property_type.py index 5ae1535..800c40f 100644 --- a/test/test_feature_property_type.py +++ b/test/test_feature_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_feature_text_dto.py b/test/test_feature_text_dto.py index e78fb4c..8e06f8e 100644 --- a/test/test_feature_text_dto.py +++ b/test/test_feature_text_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_filter_abstract_type.py b/test/test_filter_abstract_type.py index 6f50d90..68d9b26 100644 --- a/test/test_filter_abstract_type.py +++ b/test/test_filter_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,14 +38,9 @@ def make_instance(self, include_optional) -> FilterAbstractType: return FilterAbstractType( type = 'date', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), + format = {symbol=symbol, type=number, fraction=0}, order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ], indicator = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', filter_selection = True, diff --git a/test/test_filter_by.py b/test/test_filter_by.py new file mode 100644 index 0000000..7cbd17a --- /dev/null +++ b/test/test_filter_by.py @@ -0,0 +1,110 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by import FilterBy + +class TestFilterBy(unittest.TestCase): + """FilterBy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterBy: + """Test FilterBy + 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 `FilterBy` + """ + model = FilterBy() + if include_optional: + return FilterBy( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + value = [ + null + ], + function = None, + operator = 'and', + query = cm_python_openapi_sdk.models.dwh_query_request.DwhQueryRequest( + execution_context = null, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1, ), + content = [ + null + ] + ) + else: + return FilterBy( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + value = [ + null + ], + operator = 'and', + query = cm_python_openapi_sdk.models.dwh_query_request.DwhQueryRequest( + execution_context = null, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1, ), + content = [ + null + ], + ) + """ + + def testFilterBy(self): + """Test FilterBy""" + # 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_by_attribute.py b/test/test_filter_by_attribute.py new file mode 100644 index 0000000..804e5d8 --- /dev/null +++ b/test/test_filter_by_attribute.py @@ -0,0 +1,97 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_attribute import FilterByAttribute + +class TestFilterByAttribute(unittest.TestCase): + """FilterByAttribute unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByAttribute: + """Test FilterByAttribute + 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 `FilterByAttribute` + """ + model = FilterByAttribute() + if include_optional: + return FilterByAttribute( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + function = None, + query = cm_python_openapi_sdk.models.dwh_query_request.DwhQueryRequest( + execution_context = null, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1, ), + operator = 'inAttribute' + ) + else: + return FilterByAttribute( + query = cm_python_openapi_sdk.models.dwh_query_request.DwhQueryRequest( + execution_context = null, + properties = [ + null + ], + filter_by = [ + null + ], + having = [ + null + ], + result_set_filter = [ + null + ], + order_by = [ + {property=, nulls=last, propertyId=propertyId, direction=asc} + ], + variables = [ + {variable=variable, value=6.027456183070403} + ], + limit = 1, ), + operator = 'inAttribute', + ) + """ + + def testFilterByAttribute(self): + """Test FilterByAttribute""" + # 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_by_boolean.py b/test/test_filter_by_boolean.py new file mode 100644 index 0000000..454f1f4 --- /dev/null +++ b/test/test_filter_by_boolean.py @@ -0,0 +1,59 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_boolean import FilterByBoolean + +class TestFilterByBoolean(unittest.TestCase): + """FilterByBoolean unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByBoolean: + """Test FilterByBoolean + 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 `FilterByBoolean` + """ + model = FilterByBoolean() + if include_optional: + return FilterByBoolean( + operator = 'and', + content = [ + null + ] + ) + else: + return FilterByBoolean( + operator = 'and', + content = [ + null + ], + ) + """ + + def testFilterByBoolean(self): + """Test FilterByBoolean""" + # 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_by_comp.py b/test/test_filter_by_comp.py new file mode 100644 index 0000000..7c40e6a --- /dev/null +++ b/test/test_filter_by_comp.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_comp import FilterByComp + +class TestFilterByComp(unittest.TestCase): + """FilterByComp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByComp: + """Test FilterByComp + 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 `FilterByComp` + """ + model = FilterByComp() + if include_optional: + return FilterByComp( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + value = None, + function = None, + operator = 'eq' + ) + else: + return FilterByComp( + operator = 'eq', + ) + """ + + def testFilterByComp(self): + """Test FilterByComp""" + # 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_by_in.py b/test/test_filter_by_in.py new file mode 100644 index 0000000..a283118 --- /dev/null +++ b/test/test_filter_by_in.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_in import FilterByIn + +class TestFilterByIn(unittest.TestCase): + """FilterByIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByIn: + """Test FilterByIn + 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 `FilterByIn` + """ + model = FilterByIn() + if include_optional: + return FilterByIn( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + function = None, + value = [ + null + ], + operator = 'in' + ) + else: + return FilterByIn( + value = [ + null + ], + operator = 'in', + ) + """ + + def testFilterByIn(self): + """Test FilterByIn""" + # 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_by_in1.py b/test/test_filter_by_in1.py new file mode 100644 index 0000000..95d85e8 --- /dev/null +++ b/test/test_filter_by_in1.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_in1 import FilterByIn1 + +class TestFilterByIn1(unittest.TestCase): + """FilterByIn1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByIn1: + """Test FilterByIn1 + 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 `FilterByIn1` + """ + model = FilterByIn1() + if include_optional: + return FilterByIn1( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + function = None, + value = [ + null + ], + operator = 'in' + ) + else: + return FilterByIn1( + value = [ + null + ], + operator = 'in', + ) + """ + + def testFilterByIn1(self): + """Test FilterByIn1""" + # 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_by_unary.py b/test/test_filter_by_unary.py new file mode 100644 index 0000000..9cd3dd3 --- /dev/null +++ b/test/test_filter_by_unary.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.filter_by_unary import FilterByUnary + +class TestFilterByUnary(unittest.TestCase): + """FilterByUnary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FilterByUnary: + """Test FilterByUnary + 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 `FilterByUnary` + """ + model = FilterByUnary() + if include_optional: + return FilterByUnary( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + operator = 'isNull' + ) + else: + return FilterByUnary( + var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', + operator = 'isNull', + ) + """ + + def testFilterByUnary(self): + """Test FilterByUnary""" + # 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_format_dto.py b/test/test_format_dto.py index 6179223..6f58915 100644 --- a/test/test_format_dto.py +++ b/test/test_format_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_agg_type_general.py b/test/test_function_agg_type_general.py index 3e00fd9..1416395 100644 --- a/test/test_function_agg_type_general.py +++ b/test/test_function_agg_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionAggTypeGeneral: content = [ null ], - options = None + options = cm_python_openapi_sdk.models.options.options() ) else: return FunctionAggTypeGeneral( diff --git a/test/test_function_arithm_type_general.py b/test/test_function_arithm_type_general.py index 5d5ca32..cc4b392 100644 --- a/test/test_function_arithm_type_general.py +++ b/test/test_function_arithm_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionArithmTypeGeneral: content = [ null ], - options = None + options = cm_python_openapi_sdk.models.function_options_arithm.FunctionOptionsArithm() ) else: return FunctionArithmTypeGeneral( diff --git a/test/test_function_condition_type_general.py b/test/test_function_condition_type_general.py index 87889a7..ca3093f 100644 --- a/test/test_function_condition_type_general.py +++ b/test/test_function_condition_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionConditionTypeGeneral: content = [ null ], - options = None + options = cm_python_openapi_sdk.models.function_options_condition.FunctionOptionsCondition() ) else: return FunctionConditionTypeGeneral( diff --git a/test/test_function_date_trunc.py b/test/test_function_date_trunc.py index bf4a83c..472c86e 100644 --- a/test/test_function_date_trunc.py +++ b/test/test_function_date_trunc.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionDateTrunc: content = [ null ], - options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options( + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( interval = 'day', ) ) else: @@ -49,7 +50,7 @@ def make_instance(self, include_optional) -> FunctionDateTrunc: content = [ null ], - options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options( + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( interval = 'day', ), ) """ diff --git a/test/test_function_date_trunc_options.py b/test/test_function_date_truncate_options.py similarity index 50% rename from test/test_function_date_trunc_options.py rename to test/test_function_date_truncate_options.py index 6da3dc1..15e948e 100644 --- a/test/test_function_date_trunc_options.py +++ b/test/test_function_date_truncate_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +15,10 @@ import unittest -from cm_python_openapi_sdk.models.function_date_trunc_options import FunctionDateTruncOptions +from cm_python_openapi_sdk.models.function_date_truncate_options import FunctionDateTruncateOptions -class TestFunctionDateTruncOptions(unittest.TestCase): - """FunctionDateTruncOptions unit test stubs""" +class TestFunctionDateTruncateOptions(unittest.TestCase): + """FunctionDateTruncateOptions unit test stubs""" def setUp(self): pass @@ -25,26 +26,26 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FunctionDateTruncOptions: - """Test FunctionDateTruncOptions + def make_instance(self, include_optional) -> FunctionDateTruncateOptions: + """Test FunctionDateTruncateOptions 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` + # uncomment below to create an instance of `FunctionDateTruncateOptions` """ - model = FunctionDateTruncOptions() + model = FunctionDateTruncateOptions() if include_optional: - return FunctionDateTruncOptions( + return FunctionDateTruncateOptions( interval = 'day' ) else: - return FunctionDateTruncOptions( + return FunctionDateTruncateOptions( interval = 'day', ) """ - def testFunctionDateTruncOptions(self): - """Test FunctionDateTruncOptions""" + def testFunctionDateTruncateOptions(self): + """Test FunctionDateTruncateOptions""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_function_distance.py b/test/test_function_distance.py index 0c0d263..11dc81d 100644 --- a/test/test_function_distance.py +++ b/test/test_function_distance.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,18 +38,18 @@ def make_instance(self, include_optional) -> FunctionDistance: return FunctionDistance( id = 'z0', type = 'function_distance', - options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options( + options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistanceOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', - central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint( + central_point = cm_python_openapi_sdk.models.central_point.CentralPoint( lat = 1.337, lng = 1.337, ), ) ) else: return FunctionDistance( type = 'function_distance', - options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistance_options( + options = cm_python_openapi_sdk.models.function_distance_options.FunctionDistanceOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', - central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint( + central_point = cm_python_openapi_sdk.models.central_point.CentralPoint( lat = 1.337, lng = 1.337, ), ), ) diff --git a/test/test_function_distance_options.py b/test/test_function_distance_options.py index 86cd9bb..b7935d4 100644 --- a/test/test_function_distance_options.py +++ b/test/test_function_distance_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,14 +37,14 @@ def make_instance(self, include_optional) -> FunctionDistanceOptions: if include_optional: return FunctionDistanceOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', - central_point = cm_python_openapi_sdk.models.function_distance_options_central_point.FunctionDistance_options_centralPoint( + central_point = cm_python_openapi_sdk.models.central_point.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( + central_point = cm_python_openapi_sdk.models.central_point.CentralPoint( lat = 1.337, lng = 1.337, ), ) diff --git a/test/test_function_h3_grid.py b/test/test_function_h3_grid.py index eb992b2..9e381e5 100644 --- a/test/test_function_h3_grid.py +++ b/test/test_function_h3_grid.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,14 +38,14 @@ def make_instance(self, include_optional) -> FunctionH3Grid: return FunctionH3Grid( id = 'z0', type = 'function_h3_grid', - options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3Grid_options( + options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3GridOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', resolution = 0, ) ) else: return FunctionH3Grid( type = 'function_h3_grid', - options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3Grid_options( + options = cm_python_openapi_sdk.models.function_h3_grid_options.FunctionH3GridOptions( dataset = 'awat5ikwowtta-3mh2lcafqw3zhes', resolution = 0, ), ) diff --git a/test/test_function_h3_grid_options.py b/test/test_function_h3_grid_options.py index 0a15d45..2e02696 100644 --- a/test/test_function_h3_grid_options.py +++ b/test/test_function_h3_grid_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_interval.py b/test/test_function_interval.py index 1ca1dec..47334da 100644 --- a/test/test_function_interval.py +++ b/test/test_function_interval.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,24 +39,18 @@ def make_instance(self, include_optional) -> FunctionInterval: id = 'z0', type = 'function_interval', content = [ - cm_python_openapi_sdk.models.dwh_query_number_type.DwhQueryNumberType( - id = 'z0', - type = 'number', - value = 1.337, ) + {id=id, type=number, value=0.8008281904610115} ], - options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options( + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( 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, ) + {id=id, type=number, value=0.8008281904610115} ], - options = cm_python_openapi_sdk.models.function_date_trunc_options.FunctionDateTrunc_options( + options = cm_python_openapi_sdk.models.function_date_truncate_options.FunctionDateTruncateOptions( interval = 'day', ), ) """ diff --git a/test/test_function_ntile.py b/test/test_function_ntile.py index 1065a4b..ab77ef4 100644 --- a/test/test_function_ntile.py +++ b/test/test_function_ntile.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionNtile: content = [ null ], - options = cm_python_openapi_sdk.models.function_ntile_options.FunctionNtile_options( + options = cm_python_openapi_sdk.models.function_ntile_options.FunctionNtileOptions( sort = 'asc', buckets = 56, partition_by = [ diff --git a/test/test_function_ntile_content_inner.py b/test/test_function_ntile_content_inner.py new file mode 100644 index 0000000..3c24b18 --- /dev/null +++ b/test/test_function_ntile_content_inner.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_content_inner import FunctionNtileContentInner + +class TestFunctionNtileContentInner(unittest.TestCase): + """FunctionNtileContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> FunctionNtileContentInner: + """Test FunctionNtileContentInner + 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 `FunctionNtileContentInner` + """ + model = FunctionNtileContentInner() + if include_optional: + return FunctionNtileContentInner( + id = 'z0', + type = 'function_avg', + content = [ + null + ], + options = cm_python_openapi_sdk.models.options.options() + ) + else: + return FunctionNtileContentInner( + type = 'function_avg', + content = [ + null + ], + ) + """ + + def testFunctionNtileContentInner(self): + """Test FunctionNtileContentInner""" + # 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 index 0763c04..73b157e 100644 --- a/test/test_function_ntile_options.py +++ b/test/test_function_ntile_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_percent_to_total_type_general.py b/test/test_function_percent_to_total_type_general.py index d3d5cf7..77f038c 100644 --- a/test/test_function_percent_to_total_type_general.py +++ b/test/test_function_percent_to_total_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_percentile.py b/test/test_function_percentile.py index 4dab3d7..95e313d 100644 --- a/test/test_function_percentile.py +++ b/test/test_function_percentile.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_property_type.py b/test/test_function_property_type.py index 1130736..c75930e 100644 --- a/test/test_function_property_type.py +++ b/test/test_function_property_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_rank.py b/test/test_function_rank.py index b954787..d2223d6 100644 --- a/test/test_function_rank.py +++ b/test/test_function_rank.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_round_type_general.py b/test/test_function_round_type_general.py index df4b9fc..858ea41 100644 --- a/test/test_function_round_type_general.py +++ b/test/test_function_round_type_general.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> FunctionRoundTypeGeneral: content = [ null ], - options = None + options = cm_python_openapi_sdk.models.options.options() ) else: return FunctionRoundTypeGeneral( diff --git a/test/test_function_row_number.py b/test/test_function_row_number.py index 6aa0d65..177d178 100644 --- a/test/test_function_row_number.py +++ b/test/test_function_row_number.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_function_today.py b/test/test_function_today.py index 208abf4..2bd6056 100644 --- a/test/test_function_today.py +++ b/test/test_function_today.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_geosearch_paged_model_dto.py b/test/test_geosearch_paged_model_dto.py new file mode 100644 index 0000000..d0d12b2 --- /dev/null +++ b/test/test_geosearch_paged_model_dto.py @@ -0,0 +1,58 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.geosearch_paged_model_dto import GeosearchPagedModelDTO + +class TestGeosearchPagedModelDTO(unittest.TestCase): + """GeosearchPagedModelDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GeosearchPagedModelDTO: + """Test GeosearchPagedModelDTO + 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 `GeosearchPagedModelDTO` + """ + model = GeosearchPagedModelDTO() + if include_optional: + return GeosearchPagedModelDTO( + links = [ + None + ], + content = [ + {highlight={subtitle=subtitle, title=title}, boundingBox={minY=5.962133916683182, minX=1.4658129805029452, maxY=2.3021358869347655, maxX=5.637376656633329}, placeType=region, subtitle=subtitle, position={lng=6.027456183070403, lat=0.8008281904610115}, title=title} + ], + page = {number=1, size=0, totalPages=6, totalElements=} + ) + else: + return GeosearchPagedModelDTO( + ) + """ + + def testGeosearchPagedModelDTO(self): + """Test GeosearchPagedModelDTO""" + # 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_account_by_account_id200_response.py b/test/test_get_account_by_account_id200_response.py new file mode 100644 index 0000000..2d0257f --- /dev/null +++ b/test/test_get_account_by_account_id200_response.py @@ -0,0 +1,69 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_account_by_account_id200_response import GetAccountByAccountId200Response + +class TestGetAccountByAccountId200Response(unittest.TestCase): + """GetAccountByAccountId200Response unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> GetAccountByAccountId200Response: + """Test GetAccountByAccountId200Response + 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 `GetAccountByAccountId200Response` + """ + model = GetAccountByAccountId200Response() + if include_optional: + return GetAccountByAccountId200Response( + id = '', + full_name = '0', + email = '', + status = 'ENABLED', + preferences = {sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, + consent_granted = True, + anonymous = True, + phone_number = '012345', + require_additional_attributes = True, + onboarding = {introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, + job_info = {companyName=companyName, industry=industry, jobPosition=jobPosition}, + links = [ + None + ] + ) + else: + return GetAccountByAccountId200Response( + id = '', + full_name = '0', + email = '', + status = 'ENABLED', + ) + """ + + def testGetAccountByAccountId200Response(self): + """Test GetAccountByAccountId200Response""" + # 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 index d1ae392..911d49c 100644 --- a/test/test_get_organizations200_response.py +++ b/test/test_get_organizations200_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,22 +40,9 @@ def make_instance(self, include_optional) -> GetOrganizations200Response: 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 - ], ) + {createdAt=createdAt, invitationEmail=invitationEmail, modifiedAt=modifiedAt, dwhClusterId=dwhClusterId, links=[{}, {}], id=id, title=title} ], - 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, ), + page = {number=1, size=0, totalPages=6, totalElements=}, id = 'w8q6zgckec0l3o4g', title = '0', invitation_email = '', diff --git a/test/test_get_project_members200_response.py b/test/test_get_project_members200_response.py index 4451b70..0153057 100644 --- a/test/test_get_project_members200_response.py +++ b/test/test_get_project_members200_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,30 +40,16 @@ def make_instance(self, include_optional) -> GetProjectMembers200Response: 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 - ], ) + {accountId=accountId, createdAt=createdAt, role=ANONYMOUS, modifiedAt=modifiedAt, links=[{}, {}], id=id, account={preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED}, status=ENABLED} ], - 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, ), + page = {number=1, size=0, totalPages=6, totalElements=}, id = '', account_id = '', status = 'ENABLED', role = 'ANONYMOUS', created_at = '', modified_at = '', - account = cm_python_openapi_sdk.models.account.account() + account = {preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED} ) else: return GetProjectMembers200Response( diff --git a/test/test_global_date_filter_dto.py b/test/test_global_date_filter_dto.py index 666133e..92d1cde 100644 --- a/test/test_global_date_filter_dto.py +++ b/test/test_global_date_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_google_earth_dto.py b/test/test_google_earth_dto.py index f4d1cd0..2ce1012 100644 --- a/test/test_google_earth_dto.py +++ b/test/test_google_earth_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_google_satellite_dto.py b/test/test_google_satellite_dto.py index 2174b4e..fe330fc 100644 --- a/test/test_google_satellite_dto.py +++ b/test/test_google_satellite_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_google_street_view_dto.py b/test/test_google_street_view_dto.py index fc36065..1d6ff62 100644 --- a/test/test_google_street_view_dto.py +++ b/test/test_google_street_view_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_granularity_category_dto.py b/test/test_granularity_category_dto.py index 1078306..4a103d8 100644 --- a/test/test_granularity_category_dto.py +++ b/test/test_granularity_category_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_having.py b/test/test_having.py new file mode 100644 index 0000000..62c0fc7 --- /dev/null +++ b/test/test_having.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having import Having + +class TestHaving(unittest.TestCase): + """Having unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Having: + """Test Having + 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 `Having` + """ + model = Having() + if include_optional: + return Having( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull' + ) + else: + return Having( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull', + ) + """ + + def testHaving(self): + """Test Having""" + # 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_having1.py b/test/test_having1.py new file mode 100644 index 0000000..c2b51a8 --- /dev/null +++ b/test/test_having1.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having1 import Having1 + +class TestHaving1(unittest.TestCase): + """Having1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> Having1: + """Test Having1 + 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 `Having1` + """ + model = Having1() + if include_optional: + return Having1( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull' + ) + else: + return Having1( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull', + ) + """ + + def testHaving1(self): + """Test Having1""" + # 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_having_comp.py b/test/test_having_comp.py new file mode 100644 index 0000000..c0be64e --- /dev/null +++ b/test/test_having_comp.py @@ -0,0 +1,57 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having_comp import HavingComp + +class TestHavingComp(unittest.TestCase): + """HavingComp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HavingComp: + """Test HavingComp + 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 `HavingComp` + """ + model = HavingComp() + if include_optional: + return HavingComp( + property_id = 'z0', + value = 1.337, + operator = 'eq' + ) + else: + return HavingComp( + property_id = 'z0', + value = 1.337, + operator = 'eq', + ) + """ + + def testHavingComp(self): + """Test HavingComp""" + # 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_having_in.py b/test/test_having_in.py new file mode 100644 index 0000000..da7f2af --- /dev/null +++ b/test/test_having_in.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having_in import HavingIn + +class TestHavingIn(unittest.TestCase): + """HavingIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HavingIn: + """Test HavingIn + 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 `HavingIn` + """ + model = HavingIn() + if include_optional: + return HavingIn( + property_id = 'z0', + value = [ + null + ], + operator = 'in' + ) + else: + return HavingIn( + property_id = 'z0', + value = [ + null + ], + operator = 'in', + ) + """ + + def testHavingIn(self): + """Test HavingIn""" + # 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_having_in1.py b/test/test_having_in1.py new file mode 100644 index 0000000..cfbdb84 --- /dev/null +++ b/test/test_having_in1.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having_in1 import HavingIn1 + +class TestHavingIn1(unittest.TestCase): + """HavingIn1 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HavingIn1: + """Test HavingIn1 + 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 `HavingIn1` + """ + model = HavingIn1() + if include_optional: + return HavingIn1( + property_id = 'z0', + value = [ + null + ], + operator = 'in' + ) + else: + return HavingIn1( + property_id = 'z0', + value = [ + null + ], + operator = 'in', + ) + """ + + def testHavingIn1(self): + """Test HavingIn1""" + # 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_having_unary.py b/test/test_having_unary.py new file mode 100644 index 0000000..977582e --- /dev/null +++ b/test/test_having_unary.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.having_unary import HavingUnary + +class TestHavingUnary(unittest.TestCase): + """HavingUnary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HavingUnary: + """Test HavingUnary + 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 `HavingUnary` + """ + model = HavingUnary() + if include_optional: + return HavingUnary( + property_id = 'z0', + operator = 'isNull' + ) + else: + return HavingUnary( + property_id = 'z0', + operator = 'isNull', + ) + """ + + def testHavingUnary(self): + """Test HavingUnary""" + # 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_highlight_dto.py b/test/test_highlight_dto.py new file mode 100644 index 0000000..5bd875c --- /dev/null +++ b/test/test_highlight_dto.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.highlight_dto import HighlightDTO + +class TestHighlightDTO(unittest.TestCase): + """HighlightDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HighlightDTO: + """Test HighlightDTO + 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 `HighlightDTO` + """ + model = HighlightDTO() + if include_optional: + return HighlightDTO( + title = '0', + subtitle = '0' + ) + else: + return HighlightDTO( + ) + """ + + def testHighlightDTO(self): + """Test HighlightDTO""" + # 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 def0009..bd2a4a6 100644 --- a/test/test_histogram_filter_dto.py +++ b/test/test_histogram_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,10 +38,7 @@ def make_instance(self, include_optional) -> HistogramFilterDTO: return HistogramFilterDTO( type = 'histogram', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ) + format = {symbol=symbol, type=number, fraction=0} ) else: return HistogramFilterDTO( diff --git a/test/test_hit_highlight.py b/test/test_hit_highlight.py new file mode 100644 index 0000000..6dd15d5 --- /dev/null +++ b/test/test_hit_highlight.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.hit_highlight import HitHighlight + +class TestHitHighlight(unittest.TestCase): + """HitHighlight unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> HitHighlight: + """Test HitHighlight + 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 `HitHighlight` + """ + model = HitHighlight() + if include_optional: + return HitHighlight( + title = '', + subtitle = '' + ) + else: + return HitHighlight( + ) + """ + + def testHitHighlight(self): + """Test HitHighlight""" + # 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_job_request.py b/test/test_import_project_job_request.py index 48801c0..cfed1fe 100644 --- a/test/test_import_project_job_request.py +++ b/test/test_import_project_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_import_project_request.py b/test/test_import_project_request.py index 96898f6..e145ca3 100644 --- a/test/test_import_project_request.py +++ b/test/test_import_project_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_content_dto.py b/test/test_indicator_content_dto.py index a970ce2..297185a 100644 --- a/test/test_indicator_content_dto.py +++ b/test/test_indicator_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,45 +39,10 @@ def make_instance(self, include_optional) -> IndicatorContentDTO: metric = '/rest/projects/8q6zgckec0l3o4gi/md/metrics?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', scale = 'standard', distribution = 'geometric', - visualizations = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO( - areas = True, - grid = True, - zones = True, - line = True, - dotmap = True, - heatmap = True, - dominance = True, - heatmap_scale_factor = 1.337, ), - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), - 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 = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO( - static = [ - cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO( - dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), - max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, ) - ], ) - ], - default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO( - range = [ - 1.337 - ], - display_intervals = [ - 1.337 - ], ), ) + visualizations = {heatmap=true, heatmapScaleFactor=0.8008281904610115, dotmap=true, grid=true, line=true, areas=true, dominance=true, zones=true}, + format = {symbol=symbol, type=number, fraction=0}, + relations = {reversedMetric=reversedMetric, type=self}, + scale_options = {static=[{breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}, {breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}], defaultDistribution={displayIntervals=[2.027123023002322, 2.027123023002322], breaks=[3.616076749251911, 3.616076749251911], range=[9.301444243932576, 9.301444243932576]}} ) else: return IndicatorContentDTO( diff --git a/test/test_indicator_drill_content_dto.py b/test/test_indicator_drill_content_dto.py index f53fe57..a28d85f 100644 --- a/test/test_indicator_drill_content_dto.py +++ b/test/test_indicator_drill_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_drill_dto.py b/test/test_indicator_drill_dto.py index e42f5ed..16b6f8d 100644 --- a/test/test_indicator_drill_dto.py +++ b/test/test_indicator_drill_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,18 +41,12 @@ def make_instance(self, include_optional) -> IndicatorDrillDTO: type = 'dataset', title = '0', description = '', - content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO( - blocks = [ - null - ], ) + content = {blocks=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}]} ) else: return IndicatorDrillDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', - content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO( - blocks = [ - null - ], ), + content = {blocks=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}]}, ) """ diff --git a/test/test_indicator_drill_paged_model_dto.py b/test/test_indicator_drill_paged_model_dto.py index 48b9845..7a215e1 100644 --- a/test/test_indicator_drill_paged_model_dto.py +++ b/test/test_indicator_drill_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,25 +37,12 @@ def make_instance(self, include_optional) -> IndicatorDrillPagedModelDTO: if include_optional: return IndicatorDrillPagedModelDTO( content = [ - cm_python_openapi_sdk.models.indicator_drill_dto.IndicatorDrillDTO( - id = '', - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - type = 'dataset', - title = '0', - description = '', - content = cm_python_openapi_sdk.models.indicator_drill_content_dto.IndicatorDrillContentDTO( - blocks = [ - null - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={blocks=[{indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}, {indicator=indicator, filterable=true, visualized=true, collapsed=true, hideNullItems=true, description=description, orderBy={property=property, direction=asc}, condensed=true, vertical=true, label=label, type=categories, title=title, sizeLimit=0, dualProperty=dualProperty, splitProperty=splitProperty, attributeStyle=attributeStyle, dualAttributeStyle=dualAttributeStyle}]}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return IndicatorDrillPagedModelDTO( diff --git a/test/test_indicator_drills_api.py b/test/test_indicator_drills_api.py index 2b8d851..90306f6 100644 --- a/test/test_indicator_drills_api.py +++ b/test/test_indicator_drills_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_dto.py b/test/test_indicator_dto.py index f020aa9..91b730f 100644 --- a/test/test_indicator_dto.py +++ b/test/test_indicator_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,98 +41,14 @@ def make_instance(self, include_optional) -> IndicatorDTO: type = 'dataset', title = '0', description = '', - 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 = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO( - areas = True, - grid = True, - zones = True, - line = True, - dotmap = True, - heatmap = True, - dominance = True, - heatmap_scale_factor = 1.337, ), - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), - 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 = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO( - static = [ - cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO( - dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), - max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, ) - ], ) - ], - default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO( - range = [ - 1.337 - ], - display_intervals = [ - 1.337 - ], ), ), ) + content = {scaleOptions={static=[{breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}, {breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}], defaultDistribution={displayIntervals=[2.027123023002322, 2.027123023002322], breaks=[3.616076749251911, 3.616076749251911], range=[9.301444243932576, 9.301444243932576]}}, visualizations={heatmap=true, heatmapScaleFactor=0.8008281904610115, dotmap=true, grid=true, line=true, areas=true, dominance=true, zones=true}, metric=metric, format={symbol=symbol, type=number, fraction=0}, scale=standard, distribution=geometric, relations={reversedMetric=reversedMetric, type=self}} ) else: return IndicatorDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', title = '0', description = '', - 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 = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO( - areas = True, - grid = True, - zones = True, - line = True, - dotmap = True, - heatmap = True, - dominance = True, - heatmap_scale_factor = 1.337, ), - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), - 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 = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO( - static = [ - cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO( - dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), - max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, ) - ], ) - ], - default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO( - range = [ - 1.337 - ], - display_intervals = [ - 1.337 - ], ), ), ), + content = {scaleOptions={static=[{breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}, {breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}], defaultDistribution={displayIntervals=[2.027123023002322, 2.027123023002322], breaks=[3.616076749251911, 3.616076749251911], range=[9.301444243932576, 9.301444243932576]}}, visualizations={heatmap=true, heatmapScaleFactor=0.8008281904610115, dotmap=true, grid=true, line=true, areas=true, dominance=true, zones=true}, metric=metric, format={symbol=symbol, type=number, fraction=0}, scale=standard, distribution=geometric, relations={reversedMetric=reversedMetric, type=self}}, ) """ diff --git a/test/test_indicator_filter_dto.py b/test/test_indicator_filter_dto.py index 3efd0fb..1ddb663 100644 --- a/test/test_indicator_filter_dto.py +++ b/test/test_indicator_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_group_dto.py b/test/test_indicator_group_dto.py index b8838b6..5bfbce2 100644 --- a/test/test_indicator_group_dto.py +++ b/test/test_indicator_group_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_link_dto.py b/test/test_indicator_link_dto.py index 522252c..11bcd60 100644 --- a/test/test_indicator_link_dto.py +++ b/test/test_indicator_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicator_link_dto_block_rows_inner.py b/test/test_indicator_link_dto_block_rows_inner.py index 22a0ac8..7840e98 100644 --- a/test/test_indicator_link_dto_block_rows_inner.py +++ b/test/test_indicator_link_dto_block_rows_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -46,9 +47,7 @@ def make_instance(self, include_optional) -> IndicatorLinkDTOBlockRowsInner: filterable = True, hide_null_items = True, size_limit = 56, - order_by = cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ), + order_by = {property=property, direction=asc}, vertical = True, condensed = True, dual_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', diff --git a/test/test_indicator_paged_model_dto.py b/test/test_indicator_paged_model_dto.py index 412e584..e24f599 100644 --- a/test/test_indicator_paged_model_dto.py +++ b/test/test_indicator_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,64 +37,12 @@ def make_instance(self, include_optional) -> IndicatorPagedModelDTO: if include_optional: return IndicatorPagedModelDTO( content = [ - cm_python_openapi_sdk.models.indicator_dto.IndicatorDTO( - id = '', - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - type = 'dataset', - title = '0', - description = '', - 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 = cm_python_openapi_sdk.models.indicator_visualizations_dto.IndicatorVisualizationsDTO( - areas = True, - grid = True, - zones = True, - line = True, - dotmap = True, - heatmap = True, - dominance = True, - heatmap_scale_factor = 1.337, ), - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), - 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 = cm_python_openapi_sdk.models.scale_options_dto.ScaleOptionsDTO( - static = [ - cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO( - dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), - max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, ) - ], ) - ], - default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO( - range = [ - 1.337 - ], - display_intervals = [ - 1.337 - ], ), ), ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={scaleOptions={static=[{breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}, {breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]}], defaultDistribution={displayIntervals=[2.027123023002322, 2.027123023002322], breaks=[3.616076749251911, 3.616076749251911], range=[9.301444243932576, 9.301444243932576]}}, visualizations={heatmap=true, heatmapScaleFactor=0.8008281904610115, dotmap=true, grid=true, line=true, areas=true, dominance=true, zones=true}, metric=metric, format={symbol=symbol, type=number, fraction=0}, scale=standard, distribution=geometric, relations={reversedMetric=reversedMetric, type=self}}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return IndicatorPagedModelDTO( diff --git a/test/test_indicator_visualizations_dto.py b/test/test_indicator_visualizations_dto.py index d28fe3e..b074ed3 100644 --- a/test/test_indicator_visualizations_dto.py +++ b/test/test_indicator_visualizations_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_indicators_api.py b/test/test_indicators_api.py index 0dc4a29..f36945a 100644 --- a/test/test_indicators_api.py +++ b/test/test_indicators_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_invitation_api.py b/test/test_invitation_api.py new file mode 100644 index 0000000..7091ef6 --- /dev/null +++ b/test/test_invitation_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.invitation_api import InvitationApi + + +class TestInvitationApi(unittest.TestCase): + """InvitationApi unit test stubs""" + + def setUp(self) -> None: + self.api = InvitationApi() + + def tearDown(self) -> None: + pass + + def test_accept_project_invitation(self) -> None: + """Test case for accept_project_invitation + + Accept invitation. + """ + pass + + def test_get_invitation(self) -> None: + """Test case for get_invitation + + Get detail of an invitation. + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_invitation_dto.py b/test/test_invitation_dto.py index 0a09b98..c3c5626 100644 --- a/test/test_invitation_dto.py +++ b/test/test_invitation_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_invitation_paged_model_dto.py b/test/test_invitation_paged_model_dto.py index b7c07c2..c9a5409 100644 --- a/test/test_invitation_paged_model_dto.py +++ b/test/test_invitation_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,22 +40,9 @@ def make_instance(self, include_optional) -> InvitationPagedModelDTO: None ], content = [ - cm_python_openapi_sdk.models.invitation_dto.InvitationDTO( - id = '', - email = '', - status = 'PENDING', - role = 'ANONYMOUS', - created_at = '', - modified_at = '', - links = [ - None - ], ) + {createdAt=createdAt, role=ANONYMOUS, modifiedAt=modifiedAt, links=[{}, {}], id=id, email=email, status=PENDING} ], - 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return InvitationPagedModelDTO( diff --git a/test/test_isochrone_api.py b/test/test_isochrone_api.py index 4a5acbe..3ade33d 100644 --- a/test/test_isochrone_api.py +++ b/test/test_isochrone_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,6 +30,7 @@ def tearDown(self) -> None: def test_get_isochrone(self) -> None: """Test case for get_isochrone + Get isochrone """ pass diff --git a/test/test_isochrone_dto.py b/test/test_isochrone_dto.py index d26fb48..7298e11 100644 --- a/test/test_isochrone_dto.py +++ b/test/test_isochrone_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,7 +41,7 @@ def make_instance(self, include_optional) -> IsochroneDTO: profile = 'car', unit = 'time', amount = 1, - geometry = cm_python_openapi_sdk.models.geometry.geometry() + geometry = None ) else: return IsochroneDTO( diff --git a/test/test_isochrone_paged_model_dto.py b/test/test_isochrone_paged_model_dto.py index dd0fc8d..c0b96a4 100644 --- a/test/test_isochrone_paged_model_dto.py +++ b/test/test_isochrone_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,19 +40,9 @@ def make_instance(self, include_optional) -> IsochronePagedModelDTO: 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(), ) + {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455} ], - 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return IsochronePagedModelDTO( diff --git a/test/test_job_detail_response.py b/test/test_job_detail_response.py index 21bc780..ab0e62f 100644 --- a/test/test_job_detail_response.py +++ b/test/test_job_detail_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_job_history_paged_model_dto.py b/test/test_job_history_paged_model_dto.py index c4d614c..de70053 100644 --- a/test/test_job_history_paged_model_dto.py +++ b/test/test_job_history_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_jobs_api.py b/test/test_jobs_api.py index e8f30dd..428cf7f 100644 --- a/test/test_jobs_api.py +++ b/test/test_jobs_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -29,18 +30,21 @@ def tearDown(self) -> None: def test_get_job_status(self) -> None: """Test case for get_job_status + Get job status """ pass def test_get_jobs_history(self) -> None: """Test case for get_jobs_history + Get jobs history """ pass def test_submit_job_execution(self) -> None: """Test case for submit_job_execution + Submit job execution """ pass diff --git a/test/test_layer_dto.py b/test/test_layer_dto.py index c317cd7..a9a14ca 100644 --- a/test/test_layer_dto.py +++ b/test/test_layer_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,15 +38,7 @@ def make_instance(self, include_optional) -> LayerDTO: return LayerDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', indicator = 'inherit', - base_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, ), + base_style = {fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, show_indicator_value_labels = True, cluster_points = True, keep_filtered = True, @@ -53,13 +46,7 @@ def make_instance(self, include_optional) -> LayerDTO: default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', default_visualization = 'dotmap', datasets = [ - 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 = [ - 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', ) - ], ) + {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset} ] ) else: @@ -67,13 +54,7 @@ def make_instance(self, include_optional) -> LayerDTO: name = 'awat5ikwowtta-3mh2lcafqw3zhes', indicator = 'inherit', datasets = [ - 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 = [ - 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', ) - ], ) + {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset} ], ) """ diff --git a/test/test_layer_dto_datasets_inner.py b/test/test_layer_dto_datasets_inner.py index 84a729b..6399a7f 100644 --- a/test/test_layer_dto_datasets_inner.py +++ b/test/test_layer_dto_datasets_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,8 +39,7 @@ def make_instance(self, include_optional) -> LayerDTODatasetsInner: dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', visualization = 'dotmap', attribute_styles = [ - 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', ) + {attributeStyle=attributeStyle} ] ) else: 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 c669c42..831b062 100644 --- a/test/test_layer_dto_datasets_inner_attribute_styles_inner.py +++ b/test/test_layer_dto_datasets_inner_attribute_styles_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_linked_layer_dto.py b/test/test_linked_layer_dto.py index c1ce410..81821e4 100644 --- a/test/test_linked_layer_dto.py +++ b/test/test_linked_layer_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_mandatory_keys_for_pagable_response.py b/test/test_mandatory_keys_for_pagable_response.py index c476f64..1f36fc8 100644 --- a/test/test_mandatory_keys_for_pagable_response.py +++ b/test/test_mandatory_keys_for_pagable_response.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_map_content_dto.py b/test/test_map_content_dto.py index 3a8097a..78d4b38 100644 --- a/test/test_map_content_dto.py +++ b/test/test_map_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,50 +36,11 @@ def make_instance(self, include_optional) -> MapContentDTO: model = MapContentDTO() if include_optional: return 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 = 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), + options = {maxZoom=5, center={lng=6.027456183070403, lat=0.8008281904610115}, minZoom=0, zoom=1}, + base_layer = {menu=true, type=mapbox, accessToken=accessToken, url=url}, + context_menu = {items=[{type=googleSatellite}, {type=googleSatellite}]}, layers = [ - cm_python_openapi_sdk.models.layer_dto.LayerDTO( - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - indicator = 'inherit', - base_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, ), - show_indicator_value_labels = True, - cluster_points = True, - keep_filtered = True, - visible = True, - default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'dotmap', - datasets = [ - 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 = [ - 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', ) - ], ) - ], ) + {indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true} ] ) else: diff --git a/test/test_map_content_dto_base_layer.py b/test/test_map_content_dto_base_layer.py index 6f37013..fce5301 100644 --- a/test/test_map_content_dto_base_layer.py +++ b/test/test_map_content_dto_base_layer.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_map_content_dto_options.py b/test/test_map_content_dto_options.py index e1bcfe9..72ea6e4 100644 --- a/test/test_map_content_dto_options.py +++ b/test/test_map_content_dto_options.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,9 +36,7 @@ def make_instance(self, include_optional) -> MapContentDTOOptions: model = MapContentDTOOptions() if include_optional: return MapContentDTOOptions( - center = cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ), + center = {lng=6.027456183070403, lat=0.8008281904610115}, zoom = 56, min_zoom = 0, max_zoom = 56 diff --git a/test/test_map_context_menu_dto.py b/test/test_map_context_menu_dto.py index 79b08a7..eeff835 100644 --- a/test/test_map_context_menu_dto.py +++ b/test/test_map_context_menu_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_map_context_menu_item_abstract_type.py b/test/test_map_context_menu_item_abstract_type.py index 62eabf7..224ed7b 100644 --- a/test/test_map_context_menu_item_abstract_type.py +++ b/test/test_map_context_menu_item_abstract_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_map_dto.py b/test/test_map_dto.py index 771f0fe..507f2cb 100644 --- a/test/test_map_dto.py +++ b/test/test_map_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,102 +41,12 @@ def make_instance(self, include_optional) -> MapDTO: type = 'dataset', title = '0', description = '', - 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 = 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - layers = [ - cm_python_openapi_sdk.models.layer_dto.LayerDTO( - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - indicator = 'inherit', - base_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, ), - show_indicator_value_labels = True, - cluster_points = True, - keep_filtered = True, - visible = True, - default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'dotmap', - datasets = [ - 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 = [ - 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', ) - ], ) - ], ) - ], ) + content = {contextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, baseLayer={menu=true, type=mapbox, accessToken=accessToken, url=url}, options={maxZoom=5, center={lng=6.027456183070403, lat=0.8008281904610115}, minZoom=0, zoom=1}, layers=[{indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true}, {indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true}]} ) else: return MapDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', - 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 = 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - layers = [ - cm_python_openapi_sdk.models.layer_dto.LayerDTO( - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - indicator = 'inherit', - base_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, ), - show_indicator_value_labels = True, - cluster_points = True, - keep_filtered = True, - visible = True, - default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'dotmap', - datasets = [ - 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 = [ - 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', ) - ], ) - ], ) - ], ), + content = {contextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, baseLayer={menu=true, type=mapbox, accessToken=accessToken, url=url}, options={maxZoom=5, center={lng=6.027456183070403, lat=0.8008281904610115}, minZoom=0, zoom=1}, layers=[{indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true}, {indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true}]}, ) """ diff --git a/test/test_map_options_dto.py b/test/test_map_options_dto.py index 1af8dd0..fb2ed3a 100644 --- a/test/test_map_options_dto.py +++ b/test/test_map_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -35,17 +36,13 @@ def make_instance(self, include_optional) -> MapOptionsDTO: model = MapOptionsDTO() if include_optional: return MapOptionsDTO( - center = cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ), + center = {lng=6.027456183070403, lat=0.8008281904610115}, zoom = 56, min_zoom = 0, max_zoom = 56, tile_layer_menu = True, tile_layer = 'mapbox', - 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', ) + custom_tile_layer = {accessToken=accessToken, url=url} ) else: return MapOptionsDTO( diff --git a/test/test_map_options_dto_custom_tile_layer.py b/test/test_map_options_dto_custom_tile_layer.py index cc1cebd..ecd928c 100644 --- a/test/test_map_options_dto_custom_tile_layer.py +++ b/test/test_map_options_dto_custom_tile_layer.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_map_paged_model_dto.py b/test/test_map_paged_model_dto.py index bf4af1d..e14699a 100644 --- a/test/test_map_paged_model_dto.py +++ b/test/test_map_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,67 +37,12 @@ def make_instance(self, include_optional) -> MapPagedModelDTO: if include_optional: return MapPagedModelDTO( content = [ - cm_python_openapi_sdk.models.map_dto.MapDTO( - id = '', - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - type = 'dataset', - title = '0', - description = '', - 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 = 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - layers = [ - cm_python_openapi_sdk.models.layer_dto.LayerDTO( - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - indicator = 'inherit', - base_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, ), - show_indicator_value_labels = True, - cluster_points = True, - keep_filtered = True, - visible = True, - default_dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'dotmap', - datasets = [ - 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 = [ - 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', ) - ], ) - ], ) - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={contextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, baseLayer={menu=true, type=mapbox, accessToken=accessToken, url=url}, options={maxZoom=5, center={lng=6.027456183070403, lat=0.8008281904610115}, minZoom=0, zoom=1}, layers=[{indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=true}, {indicator=inherit, baseStyle={fillColor=purple, fillOpacity=0.8008281904610115, outlineWidth=1.4658129805029452, size=5.962133916683182, fillHexColor=fillHexColor, outlineColor=purple, outlineHexColor=outlineHexColor, outlineOpacity=6.027456183070403}, visible=true, name=name, showIndicatorValueLabels=true, datasets=[{visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}, {visualization=dotmap, attributeStyles=[{attributeStyle=attributeStyle}, {attributeStyle=attributeStyle}], dataset=dataset}], clusterPoints=true, defaultDataset=defaultDataset, defaultVisualization=dotmap, keepFiltered=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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return MapPagedModelDTO( diff --git a/test/test_maps_api.py b/test/test_maps_api.py index 765ec9c..a94b926 100644 --- a/test/test_maps_api.py +++ b/test/test_maps_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_mapycz_ortophoto_dto.py b/test/test_mapycz_ortophoto_dto.py index 881fc19..4103044 100644 --- a/test/test_mapycz_ortophoto_dto.py +++ b/test/test_mapycz_ortophoto_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_mapycz_panorama_dto.py b/test/test_mapycz_panorama_dto.py index 11a3dbe..7dc7ec0 100644 --- a/test/test_mapycz_panorama_dto.py +++ b/test/test_mapycz_panorama_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_marker_content_dto.py b/test/test_marker_content_dto.py index c77ef0d..c8b2042 100644 --- a/test/test_marker_content_dto.py +++ b/test/test_marker_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_marker_content_dto_property_filters_inner.py b/test/test_marker_content_dto_property_filters_inner.py index 07991c4..a1048b8 100644 --- a/test/test_marker_content_dto_property_filters_inner.py +++ b/test/test_marker_content_dto_property_filters_inner.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_marker_dto.py b/test/test_marker_dto.py index 6d86621..862c5da 100644 --- a/test/test_marker_dto.py +++ b/test/test_marker_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,21 +41,13 @@ def make_instance(self, include_optional) -> MarkerDTO: type = 'dataset', title = '0', description = '', - content = cm_python_openapi_sdk.models.marker_content_dto.MarkerContentDTO( - style = 'q', - property_filters = [ - null - ], ) + content = {propertyFilters=[{propertyName=propertyName, value=, operator=eq}, {propertyName=propertyName, value=, operator=eq}], style=style} ) else: return MarkerDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', title = '0', - content = cm_python_openapi_sdk.models.marker_content_dto.MarkerContentDTO( - style = 'q', - property_filters = [ - null - ], ), + content = {propertyFilters=[{propertyName=propertyName, value=, operator=eq}, {propertyName=propertyName, value=, operator=eq}], style=style}, ) """ diff --git a/test/test_marker_link_dto.py b/test/test_marker_link_dto.py index dd82787..796880f 100644 --- a/test/test_marker_link_dto.py +++ b/test/test_marker_link_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_marker_paged_model_dto.py b/test/test_marker_paged_model_dto.py index 8bf197e..924b2ff 100644 --- a/test/test_marker_paged_model_dto.py +++ b/test/test_marker_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,26 +37,12 @@ def make_instance(self, include_optional) -> 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 - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={propertyFilters=[{propertyName=propertyName, value=, operator=eq}, {propertyName=propertyName, value=, operator=eq}], style=style}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return MarkerPagedModelDTO( diff --git a/test/test_marker_selector_content_dto.py b/test/test_marker_selector_content_dto.py index b599e72..9d384b8 100644 --- a/test/test_marker_selector_content_dto.py +++ b/test/test_marker_selector_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,31 +37,13 @@ def make_instance(self, include_optional) -> 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, ) - ], ) + {linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset} ], 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', ) + {styleType=color, splitPropertyName=splitPropertyName, dataset=dataset} ], hide_granularity = True, - keep_filtered = cm_python_openapi_sdk.models.marker_selector_content_dto_keep_filtered.MarkerSelectorContentDTO_keepFiltered( - granularity = True, - markers = True, ), + keep_filtered = {granularity=true, markers=true}, show_indicator_values_on_map = True, cluster_markers = True ) diff --git a/test/test_marker_selector_content_dto_keep_filtered.py b/test/test_marker_selector_content_dto_keep_filtered.py index b4586e4..68f478c 100644 --- a/test/test_marker_selector_content_dto_keep_filtered.py +++ b/test/test_marker_selector_content_dto_keep_filtered.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_marker_selector_dto.py b/test/test_marker_selector_dto.py index 2d38fd7..4736db0 100644 --- a/test/test_marker_selector_dto.py +++ b/test/test_marker_selector_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,66 +41,12 @@ def make_instance(self, include_optional) -> MarkerSelectorDTO: 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, ) + content = {granularityCategories=[{styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}, {styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}], showIndicatorValuesOnMap=true, categories=[{linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}, {linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}], clusterMarkers=true, hideGranularity=true, keepFiltered={granularity=true, 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, ), + content = {granularityCategories=[{styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}, {styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}], showIndicatorValuesOnMap=true, categories=[{linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}, {linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}], clusterMarkers=true, hideGranularity=true, keepFiltered={granularity=true, markers=true}}, ) """ diff --git a/test/test_marker_selector_paged_model_dto.py b/test/test_marker_selector_paged_model_dto.py index c067e22..ce92a09 100644 --- a/test/test_marker_selector_paged_model_dto.py +++ b/test/test_marker_selector_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,49 +37,12 @@ def make_instance(self, include_optional) -> 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, ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={granularityCategories=[{styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}, {styleType=color, splitPropertyName=splitPropertyName, dataset=dataset}], showIndicatorValuesOnMap=true, categories=[{linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}, {linkedLayers=[{visible=true, style=style, dataset=dataset}, {visible=true, style=style, dataset=dataset}], markers=[{addOnExpand=true, visible=true, marker=marker}, {addOnExpand=true, visible=true, marker=marker}], dataset=dataset}], clusterMarkers=true, hideGranularity=true, keepFiltered={granularity=true, 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return MarkerSelectorPagedModelDTO( diff --git a/test/test_marker_selectors_api.py b/test/test_marker_selectors_api.py index 6231673..97e2f5e 100644 --- a/test/test_marker_selectors_api.py +++ b/test/test_marker_selectors_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_markers_api.py b/test/test_markers_api.py index f01f8d4..7318d42 100644 --- a/test/test_markers_api.py +++ b/test/test_markers_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_max_value_dto.py b/test/test_max_value_dto.py index 45298b1..50ecdc4 100644 --- a/test/test_max_value_dto.py +++ b/test/test_max_value_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_measure_dto.py b/test/test_measure_dto.py index beb4fbe..6b87887 100644 --- a/test/test_measure_dto.py +++ b/test/test_measure_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -37,22 +38,10 @@ def make_instance(self, include_optional) -> MeasureDTO: return MeasureDTO( type = 'line', points = [ - 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(), ) + {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455} ], zones = [ - 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(), ) + {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455} ] ) else: diff --git a/test/test_members_api.py b/test/test_members_api.py index 2570d56..8589535 100644 --- a/test/test_members_api.py +++ b/test/test_members_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_membership_dto.py b/test/test_membership_dto.py index 94e13c5..04c5e2b 100644 --- a/test/test_membership_dto.py +++ b/test/test_membership_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,7 +42,7 @@ def make_instance(self, include_optional) -> MembershipDTO: role = 'ANONYMOUS', created_at = '', modified_at = '', - account = None, + account = {preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED}, links = [ None ] diff --git a/test/test_membership_paged_model_dto.py b/test/test_membership_paged_model_dto.py index 1441884..8b312db 100644 --- a/test/test_membership_paged_model_dto.py +++ b/test/test_membership_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,23 +40,9 @@ def make_instance(self, include_optional) -> MembershipPagedModelDTO: 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 - ], ) + {accountId=accountId, createdAt=createdAt, role=ANONYMOUS, modifiedAt=modifiedAt, links=[{}, {}], id=id, account={preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED}, status=ENABLED} ], - 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return MembershipPagedModelDTO( diff --git a/test/test_metric_dto.py b/test/test_metric_dto.py index e66a494..d684620 100644 --- a/test/test_metric_dto.py +++ b/test/test_metric_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_metric_paged_model_dto.py b/test/test_metric_paged_model_dto.py index 4786587..e5cc069 100644 --- a/test/test_metric_paged_model_dto.py +++ b/test/test_metric_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,22 +37,12 @@ def make_instance(self, include_optional) -> 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, ) + {name=name, description=description, id=id, type=dataset, title=title, content={id=id, type=number, value=0.8008281904610115}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return MetricPagedModelDTO( diff --git a/test/test_metric_ranges_api.py b/test/test_metric_ranges_api.py new file mode 100644 index 0000000..107a019 --- /dev/null +++ b/test/test_metric_ranges_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.metric_ranges_api import MetricRangesApi + + +class TestMetricRangesApi(unittest.TestCase): + """MetricRangesApi unit test stubs""" + + def setUp(self) -> None: + self.api = MetricRangesApi() + + def tearDown(self) -> None: + pass + + def test_accept_metric_ranges(self) -> None: + """Test case for accept_metric_ranges + + Accept metric ranges + """ + pass + + def test_get_metric_ranges(self) -> None: + """Test case for get_metric_ranges + + Get metric ranges + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_metrics_api.py b/test/test_metrics_api.py index 7b77bbd..c91cbc5 100644 --- a/test/test_metrics_api.py +++ b/test/test_metrics_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_multi_select_filter_dto.py b/test/test_multi_select_filter_dto.py index d6a3d37..c468530 100644 --- a/test/test_multi_select_filter_dto.py +++ b/test/test_multi_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,9 +39,7 @@ def make_instance(self, include_optional) -> MultiSelectFilterDTO: type = 'multiSelect', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ] ) else: diff --git a/test/test_new_account_dto.py b/test/test_new_account_dto.py new file mode 100644 index 0000000..d1e0042 --- /dev/null +++ b/test/test_new_account_dto.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.new_account_dto import NewAccountDTO + +class TestNewAccountDTO(unittest.TestCase): + """NewAccountDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> NewAccountDTO: + """Test NewAccountDTO + 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 `NewAccountDTO` + """ + model = NewAccountDTO() + if include_optional: + return NewAccountDTO( + given_name = 'L0', + surname = 'L0', + email = '', + password = '', + consent_granted = True, + phone_number = '012345', + require_additional_attributes = True, + preferences = {sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, + utm_parameters = {referrer=referrer, campaign=campaign, medium=medium, source=source}, + job_info = {companyName=companyName, industry=industry, jobPosition=jobPosition} + ) + else: + return NewAccountDTO( + given_name = 'L0', + surname = 'L0', + email = '', + password = '', + ) + """ + + def testNewAccountDTO(self): + """Test NewAccountDTO""" + # 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_order_by.py b/test/test_order_by.py new file mode 100644 index 0000000..0bd267b --- /dev/null +++ b/test/test_order_by.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.order_by import OrderBy + +class TestOrderBy(unittest.TestCase): + """OrderBy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> OrderBy: + """Test OrderBy + 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 `OrderBy` + """ + model = OrderBy() + if include_optional: + return OrderBy( + var_property = None, + property_id = 'z0', + direction = 'asc', + nulls = 'last' + ) + else: + return OrderBy( + ) + """ + + def testOrderBy(self): + """Test OrderBy""" + # 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_order_by_dto.py b/test/test_order_by_dto.py index 4846598..80f2a1e 100644 --- a/test/test_order_by_dto.py +++ b/test/test_order_by_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_organization_paged_model_dto.py b/test/test_organization_paged_model_dto.py index 67a729e..1dc8e87 100644 --- a/test/test_organization_paged_model_dto.py +++ b/test/test_organization_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,22 +40,9 @@ def make_instance(self, include_optional) -> OrganizationPagedModelDTO: 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 - ], ) + {createdAt=createdAt, invitationEmail=invitationEmail, modifiedAt=modifiedAt, dwhClusterId=dwhClusterId, links=[{}, {}], id=id, title=title} ], - 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return OrganizationPagedModelDTO( diff --git a/test/test_organization_response_dto.py b/test/test_organization_response_dto.py index 718f73e..a41a8c1 100644 --- a/test/test_organization_response_dto.py +++ b/test/test_organization_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_organizations_api.py b/test/test_organizations_api.py index ec7bec3..20b6124 100644 --- a/test/test_organizations_api.py +++ b/test/test_organizations_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_output_dto.py b/test/test_output_dto.py index 11ff65c..d38dc80 100644 --- a/test/test_output_dto.py +++ b/test/test_output_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_overlaps_api.py b/test/test_overlaps_api.py new file mode 100644 index 0000000..60bab62 --- /dev/null +++ b/test/test_overlaps_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.overlaps_api import OverlapsApi + + +class TestOverlapsApi(unittest.TestCase): + """OverlapsApi unit test stubs""" + + def setUp(self) -> None: + self.api = OverlapsApi() + + def tearDown(self) -> None: + pass + + def test_accept_overlaps(self) -> None: + """Test case for accept_overlaps + + Accept overlaps + """ + pass + + def test_get_overlaps(self) -> None: + """Test case for get_overlaps + + Get overlaps + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_part_e_tag.py b/test/test_part_e_tag.py new file mode 100644 index 0000000..d2954db --- /dev/null +++ b/test/test_part_e_tag.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.part_e_tag import PartETag + +class TestPartETag(unittest.TestCase): + """PartETag unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PartETag: + """Test PartETag + 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 `PartETag` + """ + model = PartETag() + if include_optional: + return PartETag( + part_number = 56, + e_tag = 'HqXzyCBw3_uufVPIPFhB9JcGRYnua_cd' + ) + else: + return PartETag( + part_number = 56, + e_tag = 'HqXzyCBw3_uufVPIPFhB9JcGRYnua_cd', + ) + """ + + def testPartETag(self): + """Test PartETag""" + # 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_password_change_dto.py b/test/test_password_change_dto.py new file mode 100644 index 0000000..1092cf2 --- /dev/null +++ b/test/test_password_change_dto.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.password_change_dto import PasswordChangeDTO + +class TestPasswordChangeDTO(unittest.TestCase): + """PasswordChangeDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PasswordChangeDTO: + """Test PasswordChangeDTO + 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 `PasswordChangeDTO` + """ + model = PasswordChangeDTO() + if include_optional: + return PasswordChangeDTO( + old_password = '', + new_password = '' + ) + else: + return PasswordChangeDTO( + old_password = '', + new_password = '', + ) + """ + + def testPasswordChangeDTO(self): + """Test PasswordChangeDTO""" + # 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_position_dto.py similarity index 50% rename from test/test_function_distance_options_central_point.py rename to test/test_position_dto.py index be67b0c..0d77ab5 100644 --- a/test/test_function_distance_options_central_point.py +++ b/test/test_position_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -14,10 +15,10 @@ import unittest -from cm_python_openapi_sdk.models.function_distance_options_central_point import FunctionDistanceOptionsCentralPoint +from cm_python_openapi_sdk.models.position_dto import PositionDTO -class TestFunctionDistanceOptionsCentralPoint(unittest.TestCase): - """FunctionDistanceOptionsCentralPoint unit test stubs""" +class TestPositionDTO(unittest.TestCase): + """PositionDTO unit test stubs""" def setUp(self): pass @@ -25,28 +26,28 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> FunctionDistanceOptionsCentralPoint: - """Test FunctionDistanceOptionsCentralPoint + def make_instance(self, include_optional) -> PositionDTO: + """Test PositionDTO 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` + # uncomment below to create an instance of `PositionDTO` """ - model = FunctionDistanceOptionsCentralPoint() + model = PositionDTO() if include_optional: - return FunctionDistanceOptionsCentralPoint( + return PositionDTO( lat = 1.337, lng = 1.337 ) else: - return FunctionDistanceOptionsCentralPoint( + return PositionDTO( lat = 1.337, lng = 1.337, ) """ - def testFunctionDistanceOptionsCentralPoint(self): - """Test FunctionDistanceOptionsCentralPoint""" + def testPositionDTO(self): + """Test PositionDTO""" # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) diff --git a/test/test_project_invitations_api.py b/test/test_project_invitations_api.py index 08d5b15..c666785 100644 --- a/test/test_project_invitations_api.py +++ b/test/test_project_invitations_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_project_paged_model_dto.py b/test/test_project_paged_model_dto.py index ca2103b..bc19335 100644 --- a/test/test_project_paged_model_dto.py +++ b/test/test_project_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -39,36 +40,9 @@ def make_instance(self, include_optional) -> ProjectPagedModelDTO: 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 - ], ) + {organizationId=organizationId, createdAt=createdAt, modifiedAt=modifiedAt, description=description, share=PRIVATE, links=[{}, {}], id=id, membership={accountId=accountId, createdAt=createdAt, role=ANONYMOUS, modifiedAt=modifiedAt, links=[{}, {}], id=id, account={preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED}, status=ENABLED}, services={}, title=title, status=ENABLED} ], - 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return ProjectPagedModelDTO( diff --git a/test/test_project_response_dto.py b/test/test_project_response_dto.py index 1238152..d12e296 100644 --- a/test/test_project_response_dto.py +++ b/test/test_project_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -43,18 +44,8 @@ def make_instance(self, include_optional) -> ProjectResponseDTO: 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(), + membership = {accountId=accountId, createdAt=createdAt, role=ANONYMOUS, modifiedAt=modifiedAt, links=[{}, {}], id=id, account={preferences={sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject}, phoneNumber=phoneNumber, requireAdditionalAttributes=true, fullName=fullName, anonymous=true, onboarding={introShown=[introShown, introShown], tipsShown=[tipsShown, tipsShown]}, links=[{}, {}], id=id, consentGranted=true, jobInfo={companyName=companyName, industry=industry, jobPosition=jobPosition}, email=email, status=ENABLED}, status=ENABLED}, + services = None, links = [ None ] diff --git a/test/test_project_settings_api.py b/test/test_project_settings_api.py index d3be9b6..6e9d9ca 100644 --- a/test/test_project_settings_api.py +++ b/test/test_project_settings_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_project_settings_content_dto.py b/test/test_project_settings_content_dto.py index 182a928..370cb0b 100644 --- a/test/test_project_settings_content_dto.py +++ b/test/test_project_settings_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -41,11 +42,7 @@ def make_instance(self, include_optional) -> ProjectSettingsContentDTO: 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', ) - ], ), + project_template = {templateDatasets=[{dataset=dataset}, {dataset=dataset}]}, trusted_origins = [ '' ], diff --git a/test/test_project_settings_dto.py b/test/test_project_settings_dto.py index 600c84b..a2f8b69 100644 --- a/test/test_project_settings_dto.py +++ b/test/test_project_settings_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,48 +41,12 @@ def make_instance(self, include_optional) -> ProjectSettingsDTO: 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' - ], ) + content = {defaultViews=[defaultViews, defaultViews], geoSearchCountries=[geoSearchCountries, geoSearchCountries], trustedOrigins=[trustedOrigins, trustedOrigins], geoSearchProviders=[Mapbox, Mapbox], projectTemplate={templateDatasets=[{dataset=dataset}, {dataset=dataset}]}, allowUnsecuredOrigins=false} ) 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' - ], ), + content = {defaultViews=[defaultViews, defaultViews], geoSearchCountries=[geoSearchCountries, geoSearchCountries], trustedOrigins=[trustedOrigins, trustedOrigins], geoSearchProviders=[Mapbox, Mapbox], projectTemplate={templateDatasets=[{dataset=dataset}, {dataset=dataset}]}, allowUnsecuredOrigins=false}, ) """ diff --git a/test/test_project_settings_paged_model_dto.py b/test/test_project_settings_paged_model_dto.py index a28c03e..7364786 100644 --- a/test/test_project_settings_paged_model_dto.py +++ b/test/test_project_settings_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,40 +37,12 @@ def make_instance(self, include_optional) -> 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' - ], ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={defaultViews=[defaultViews, defaultViews], geoSearchCountries=[geoSearchCountries, geoSearchCountries], trustedOrigins=[trustedOrigins, trustedOrigins], geoSearchProviders=[Mapbox, Mapbox], projectTemplate={templateDatasets=[{dataset=dataset}, {dataset=dataset}]}, allowUnsecuredOrigins=false}} ], 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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return ProjectSettingsPagedModelDTO( diff --git a/test/test_project_template_dto.py b/test/test_project_template_dto.py index 733ce83..7b5d1f2 100644 --- a/test/test_project_template_dto.py +++ b/test/test_project_template_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,8 +37,7 @@ def make_instance(self, include_optional) -> 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', ) + {dataset=dataset} ] ) else: diff --git a/test/test_projects_api.py b/test/test_projects_api.py index f76fde4..c815164 100644 --- a/test/test_projects_api.py +++ b/test/test_projects_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_property_filter_compare_dto.py b/test/test_property_filter_compare_dto.py index 95df209..a8c0f74 100644 --- a/test/test_property_filter_compare_dto.py +++ b/test/test_property_filter_compare_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_property_filter_in_dto.py b/test/test_property_filter_in_dto.py index 575ec59..13836bc 100644 --- a/test/test_property_filter_in_dto.py +++ b/test/test_property_filter_in_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_property_values_api.py b/test/test_property_values_api.py new file mode 100644 index 0000000..152b9c7 --- /dev/null +++ b/test/test_property_values_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.property_values_api import PropertyValuesApi + + +class TestPropertyValuesApi(unittest.TestCase): + """PropertyValuesApi unit test stubs""" + + def setUp(self) -> None: + self.api = PropertyValuesApi() + + def tearDown(self) -> None: + pass + + def test_accept_property_values(self) -> None: + """Test case for accept_property_values + + Accept property values + """ + pass + + def test_get_property_values(self) -> None: + """Test case for get_property_values + + Get property values + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_property_values_distribution_api.py b/test/test_property_values_distribution_api.py new file mode 100644 index 0000000..3821dab --- /dev/null +++ b/test/test_property_values_distribution_api.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.property_values_distribution_api import PropertyValuesDistributionApi + + +class TestPropertyValuesDistributionApi(unittest.TestCase): + """PropertyValuesDistributionApi unit test stubs""" + + def setUp(self) -> None: + self.api = PropertyValuesDistributionApi() + + def tearDown(self) -> None: + pass + + def test_accept_property_values_distribution(self) -> None: + """Test case for accept_property_values_distribution + + """ + pass + + def test_get_property_values_distribution(self) -> None: + """Test case for get_property_values_distribution + + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_property_values_response.py b/test/test_property_values_response.py new file mode 100644 index 0000000..bfa5b8d --- /dev/null +++ b/test/test_property_values_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_values_response import PropertyValuesResponse + +class TestPropertyValuesResponse(unittest.TestCase): + """PropertyValuesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PropertyValuesResponse: + """Test PropertyValuesResponse + 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 `PropertyValuesResponse` + """ + model = PropertyValuesResponse() + if include_optional: + return PropertyValuesResponse( + content = [ + null + ], + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=} + ) + else: + return PropertyValuesResponse( + content = [ + null + ], + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=}, + ) + """ + + def testPropertyValuesResponse(self): + """Test PropertyValuesResponse""" + # 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_values_response_content_inner.py b/test/test_property_values_response_content_inner.py new file mode 100644 index 0000000..e115bf9 --- /dev/null +++ b/test/test_property_values_response_content_inner.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_values_response_content_inner import PropertyValuesResponseContentInner + +class TestPropertyValuesResponseContentInner(unittest.TestCase): + """PropertyValuesResponseContentInner unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> PropertyValuesResponseContentInner: + """Test PropertyValuesResponseContentInner + 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 `PropertyValuesResponseContentInner` + """ + model = PropertyValuesResponseContentInner() + if include_optional: + return PropertyValuesResponseContentInner( + ) + else: + return PropertyValuesResponseContentInner( + ) + """ + + def testPropertyValuesResponseContentInner(self): + """Test PropertyValuesResponseContentInner""" + # 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_queries_api.py b/test/test_queries_api.py new file mode 100644 index 0000000..41db9aa --- /dev/null +++ b/test/test_queries_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.queries_api import QueriesApi + + +class TestQueriesApi(unittest.TestCase): + """QueriesApi unit test stubs""" + + def setUp(self) -> None: + self.api = QueriesApi() + + def tearDown(self) -> None: + pass + + def test_accept_queries(self) -> None: + """Test case for accept_queries + + Accept queries + """ + pass + + def test_get_queries(self) -> None: + """Test case for get_queries + + Get queries + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_queries_response.py b/test/test_queries_response.py new file mode 100644 index 0000000..3140bcc --- /dev/null +++ b/test/test_queries_response.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.queries_response import QueriesResponse + +class TestQueriesResponse(unittest.TestCase): + """QueriesResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueriesResponse: + """Test QueriesResponse + 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 `QueriesResponse` + """ + model = QueriesResponse() + if include_optional: + return QueriesResponse( + execution_detail = {feature=feature, viewName=viewName, dwhQueryMetricNames=[dwhQueryMetricNames, dwhQueryMetricNames], doubleCountingWarnings=[{detailMessage=detailMessage, propertyId=propertyId}, {detailMessage=detailMessage, propertyId=propertyId}]} + ) + else: + return QueriesResponse( + execution_detail = {feature=feature, viewName=viewName, dwhQueryMetricNames=[dwhQueryMetricNames, dwhQueryMetricNames], doubleCountingWarnings=[{detailMessage=detailMessage, propertyId=propertyId}, {detailMessage=detailMessage, propertyId=propertyId}]}, + ) + """ + + def testQueriesResponse(self): + """Test QueriesResponse""" + # 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_query_hit_dto.py b/test/test_query_hit_dto.py new file mode 100644 index 0000000..38bc1bf --- /dev/null +++ b/test/test_query_hit_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.query_hit_dto import QueryHitDTO + +class TestQueryHitDTO(unittest.TestCase): + """QueryHitDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueryHitDTO: + """Test QueryHitDTO + 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 `QueryHitDTO` + """ + model = QueryHitDTO() + if include_optional: + return QueryHitDTO( + title = '0', + subtitle = '0', + highlight = {subtitle=subtitle, title=title}, + position = {lng=6.027456183070403, lat=0.8008281904610115}, + bounding_box = {minY=5.962133916683182, minX=1.4658129805029452, maxY=2.3021358869347655, maxX=5.637376656633329}, + place_type = 'region' + ) + else: + return QueryHitDTO( + title = '0', + subtitle = '0', + position = {lng=6.027456183070403, lat=0.8008281904610115}, + ) + """ + + def testQueryHitDTO(self): + """Test QueryHitDTO""" + # 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_query_response.py b/test/test_query_response.py new file mode 100644 index 0000000..cfbf2fa --- /dev/null +++ b/test/test_query_response.py @@ -0,0 +1,66 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.query_response import QueryResponse + +class TestQueryResponse(unittest.TestCase): + """QueryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueryResponse: + """Test QueryResponse + 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 `QueryResponse` + """ + model = QueryResponse() + if include_optional: + return QueryResponse( + content = [ + {content={}} + ], + execution_detail = {feature=feature, viewName=viewName, dwhQueryMetricNames=[dwhQueryMetricNames, dwhQueryMetricNames], doubleCountingWarnings=[{detailMessage=detailMessage, propertyId=propertyId}, {detailMessage=detailMessage, propertyId=propertyId}]}, + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=} + ) + else: + return QueryResponse( + content = [ + {content={}} + ], + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=}, + ) + """ + + def testQueryResponse(self): + """Test QueryResponse""" + # 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_query_response_item_wrapper.py b/test/test_query_response_item_wrapper.py new file mode 100644 index 0000000..08e1395 --- /dev/null +++ b/test/test_query_response_item_wrapper.py @@ -0,0 +1,52 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.query_response_item_wrapper import QueryResponseItemWrapper + +class TestQueryResponseItemWrapper(unittest.TestCase): + """QueryResponseItemWrapper unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> QueryResponseItemWrapper: + """Test QueryResponseItemWrapper + 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 `QueryResponseItemWrapper` + """ + model = QueryResponseItemWrapper() + if include_optional: + return QueryResponseItemWrapper( + content = None + ) + else: + return QueryResponseItemWrapper( + ) + """ + + def testQueryResponseItemWrapper(self): + """Test QueryResponseItemWrapper""" + # 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 35d5da3..dcafd3a 100644 --- a/test/test_ranking_dto.py +++ b/test/test_ranking_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_relations_dto.py b/test/test_relations_dto.py index aabec43..2cac055 100644 --- a/test/test_relations_dto.py +++ b/test/test_relations_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_reset_password_dto.py b/test/test_reset_password_dto.py new file mode 100644 index 0000000..995fb82 --- /dev/null +++ b/test/test_reset_password_dto.py @@ -0,0 +1,54 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.reset_password_dto import ResetPasswordDTO + +class TestResetPasswordDTO(unittest.TestCase): + """ResetPasswordDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResetPasswordDTO: + """Test ResetPasswordDTO + 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 `ResetPasswordDTO` + """ + model = ResetPasswordDTO() + if include_optional: + return ResetPasswordDTO( + new_password = '', + consent_granted = True + ) + else: + return ResetPasswordDTO( + new_password = '', + ) + """ + + def testResetPasswordDTO(self): + """Test ResetPasswordDTO""" + # 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_restricted_account_dto.py b/test/test_restricted_account_dto.py new file mode 100644 index 0000000..76cb32a --- /dev/null +++ b/test/test_restricted_account_dto.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.restricted_account_dto import RestrictedAccountDTO + +class TestRestrictedAccountDTO(unittest.TestCase): + """RestrictedAccountDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> RestrictedAccountDTO: + """Test RestrictedAccountDTO + 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 `RestrictedAccountDTO` + """ + model = RestrictedAccountDTO() + if include_optional: + return RestrictedAccountDTO( + id = '', + full_name = '0', + email = '', + status = 'ENABLED', + preferences = {sendNewsletter=true, lastActiveOrganization=lastActiveOrganization, language=language, lastActiveProject=lastActiveProject} + ) + else: + return RestrictedAccountDTO( + id = '', + full_name = '0', + email = '', + status = 'ENABLED', + ) + """ + + def testRestrictedAccountDTO(self): + """Test RestrictedAccountDTO""" + # 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_result_set_filter.py b/test/test_result_set_filter.py new file mode 100644 index 0000000..2eafad6 --- /dev/null +++ b/test/test_result_set_filter.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.result_set_filter import ResultSetFilter + +class TestResultSetFilter(unittest.TestCase): + """ResultSetFilter unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultSetFilter: + """Test ResultSetFilter + 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 `ResultSetFilter` + """ + model = ResultSetFilter() + if include_optional: + return ResultSetFilter( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull' + ) + else: + return ResultSetFilter( + property_id = 'z0', + value = [ + null + ], + operator = 'isNull', + ) + """ + + def testResultSetFilter(self): + """Test ResultSetFilter""" + # 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_result_set_filter_comp.py b/test/test_result_set_filter_comp.py new file mode 100644 index 0000000..b21259a --- /dev/null +++ b/test/test_result_set_filter_comp.py @@ -0,0 +1,56 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.result_set_filter_comp import ResultSetFilterComp + +class TestResultSetFilterComp(unittest.TestCase): + """ResultSetFilterComp unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultSetFilterComp: + """Test ResultSetFilterComp + 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 `ResultSetFilterComp` + """ + model = ResultSetFilterComp() + if include_optional: + return ResultSetFilterComp( + property_id = 'z0', + value = None, + operator = 'eq' + ) + else: + return ResultSetFilterComp( + property_id = 'z0', + operator = 'eq', + ) + """ + + def testResultSetFilterComp(self): + """Test ResultSetFilterComp""" + # 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_result_set_filter_in.py b/test/test_result_set_filter_in.py new file mode 100644 index 0000000..cb8fa1e --- /dev/null +++ b/test/test_result_set_filter_in.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.result_set_filter_in import ResultSetFilterIn + +class TestResultSetFilterIn(unittest.TestCase): + """ResultSetFilterIn unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultSetFilterIn: + """Test ResultSetFilterIn + 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 `ResultSetFilterIn` + """ + model = ResultSetFilterIn() + if include_optional: + return ResultSetFilterIn( + property_id = 'z0', + value = [ + null + ], + operator = 'in' + ) + else: + return ResultSetFilterIn( + property_id = 'z0', + value = [ + null + ], + operator = 'in', + ) + """ + + def testResultSetFilterIn(self): + """Test ResultSetFilterIn""" + # 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_result_set_filter_unary.py b/test/test_result_set_filter_unary.py new file mode 100644 index 0000000..5349b3b --- /dev/null +++ b/test/test_result_set_filter_unary.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.result_set_filter_unary import ResultSetFilterUnary + +class TestResultSetFilterUnary(unittest.TestCase): + """ResultSetFilterUnary unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ResultSetFilterUnary: + """Test ResultSetFilterUnary + 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 `ResultSetFilterUnary` + """ + model = ResultSetFilterUnary() + if include_optional: + return ResultSetFilterUnary( + property_id = 'z0', + operator = 'isNull' + ) + else: + return ResultSetFilterUnary( + property_id = 'z0', + operator = 'isNull', + ) + """ + + def testResultSetFilterUnary(self): + """Test ResultSetFilterUnary""" + # 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_scale_options_dto.py b/test/test_scale_options_dto.py index d7ca16b..11f232d 100644 --- a/test/test_scale_options_dto.py +++ b/test/test_scale_options_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,30 +37,9 @@ def make_instance(self, include_optional) -> ScaleOptionsDTO: if include_optional: return ScaleOptionsDTO( static = [ - cm_python_openapi_sdk.models.static_scale_option_dto.StaticScaleOptionDTO( - dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), - max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, ) - ], ) + {breaks={selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, dataset=dataset, maxValues=[{selection=0.7061401241503109, zoom=11, global=0.23021358869347652}, {selection=0.7061401241503109, zoom=11, global=0.23021358869347652}]} ], - default_distribution = cm_python_openapi_sdk.models.default_distribution_dto.DefaultDistributionDTO( - range = [ - 1.337 - ], - breaks = [ - 1.337 - ], - display_intervals = [ - 1.337 - ], ) + default_distribution = {displayIntervals=[2.027123023002322, 2.027123023002322], breaks=[3.616076749251911, 3.616076749251911], range=[9.301444243932576, 9.301444243932576]} ) else: return ScaleOptionsDTO( diff --git a/test/test_search_api.py b/test/test_search_api.py new file mode 100644 index 0000000..d594aa4 --- /dev/null +++ b/test/test_search_api.py @@ -0,0 +1,46 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.api.search_api import SearchApi + + +class TestSearchApi(unittest.TestCase): + """SearchApi unit test stubs""" + + def setUp(self) -> None: + self.api = SearchApi() + + def tearDown(self) -> None: + pass + + def test_full_text_search(self) -> None: + """Test case for full_text_search + + Full text search on all internal project data. + """ + pass + + def test_geographic_search(self) -> None: + """Test case for geographic_search + + Geographic search + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_search_query_hit.py b/test/test_search_query_hit.py new file mode 100644 index 0000000..97a2d68 --- /dev/null +++ b/test/test_search_query_hit.py @@ -0,0 +1,60 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.search_query_hit import SearchQueryHit + +class TestSearchQueryHit(unittest.TestCase): + """SearchQueryHit unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SearchQueryHit: + """Test SearchQueryHit + 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 `SearchQueryHit` + """ + model = SearchQueryHit() + if include_optional: + return SearchQueryHit( + id = None, + dataset = '0', + title = '', + subtitle = '', + highlight = {subtitle=subtitle, title=title} + ) + else: + return SearchQueryHit( + id = None, + dataset = '0', + title = '', + subtitle = '', + ) + """ + + def testSearchQueryHit(self): + """Test SearchQueryHit""" + # 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_search_query_hit_id.py b/test/test_search_query_hit_id.py new file mode 100644 index 0000000..a96b4e2 --- /dev/null +++ b/test/test_search_query_hit_id.py @@ -0,0 +1,51 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.search_query_hit_id import SearchQueryHitId + +class TestSearchQueryHitId(unittest.TestCase): + """SearchQueryHitId unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SearchQueryHitId: + """Test SearchQueryHitId + 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 `SearchQueryHitId` + """ + model = SearchQueryHitId() + if include_optional: + return SearchQueryHitId( + ) + else: + return SearchQueryHitId( + ) + """ + + def testSearchQueryHitId(self): + """Test SearchQueryHitId""" + # 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_search_query_response.py b/test/test_search_query_response.py new file mode 100644 index 0000000..8fabf8d --- /dev/null +++ b/test/test_search_query_response.py @@ -0,0 +1,65 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.search_query_response import SearchQueryResponse + +class TestSearchQueryResponse(unittest.TestCase): + """SearchQueryResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SearchQueryResponse: + """Test SearchQueryResponse + 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 `SearchQueryResponse` + """ + model = SearchQueryResponse() + if include_optional: + return SearchQueryResponse( + content = [ + {highlight={subtitle=subtitle, title=title}, subtitle=subtitle, id=SearchQueryHit_id, title=title, dataset=dataset} + ], + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=} + ) + else: + return SearchQueryResponse( + content = [ + {highlight={subtitle=subtitle, title=title}, subtitle=subtitle, id=SearchQueryHit_id, title=title, dataset=dataset} + ], + links = [ + None + ], + page = {number=1, size=0, totalPages=6, totalElements=}, + ) + """ + + def testSearchQueryResponse(self): + """Test SearchQueryResponse""" + # 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_send_reset_password_dto.py b/test/test_send_reset_password_dto.py new file mode 100644 index 0000000..5aa29f9 --- /dev/null +++ b/test/test_send_reset_password_dto.py @@ -0,0 +1,53 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import unittest + +from cm_python_openapi_sdk.models.send_reset_password_dto import SendResetPasswordDTO + +class TestSendResetPasswordDTO(unittest.TestCase): + """SendResetPasswordDTO unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> SendResetPasswordDTO: + """Test SendResetPasswordDTO + 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 `SendResetPasswordDTO` + """ + model = SendResetPasswordDTO() + if include_optional: + return SendResetPasswordDTO( + email = '' + ) + else: + return SendResetPasswordDTO( + email = '', + ) + """ + + def testSendResetPasswordDTO(self): + """Test SendResetPasswordDTO""" + # 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_single_select_filter_dto.py b/test/test_single_select_filter_dto.py index 834d49b..518ed79 100644 --- a/test/test_single_select_filter_dto.py +++ b/test/test_single_select_filter_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,9 +39,7 @@ def make_instance(self, include_optional) -> SingleSelectFilterDTO: type = 'singleSelect', var_property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', order_by = [ - cm_python_openapi_sdk.models.order_by_dto.OrderByDTO( - property = 'awat5ikwowtta-3mh2lcafqw3zhes.i16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwscq-4zge8f37mn0', - direction = 'asc', ) + {property=property, direction=asc} ] ) else: diff --git a/test/test_static_scale_option_dto.py b/test/test_static_scale_option_dto.py index 5e3e1eb..20e3045 100644 --- a/test/test_static_scale_option_dto.py +++ b/test/test_static_scale_option_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,29 +37,14 @@ def make_instance(self, include_optional) -> StaticScaleOptionDTO: if include_optional: return StaticScaleOptionDTO( dataset = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), + breaks = {selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, max_values = [ - cm_python_openapi_sdk.models.max_value_dto.MaxValueDTO( - zoom = 2, - global = 0, - selection = 0, ) + {selection=0.7061401241503109, zoom=11, global=0.23021358869347652} ] ) else: return StaticScaleOptionDTO( - breaks = cm_python_openapi_sdk.models.static_scale_option_dto_breaks.StaticScaleOptionDTO_breaks( - global = [ - 1.337 - ], - selection = [ - 1.337 - ], ), + breaks = {selection=[5.962133916683182, 5.962133916683182], global=[1.4658129805029452, 1.4658129805029452]}, ) """ diff --git a/test/test_static_scale_option_dto_breaks.py b/test/test_static_scale_option_dto_breaks.py index 4817fd8..a77f639 100644 --- a/test/test_static_scale_option_dto_breaks.py +++ b/test/test_static_scale_option_dto_breaks.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_style_dto.py b/test/test_style_dto.py index c1e5749..fd012be 100644 --- a/test/test_style_dto.py +++ b/test/test_style_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_submit_job_execution_request.py b/test/test_submit_job_execution_request.py index afd1f4a..69ca85d 100644 --- a/test/test_submit_job_execution_request.py +++ b/test/test_submit_job_execution_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_template_dataset_dto.py b/test/test_template_dataset_dto.py index daf829c..8890e51 100644 --- a/test/test_template_dataset_dto.py +++ b/test/test_template_dataset_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_time_series_dto.py b/test/test_time_series_dto.py index f4be2e4..9d4ee92 100644 --- a/test/test_time_series_dto.py +++ b/test/test_time_series_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_token_request_dto.py b/test/test_token_request_dto.py index 4f400e5..7e26cbf 100644 --- a/test/test_token_request_dto.py +++ b/test/test_token_request_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_token_response_dto.py b/test/test_token_response_dto.py index 0fbcc00..f65f17b 100644 --- a/test/test_token_response_dto.py +++ b/test/test_token_response_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_truncate_job_request.py b/test/test_truncate_job_request.py index a3ba48e..5d13a67 100644 --- a/test/test_truncate_job_request.py +++ b/test/test_truncate_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_invitation.py b/test/test_update_invitation.py index 4797518..2f062f2 100644 --- a/test/test_update_invitation.py +++ b/test/test_update_invitation.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_membership.py b/test/test_update_membership.py index a9d6f43..c75441b 100644 --- a/test/test_update_membership.py +++ b/test/test_update_membership.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_organization_dto.py b/test/test_update_organization_dto.py index e7e440f..f068ff6 100644 --- a/test/test_update_organization_dto.py +++ b/test/test_update_organization_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_update_project_dto.py b/test/test_update_project_dto.py index cee280e..b4cbfd3 100644 --- a/test/test_update_project_dto.py +++ b/test/test_update_project_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_user_invitations_api.py b/test/test_user_invitations_api.py deleted file mode 100644 index 752336f..0000000 --- a/test/test_user_invitations_api.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding: utf-8 - -""" - clevermaps-client - - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - - The 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 index ac8aa84..3e43f4e 100644 --- a/test/test_validate_job_request.py +++ b/test/test_validate_job_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_validate_request.py b/test/test_validate_request.py index 0ed052c..592bf6f 100644 --- a/test/test_validate_request.py +++ b/test/test_validate_request.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_value_option_dto.py b/test/test_value_option_dto.py index 85026a6..332b0de 100644 --- a/test/test_value_option_dto.py +++ b/test/test_value_option_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variable_dto.py b/test/test_variable_dto.py index 0496858..8c87a54 100644 --- a/test/test_variable_dto.py +++ b/test/test_variable_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,10 +41,7 @@ def make_instance(self, include_optional) -> VariableDTO: min_value = 1.337, max_value = 1.337, default_value = 1.337, - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ) + format = {symbol=symbol, type=number, fraction=0} ) else: return VariableDTO( @@ -52,10 +50,7 @@ def make_instance(self, include_optional) -> VariableDTO: min_value = 1.337, max_value = 1.337, default_value = 1.337, - format = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), + format = {symbol=symbol, type=number, fraction=0}, ) """ diff --git a/test/test_variable_type.py b/test/test_variable_type.py index 2d76be1..581d518 100644 --- a/test/test_variable_type.py +++ b/test/test_variable_type.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_variable_value.py b/test/test_variable_value.py new file mode 100644 index 0000000..b73ed27 --- /dev/null +++ b/test/test_variable_value.py @@ -0,0 +1,55 @@ +# coding: utf-8 + +""" + clevermaps-client + + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations + + The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io + 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_value import VariableValue + +class TestVariableValue(unittest.TestCase): + """VariableValue unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> VariableValue: + """Test VariableValue + 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 `VariableValue` + """ + model = VariableValue() + if include_optional: + return VariableValue( + variable = 'awat5ikwowtta-3mh2lcafqw3zhes', + value = 1.337 + ) + else: + return VariableValue( + variable = 'awat5ikwowtta-3mh2lcafqw3zhes', + value = 1.337, + ) + """ + + def testVariableValue(self): + """Test VariableValue""" + # 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 82000d2..2b13c3b 100644 --- a/test/test_variables_dto.py +++ b/test/test_variables_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -38,16 +39,7 @@ def make_instance(self, include_optional) -> VariablesDTO: type = 'variables', title = '0', variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) + {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title} ] ) else: @@ -55,16 +47,7 @@ def make_instance(self, include_optional) -> VariablesDTO: type = 'variables', title = '0', variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) + {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title} ], ) """ diff --git a/test/test_view_content_dto.py b/test/test_view_content_dto.py index 0823c78..1f44300 100644 --- a/test/test_view_content_dto.py +++ b/test/test_view_content_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -55,80 +56,17 @@ def make_instance(self, include_optional) -> ViewContentDTO: null ], variables = [ - cm_python_openapi_sdk.models.variables_dto.VariablesDTO( - type = 'variables', - title = '0', - variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) - ], ) + {variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title} ], - spatial_query = 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(), ), + spatial_query = {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, fitness_groups = 3, - 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, - min_zoom = 0, - max_zoom = 56, - tile_layer_menu = True, - tile_layer = 'mapbox', - 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), + map_options = {maxZoom=2, customTileLayer={accessToken=accessToken, url=url}, tileLayer=mapbox, center={lng=6.027456183070403, lat=0.8008281904610115}, tileLayerMenu=true, minZoom=0, zoom=9}, + map_context_menu = {items=[{type=googleSatellite}, {type=googleSatellite}]}, exports = [ - cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO( - export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ) + {export=export} ], - measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO( - type = 'line', - points = [ - 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(), ) - ], - zones = [ - 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(), ) - ], ), - 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 = [ - cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ) - ], ), + measure = {type=line, zones=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}], points=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}]}, + default_selected = {coordinates=[{lng=6.027456183070403, lat=0.8008281904610115}, {lng=6.027456183070403, lat=0.8008281904610115}], ids=[, ], dataset=dataset}, exclude_datasets = [ '' ], diff --git a/test/test_view_dto.py b/test/test_view_dto.py index a6fa92a..eb502d4 100644 --- a/test/test_view_dto.py +++ b/test/test_view_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -40,198 +41,14 @@ def make_instance(self, include_optional) -> ViewDTO: type = 'dataset', title = '0', description = '', - 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', - marker_selector = '/rest/projects/8q6zgckec0l3o4gi/md/markerSelectors?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - markers_only = True, - show_attributes_on_drill = True, - default_granularity = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualized = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'areas', - default_drilled = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_tool = 'search', - default_compare_type = 'dominance', - compare_collapsed = True, - filter_group = [ - null - ], - default_active_filters = [ - null - ], - variables = [ - cm_python_openapi_sdk.models.variables_dto.VariablesDTO( - type = 'variables', - title = '0', - variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) - ], ) - ], - spatial_query = 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(), ), - fitness_groups = 3, - 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, - min_zoom = 0, - max_zoom = 56, - tile_layer_menu = True, - tile_layer = 'mapbox', - 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - exports = [ - cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO( - export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ) - ], - measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO( - type = 'line', - points = [ - 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(), ) - ], - zones = [ - - ], ), - 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 = [ - cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ) - ], ), - exclude_datasets = [ - '' - ], - disable_fitness = True, ) + content = {compareCollapsed=true, defaultCompareType=dominance, filterGroup=[{property=property, type=date}, {property=property, type=date}], exports=[{export=export}, {export=export}], icon=icon, defaultGranularity=defaultGranularity, defaultTool=search, defaultVisualization=areas, excludeDatasets=[excludeDatasets, excludeDatasets], mapOptions={maxZoom=2, customTileLayer={accessToken=accessToken, url=url}, tileLayer=mapbox, center={lng=6.027456183070403, lat=0.8008281904610115}, tileLayerMenu=true, minZoom=0, zoom=9}, map=map, dashboard=dashboard, showAttributesOnDrill=true, defaultDrilled=defaultDrilled, defaultActiveFilters=[{property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}, {property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}], variables=[{variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}, {variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}], defaultSelected={coordinates=[{lng=6.027456183070403, lat=0.8008281904610115}, {lng=6.027456183070403, lat=0.8008281904610115}], ids=[, ], dataset=dataset}, markerSelector=markerSelector, mapContextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, spatialQuery={unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, markersOnly=true, defaultVisualized=defaultVisualized, fitnessGroups=4, measure={type=line, zones=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}], points=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}]}, disableFitness=true} ) else: return ViewDTO( name = 'awat5ikwowtta-3mh2lcafqw3zhes', title = '0', description = '', - 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', - marker_selector = '/rest/projects/8q6zgckec0l3o4gi/md/markerSelectors?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - markers_only = True, - show_attributes_on_drill = True, - default_granularity = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualized = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'areas', - default_drilled = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_tool = 'search', - default_compare_type = 'dominance', - compare_collapsed = True, - filter_group = [ - null - ], - default_active_filters = [ - null - ], - variables = [ - cm_python_openapi_sdk.models.variables_dto.VariablesDTO( - type = 'variables', - title = '0', - variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) - ], ) - ], - spatial_query = 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(), ), - fitness_groups = 3, - 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, - min_zoom = 0, - max_zoom = 56, - tile_layer_menu = True, - tile_layer = 'mapbox', - 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - exports = [ - cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO( - export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ) - ], - measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO( - type = 'line', - points = [ - 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(), ) - ], - zones = [ - - ], ), - 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 = [ - cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ) - ], ), - exclude_datasets = [ - '' - ], - disable_fitness = True, ), + content = {compareCollapsed=true, defaultCompareType=dominance, filterGroup=[{property=property, type=date}, {property=property, type=date}], exports=[{export=export}, {export=export}], icon=icon, defaultGranularity=defaultGranularity, defaultTool=search, defaultVisualization=areas, excludeDatasets=[excludeDatasets, excludeDatasets], mapOptions={maxZoom=2, customTileLayer={accessToken=accessToken, url=url}, tileLayer=mapbox, center={lng=6.027456183070403, lat=0.8008281904610115}, tileLayerMenu=true, minZoom=0, zoom=9}, map=map, dashboard=dashboard, showAttributesOnDrill=true, defaultDrilled=defaultDrilled, defaultActiveFilters=[{property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}, {property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}], variables=[{variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}, {variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}], defaultSelected={coordinates=[{lng=6.027456183070403, lat=0.8008281904610115}, {lng=6.027456183070403, lat=0.8008281904610115}], ids=[, ], dataset=dataset}, markerSelector=markerSelector, mapContextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, spatialQuery={unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, markersOnly=true, defaultVisualized=defaultVisualized, fitnessGroups=4, measure={type=line, zones=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}], points=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}]}, disableFitness=true}, ) """ diff --git a/test/test_view_paged_model_dto.py b/test/test_view_paged_model_dto.py index 6fdca24..2bd2583 100644 --- a/test/test_view_paged_model_dto.py +++ b/test/test_view_paged_model_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. @@ -36,114 +37,12 @@ def make_instance(self, include_optional) -> ViewPagedModelDTO: if include_optional: return ViewPagedModelDTO( content = [ - cm_python_openapi_sdk.models.view_dto.ViewDTO( - id = '', - name = 'awat5ikwowtta-3mh2lcafqw3zhes', - type = 'dataset', - title = '0', - description = '', - 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', - marker_selector = '/rest/projects/8q6zgckec0l3o4gi/md/markerSelectors?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - markers_only = True, - show_attributes_on_drill = True, - default_granularity = '/rest/projects/8q6zgckec0l3o4gi/md/datasets?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualized = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_visualization = 'areas', - default_drilled = '/rest/projects/8q6zgckec0l3o4gi/md/indicators?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', - default_tool = 'search', - default_compare_type = 'dominance', - compare_collapsed = True, - filter_group = [ - null - ], - default_active_filters = [ - null - ], - variables = [ - cm_python_openapi_sdk.models.variables_dto.VariablesDTO( - type = 'variables', - title = '0', - variables = [ - 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 = cm_python_openapi_sdk.models.format_dto.FormatDTO( - type = 'number', - fraction = 0, - symbol = '', ), ) - ], ) - ], - spatial_query = 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(), ), - fitness_groups = 3, - 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, - min_zoom = 0, - max_zoom = 56, - tile_layer_menu = True, - tile_layer = 'mapbox', - 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 = cm_python_openapi_sdk.models.map_context_menu_dto.MapContextMenuDTO( - items = [ - null - ], ), - exports = [ - cm_python_openapi_sdk.models.export_link_dto.ExportLinkDTO( - export = '/rest/projects/8q6zgckec0l3o4gi/md/exports?name=lcafqw3zheseh16mckwqaot6282x4vh6wt7cgd04d0gu12zwv6v61pi05te5cj19uo1-vud_-tc_vbqgp4vj0u4t9xwduicwsc', ) - ], - measure = cm_python_openapi_sdk.models.measure_dto.MeasureDTO( - type = 'line', - points = [ - 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(), ) - ], - zones = [ - - ], ), - 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 = [ - cm_python_openapi_sdk.models.center_dto.CenterDTO( - lat = 1.337, - lng = 1.337, ) - ], ), - exclude_datasets = [ - '' - ], - disable_fitness = True, ), ) + {name=name, description=description, id=id, type=dataset, title=title, content={compareCollapsed=true, defaultCompareType=dominance, filterGroup=[{property=property, type=date}, {property=property, type=date}], exports=[{export=export}, {export=export}], icon=icon, defaultGranularity=defaultGranularity, defaultTool=search, defaultVisualization=areas, excludeDatasets=[excludeDatasets, excludeDatasets], mapOptions={maxZoom=2, customTileLayer={accessToken=accessToken, url=url}, tileLayer=mapbox, center={lng=6.027456183070403, lat=0.8008281904610115}, tileLayerMenu=true, minZoom=0, zoom=9}, map=map, dashboard=dashboard, showAttributesOnDrill=true, defaultDrilled=defaultDrilled, defaultActiveFilters=[{property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}, {property=property, defaultValues={endDate=null, startDate={value=value}}, type=date}], variables=[{variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}, {variables=[{minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}, {minValue=0.8008281904610115, maxValue=6.027456183070403, defaultValue=1.4658129805029452, name=name, format={symbol=symbol, type=number, fraction=0}, title=title}], type=type, title=title}], defaultSelected={coordinates=[{lng=6.027456183070403, lat=0.8008281904610115}, {lng=6.027456183070403, lat=0.8008281904610115}], ids=[, ], dataset=dataset}, markerSelector=markerSelector, mapContextMenu={items=[{type=googleSatellite}, {type=googleSatellite}]}, spatialQuery={unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, markersOnly=true, defaultVisualized=defaultVisualized, fitnessGroups=4, measure={type=line, zones=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}], points=[{unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}, {unit=time, amount=1, lng=22.945559638799807, profile=car, geometry={}, lat=34.63682100059455}]}, disableFitness=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, ) + page = {number=1, size=0, totalPages=6, totalElements=} ) else: return ViewPagedModelDTO( diff --git a/test/test_views_api.py b/test/test_views_api.py index 84614f9..f9817aa 100644 --- a/test/test_views_api.py +++ b/test/test_views_api.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually. diff --git a/test/test_zoom_dto.py b/test/test_zoom_dto.py index 074f0ba..1b688f3 100644 --- a/test/test_zoom_dto.py +++ b/test/test_zoom_dto.py @@ -3,9 +3,10 @@ """ clevermaps-client - No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + CleverMaps REST API provides access to location intelligence and geospatial analytics platform. ### Main capabilities include: - Project and user access management - Multidimensional data model and metrics management - Data upload and exports - Ad-hoc analysis of geospatial data - Full text and geographic search - Configuration of CleverMaps Studio visualizations The version of the OpenAPI document: 1.0.0 + Contact: support@clevermaps.io Generated by OpenAPI Generator (https://openapi-generator.tech) Do not edit the class manually.