rapidata 0.1.2__py3-none-any.whl → 0.1.5__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- openapi/openapi-client/openapi_client/__init__.py +215 -0
- openapi/openapi-client/openapi_client/api/__init__.py +11 -0
- openapi/openapi-client/openapi_client/api/coco_api.py +619 -0
- openapi/openapi-client/openapi_client/api/datapoint_api.py +817 -0
- openapi/openapi-client/openapi_client/api/dataset_api.py +2290 -0
- openapi/openapi-client/openapi_client/api/identity_api.py +3181 -0
- openapi/openapi-client/openapi_client/api/newsletter_api.py +571 -0
- openapi/openapi-client/openapi_client/api/order_api.py +5390 -0
- openapi/openapi-client/openapi_client/api/validation_api.py +1670 -0
- openapi/openapi-client/openapi_client/api_client.py +797 -0
- openapi/openapi-client/openapi_client/api_response.py +21 -0
- openapi/openapi-client/openapi_client/configuration.py +479 -0
- openapi/openapi-client/openapi_client/exceptions.py +199 -0
- openapi/openapi-client/openapi_client/models/__init__.py +192 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model.py +116 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model_payload.py +238 -0
- openapi/openapi-client/openapi_client/models/add_validation_rapid_model_truth.py +238 -0
- openapi/openapi-client/openapi_client/models/admin_order_model.py +103 -0
- openapi/openapi-client/openapi_client/models/admin_order_model_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/age_group.py +40 -0
- openapi/openapi-client/openapi_client/models/age_user_filter_model.py +97 -0
- openapi/openapi-client/openapi_client/models/aggregator_type.py +46 -0
- openapi/openapi-client/openapi_client/models/attach_category_rapid_blueprint.py +98 -0
- openapi/openapi-client/openapi_client/models/attach_category_truth.py +96 -0
- openapi/openapi-client/openapi_client/models/base_error.py +90 -0
- openapi/openapi-client/openapi_client/models/bounding_box_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/bounding_box_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/bounding_box_truth.py +102 -0
- openapi/openapi-client/openapi_client/models/box_shape.py +122 -0
- openapi/openapi-client/openapi_client/models/classification_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/classification_metadata_filter_config.py +96 -0
- openapi/openapi-client/openapi_client/models/classify_payload.py +98 -0
- openapi/openapi-client/openapi_client/models/clone_dataset_model.py +98 -0
- openapi/openapi-client/openapi_client/models/clone_order_model.py +89 -0
- openapi/openapi-client/openapi_client/models/clone_order_result.py +89 -0
- openapi/openapi-client/openapi_client/models/compare_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_truth.py +96 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config.py +143 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config_rapid_selection_configs_inner.py +210 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_config_referee.py +154 -0
- openapi/openapi-client/openapi_client/models/compare_workflow_model.py +106 -0
- openapi/openapi-client/openapi_client/models/conditional_validation_rapid_selection_config.py +113 -0
- openapi/openapi-client/openapi_client/models/correlated_rapid_selection_config.py +98 -0
- openapi/openapi-client/openapi_client/models/count_classification_metadata_filter_config.py +94 -0
- openapi/openapi-client/openapi_client/models/count_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/country_user_filter_model.py +96 -0
- openapi/openapi-client/openapi_client/models/create_client_model.py +89 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_model.py +95 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_model_pipeline.py +126 -0
- openapi/openapi-client/openapi_client/models/create_complex_order_result.py +96 -0
- openapi/openapi-client/openapi_client/models/create_dataset_artifact_model.py +102 -0
- openapi/openapi-client/openapi_client/models/create_dataset_artifact_model_dataset.py +126 -0
- openapi/openapi-client/openapi_client/models/create_default_order_model.py +109 -0
- openapi/openapi-client/openapi_client/models/create_default_order_model_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/create_empty_validation_set_result.py +87 -0
- openapi/openapi-client/openapi_client/models/create_legacy_order_result.py +89 -0
- openapi/openapi-client/openapi_client/models/create_order_model.py +163 -0
- openapi/openapi-client/openapi_client/models/create_order_model_referee.py +126 -0
- openapi/openapi-client/openapi_client/models/create_order_model_selections_inner.py +154 -0
- openapi/openapi-client/openapi_client/models/create_order_model_user_filters_inner.py +154 -0
- openapi/openapi-client/openapi_client/models/create_order_model_workflow.py +140 -0
- openapi/openapi-client/openapi_client/models/create_order_result.py +96 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model.py +116 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_artifacts_inner.py +126 -0
- openapi/openapi-client/openapi_client/models/create_simple_pipeline_model_pipeline_steps_inner.py +182 -0
- openapi/openapi-client/openapi_client/models/create_unsupported_order_model.py +91 -0
- openapi/openapi-client/openapi_client/models/customer_order_model.py +101 -0
- openapi/openapi-client/openapi_client/models/customer_order_model_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/datapoint.py +121 -0
- openapi/openapi-client/openapi_client/models/datapoint_asset.py +170 -0
- openapi/openapi-client/openapi_client/models/datapoint_get_by_id_get200_response.py +126 -0
- openapi/openapi-client/openapi_client/models/datapoint_metadata_model.py +97 -0
- openapi/openapi-client/openapi_client/models/datapoint_metadata_model_metadata_inner.py +168 -0
- openapi/openapi-client/openapi_client/models/datapoint_model.py +95 -0
- openapi/openapi-client/openapi_client/models/datapoint_model_asset.py +170 -0
- openapi/openapi-client/openapi_client/models/dataset_evaluation_step_model.py +102 -0
- openapi/openapi-client/openapi_client/models/demographic_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/demographic_selection.py +96 -0
- openapi/openapi-client/openapi_client/models/empty_validation_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/error_type.py +40 -0
- openapi/openapi-client/openapi_client/models/feature_flag.py +89 -0
- openapi/openapi-client/openapi_client/models/feature_flag_model.py +89 -0
- openapi/openapi-client/openapi_client/models/feedback_model.py +94 -0
- openapi/openapi-client/openapi_client/models/file_asset.py +108 -0
- openapi/openapi-client/openapi_client/models/file_asset_metadata_inner.py +224 -0
- openapi/openapi-client/openapi_client/models/file_asset_model.py +108 -0
- openapi/openapi-client/openapi_client/models/filter.py +134 -0
- openapi/openapi-client/openapi_client/models/filter_operator.py +44 -0
- openapi/openapi-client/openapi_client/models/free_text_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/free_text_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/gender.py +38 -0
- openapi/openapi-client/openapi_client/models/gender_user_filter_model.py +97 -0
- openapi/openapi-client/openapi_client/models/get_available_validation_sets_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_datapoints_by_dataset_id_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_dataset_by_id_result.py +87 -0
- openapi/openapi-client/openapi_client/models/get_order_by_id_result.py +98 -0
- openapi/openapi-client/openapi_client/models/get_order_results_result.py +91 -0
- openapi/openapi-client/openapi_client/models/get_public_orders_result.py +95 -0
- openapi/openapi-client/openapi_client/models/get_workflow_config_result.py +91 -0
- openapi/openapi-client/openapi_client/models/get_workflow_config_result_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/image_dimension_metadata.py +112 -0
- openapi/openapi-client/openapi_client/models/import_from_file_result.py +87 -0
- openapi/openapi-client/openapi_client/models/import_validation_set_from_file_result.py +87 -0
- openapi/openapi-client/openapi_client/models/issue_auth_token_result.py +87 -0
- openapi/openapi-client/openapi_client/models/issue_client_auth_token_result.py +87 -0
- openapi/openapi-client/openapi_client/models/labeling_selection.py +96 -0
- openapi/openapi-client/openapi_client/models/line_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/line_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/line_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/locate_box_truth.py +104 -0
- openapi/openapi-client/openapi_client/models/locate_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/locate_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/location_metadata.py +112 -0
- openapi/openapi-client/openapi_client/models/location_metadata_exists_filter_config.py +94 -0
- openapi/openapi-client/openapi_client/models/logic_operator.py +37 -0
- openapi/openapi-client/openapi_client/models/login_model.py +89 -0
- openapi/openapi-client/openapi_client/models/metadata_visibilities.py +40 -0
- openapi/openapi-client/openapi_client/models/multi_asset.py +116 -0
- openapi/openapi-client/openapi_client/models/multi_asset_model.py +118 -0
- openapi/openapi-client/openapi_client/models/naive_referee_config.py +96 -0
- openapi/openapi-client/openapi_client/models/naive_referee_model.py +96 -0
- openapi/openapi-client/openapi_client/models/named_classification.py +100 -0
- openapi/openapi-client/openapi_client/models/named_entity_payload.py +98 -0
- openapi/openapi-client/openapi_client/models/named_entity_rapid_blueprint.py +98 -0
- openapi/openapi-client/openapi_client/models/named_entity_truth.py +104 -0
- openapi/openapi-client/openapi_client/models/never_ending_referee_config.py +94 -0
- openapi/openapi-client/openapi_client/models/newsletter_model.py +89 -0
- openapi/openapi-client/openapi_client/models/no_validation_workflow_rapid_selection_config.py +101 -0
- openapi/openapi-client/openapi_client/models/null_asset.py +104 -0
- openapi/openapi-client/openapi_client/models/null_asset_model.py +106 -0
- openapi/openapi-client/openapi_client/models/only_validation_workflow_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/order_model.py +91 -0
- openapi/openapi-client/openapi_client/models/order_query_get200_response.py +137 -0
- openapi/openapi-client/openapi_client/models/original_filename_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/page_info.py +94 -0
- openapi/openapi-client/openapi_client/models/polygon_payload.py +96 -0
- openapi/openapi-client/openapi_client/models/polygon_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/polygon_truth.py +94 -0
- openapi/openapi-client/openapi_client/models/private_text_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/probabilistic_attach_category_referee_config.py +98 -0
- openapi/openapi-client/openapi_client/models/prompt_metadata.py +110 -0
- openapi/openapi-client/openapi_client/models/prompt_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/public_text_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/query_orders_model.py +112 -0
- openapi/openapi-client/openapi_client/models/query_validation_set_model.py +112 -0
- openapi/openapi-client/openapi_client/models/request_password_reset_command.py +98 -0
- openapi/openapi-client/openapi_client/models/root_filter.py +107 -0
- openapi/openapi-client/openapi_client/models/send_completion_mail_step_model.py +98 -0
- openapi/openapi-client/openapi_client/models/signup_customer_model.py +93 -0
- openapi/openapi-client/openapi_client/models/signup_shadow_customer_model.py +87 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_config.py +137 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_config_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_model.py +100 -0
- openapi/openapi-client/openapi_client/models/simple_workflow_model_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/sort_criterion.py +96 -0
- openapi/openapi-client/openapi_client/models/sort_direction.py +37 -0
- openapi/openapi-client/openapi_client/models/static_rapid_selection_config.py +96 -0
- openapi/openapi-client/openapi_client/models/submit_coco_model.py +91 -0
- openapi/openapi-client/openapi_client/models/submit_coco_result.py +87 -0
- openapi/openapi-client/openapi_client/models/submit_password_reset_command.py +102 -0
- openapi/openapi-client/openapi_client/models/text_asset.py +106 -0
- openapi/openapi-client/openapi_client/models/text_asset_model.py +108 -0
- openapi/openapi-client/openapi_client/models/text_metadata.py +107 -0
- openapi/openapi-client/openapi_client/models/transcription_metadata.py +107 -0
- openapi/openapi-client/openapi_client/models/transcription_metadata_input.py +98 -0
- openapi/openapi-client/openapi_client/models/transcription_payload.py +106 -0
- openapi/openapi-client/openapi_client/models/transcription_rapid_blueprint.py +96 -0
- openapi/openapi-client/openapi_client/models/transcription_truth.py +106 -0
- openapi/openapi-client/openapi_client/models/transcription_word.py +89 -0
- openapi/openapi-client/openapi_client/models/unlock_order_result.py +87 -0
- openapi/openapi-client/openapi_client/models/update_access_model.py +87 -0
- openapi/openapi-client/openapi_client/models/update_order_model.py +87 -0
- openapi/openapi-client/openapi_client/models/update_workflow_config_model.py +100 -0
- openapi/openapi-client/openapi_client/models/update_workflow_config_model_workflow_config.py +140 -0
- openapi/openapi-client/openapi_client/models/upload_coco_result.py +91 -0
- openapi/openapi-client/openapi_client/models/upload_datapoints_result.py +97 -0
- openapi/openapi-client/openapi_client/models/upload_files_from_s3_bucket_model.py +116 -0
- openapi/openapi-client/openapi_client/models/upload_text_sources_to_dataset_model.py +89 -0
- openapi/openapi-client/openapi_client/models/validation_chance.py +91 -0
- openapi/openapi-client/openapi_client/models/validation_import_post_request_blueprint.py +238 -0
- openapi/openapi-client/openapi_client/models/validation_rapid_selection_config.py +98 -0
- openapi/openapi-client/openapi_client/models/validation_selection.py +98 -0
- openapi/openapi-client/openapi_client/models/validation_set.py +105 -0
- openapi/openapi-client/openapi_client/models/validation_set_overview_model.py +91 -0
- openapi/openapi-client/openapi_client/models/validation_set_paged_result.py +105 -0
- openapi/openapi-client/openapi_client/models/workflow_aggregation_step_model.py +112 -0
- openapi/openapi-client/openapi_client/models/workflow_labeling_step_model.py +96 -0
- openapi/openapi-client/openapi_client/models/workflow_split_model.py +110 -0
- openapi/openapi-client/openapi_client/models/workflow_split_model_filter_configs_inner.py +154 -0
- openapi/openapi-client/openapi_client/rest.py +257 -0
- rapidata/rapidata_client/{workflow/feature_flags → feature_flags}/feature_flags.py +5 -3
- rapidata/rapidata_client/metadata/__init__.py +0 -0
- rapidata/rapidata_client/metadata/base_metadata.py +12 -0
- rapidata/rapidata_client/metadata/transcription_metadata.py +19 -0
- rapidata/rapidata_client/order/dataset/rapidata_dataset.py +42 -16
- rapidata/rapidata_client/order/dataset/validation_set_builder.py +187 -0
- rapidata/rapidata_client/order/rapidata_order.py +49 -23
- rapidata/rapidata_client/order/rapidata_order_builder.py +126 -8
- rapidata/rapidata_client/rapidata_client.py +17 -5
- rapidata/rapidata_client/{workflow/referee → referee}/base_referee.py +8 -2
- rapidata/rapidata_client/{workflow/referee → referee}/classify_early_stopping_referee.py +1 -1
- rapidata/rapidata_client/{workflow/referee → referee}/naive_referee.py +5 -1
- rapidata/rapidata_client/workflow/__init__.py +0 -2
- rapidata/rapidata_client/workflow/base_workflow.py +9 -5
- rapidata/rapidata_client/workflow/classify_workflow.py +18 -3
- rapidata/rapidata_client/workflow/compare_workflow.py +13 -14
- rapidata/rapidata_client/workflow/free_text_workflow.py +14 -0
- rapidata/rapidata_client/workflow/transcription_workflow.py +22 -0
- rapidata/service/__init__.py +0 -1
- rapidata/service/openapi_service.py +43 -0
- {rapidata-0.1.2.dist-info → rapidata-0.1.5.dist-info}/METADATA +1 -1
- rapidata-0.1.5.dist-info/RECORD +227 -0
- rapidata/service/rapidata_api_services/base_service.py +0 -76
- rapidata/service/rapidata_api_services/dataset_service.py +0 -82
- rapidata/service/rapidata_api_services/order_service.py +0 -49
- rapidata/service/rapidata_api_services/rapidata_service.py +0 -18
- rapidata-0.1.2.dist-info/RECORD +0 -34
- /rapidata/service/rapidata_api_services/__init__.py → /openapi/openapi-client/openapi_client/py.typed +0 -0
- /rapidata/rapidata_client/{workflow/country_codes → country_codes}/__init__.py +0 -0
- /rapidata/rapidata_client/{workflow/country_codes → country_codes}/country_codes.py +0 -0
- /rapidata/rapidata_client/{workflow/feature_flags → feature_flags}/__init__.py +0 -0
- /rapidata/rapidata_client/{workflow/referee → referee}/__init__.py +0 -0
- {rapidata-0.1.2.dist-info → rapidata-0.1.5.dist-info}/LICENSE +0 -0
- {rapidata-0.1.2.dist-info → rapidata-0.1.5.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,817 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Rapidata.Dataset
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: v1
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import Field, StrictStr
|
|
20
|
+
from typing import Optional
|
|
21
|
+
from typing_extensions import Annotated
|
|
22
|
+
from openapi_client.models.datapoint_get_by_id_get200_response import DatapointGetByIdGet200Response
|
|
23
|
+
from openapi_client.models.get_datapoints_by_dataset_id_result import GetDatapointsByDatasetIdResult
|
|
24
|
+
|
|
25
|
+
from openapi_client.api_client import ApiClient, RequestSerialized
|
|
26
|
+
from openapi_client.api_response import ApiResponse
|
|
27
|
+
from openapi_client.rest import RESTResponseType
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DatapointApi:
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None) -> None:
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient.get_default()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@validate_call
|
|
44
|
+
def datapoint_delete_delete(
|
|
45
|
+
self,
|
|
46
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to delete.")] = None,
|
|
47
|
+
_request_timeout: Union[
|
|
48
|
+
None,
|
|
49
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
50
|
+
Tuple[
|
|
51
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
52
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
53
|
+
]
|
|
54
|
+
] = None,
|
|
55
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
56
|
+
_content_type: Optional[StrictStr] = None,
|
|
57
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
58
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
59
|
+
) -> None:
|
|
60
|
+
"""Delete a datapoint.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:param id: The id of the datapoint to delete.
|
|
64
|
+
:type id: str
|
|
65
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
66
|
+
number provided, it will be total request
|
|
67
|
+
timeout. It can also be a pair (tuple) of
|
|
68
|
+
(connection, read) timeouts.
|
|
69
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
70
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
71
|
+
request; this effectively ignores the
|
|
72
|
+
authentication in the spec for a single request.
|
|
73
|
+
:type _request_auth: dict, optional
|
|
74
|
+
:param _content_type: force content-type for the request.
|
|
75
|
+
:type _content_type: str, Optional
|
|
76
|
+
:param _headers: set to override the headers for a single
|
|
77
|
+
request; this effectively ignores the headers
|
|
78
|
+
in the spec for a single request.
|
|
79
|
+
:type _headers: dict, optional
|
|
80
|
+
:param _host_index: set to override the host_index for a single
|
|
81
|
+
request; this effectively ignores the host_index
|
|
82
|
+
in the spec for a single request.
|
|
83
|
+
:type _host_index: int, optional
|
|
84
|
+
:return: Returns the result object.
|
|
85
|
+
""" # noqa: E501
|
|
86
|
+
|
|
87
|
+
_param = self._datapoint_delete_delete_serialize(
|
|
88
|
+
id=id,
|
|
89
|
+
_request_auth=_request_auth,
|
|
90
|
+
_content_type=_content_type,
|
|
91
|
+
_headers=_headers,
|
|
92
|
+
_host_index=_host_index
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
96
|
+
'200': None,
|
|
97
|
+
}
|
|
98
|
+
response_data = self.api_client.call_api(
|
|
99
|
+
*_param,
|
|
100
|
+
_request_timeout=_request_timeout
|
|
101
|
+
)
|
|
102
|
+
response_data.read()
|
|
103
|
+
return self.api_client.response_deserialize(
|
|
104
|
+
response_data=response_data,
|
|
105
|
+
response_types_map=_response_types_map,
|
|
106
|
+
).data
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
@validate_call
|
|
110
|
+
def datapoint_delete_delete_with_http_info(
|
|
111
|
+
self,
|
|
112
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to delete.")] = None,
|
|
113
|
+
_request_timeout: Union[
|
|
114
|
+
None,
|
|
115
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
116
|
+
Tuple[
|
|
117
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
118
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
119
|
+
]
|
|
120
|
+
] = None,
|
|
121
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
122
|
+
_content_type: Optional[StrictStr] = None,
|
|
123
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
124
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
125
|
+
) -> ApiResponse[None]:
|
|
126
|
+
"""Delete a datapoint.
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
:param id: The id of the datapoint to delete.
|
|
130
|
+
:type id: str
|
|
131
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
132
|
+
number provided, it will be total request
|
|
133
|
+
timeout. It can also be a pair (tuple) of
|
|
134
|
+
(connection, read) timeouts.
|
|
135
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
136
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the
|
|
138
|
+
authentication in the spec for a single request.
|
|
139
|
+
:type _request_auth: dict, optional
|
|
140
|
+
:param _content_type: force content-type for the request.
|
|
141
|
+
:type _content_type: str, Optional
|
|
142
|
+
:param _headers: set to override the headers for a single
|
|
143
|
+
request; this effectively ignores the headers
|
|
144
|
+
in the spec for a single request.
|
|
145
|
+
:type _headers: dict, optional
|
|
146
|
+
:param _host_index: set to override the host_index for a single
|
|
147
|
+
request; this effectively ignores the host_index
|
|
148
|
+
in the spec for a single request.
|
|
149
|
+
:type _host_index: int, optional
|
|
150
|
+
:return: Returns the result object.
|
|
151
|
+
""" # noqa: E501
|
|
152
|
+
|
|
153
|
+
_param = self._datapoint_delete_delete_serialize(
|
|
154
|
+
id=id,
|
|
155
|
+
_request_auth=_request_auth,
|
|
156
|
+
_content_type=_content_type,
|
|
157
|
+
_headers=_headers,
|
|
158
|
+
_host_index=_host_index
|
|
159
|
+
)
|
|
160
|
+
|
|
161
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
162
|
+
'200': None,
|
|
163
|
+
}
|
|
164
|
+
response_data = self.api_client.call_api(
|
|
165
|
+
*_param,
|
|
166
|
+
_request_timeout=_request_timeout
|
|
167
|
+
)
|
|
168
|
+
response_data.read()
|
|
169
|
+
return self.api_client.response_deserialize(
|
|
170
|
+
response_data=response_data,
|
|
171
|
+
response_types_map=_response_types_map,
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
@validate_call
|
|
176
|
+
def datapoint_delete_delete_without_preload_content(
|
|
177
|
+
self,
|
|
178
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to delete.")] = None,
|
|
179
|
+
_request_timeout: Union[
|
|
180
|
+
None,
|
|
181
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
182
|
+
Tuple[
|
|
183
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
184
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
185
|
+
]
|
|
186
|
+
] = None,
|
|
187
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
188
|
+
_content_type: Optional[StrictStr] = None,
|
|
189
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
190
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
191
|
+
) -> RESTResponseType:
|
|
192
|
+
"""Delete a datapoint.
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
:param id: The id of the datapoint to delete.
|
|
196
|
+
:type id: str
|
|
197
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
198
|
+
number provided, it will be total request
|
|
199
|
+
timeout. It can also be a pair (tuple) of
|
|
200
|
+
(connection, read) timeouts.
|
|
201
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
202
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
203
|
+
request; this effectively ignores the
|
|
204
|
+
authentication in the spec for a single request.
|
|
205
|
+
:type _request_auth: dict, optional
|
|
206
|
+
:param _content_type: force content-type for the request.
|
|
207
|
+
:type _content_type: str, Optional
|
|
208
|
+
:param _headers: set to override the headers for a single
|
|
209
|
+
request; this effectively ignores the headers
|
|
210
|
+
in the spec for a single request.
|
|
211
|
+
:type _headers: dict, optional
|
|
212
|
+
:param _host_index: set to override the host_index for a single
|
|
213
|
+
request; this effectively ignores the host_index
|
|
214
|
+
in the spec for a single request.
|
|
215
|
+
:type _host_index: int, optional
|
|
216
|
+
:return: Returns the result object.
|
|
217
|
+
""" # noqa: E501
|
|
218
|
+
|
|
219
|
+
_param = self._datapoint_delete_delete_serialize(
|
|
220
|
+
id=id,
|
|
221
|
+
_request_auth=_request_auth,
|
|
222
|
+
_content_type=_content_type,
|
|
223
|
+
_headers=_headers,
|
|
224
|
+
_host_index=_host_index
|
|
225
|
+
)
|
|
226
|
+
|
|
227
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
228
|
+
'200': None,
|
|
229
|
+
}
|
|
230
|
+
response_data = self.api_client.call_api(
|
|
231
|
+
*_param,
|
|
232
|
+
_request_timeout=_request_timeout
|
|
233
|
+
)
|
|
234
|
+
return response_data.response
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
def _datapoint_delete_delete_serialize(
|
|
238
|
+
self,
|
|
239
|
+
id,
|
|
240
|
+
_request_auth,
|
|
241
|
+
_content_type,
|
|
242
|
+
_headers,
|
|
243
|
+
_host_index,
|
|
244
|
+
) -> RequestSerialized:
|
|
245
|
+
|
|
246
|
+
_host = None
|
|
247
|
+
|
|
248
|
+
_collection_formats: Dict[str, str] = {
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
_path_params: Dict[str, str] = {}
|
|
252
|
+
_query_params: List[Tuple[str, str]] = []
|
|
253
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
254
|
+
_form_params: List[Tuple[str, str]] = []
|
|
255
|
+
_files: Dict[
|
|
256
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
257
|
+
] = {}
|
|
258
|
+
_body_params: Optional[bytes] = None
|
|
259
|
+
|
|
260
|
+
# process the path parameters
|
|
261
|
+
# process the query parameters
|
|
262
|
+
if id is not None:
|
|
263
|
+
|
|
264
|
+
_query_params.append(('id', id))
|
|
265
|
+
|
|
266
|
+
# process the header parameters
|
|
267
|
+
# process the form parameters
|
|
268
|
+
# process the body parameter
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
# authentication setting
|
|
274
|
+
_auth_settings: List[str] = [
|
|
275
|
+
'bearer'
|
|
276
|
+
]
|
|
277
|
+
|
|
278
|
+
return self.api_client.param_serialize(
|
|
279
|
+
method='DELETE',
|
|
280
|
+
resource_path='/Datapoint/Delete',
|
|
281
|
+
path_params=_path_params,
|
|
282
|
+
query_params=_query_params,
|
|
283
|
+
header_params=_header_params,
|
|
284
|
+
body=_body_params,
|
|
285
|
+
post_params=_form_params,
|
|
286
|
+
files=_files,
|
|
287
|
+
auth_settings=_auth_settings,
|
|
288
|
+
collection_formats=_collection_formats,
|
|
289
|
+
_host=_host,
|
|
290
|
+
_request_auth=_request_auth
|
|
291
|
+
)
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
@validate_call
|
|
297
|
+
def datapoint_get_all_datapoints_by_dataset_id_get(
|
|
298
|
+
self,
|
|
299
|
+
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
300
|
+
_request_timeout: Union[
|
|
301
|
+
None,
|
|
302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
303
|
+
Tuple[
|
|
304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
305
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
306
|
+
]
|
|
307
|
+
] = None,
|
|
308
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
309
|
+
_content_type: Optional[StrictStr] = None,
|
|
310
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
312
|
+
) -> GetDatapointsByDatasetIdResult:
|
|
313
|
+
"""Get all datapoints of a dataset.
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
317
|
+
:type dataset_id: str
|
|
318
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
319
|
+
number provided, it will be total request
|
|
320
|
+
timeout. It can also be a pair (tuple) of
|
|
321
|
+
(connection, read) timeouts.
|
|
322
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
323
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
324
|
+
request; this effectively ignores the
|
|
325
|
+
authentication in the spec for a single request.
|
|
326
|
+
:type _request_auth: dict, optional
|
|
327
|
+
:param _content_type: force content-type for the request.
|
|
328
|
+
:type _content_type: str, Optional
|
|
329
|
+
:param _headers: set to override the headers for a single
|
|
330
|
+
request; this effectively ignores the headers
|
|
331
|
+
in the spec for a single request.
|
|
332
|
+
:type _headers: dict, optional
|
|
333
|
+
:param _host_index: set to override the host_index for a single
|
|
334
|
+
request; this effectively ignores the host_index
|
|
335
|
+
in the spec for a single request.
|
|
336
|
+
:type _host_index: int, optional
|
|
337
|
+
:return: Returns the result object.
|
|
338
|
+
""" # noqa: E501
|
|
339
|
+
|
|
340
|
+
_param = self._datapoint_get_all_datapoints_by_dataset_id_get_serialize(
|
|
341
|
+
dataset_id=dataset_id,
|
|
342
|
+
_request_auth=_request_auth,
|
|
343
|
+
_content_type=_content_type,
|
|
344
|
+
_headers=_headers,
|
|
345
|
+
_host_index=_host_index
|
|
346
|
+
)
|
|
347
|
+
|
|
348
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
349
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
350
|
+
}
|
|
351
|
+
response_data = self.api_client.call_api(
|
|
352
|
+
*_param,
|
|
353
|
+
_request_timeout=_request_timeout
|
|
354
|
+
)
|
|
355
|
+
response_data.read()
|
|
356
|
+
return self.api_client.response_deserialize(
|
|
357
|
+
response_data=response_data,
|
|
358
|
+
response_types_map=_response_types_map,
|
|
359
|
+
).data
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
@validate_call
|
|
363
|
+
def datapoint_get_all_datapoints_by_dataset_id_get_with_http_info(
|
|
364
|
+
self,
|
|
365
|
+
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
366
|
+
_request_timeout: Union[
|
|
367
|
+
None,
|
|
368
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
369
|
+
Tuple[
|
|
370
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
371
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
372
|
+
]
|
|
373
|
+
] = None,
|
|
374
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
375
|
+
_content_type: Optional[StrictStr] = None,
|
|
376
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
377
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
378
|
+
) -> ApiResponse[GetDatapointsByDatasetIdResult]:
|
|
379
|
+
"""Get all datapoints of a dataset.
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
383
|
+
:type dataset_id: str
|
|
384
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
385
|
+
number provided, it will be total request
|
|
386
|
+
timeout. It can also be a pair (tuple) of
|
|
387
|
+
(connection, read) timeouts.
|
|
388
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
389
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
390
|
+
request; this effectively ignores the
|
|
391
|
+
authentication in the spec for a single request.
|
|
392
|
+
:type _request_auth: dict, optional
|
|
393
|
+
:param _content_type: force content-type for the request.
|
|
394
|
+
:type _content_type: str, Optional
|
|
395
|
+
:param _headers: set to override the headers for a single
|
|
396
|
+
request; this effectively ignores the headers
|
|
397
|
+
in the spec for a single request.
|
|
398
|
+
:type _headers: dict, optional
|
|
399
|
+
:param _host_index: set to override the host_index for a single
|
|
400
|
+
request; this effectively ignores the host_index
|
|
401
|
+
in the spec for a single request.
|
|
402
|
+
:type _host_index: int, optional
|
|
403
|
+
:return: Returns the result object.
|
|
404
|
+
""" # noqa: E501
|
|
405
|
+
|
|
406
|
+
_param = self._datapoint_get_all_datapoints_by_dataset_id_get_serialize(
|
|
407
|
+
dataset_id=dataset_id,
|
|
408
|
+
_request_auth=_request_auth,
|
|
409
|
+
_content_type=_content_type,
|
|
410
|
+
_headers=_headers,
|
|
411
|
+
_host_index=_host_index
|
|
412
|
+
)
|
|
413
|
+
|
|
414
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
415
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
416
|
+
}
|
|
417
|
+
response_data = self.api_client.call_api(
|
|
418
|
+
*_param,
|
|
419
|
+
_request_timeout=_request_timeout
|
|
420
|
+
)
|
|
421
|
+
response_data.read()
|
|
422
|
+
return self.api_client.response_deserialize(
|
|
423
|
+
response_data=response_data,
|
|
424
|
+
response_types_map=_response_types_map,
|
|
425
|
+
)
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
@validate_call
|
|
429
|
+
def datapoint_get_all_datapoints_by_dataset_id_get_without_preload_content(
|
|
430
|
+
self,
|
|
431
|
+
dataset_id: Annotated[Optional[StrictStr], Field(description="The id of the dataset to get the datapoints of.")] = None,
|
|
432
|
+
_request_timeout: Union[
|
|
433
|
+
None,
|
|
434
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
435
|
+
Tuple[
|
|
436
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
437
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
438
|
+
]
|
|
439
|
+
] = None,
|
|
440
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
441
|
+
_content_type: Optional[StrictStr] = None,
|
|
442
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
443
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
444
|
+
) -> RESTResponseType:
|
|
445
|
+
"""Get all datapoints of a dataset.
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
:param dataset_id: The id of the dataset to get the datapoints of.
|
|
449
|
+
:type dataset_id: str
|
|
450
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
451
|
+
number provided, it will be total request
|
|
452
|
+
timeout. It can also be a pair (tuple) of
|
|
453
|
+
(connection, read) timeouts.
|
|
454
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
455
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
456
|
+
request; this effectively ignores the
|
|
457
|
+
authentication in the spec for a single request.
|
|
458
|
+
:type _request_auth: dict, optional
|
|
459
|
+
:param _content_type: force content-type for the request.
|
|
460
|
+
:type _content_type: str, Optional
|
|
461
|
+
:param _headers: set to override the headers for a single
|
|
462
|
+
request; this effectively ignores the headers
|
|
463
|
+
in the spec for a single request.
|
|
464
|
+
:type _headers: dict, optional
|
|
465
|
+
:param _host_index: set to override the host_index for a single
|
|
466
|
+
request; this effectively ignores the host_index
|
|
467
|
+
in the spec for a single request.
|
|
468
|
+
:type _host_index: int, optional
|
|
469
|
+
:return: Returns the result object.
|
|
470
|
+
""" # noqa: E501
|
|
471
|
+
|
|
472
|
+
_param = self._datapoint_get_all_datapoints_by_dataset_id_get_serialize(
|
|
473
|
+
dataset_id=dataset_id,
|
|
474
|
+
_request_auth=_request_auth,
|
|
475
|
+
_content_type=_content_type,
|
|
476
|
+
_headers=_headers,
|
|
477
|
+
_host_index=_host_index
|
|
478
|
+
)
|
|
479
|
+
|
|
480
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
481
|
+
'200': "GetDatapointsByDatasetIdResult",
|
|
482
|
+
}
|
|
483
|
+
response_data = self.api_client.call_api(
|
|
484
|
+
*_param,
|
|
485
|
+
_request_timeout=_request_timeout
|
|
486
|
+
)
|
|
487
|
+
return response_data.response
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
def _datapoint_get_all_datapoints_by_dataset_id_get_serialize(
|
|
491
|
+
self,
|
|
492
|
+
dataset_id,
|
|
493
|
+
_request_auth,
|
|
494
|
+
_content_type,
|
|
495
|
+
_headers,
|
|
496
|
+
_host_index,
|
|
497
|
+
) -> RequestSerialized:
|
|
498
|
+
|
|
499
|
+
_host = None
|
|
500
|
+
|
|
501
|
+
_collection_formats: Dict[str, str] = {
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
_path_params: Dict[str, str] = {}
|
|
505
|
+
_query_params: List[Tuple[str, str]] = []
|
|
506
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
507
|
+
_form_params: List[Tuple[str, str]] = []
|
|
508
|
+
_files: Dict[
|
|
509
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
510
|
+
] = {}
|
|
511
|
+
_body_params: Optional[bytes] = None
|
|
512
|
+
|
|
513
|
+
# process the path parameters
|
|
514
|
+
# process the query parameters
|
|
515
|
+
if dataset_id is not None:
|
|
516
|
+
|
|
517
|
+
_query_params.append(('datasetId', dataset_id))
|
|
518
|
+
|
|
519
|
+
# process the header parameters
|
|
520
|
+
# process the form parameters
|
|
521
|
+
# process the body parameter
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
# set the HTTP header `Accept`
|
|
525
|
+
if 'Accept' not in _header_params:
|
|
526
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
527
|
+
[
|
|
528
|
+
'text/plain',
|
|
529
|
+
'application/json',
|
|
530
|
+
'text/json'
|
|
531
|
+
]
|
|
532
|
+
)
|
|
533
|
+
|
|
534
|
+
|
|
535
|
+
# authentication setting
|
|
536
|
+
_auth_settings: List[str] = [
|
|
537
|
+
'bearer'
|
|
538
|
+
]
|
|
539
|
+
|
|
540
|
+
return self.api_client.param_serialize(
|
|
541
|
+
method='GET',
|
|
542
|
+
resource_path='/Datapoint/GetAllDatapointsByDatasetId',
|
|
543
|
+
path_params=_path_params,
|
|
544
|
+
query_params=_query_params,
|
|
545
|
+
header_params=_header_params,
|
|
546
|
+
body=_body_params,
|
|
547
|
+
post_params=_form_params,
|
|
548
|
+
files=_files,
|
|
549
|
+
auth_settings=_auth_settings,
|
|
550
|
+
collection_formats=_collection_formats,
|
|
551
|
+
_host=_host,
|
|
552
|
+
_request_auth=_request_auth
|
|
553
|
+
)
|
|
554
|
+
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
@validate_call
|
|
559
|
+
def datapoint_get_by_id_get(
|
|
560
|
+
self,
|
|
561
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
562
|
+
_request_timeout: Union[
|
|
563
|
+
None,
|
|
564
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
565
|
+
Tuple[
|
|
566
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
567
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
568
|
+
]
|
|
569
|
+
] = None,
|
|
570
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
571
|
+
_content_type: Optional[StrictStr] = None,
|
|
572
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
573
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
574
|
+
) -> DatapointGetByIdGet200Response:
|
|
575
|
+
"""Get a datapoint by its id.
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
:param id: The id of the datapoint to get.
|
|
579
|
+
:type id: str
|
|
580
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
581
|
+
number provided, it will be total request
|
|
582
|
+
timeout. It can also be a pair (tuple) of
|
|
583
|
+
(connection, read) timeouts.
|
|
584
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
585
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
586
|
+
request; this effectively ignores the
|
|
587
|
+
authentication in the spec for a single request.
|
|
588
|
+
:type _request_auth: dict, optional
|
|
589
|
+
:param _content_type: force content-type for the request.
|
|
590
|
+
:type _content_type: str, Optional
|
|
591
|
+
:param _headers: set to override the headers for a single
|
|
592
|
+
request; this effectively ignores the headers
|
|
593
|
+
in the spec for a single request.
|
|
594
|
+
:type _headers: dict, optional
|
|
595
|
+
:param _host_index: set to override the host_index for a single
|
|
596
|
+
request; this effectively ignores the host_index
|
|
597
|
+
in the spec for a single request.
|
|
598
|
+
:type _host_index: int, optional
|
|
599
|
+
:return: Returns the result object.
|
|
600
|
+
""" # noqa: E501
|
|
601
|
+
|
|
602
|
+
_param = self._datapoint_get_by_id_get_serialize(
|
|
603
|
+
id=id,
|
|
604
|
+
_request_auth=_request_auth,
|
|
605
|
+
_content_type=_content_type,
|
|
606
|
+
_headers=_headers,
|
|
607
|
+
_host_index=_host_index
|
|
608
|
+
)
|
|
609
|
+
|
|
610
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
611
|
+
'200': "DatapointGetByIdGet200Response",
|
|
612
|
+
}
|
|
613
|
+
response_data = self.api_client.call_api(
|
|
614
|
+
*_param,
|
|
615
|
+
_request_timeout=_request_timeout
|
|
616
|
+
)
|
|
617
|
+
response_data.read()
|
|
618
|
+
return self.api_client.response_deserialize(
|
|
619
|
+
response_data=response_data,
|
|
620
|
+
response_types_map=_response_types_map,
|
|
621
|
+
).data
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
@validate_call
|
|
625
|
+
def datapoint_get_by_id_get_with_http_info(
|
|
626
|
+
self,
|
|
627
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
628
|
+
_request_timeout: Union[
|
|
629
|
+
None,
|
|
630
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
631
|
+
Tuple[
|
|
632
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
633
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
634
|
+
]
|
|
635
|
+
] = None,
|
|
636
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
637
|
+
_content_type: Optional[StrictStr] = None,
|
|
638
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
639
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
640
|
+
) -> ApiResponse[DatapointGetByIdGet200Response]:
|
|
641
|
+
"""Get a datapoint by its id.
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
:param id: The id of the datapoint to get.
|
|
645
|
+
:type id: str
|
|
646
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
647
|
+
number provided, it will be total request
|
|
648
|
+
timeout. It can also be a pair (tuple) of
|
|
649
|
+
(connection, read) timeouts.
|
|
650
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
651
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
652
|
+
request; this effectively ignores the
|
|
653
|
+
authentication in the spec for a single request.
|
|
654
|
+
:type _request_auth: dict, optional
|
|
655
|
+
:param _content_type: force content-type for the request.
|
|
656
|
+
:type _content_type: str, Optional
|
|
657
|
+
:param _headers: set to override the headers for a single
|
|
658
|
+
request; this effectively ignores the headers
|
|
659
|
+
in the spec for a single request.
|
|
660
|
+
:type _headers: dict, optional
|
|
661
|
+
:param _host_index: set to override the host_index for a single
|
|
662
|
+
request; this effectively ignores the host_index
|
|
663
|
+
in the spec for a single request.
|
|
664
|
+
:type _host_index: int, optional
|
|
665
|
+
:return: Returns the result object.
|
|
666
|
+
""" # noqa: E501
|
|
667
|
+
|
|
668
|
+
_param = self._datapoint_get_by_id_get_serialize(
|
|
669
|
+
id=id,
|
|
670
|
+
_request_auth=_request_auth,
|
|
671
|
+
_content_type=_content_type,
|
|
672
|
+
_headers=_headers,
|
|
673
|
+
_host_index=_host_index
|
|
674
|
+
)
|
|
675
|
+
|
|
676
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
677
|
+
'200': "DatapointGetByIdGet200Response",
|
|
678
|
+
}
|
|
679
|
+
response_data = self.api_client.call_api(
|
|
680
|
+
*_param,
|
|
681
|
+
_request_timeout=_request_timeout
|
|
682
|
+
)
|
|
683
|
+
response_data.read()
|
|
684
|
+
return self.api_client.response_deserialize(
|
|
685
|
+
response_data=response_data,
|
|
686
|
+
response_types_map=_response_types_map,
|
|
687
|
+
)
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
@validate_call
|
|
691
|
+
def datapoint_get_by_id_get_without_preload_content(
|
|
692
|
+
self,
|
|
693
|
+
id: Annotated[Optional[StrictStr], Field(description="The id of the datapoint to get.")] = None,
|
|
694
|
+
_request_timeout: Union[
|
|
695
|
+
None,
|
|
696
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
697
|
+
Tuple[
|
|
698
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
699
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
700
|
+
]
|
|
701
|
+
] = None,
|
|
702
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
703
|
+
_content_type: Optional[StrictStr] = None,
|
|
704
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
705
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
706
|
+
) -> RESTResponseType:
|
|
707
|
+
"""Get a datapoint by its id.
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
:param id: The id of the datapoint to get.
|
|
711
|
+
:type id: str
|
|
712
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
713
|
+
number provided, it will be total request
|
|
714
|
+
timeout. It can also be a pair (tuple) of
|
|
715
|
+
(connection, read) timeouts.
|
|
716
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
717
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
718
|
+
request; this effectively ignores the
|
|
719
|
+
authentication in the spec for a single request.
|
|
720
|
+
:type _request_auth: dict, optional
|
|
721
|
+
:param _content_type: force content-type for the request.
|
|
722
|
+
:type _content_type: str, Optional
|
|
723
|
+
:param _headers: set to override the headers for a single
|
|
724
|
+
request; this effectively ignores the headers
|
|
725
|
+
in the spec for a single request.
|
|
726
|
+
:type _headers: dict, optional
|
|
727
|
+
:param _host_index: set to override the host_index for a single
|
|
728
|
+
request; this effectively ignores the host_index
|
|
729
|
+
in the spec for a single request.
|
|
730
|
+
:type _host_index: int, optional
|
|
731
|
+
:return: Returns the result object.
|
|
732
|
+
""" # noqa: E501
|
|
733
|
+
|
|
734
|
+
_param = self._datapoint_get_by_id_get_serialize(
|
|
735
|
+
id=id,
|
|
736
|
+
_request_auth=_request_auth,
|
|
737
|
+
_content_type=_content_type,
|
|
738
|
+
_headers=_headers,
|
|
739
|
+
_host_index=_host_index
|
|
740
|
+
)
|
|
741
|
+
|
|
742
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
743
|
+
'200': "DatapointGetByIdGet200Response",
|
|
744
|
+
}
|
|
745
|
+
response_data = self.api_client.call_api(
|
|
746
|
+
*_param,
|
|
747
|
+
_request_timeout=_request_timeout
|
|
748
|
+
)
|
|
749
|
+
return response_data.response
|
|
750
|
+
|
|
751
|
+
|
|
752
|
+
def _datapoint_get_by_id_get_serialize(
|
|
753
|
+
self,
|
|
754
|
+
id,
|
|
755
|
+
_request_auth,
|
|
756
|
+
_content_type,
|
|
757
|
+
_headers,
|
|
758
|
+
_host_index,
|
|
759
|
+
) -> RequestSerialized:
|
|
760
|
+
|
|
761
|
+
_host = None
|
|
762
|
+
|
|
763
|
+
_collection_formats: Dict[str, str] = {
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
_path_params: Dict[str, str] = {}
|
|
767
|
+
_query_params: List[Tuple[str, str]] = []
|
|
768
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
769
|
+
_form_params: List[Tuple[str, str]] = []
|
|
770
|
+
_files: Dict[
|
|
771
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
772
|
+
] = {}
|
|
773
|
+
_body_params: Optional[bytes] = None
|
|
774
|
+
|
|
775
|
+
# process the path parameters
|
|
776
|
+
# process the query parameters
|
|
777
|
+
if id is not None:
|
|
778
|
+
|
|
779
|
+
_query_params.append(('id', id))
|
|
780
|
+
|
|
781
|
+
# process the header parameters
|
|
782
|
+
# process the form parameters
|
|
783
|
+
# process the body parameter
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
# set the HTTP header `Accept`
|
|
787
|
+
if 'Accept' not in _header_params:
|
|
788
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
789
|
+
[
|
|
790
|
+
'text/plain',
|
|
791
|
+
'application/json',
|
|
792
|
+
'text/json'
|
|
793
|
+
]
|
|
794
|
+
)
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
# authentication setting
|
|
798
|
+
_auth_settings: List[str] = [
|
|
799
|
+
'bearer'
|
|
800
|
+
]
|
|
801
|
+
|
|
802
|
+
return self.api_client.param_serialize(
|
|
803
|
+
method='GET',
|
|
804
|
+
resource_path='/Datapoint/GetById',
|
|
805
|
+
path_params=_path_params,
|
|
806
|
+
query_params=_query_params,
|
|
807
|
+
header_params=_header_params,
|
|
808
|
+
body=_body_params,
|
|
809
|
+
post_params=_form_params,
|
|
810
|
+
files=_files,
|
|
811
|
+
auth_settings=_auth_settings,
|
|
812
|
+
collection_formats=_collection_formats,
|
|
813
|
+
_host=_host,
|
|
814
|
+
_request_auth=_request_auth
|
|
815
|
+
)
|
|
816
|
+
|
|
817
|
+
|