edms-client-api 1.6.0__tar.gz → 1.7.0__tar.gz
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.
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/PKG-INFO +3 -5
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/README.md +6 -1
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/__init__.py +7 -1
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api/time_series_api.py +598 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/__init__.py +3 -0
- edms_client_api-1.7.0/edms_client_api/models/push_time_series_data.py +103 -0
- edms_client_api-1.7.0/edms_client_api/models/push_time_series_record.py +104 -0
- edms_client_api-1.7.0/edms_client_api/models/push_time_series_result.py +90 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api.egg-info/PKG-INFO +3 -5
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api.egg-info/SOURCES.txt +6 -1
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/pyproject.toml +1 -1
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/setup.py +1 -1
- edms_client_api-1.7.0/test/test_push_time_series_data.py +60 -0
- edms_client_api-1.7.0/test/test_push_time_series_record.py +56 -0
- edms_client_api-1.7.0/test/test_push_time_series_result.py +52 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_time_series_api.py +14 -0
- edms_client_api-1.6.0/edms_client_api/py.typed +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api/__init__.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api/broker_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api/metadata_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api/ohlc_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api_client.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/api_response.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/configuration.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/exceptions.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/aggregation_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/commodity_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/data_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/data_value_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/dataset_configuration_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/dataset_metadata_column_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/dataset_metadata_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/gps_point_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/granularity_unit.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/http_validation_problem_details.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/offset_base.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/period.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/place_category.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/place_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/place_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/problem_details.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/scope.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/time_zone.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/unit_denominator.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/unit_numerator.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/models/validation_problem_details.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api/rest.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api.egg-info/dependency_links.txt +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api.egg-info/requires.txt +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/edms_client_api.egg-info/top_level.txt +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/setup.cfg +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_aggregation_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_broker_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_commodity_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_data_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_data_value_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_dataset_configuration_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_dataset_metadata_column_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_dataset_metadata_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_gps_point_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_granularity_unit.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_http_validation_problem_details.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_metadata_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_offset_base.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_ohlc_api.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_period.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_place_category.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_place_dto.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_place_type.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_problem_details.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_scope.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_time_zone.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_unit_denominator.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_unit_numerator.py +0 -0
- {edms_client_api-1.6.0 → edms_client_api-1.7.0}/test/test_validation_problem_details.py +0 -0
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: edms_client_api
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.7.0
|
|
4
4
|
Summary: EDMS Client Api
|
|
5
5
|
Home-page: UNKNOWN
|
|
6
6
|
Author: OpenAPI Generator community
|
|
7
7
|
Author-email: team@openapitools.org
|
|
8
8
|
License: UNKNOWN
|
|
9
|
+
Description: No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
10
|
+
|
|
9
11
|
Keywords: OpenAPI,OpenAPI-Generator,EDMS Client Api
|
|
10
12
|
Platform: UNKNOWN
|
|
11
13
|
Description-Content-Type: text/markdown
|
|
12
|
-
|
|
13
|
-
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
14
|
-
|
|
15
|
-
|
|
@@ -4,7 +4,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
4
4
|
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
5
|
|
|
6
6
|
- API version: development
|
|
7
|
-
- Package version: 1.
|
|
7
|
+
- Package version: 1.7.0
|
|
8
8
|
- Generator version: 7.16.0
|
|
9
9
|
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
|
|
10
10
|
|
|
@@ -98,6 +98,8 @@ Class | Method | HTTP request | Description
|
|
|
98
98
|
*TimeSeriesApi* | [**time_series_get_time_serie_data**](docs/TimeSeriesApi.md#time_series_get_time_serie_data) | **GET** /TimeSeries/Dataset/{DatasetId} | Get a list of timeseries values
|
|
99
99
|
*TimeSeriesApi* | [**time_series_get_time_serie_data_by_code**](docs/TimeSeriesApi.md#time_series_get_time_serie_data_by_code) | **GET** /TimeSeries/Dataset/ByCode/{DatasetCode} | Get a list of timeseries values
|
|
100
100
|
*TimeSeriesApi* | [**time_series_get_time_serie_rolling_data_by_code**](docs/TimeSeriesApi.md#time_series_get_time_serie_rolling_data_by_code) | **GET** /TimeSeries/Dataset/RollingByCode/{DatasetCode} | Get a rolling list of timeseries values
|
|
101
|
+
*TimeSeriesApi* | [**time_series_push_time_serie_data**](docs/TimeSeriesApi.md#time_series_push_time_serie_data) | **POST** /TimeSeries/Datafeed/{DatafeedId} | Push a list of timeseries values into a datafeed
|
|
102
|
+
*TimeSeriesApi* | [**time_series_push_time_serie_data_by_code**](docs/TimeSeriesApi.md#time_series_push_time_serie_data_by_code) | **POST** /TimeSeries/Datafeed/ByCode/{DatafeedCode} | Push a list of timeseries values into a datafeed
|
|
101
103
|
|
|
102
104
|
|
|
103
105
|
## Documentation For Models
|
|
@@ -118,6 +120,9 @@ Class | Method | HTTP request | Description
|
|
|
118
120
|
- [PlaceDto](docs/PlaceDto.md)
|
|
119
121
|
- [PlaceType](docs/PlaceType.md)
|
|
120
122
|
- [ProblemDetails](docs/ProblemDetails.md)
|
|
123
|
+
- [PushTimeSeriesData](docs/PushTimeSeriesData.md)
|
|
124
|
+
- [PushTimeSeriesRecord](docs/PushTimeSeriesRecord.md)
|
|
125
|
+
- [PushTimeSeriesResult](docs/PushTimeSeriesResult.md)
|
|
121
126
|
- [Scope](docs/Scope.md)
|
|
122
127
|
- [TimeZone](docs/TimeZone.md)
|
|
123
128
|
- [UnitDenominator](docs/UnitDenominator.md)
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
""" # noqa: E501
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
__version__ = "1.
|
|
17
|
+
__version__ = "1.7.0"
|
|
18
18
|
|
|
19
19
|
# Define package exports
|
|
20
20
|
__all__ = [
|
|
@@ -47,6 +47,9 @@ __all__ = [
|
|
|
47
47
|
"PlaceDto",
|
|
48
48
|
"PlaceType",
|
|
49
49
|
"ProblemDetails",
|
|
50
|
+
"PushTimeSeriesData",
|
|
51
|
+
"PushTimeSeriesRecord",
|
|
52
|
+
"PushTimeSeriesResult",
|
|
50
53
|
"Scope",
|
|
51
54
|
"TimeZone",
|
|
52
55
|
"UnitDenominator",
|
|
@@ -88,6 +91,9 @@ from edms_client_api.models.place_category import PlaceCategory as PlaceCategory
|
|
|
88
91
|
from edms_client_api.models.place_dto import PlaceDto as PlaceDto
|
|
89
92
|
from edms_client_api.models.place_type import PlaceType as PlaceType
|
|
90
93
|
from edms_client_api.models.problem_details import ProblemDetails as ProblemDetails
|
|
94
|
+
from edms_client_api.models.push_time_series_data import PushTimeSeriesData as PushTimeSeriesData
|
|
95
|
+
from edms_client_api.models.push_time_series_record import PushTimeSeriesRecord as PushTimeSeriesRecord
|
|
96
|
+
from edms_client_api.models.push_time_series_result import PushTimeSeriesResult as PushTimeSeriesResult
|
|
91
97
|
from edms_client_api.models.scope import Scope as Scope
|
|
92
98
|
from edms_client_api.models.time_zone import TimeZone as TimeZone
|
|
93
99
|
from edms_client_api.models.unit_denominator import UnitDenominator as UnitDenominator
|
|
@@ -23,6 +23,8 @@ from typing_extensions import Annotated
|
|
|
23
23
|
from edms_client_api.models.aggregation_type import AggregationType
|
|
24
24
|
from edms_client_api.models.granularity_unit import GranularityUnit
|
|
25
25
|
from edms_client_api.models.offset_base import OffsetBase
|
|
26
|
+
from edms_client_api.models.push_time_series_data import PushTimeSeriesData
|
|
27
|
+
from edms_client_api.models.push_time_series_result import PushTimeSeriesResult
|
|
26
28
|
from edms_client_api.models.time_zone import TimeZone
|
|
27
29
|
|
|
28
30
|
from edms_client_api.api_client import ApiClient, RequestSerialized
|
|
@@ -1425,3 +1427,599 @@ class TimeSeriesApi:
|
|
|
1425
1427
|
)
|
|
1426
1428
|
|
|
1427
1429
|
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
@validate_call
|
|
1433
|
+
def time_series_push_time_serie_data(
|
|
1434
|
+
self,
|
|
1435
|
+
datafeed_id: Annotated[StrictInt, Field(description="The id of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1436
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1437
|
+
_request_timeout: Union[
|
|
1438
|
+
None,
|
|
1439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1440
|
+
Tuple[
|
|
1441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1443
|
+
]
|
|
1444
|
+
] = None,
|
|
1445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1446
|
+
_content_type: Optional[StrictStr] = None,
|
|
1447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1449
|
+
) -> PushTimeSeriesResult:
|
|
1450
|
+
"""Push a list of timeseries values into a datafeed
|
|
1451
|
+
|
|
1452
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1453
|
+
|
|
1454
|
+
:param datafeed_id: The id of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1455
|
+
:type datafeed_id: int
|
|
1456
|
+
:param push_time_series_data: (required)
|
|
1457
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1458
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1459
|
+
number provided, it will be total request
|
|
1460
|
+
timeout. It can also be a pair (tuple) of
|
|
1461
|
+
(connection, read) timeouts.
|
|
1462
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1463
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1464
|
+
request; this effectively ignores the
|
|
1465
|
+
authentication in the spec for a single request.
|
|
1466
|
+
:type _request_auth: dict, optional
|
|
1467
|
+
:param _content_type: force content-type for the request.
|
|
1468
|
+
:type _content_type: str, Optional
|
|
1469
|
+
:param _headers: set to override the headers for a single
|
|
1470
|
+
request; this effectively ignores the headers
|
|
1471
|
+
in the spec for a single request.
|
|
1472
|
+
:type _headers: dict, optional
|
|
1473
|
+
:param _host_index: set to override the host_index for a single
|
|
1474
|
+
request; this effectively ignores the host_index
|
|
1475
|
+
in the spec for a single request.
|
|
1476
|
+
:type _host_index: int, optional
|
|
1477
|
+
:return: Returns the result object.
|
|
1478
|
+
""" # noqa: E501
|
|
1479
|
+
|
|
1480
|
+
_param = self._time_series_push_time_serie_data_serialize(
|
|
1481
|
+
datafeed_id=datafeed_id,
|
|
1482
|
+
push_time_series_data=push_time_series_data,
|
|
1483
|
+
_request_auth=_request_auth,
|
|
1484
|
+
_content_type=_content_type,
|
|
1485
|
+
_headers=_headers,
|
|
1486
|
+
_host_index=_host_index
|
|
1487
|
+
)
|
|
1488
|
+
|
|
1489
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1490
|
+
'202': "PushTimeSeriesResult",
|
|
1491
|
+
'429': "ProblemDetails",
|
|
1492
|
+
'403': "ProblemDetails",
|
|
1493
|
+
'422': "ValidationProblemDetails",
|
|
1494
|
+
}
|
|
1495
|
+
response_data = self.api_client.call_api(
|
|
1496
|
+
*_param,
|
|
1497
|
+
_request_timeout=_request_timeout
|
|
1498
|
+
)
|
|
1499
|
+
response_data.read()
|
|
1500
|
+
return self.api_client.response_deserialize(
|
|
1501
|
+
response_data=response_data,
|
|
1502
|
+
response_types_map=_response_types_map,
|
|
1503
|
+
).data
|
|
1504
|
+
|
|
1505
|
+
|
|
1506
|
+
@validate_call
|
|
1507
|
+
def time_series_push_time_serie_data_with_http_info(
|
|
1508
|
+
self,
|
|
1509
|
+
datafeed_id: Annotated[StrictInt, Field(description="The id of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1510
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1511
|
+
_request_timeout: Union[
|
|
1512
|
+
None,
|
|
1513
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1514
|
+
Tuple[
|
|
1515
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1516
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1517
|
+
]
|
|
1518
|
+
] = None,
|
|
1519
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1520
|
+
_content_type: Optional[StrictStr] = None,
|
|
1521
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1522
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1523
|
+
) -> ApiResponse[PushTimeSeriesResult]:
|
|
1524
|
+
"""Push a list of timeseries values into a datafeed
|
|
1525
|
+
|
|
1526
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1527
|
+
|
|
1528
|
+
:param datafeed_id: The id of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1529
|
+
:type datafeed_id: int
|
|
1530
|
+
:param push_time_series_data: (required)
|
|
1531
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1532
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1533
|
+
number provided, it will be total request
|
|
1534
|
+
timeout. It can also be a pair (tuple) of
|
|
1535
|
+
(connection, read) timeouts.
|
|
1536
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1537
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1538
|
+
request; this effectively ignores the
|
|
1539
|
+
authentication in the spec for a single request.
|
|
1540
|
+
:type _request_auth: dict, optional
|
|
1541
|
+
:param _content_type: force content-type for the request.
|
|
1542
|
+
:type _content_type: str, Optional
|
|
1543
|
+
:param _headers: set to override the headers for a single
|
|
1544
|
+
request; this effectively ignores the headers
|
|
1545
|
+
in the spec for a single request.
|
|
1546
|
+
:type _headers: dict, optional
|
|
1547
|
+
:param _host_index: set to override the host_index for a single
|
|
1548
|
+
request; this effectively ignores the host_index
|
|
1549
|
+
in the spec for a single request.
|
|
1550
|
+
:type _host_index: int, optional
|
|
1551
|
+
:return: Returns the result object.
|
|
1552
|
+
""" # noqa: E501
|
|
1553
|
+
|
|
1554
|
+
_param = self._time_series_push_time_serie_data_serialize(
|
|
1555
|
+
datafeed_id=datafeed_id,
|
|
1556
|
+
push_time_series_data=push_time_series_data,
|
|
1557
|
+
_request_auth=_request_auth,
|
|
1558
|
+
_content_type=_content_type,
|
|
1559
|
+
_headers=_headers,
|
|
1560
|
+
_host_index=_host_index
|
|
1561
|
+
)
|
|
1562
|
+
|
|
1563
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1564
|
+
'202': "PushTimeSeriesResult",
|
|
1565
|
+
'429': "ProblemDetails",
|
|
1566
|
+
'403': "ProblemDetails",
|
|
1567
|
+
'422': "ValidationProblemDetails",
|
|
1568
|
+
}
|
|
1569
|
+
response_data = self.api_client.call_api(
|
|
1570
|
+
*_param,
|
|
1571
|
+
_request_timeout=_request_timeout
|
|
1572
|
+
)
|
|
1573
|
+
response_data.read()
|
|
1574
|
+
return self.api_client.response_deserialize(
|
|
1575
|
+
response_data=response_data,
|
|
1576
|
+
response_types_map=_response_types_map,
|
|
1577
|
+
)
|
|
1578
|
+
|
|
1579
|
+
|
|
1580
|
+
@validate_call
|
|
1581
|
+
def time_series_push_time_serie_data_without_preload_content(
|
|
1582
|
+
self,
|
|
1583
|
+
datafeed_id: Annotated[StrictInt, Field(description="The id of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1584
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1585
|
+
_request_timeout: Union[
|
|
1586
|
+
None,
|
|
1587
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1588
|
+
Tuple[
|
|
1589
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1590
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1591
|
+
]
|
|
1592
|
+
] = None,
|
|
1593
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1594
|
+
_content_type: Optional[StrictStr] = None,
|
|
1595
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1596
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1597
|
+
) -> RESTResponseType:
|
|
1598
|
+
"""Push a list of timeseries values into a datafeed
|
|
1599
|
+
|
|
1600
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1601
|
+
|
|
1602
|
+
:param datafeed_id: The id of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1603
|
+
:type datafeed_id: int
|
|
1604
|
+
:param push_time_series_data: (required)
|
|
1605
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1606
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1607
|
+
number provided, it will be total request
|
|
1608
|
+
timeout. It can also be a pair (tuple) of
|
|
1609
|
+
(connection, read) timeouts.
|
|
1610
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1611
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1612
|
+
request; this effectively ignores the
|
|
1613
|
+
authentication in the spec for a single request.
|
|
1614
|
+
:type _request_auth: dict, optional
|
|
1615
|
+
:param _content_type: force content-type for the request.
|
|
1616
|
+
:type _content_type: str, Optional
|
|
1617
|
+
:param _headers: set to override the headers for a single
|
|
1618
|
+
request; this effectively ignores the headers
|
|
1619
|
+
in the spec for a single request.
|
|
1620
|
+
:type _headers: dict, optional
|
|
1621
|
+
:param _host_index: set to override the host_index for a single
|
|
1622
|
+
request; this effectively ignores the host_index
|
|
1623
|
+
in the spec for a single request.
|
|
1624
|
+
:type _host_index: int, optional
|
|
1625
|
+
:return: Returns the result object.
|
|
1626
|
+
""" # noqa: E501
|
|
1627
|
+
|
|
1628
|
+
_param = self._time_series_push_time_serie_data_serialize(
|
|
1629
|
+
datafeed_id=datafeed_id,
|
|
1630
|
+
push_time_series_data=push_time_series_data,
|
|
1631
|
+
_request_auth=_request_auth,
|
|
1632
|
+
_content_type=_content_type,
|
|
1633
|
+
_headers=_headers,
|
|
1634
|
+
_host_index=_host_index
|
|
1635
|
+
)
|
|
1636
|
+
|
|
1637
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1638
|
+
'202': "PushTimeSeriesResult",
|
|
1639
|
+
'429': "ProblemDetails",
|
|
1640
|
+
'403': "ProblemDetails",
|
|
1641
|
+
'422': "ValidationProblemDetails",
|
|
1642
|
+
}
|
|
1643
|
+
response_data = self.api_client.call_api(
|
|
1644
|
+
*_param,
|
|
1645
|
+
_request_timeout=_request_timeout
|
|
1646
|
+
)
|
|
1647
|
+
return response_data.response
|
|
1648
|
+
|
|
1649
|
+
|
|
1650
|
+
def _time_series_push_time_serie_data_serialize(
|
|
1651
|
+
self,
|
|
1652
|
+
datafeed_id,
|
|
1653
|
+
push_time_series_data,
|
|
1654
|
+
_request_auth,
|
|
1655
|
+
_content_type,
|
|
1656
|
+
_headers,
|
|
1657
|
+
_host_index,
|
|
1658
|
+
) -> RequestSerialized:
|
|
1659
|
+
|
|
1660
|
+
_host = None
|
|
1661
|
+
|
|
1662
|
+
_collection_formats: Dict[str, str] = {
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
_path_params: Dict[str, str] = {}
|
|
1666
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1667
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1668
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1669
|
+
_files: Dict[
|
|
1670
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1671
|
+
] = {}
|
|
1672
|
+
_body_params: Optional[bytes] = None
|
|
1673
|
+
|
|
1674
|
+
# process the path parameters
|
|
1675
|
+
if datafeed_id is not None:
|
|
1676
|
+
_path_params['DatafeedId'] = datafeed_id
|
|
1677
|
+
# process the query parameters
|
|
1678
|
+
# process the header parameters
|
|
1679
|
+
# process the form parameters
|
|
1680
|
+
# process the body parameter
|
|
1681
|
+
if push_time_series_data is not None:
|
|
1682
|
+
_body_params = push_time_series_data
|
|
1683
|
+
|
|
1684
|
+
|
|
1685
|
+
# set the HTTP header `Accept`
|
|
1686
|
+
if 'Accept' not in _header_params:
|
|
1687
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1688
|
+
[
|
|
1689
|
+
'application/json'
|
|
1690
|
+
]
|
|
1691
|
+
)
|
|
1692
|
+
|
|
1693
|
+
# set the HTTP header `Content-Type`
|
|
1694
|
+
if _content_type:
|
|
1695
|
+
_header_params['Content-Type'] = _content_type
|
|
1696
|
+
else:
|
|
1697
|
+
_default_content_type = (
|
|
1698
|
+
self.api_client.select_header_content_type(
|
|
1699
|
+
[
|
|
1700
|
+
'application/json'
|
|
1701
|
+
]
|
|
1702
|
+
)
|
|
1703
|
+
)
|
|
1704
|
+
if _default_content_type is not None:
|
|
1705
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1706
|
+
|
|
1707
|
+
# authentication setting
|
|
1708
|
+
_auth_settings: List[str] = [
|
|
1709
|
+
'oauth2'
|
|
1710
|
+
]
|
|
1711
|
+
|
|
1712
|
+
return self.api_client.param_serialize(
|
|
1713
|
+
method='POST',
|
|
1714
|
+
resource_path='/TimeSeries/Datafeed/{DatafeedId}',
|
|
1715
|
+
path_params=_path_params,
|
|
1716
|
+
query_params=_query_params,
|
|
1717
|
+
header_params=_header_params,
|
|
1718
|
+
body=_body_params,
|
|
1719
|
+
post_params=_form_params,
|
|
1720
|
+
files=_files,
|
|
1721
|
+
auth_settings=_auth_settings,
|
|
1722
|
+
collection_formats=_collection_formats,
|
|
1723
|
+
_host=_host,
|
|
1724
|
+
_request_auth=_request_auth
|
|
1725
|
+
)
|
|
1726
|
+
|
|
1727
|
+
|
|
1728
|
+
|
|
1729
|
+
|
|
1730
|
+
@validate_call
|
|
1731
|
+
def time_series_push_time_serie_data_by_code(
|
|
1732
|
+
self,
|
|
1733
|
+
datafeed_code: Annotated[StrictStr, Field(description="The code of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1734
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1735
|
+
_request_timeout: Union[
|
|
1736
|
+
None,
|
|
1737
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1738
|
+
Tuple[
|
|
1739
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1740
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1741
|
+
]
|
|
1742
|
+
] = None,
|
|
1743
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1744
|
+
_content_type: Optional[StrictStr] = None,
|
|
1745
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1746
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1747
|
+
) -> PushTimeSeriesResult:
|
|
1748
|
+
"""Push a list of timeseries values into a datafeed
|
|
1749
|
+
|
|
1750
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1751
|
+
|
|
1752
|
+
:param datafeed_code: The code of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1753
|
+
:type datafeed_code: str
|
|
1754
|
+
:param push_time_series_data: (required)
|
|
1755
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1756
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1757
|
+
number provided, it will be total request
|
|
1758
|
+
timeout. It can also be a pair (tuple) of
|
|
1759
|
+
(connection, read) timeouts.
|
|
1760
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1761
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1762
|
+
request; this effectively ignores the
|
|
1763
|
+
authentication in the spec for a single request.
|
|
1764
|
+
:type _request_auth: dict, optional
|
|
1765
|
+
:param _content_type: force content-type for the request.
|
|
1766
|
+
:type _content_type: str, Optional
|
|
1767
|
+
:param _headers: set to override the headers for a single
|
|
1768
|
+
request; this effectively ignores the headers
|
|
1769
|
+
in the spec for a single request.
|
|
1770
|
+
:type _headers: dict, optional
|
|
1771
|
+
:param _host_index: set to override the host_index for a single
|
|
1772
|
+
request; this effectively ignores the host_index
|
|
1773
|
+
in the spec for a single request.
|
|
1774
|
+
:type _host_index: int, optional
|
|
1775
|
+
:return: Returns the result object.
|
|
1776
|
+
""" # noqa: E501
|
|
1777
|
+
|
|
1778
|
+
_param = self._time_series_push_time_serie_data_by_code_serialize(
|
|
1779
|
+
datafeed_code=datafeed_code,
|
|
1780
|
+
push_time_series_data=push_time_series_data,
|
|
1781
|
+
_request_auth=_request_auth,
|
|
1782
|
+
_content_type=_content_type,
|
|
1783
|
+
_headers=_headers,
|
|
1784
|
+
_host_index=_host_index
|
|
1785
|
+
)
|
|
1786
|
+
|
|
1787
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1788
|
+
'202': "PushTimeSeriesResult",
|
|
1789
|
+
'429': "ProblemDetails",
|
|
1790
|
+
'403': "ProblemDetails",
|
|
1791
|
+
'422': "ValidationProblemDetails",
|
|
1792
|
+
}
|
|
1793
|
+
response_data = self.api_client.call_api(
|
|
1794
|
+
*_param,
|
|
1795
|
+
_request_timeout=_request_timeout
|
|
1796
|
+
)
|
|
1797
|
+
response_data.read()
|
|
1798
|
+
return self.api_client.response_deserialize(
|
|
1799
|
+
response_data=response_data,
|
|
1800
|
+
response_types_map=_response_types_map,
|
|
1801
|
+
).data
|
|
1802
|
+
|
|
1803
|
+
|
|
1804
|
+
@validate_call
|
|
1805
|
+
def time_series_push_time_serie_data_by_code_with_http_info(
|
|
1806
|
+
self,
|
|
1807
|
+
datafeed_code: Annotated[StrictStr, Field(description="The code of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1808
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1809
|
+
_request_timeout: Union[
|
|
1810
|
+
None,
|
|
1811
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1812
|
+
Tuple[
|
|
1813
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1814
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1815
|
+
]
|
|
1816
|
+
] = None,
|
|
1817
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1818
|
+
_content_type: Optional[StrictStr] = None,
|
|
1819
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1820
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1821
|
+
) -> ApiResponse[PushTimeSeriesResult]:
|
|
1822
|
+
"""Push a list of timeseries values into a datafeed
|
|
1823
|
+
|
|
1824
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1825
|
+
|
|
1826
|
+
:param datafeed_code: The code of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1827
|
+
:type datafeed_code: str
|
|
1828
|
+
:param push_time_series_data: (required)
|
|
1829
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1830
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1831
|
+
number provided, it will be total request
|
|
1832
|
+
timeout. It can also be a pair (tuple) of
|
|
1833
|
+
(connection, read) timeouts.
|
|
1834
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1835
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1836
|
+
request; this effectively ignores the
|
|
1837
|
+
authentication in the spec for a single request.
|
|
1838
|
+
:type _request_auth: dict, optional
|
|
1839
|
+
:param _content_type: force content-type for the request.
|
|
1840
|
+
:type _content_type: str, Optional
|
|
1841
|
+
:param _headers: set to override the headers for a single
|
|
1842
|
+
request; this effectively ignores the headers
|
|
1843
|
+
in the spec for a single request.
|
|
1844
|
+
:type _headers: dict, optional
|
|
1845
|
+
:param _host_index: set to override the host_index for a single
|
|
1846
|
+
request; this effectively ignores the host_index
|
|
1847
|
+
in the spec for a single request.
|
|
1848
|
+
:type _host_index: int, optional
|
|
1849
|
+
:return: Returns the result object.
|
|
1850
|
+
""" # noqa: E501
|
|
1851
|
+
|
|
1852
|
+
_param = self._time_series_push_time_serie_data_by_code_serialize(
|
|
1853
|
+
datafeed_code=datafeed_code,
|
|
1854
|
+
push_time_series_data=push_time_series_data,
|
|
1855
|
+
_request_auth=_request_auth,
|
|
1856
|
+
_content_type=_content_type,
|
|
1857
|
+
_headers=_headers,
|
|
1858
|
+
_host_index=_host_index
|
|
1859
|
+
)
|
|
1860
|
+
|
|
1861
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1862
|
+
'202': "PushTimeSeriesResult",
|
|
1863
|
+
'429': "ProblemDetails",
|
|
1864
|
+
'403': "ProblemDetails",
|
|
1865
|
+
'422': "ValidationProblemDetails",
|
|
1866
|
+
}
|
|
1867
|
+
response_data = self.api_client.call_api(
|
|
1868
|
+
*_param,
|
|
1869
|
+
_request_timeout=_request_timeout
|
|
1870
|
+
)
|
|
1871
|
+
response_data.read()
|
|
1872
|
+
return self.api_client.response_deserialize(
|
|
1873
|
+
response_data=response_data,
|
|
1874
|
+
response_types_map=_response_types_map,
|
|
1875
|
+
)
|
|
1876
|
+
|
|
1877
|
+
|
|
1878
|
+
@validate_call
|
|
1879
|
+
def time_series_push_time_serie_data_by_code_without_preload_content(
|
|
1880
|
+
self,
|
|
1881
|
+
datafeed_code: Annotated[StrictStr, Field(description="The code of the datafeed (must be a Clientpush timeseries datafeed)")],
|
|
1882
|
+
push_time_series_data: PushTimeSeriesData,
|
|
1883
|
+
_request_timeout: Union[
|
|
1884
|
+
None,
|
|
1885
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1886
|
+
Tuple[
|
|
1887
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1888
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1889
|
+
]
|
|
1890
|
+
] = None,
|
|
1891
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1892
|
+
_content_type: Optional[StrictStr] = None,
|
|
1893
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1894
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1895
|
+
) -> RESTResponseType:
|
|
1896
|
+
"""Push a list of timeseries values into a datafeed
|
|
1897
|
+
|
|
1898
|
+
Data is stored per datafeed, so pushing is done on the datafeed and the values become available in every dataset that uses this datafeed. The datafeed must be a timeseries datafeed of the Clientpush ingestortype. The keys of the values of a record are the property names of the columns of the datafeed. The data is accepted for processing, it becomes available for reading a moment later.
|
|
1899
|
+
|
|
1900
|
+
:param datafeed_code: The code of the datafeed (must be a Clientpush timeseries datafeed) (required)
|
|
1901
|
+
:type datafeed_code: str
|
|
1902
|
+
:param push_time_series_data: (required)
|
|
1903
|
+
:type push_time_series_data: PushTimeSeriesData
|
|
1904
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1905
|
+
number provided, it will be total request
|
|
1906
|
+
timeout. It can also be a pair (tuple) of
|
|
1907
|
+
(connection, read) timeouts.
|
|
1908
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1909
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1910
|
+
request; this effectively ignores the
|
|
1911
|
+
authentication in the spec for a single request.
|
|
1912
|
+
:type _request_auth: dict, optional
|
|
1913
|
+
:param _content_type: force content-type for the request.
|
|
1914
|
+
:type _content_type: str, Optional
|
|
1915
|
+
:param _headers: set to override the headers for a single
|
|
1916
|
+
request; this effectively ignores the headers
|
|
1917
|
+
in the spec for a single request.
|
|
1918
|
+
:type _headers: dict, optional
|
|
1919
|
+
:param _host_index: set to override the host_index for a single
|
|
1920
|
+
request; this effectively ignores the host_index
|
|
1921
|
+
in the spec for a single request.
|
|
1922
|
+
:type _host_index: int, optional
|
|
1923
|
+
:return: Returns the result object.
|
|
1924
|
+
""" # noqa: E501
|
|
1925
|
+
|
|
1926
|
+
_param = self._time_series_push_time_serie_data_by_code_serialize(
|
|
1927
|
+
datafeed_code=datafeed_code,
|
|
1928
|
+
push_time_series_data=push_time_series_data,
|
|
1929
|
+
_request_auth=_request_auth,
|
|
1930
|
+
_content_type=_content_type,
|
|
1931
|
+
_headers=_headers,
|
|
1932
|
+
_host_index=_host_index
|
|
1933
|
+
)
|
|
1934
|
+
|
|
1935
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1936
|
+
'202': "PushTimeSeriesResult",
|
|
1937
|
+
'429': "ProblemDetails",
|
|
1938
|
+
'403': "ProblemDetails",
|
|
1939
|
+
'422': "ValidationProblemDetails",
|
|
1940
|
+
}
|
|
1941
|
+
response_data = self.api_client.call_api(
|
|
1942
|
+
*_param,
|
|
1943
|
+
_request_timeout=_request_timeout
|
|
1944
|
+
)
|
|
1945
|
+
return response_data.response
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
def _time_series_push_time_serie_data_by_code_serialize(
|
|
1949
|
+
self,
|
|
1950
|
+
datafeed_code,
|
|
1951
|
+
push_time_series_data,
|
|
1952
|
+
_request_auth,
|
|
1953
|
+
_content_type,
|
|
1954
|
+
_headers,
|
|
1955
|
+
_host_index,
|
|
1956
|
+
) -> RequestSerialized:
|
|
1957
|
+
|
|
1958
|
+
_host = None
|
|
1959
|
+
|
|
1960
|
+
_collection_formats: Dict[str, str] = {
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
_path_params: Dict[str, str] = {}
|
|
1964
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1965
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1966
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1967
|
+
_files: Dict[
|
|
1968
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1969
|
+
] = {}
|
|
1970
|
+
_body_params: Optional[bytes] = None
|
|
1971
|
+
|
|
1972
|
+
# process the path parameters
|
|
1973
|
+
if datafeed_code is not None:
|
|
1974
|
+
_path_params['DatafeedCode'] = datafeed_code
|
|
1975
|
+
# process the query parameters
|
|
1976
|
+
# process the header parameters
|
|
1977
|
+
# process the form parameters
|
|
1978
|
+
# process the body parameter
|
|
1979
|
+
if push_time_series_data is not None:
|
|
1980
|
+
_body_params = push_time_series_data
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
# set the HTTP header `Accept`
|
|
1984
|
+
if 'Accept' not in _header_params:
|
|
1985
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1986
|
+
[
|
|
1987
|
+
'application/json'
|
|
1988
|
+
]
|
|
1989
|
+
)
|
|
1990
|
+
|
|
1991
|
+
# set the HTTP header `Content-Type`
|
|
1992
|
+
if _content_type:
|
|
1993
|
+
_header_params['Content-Type'] = _content_type
|
|
1994
|
+
else:
|
|
1995
|
+
_default_content_type = (
|
|
1996
|
+
self.api_client.select_header_content_type(
|
|
1997
|
+
[
|
|
1998
|
+
'application/json'
|
|
1999
|
+
]
|
|
2000
|
+
)
|
|
2001
|
+
)
|
|
2002
|
+
if _default_content_type is not None:
|
|
2003
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2004
|
+
|
|
2005
|
+
# authentication setting
|
|
2006
|
+
_auth_settings: List[str] = [
|
|
2007
|
+
'oauth2'
|
|
2008
|
+
]
|
|
2009
|
+
|
|
2010
|
+
return self.api_client.param_serialize(
|
|
2011
|
+
method='POST',
|
|
2012
|
+
resource_path='/TimeSeries/Datafeed/ByCode/{DatafeedCode}',
|
|
2013
|
+
path_params=_path_params,
|
|
2014
|
+
query_params=_query_params,
|
|
2015
|
+
header_params=_header_params,
|
|
2016
|
+
body=_body_params,
|
|
2017
|
+
post_params=_form_params,
|
|
2018
|
+
files=_files,
|
|
2019
|
+
auth_settings=_auth_settings,
|
|
2020
|
+
collection_formats=_collection_formats,
|
|
2021
|
+
_host=_host,
|
|
2022
|
+
_request_auth=_request_auth
|
|
2023
|
+
)
|
|
2024
|
+
|
|
2025
|
+
|