eis-migration 0.2.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.
Files changed (86) hide show
  1. eis_migration-0.2.0/PKG-INFO +22 -0
  2. eis_migration-0.2.0/README.md +208 -0
  3. eis_migration-0.2.0/eis/__init__.py +0 -0
  4. eis_migration-0.2.0/eis/migration/__init__.py +28 -0
  5. eis_migration-0.2.0/eis/migration/api/__init__.py +3 -0
  6. eis_migration-0.2.0/eis/migration/api/default_api.py +160 -0
  7. eis_migration-0.2.0/eis/migration/api/migration_api.py +2489 -0
  8. eis_migration-0.2.0/eis/migration/api_client.py +998 -0
  9. eis_migration-0.2.0/eis/migration/apis/__init__.py +18 -0
  10. eis_migration-0.2.0/eis/migration/configuration.py +456 -0
  11. eis_migration-0.2.0/eis/migration/exceptions.py +159 -0
  12. eis_migration-0.2.0/eis/migration/model/__init__.py +5 -0
  13. eis_migration-0.2.0/eis/migration/model/cleanup_ingest_run_async_response_class.py +270 -0
  14. eis_migration-0.2.0/eis/migration/model/cleanup_ingest_run_sync_response_class.py +270 -0
  15. eis_migration-0.2.0/eis/migration/model/create_ingest_run_async_request_dto.py +286 -0
  16. eis_migration-0.2.0/eis/migration/model/create_ingest_run_async_response_class.py +270 -0
  17. eis_migration-0.2.0/eis/migration/model/create_ingest_run_sync_request_dto.py +286 -0
  18. eis_migration-0.2.0/eis/migration/model/create_ingest_run_sync_response_class.py +270 -0
  19. eis_migration-0.2.0/eis/migration/model/entity_json_schema_class.py +282 -0
  20. eis_migration-0.2.0/eis/migration/model/entity_mapping_class.py +372 -0
  21. eis_migration-0.2.0/eis/migration/model/flush_ingested_data_request_dto.py +270 -0
  22. eis_migration-0.2.0/eis/migration/model/flush_ingested_data_response_class.py +270 -0
  23. eis_migration-0.2.0/eis/migration/model/get_ingest_flush_response_class.py +270 -0
  24. eis_migration-0.2.0/eis/migration/model/get_ingest_run_response_class.py +270 -0
  25. eis_migration-0.2.0/eis/migration/model/get_json_schemas_response_class.py +276 -0
  26. eis_migration-0.2.0/eis/migration/model/ingest_batch_class.py +404 -0
  27. eis_migration-0.2.0/eis/migration/model/ingest_batch_entity_class.py +356 -0
  28. eis_migration-0.2.0/eis/migration/model/ingest_flush_class.py +332 -0
  29. eis_migration-0.2.0/eis/migration/model/ingest_flush_entity_class.py +326 -0
  30. eis_migration-0.2.0/eis/migration/model/ingest_run_class.py +420 -0
  31. eis_migration-0.2.0/eis/migration/model/ingest_run_record_class.py +346 -0
  32. eis_migration-0.2.0/eis/migration/model/inline_response200.py +276 -0
  33. eis_migration-0.2.0/eis/migration/model/inline_response503.py +276 -0
  34. eis_migration-0.2.0/eis/migration/model/list_entity_mappings_response_class.py +294 -0
  35. eis_migration-0.2.0/eis/migration/model/list_ingest_flushes_response_class.py +294 -0
  36. eis_migration-0.2.0/eis/migration/model/list_ingest_run_records_response_class.py +294 -0
  37. eis_migration-0.2.0/eis/migration/model/list_ingest_runs_response_class.py +294 -0
  38. eis_migration-0.2.0/eis/migration/model/stop_ingest_flush_request_dto.py +264 -0
  39. eis_migration-0.2.0/eis/migration/model/stop_ingest_flush_response_class.py +270 -0
  40. eis_migration-0.2.0/eis/migration/model/stop_ingest_run_cleanup_request_dto.py +264 -0
  41. eis_migration-0.2.0/eis/migration/model/stop_ingest_run_cleanup_response_class.py +270 -0
  42. eis_migration-0.2.0/eis/migration/model/stop_ingest_run_request_dto.py +264 -0
  43. eis_migration-0.2.0/eis/migration/model/stop_ingest_run_response_class.py +270 -0
  44. eis_migration-0.2.0/eis/migration/model_utils.py +2063 -0
  45. eis_migration-0.2.0/eis/migration/models/__init__.py +42 -0
  46. eis_migration-0.2.0/eis/migration/rest.py +475 -0
  47. eis_migration-0.2.0/eis_migration.egg-info/PKG-INFO +22 -0
  48. eis_migration-0.2.0/eis_migration.egg-info/SOURCES.txt +85 -0
  49. eis_migration-0.2.0/eis_migration.egg-info/dependency_links.txt +1 -0
  50. eis_migration-0.2.0/eis_migration.egg-info/requires.txt +2 -0
  51. eis_migration-0.2.0/eis_migration.egg-info/top_level.txt +1 -0
  52. eis_migration-0.2.0/setup.cfg +11 -0
  53. eis_migration-0.2.0/setup.py +43 -0
  54. eis_migration-0.2.0/test/test_cleanup_ingest_run_async_response_class.py +38 -0
  55. eis_migration-0.2.0/test/test_cleanup_ingest_run_sync_response_class.py +38 -0
  56. eis_migration-0.2.0/test/test_create_ingest_run_async_request_dto.py +36 -0
  57. eis_migration-0.2.0/test/test_create_ingest_run_async_response_class.py +38 -0
  58. eis_migration-0.2.0/test/test_create_ingest_run_sync_request_dto.py +36 -0
  59. eis_migration-0.2.0/test/test_create_ingest_run_sync_response_class.py +38 -0
  60. eis_migration-0.2.0/test/test_default_api.py +36 -0
  61. eis_migration-0.2.0/test/test_entity_json_schema_class.py +36 -0
  62. eis_migration-0.2.0/test/test_entity_mapping_class.py +36 -0
  63. eis_migration-0.2.0/test/test_flush_ingested_data_request_dto.py +36 -0
  64. eis_migration-0.2.0/test/test_flush_ingested_data_response_class.py +38 -0
  65. eis_migration-0.2.0/test/test_get_ingest_flush_response_class.py +38 -0
  66. eis_migration-0.2.0/test/test_get_ingest_run_response_class.py +38 -0
  67. eis_migration-0.2.0/test/test_get_json_schemas_response_class.py +38 -0
  68. eis_migration-0.2.0/test/test_ingest_batch_class.py +38 -0
  69. eis_migration-0.2.0/test/test_ingest_batch_entity_class.py +36 -0
  70. eis_migration-0.2.0/test/test_ingest_flush_class.py +38 -0
  71. eis_migration-0.2.0/test/test_ingest_flush_entity_class.py +36 -0
  72. eis_migration-0.2.0/test/test_ingest_run_class.py +38 -0
  73. eis_migration-0.2.0/test/test_ingest_run_record_class.py +36 -0
  74. eis_migration-0.2.0/test/test_inline_response200.py +36 -0
  75. eis_migration-0.2.0/test/test_inline_response503.py +36 -0
  76. eis_migration-0.2.0/test/test_list_entity_mappings_response_class.py +38 -0
  77. eis_migration-0.2.0/test/test_list_ingest_flushes_response_class.py +38 -0
  78. eis_migration-0.2.0/test/test_list_ingest_run_records_response_class.py +38 -0
  79. eis_migration-0.2.0/test/test_list_ingest_runs_response_class.py +38 -0
  80. eis_migration-0.2.0/test/test_migration_api.py +141 -0
  81. eis_migration-0.2.0/test/test_stop_ingest_flush_request_dto.py +36 -0
  82. eis_migration-0.2.0/test/test_stop_ingest_flush_response_class.py +38 -0
  83. eis_migration-0.2.0/test/test_stop_ingest_run_cleanup_request_dto.py +36 -0
  84. eis_migration-0.2.0/test/test_stop_ingest_run_cleanup_response_class.py +38 -0
  85. eis_migration-0.2.0/test/test_stop_ingest_run_request_dto.py +36 -0
  86. eis_migration-0.2.0/test/test_stop_ingest_run_response_class.py +38 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: eis_migration
3
+ Version: 0.2.0
4
+ Summary: EMIL MigrationService
5
+ Home-page:
6
+ Author: Contact us
7
+ Author-email: kontakt@emil.de
8
+ Keywords: OpenAPI,OpenAPI-Generator,EMIL MigrationService
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: urllib3>=1.25.3
12
+ Requires-Dist: python-dateutil
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: keywords
17
+ Dynamic: requires-dist
18
+ Dynamic: requires-python
19
+ Dynamic: summary
20
+
21
+ The EMIL MigrationService API description # noqa: E501
22
+
@@ -0,0 +1,208 @@
1
+ # eis_migration
2
+ The EMIL MigrationService API description
3
+
4
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
+
6
+ - API version: 1.0
7
+ - Package version: 0.2.0
8
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9
+ For more information, please visit [https://www.emil.de](https://www.emil.de)
10
+
11
+ ## Requirements.
12
+
13
+ Python >=3.6
14
+
15
+ ## Installation & Usage
16
+ ### pip install
17
+
18
+ If the python package is hosted on a repository, you can install directly using:
19
+
20
+ ```sh
21
+ pip install eis.migration
22
+ ```
23
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/emilDev/eis-migration-sdk.git`)
24
+
25
+ Then import the package:
26
+ ```python
27
+ import eis.migration
28
+ ```
29
+
30
+ ### Setuptools
31
+
32
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
33
+
34
+ ```sh
35
+ python setup.py install --user
36
+ ```
37
+ (or `sudo python setup.py install` to install the package for all users)
38
+
39
+ Then import the package:
40
+ ```python
41
+ import eis.migration
42
+ ```
43
+
44
+ ## Getting Started
45
+
46
+ The environment variables must be set in order to properly use this SDK.
47
+
48
+ ```shell
49
+ export EMIL_USERNAME=XXXXXXX
50
+ export EMIL_PASSWORD=XXXXXXX
51
+ ```
52
+
53
+ Please follow the [installation procedure](#installation--usage) and then run the following:
54
+
55
+ ```python
56
+ import time
57
+ import eis.migration
58
+ from pprint import pprint
59
+ from eis.migration.api import migration_api
60
+ from eis.migration.model.cleanup_ingest_run_async_response_class import CleanupIngestRunAsyncResponseClass
61
+ from eis.migration.model.cleanup_ingest_run_sync_response_class import CleanupIngestRunSyncResponseClass
62
+ from eis.migration.model.create_ingest_run_async_request_dto import CreateIngestRunAsyncRequestDto
63
+ from eis.migration.model.create_ingest_run_async_response_class import CreateIngestRunAsyncResponseClass
64
+ from eis.migration.model.create_ingest_run_sync_request_dto import CreateIngestRunSyncRequestDto
65
+ from eis.migration.model.create_ingest_run_sync_response_class import CreateIngestRunSyncResponseClass
66
+ from eis.migration.model.flush_ingested_data_request_dto import FlushIngestedDataRequestDto
67
+ from eis.migration.model.flush_ingested_data_response_class import FlushIngestedDataResponseClass
68
+ from eis.migration.model.get_ingest_flush_response_class import GetIngestFlushResponseClass
69
+ from eis.migration.model.get_ingest_run_response_class import GetIngestRunResponseClass
70
+ from eis.migration.model.get_json_schemas_response_class import GetJsonSchemasResponseClass
71
+ from eis.migration.model.list_entity_mappings_response_class import ListEntityMappingsResponseClass
72
+ from eis.migration.model.list_ingest_flushes_response_class import ListIngestFlushesResponseClass
73
+ from eis.migration.model.list_ingest_run_records_response_class import ListIngestRunRecordsResponseClass
74
+ from eis.migration.model.list_ingest_runs_response_class import ListIngestRunsResponseClass
75
+ from eis.migration.model.stop_ingest_flush_request_dto import StopIngestFlushRequestDto
76
+ from eis.migration.model.stop_ingest_flush_response_class import StopIngestFlushResponseClass
77
+ from eis.migration.model.stop_ingest_run_cleanup_request_dto import StopIngestRunCleanupRequestDto
78
+ from eis.migration.model.stop_ingest_run_request_dto import StopIngestRunRequestDto
79
+ from eis.migration.model.stop_ingest_run_response_class import StopIngestRunResponseClass
80
+ # Defining the host is optional and defaults to https://apiv2.emil.de
81
+ # See configuration.py for a list of all supported configuration parameters.
82
+ configuration = eis.migration.Configuration(
83
+ host = "https://apiv2.emil.de"
84
+ )
85
+
86
+ # The client must configure the authentication and authorization parameters
87
+ # in accordance with the API server security policy.
88
+ # Examples for each auth method are provided below, use the example that
89
+ # satisfies your auth use case.
90
+
91
+ # Bearer is automatically handled with exported environment variables. However, you
92
+ # can manuallay configure Bearer authorization (JWT): bearer
93
+ configuration = eis.migration.Configuration(
94
+ access_token = 'YOUR_BEARER_TOKEN'
95
+ )
96
+
97
+ # After manual token becomes invalid, the SDK will default to re-login automatically
98
+ # with environment variable credentials.
99
+
100
+
101
+ # Enter a context with an instance of the API client
102
+ with eis.migration.ApiClient(configuration) as api_client:
103
+ # Create an instance of the API class
104
+ api_instance = migration_api.MigrationApi(api_client)
105
+ code = "code_example" # str |
106
+ body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} |
107
+ authorization = "Authorization_example" # str | Bearer Token: provided by the login endpoint under the name accessToken. (optional)
108
+
109
+ try:
110
+ # Starts the ingest run cleanup asynchronously
111
+ api_response = api_instance.cleanup_ingest_run_async(code, body, authorization=authorization)
112
+ pprint(api_response)
113
+ except eis.migration.ApiException as e:
114
+ print("Exception when calling MigrationApi->cleanup_ingest_run_async: %s\n" % e)
115
+ ```
116
+
117
+ ## Documentation for API Endpoints
118
+
119
+ All URIs are relative to *https://apiv2.emil.de*
120
+
121
+ Class | Method | HTTP request | Description
122
+ ------------ | ------------- | ------------- | -------------
123
+ *MigrationApi* | [**cleanup_ingest_run_async**](docs/MigrationApi.md#cleanup_ingest_run_async) | **POST** /migrationservice/v1/ingest-runs/{code}/cleanup/async | Starts the ingest run cleanup asynchronously
124
+ *MigrationApi* | [**cleanup_ingest_run_sync**](docs/MigrationApi.md#cleanup_ingest_run_sync) | **POST** /migrationservice/v1/ingest-runs/{code}/cleanup/sync | Cleans up the ingest run synchronously
125
+ *MigrationApi* | [**create_ingest_run_async**](docs/MigrationApi.md#create_ingest_run_async) | **POST** /migrationservice/v1/ingest-runs/async | Create the Async ingest run
126
+ *MigrationApi* | [**create_ingest_run_sync**](docs/MigrationApi.md#create_ingest_run_sync) | **POST** /migrationservice/v1/ingest-runs/sync | Create the Sync ingest run
127
+ *MigrationApi* | [**flush_ingested_data_async**](docs/MigrationApi.md#flush_ingested_data_async) | **POST** /migrationservice/v1/flushes/async | Create the Sync ingest flush
128
+ *MigrationApi* | [**flush_ingested_data_sync**](docs/MigrationApi.md#flush_ingested_data_sync) | **POST** /migrationservice/v1/flushes/sync | Create the Sync ingest flush
129
+ *MigrationApi* | [**get_ingest_flush**](docs/MigrationApi.md#get_ingest_flush) | **GET** /migrationservice/v1/flushes/{code} | Retrieve the ingest flush
130
+ *MigrationApi* | [**get_ingest_run**](docs/MigrationApi.md#get_ingest_run) | **GET** /migrationservice/v1/ingest-runs/{code} | Retrieve the ingest run
131
+ *MigrationApi* | [**get_json_schemas**](docs/MigrationApi.md#get_json_schemas) | **GET** /migrationservice/v1/json-schemas/{sourceEntity} | Retrieve the JSON schemas
132
+ *MigrationApi* | [**list_entity_mappings**](docs/MigrationApi.md#list_entity_mappings) | **GET** /migrationservice/v1/entity-mappings | List entity mappings
133
+ *MigrationApi* | [**list_ingest_flushes**](docs/MigrationApi.md#list_ingest_flushes) | **GET** /migrationservice/v1/flushes | List ingest flushes
134
+ *MigrationApi* | [**list_ingest_run_records**](docs/MigrationApi.md#list_ingest_run_records) | **GET** /migrationservice/v1/ingest-runs/{code}/records | List ingest run records
135
+ *MigrationApi* | [**list_ingest_runs**](docs/MigrationApi.md#list_ingest_runs) | **GET** /migrationservice/v1/ingest-runs | List ingest runs
136
+ *MigrationApi* | [**stop_ingest_flush**](docs/MigrationApi.md#stop_ingest_flush) | **PUT** /migrationservice/v1/flushes/{code} | Stops the ingest flush
137
+ *MigrationApi* | [**stop_ingest_run**](docs/MigrationApi.md#stop_ingest_run) | **PUT** /migrationservice/v1/ingest-runs/{code} | Stops the ingest run
138
+ *MigrationApi* | [**stop_ingest_run_cleanup**](docs/MigrationApi.md#stop_ingest_run_cleanup) | **PUT** /migrationservice/v1/ingest-runs/{code}/cleanup | Stops the ingest run cleanup
139
+ *DefaultApi* | [**check**](docs/DefaultApi.md#check) | **GET** /migrationservice/health | Health Check
140
+
141
+
142
+ ## Documentation For Models
143
+
144
+ - [CleanupIngestRunAsyncResponseClass](docs/CleanupIngestRunAsyncResponseClass.md)
145
+ - [CleanupIngestRunSyncResponseClass](docs/CleanupIngestRunSyncResponseClass.md)
146
+ - [CreateIngestRunAsyncRequestDto](docs/CreateIngestRunAsyncRequestDto.md)
147
+ - [CreateIngestRunAsyncResponseClass](docs/CreateIngestRunAsyncResponseClass.md)
148
+ - [CreateIngestRunSyncRequestDto](docs/CreateIngestRunSyncRequestDto.md)
149
+ - [CreateIngestRunSyncResponseClass](docs/CreateIngestRunSyncResponseClass.md)
150
+ - [EntityJsonSchemaClass](docs/EntityJsonSchemaClass.md)
151
+ - [EntityMappingClass](docs/EntityMappingClass.md)
152
+ - [FlushIngestedDataRequestDto](docs/FlushIngestedDataRequestDto.md)
153
+ - [FlushIngestedDataResponseClass](docs/FlushIngestedDataResponseClass.md)
154
+ - [GetIngestFlushResponseClass](docs/GetIngestFlushResponseClass.md)
155
+ - [GetIngestRunResponseClass](docs/GetIngestRunResponseClass.md)
156
+ - [GetJsonSchemasResponseClass](docs/GetJsonSchemasResponseClass.md)
157
+ - [IngestBatchClass](docs/IngestBatchClass.md)
158
+ - [IngestBatchEntityClass](docs/IngestBatchEntityClass.md)
159
+ - [IngestFlushClass](docs/IngestFlushClass.md)
160
+ - [IngestFlushEntityClass](docs/IngestFlushEntityClass.md)
161
+ - [IngestRunClass](docs/IngestRunClass.md)
162
+ - [IngestRunRecordClass](docs/IngestRunRecordClass.md)
163
+ - [InlineResponse200](docs/InlineResponse200.md)
164
+ - [InlineResponse503](docs/InlineResponse503.md)
165
+ - [ListEntityMappingsResponseClass](docs/ListEntityMappingsResponseClass.md)
166
+ - [ListIngestFlushesResponseClass](docs/ListIngestFlushesResponseClass.md)
167
+ - [ListIngestRunRecordsResponseClass](docs/ListIngestRunRecordsResponseClass.md)
168
+ - [ListIngestRunsResponseClass](docs/ListIngestRunsResponseClass.md)
169
+ - [StopIngestFlushRequestDto](docs/StopIngestFlushRequestDto.md)
170
+ - [StopIngestFlushResponseClass](docs/StopIngestFlushResponseClass.md)
171
+ - [StopIngestRunCleanupRequestDto](docs/StopIngestRunCleanupRequestDto.md)
172
+ - [StopIngestRunCleanupResponseClass](docs/StopIngestRunCleanupResponseClass.md)
173
+ - [StopIngestRunRequestDto](docs/StopIngestRunRequestDto.md)
174
+ - [StopIngestRunResponseClass](docs/StopIngestRunResponseClass.md)
175
+
176
+
177
+ ## Documentation For Authorization
178
+
179
+
180
+ ## bearer
181
+
182
+ - **Type**: Bearer authentication (JWT)
183
+
184
+
185
+ ## Author
186
+
187
+ kontakt@emil.de
188
+
189
+
190
+ ## Notes for Large OpenAPI documents
191
+ If the OpenAPI document is large, imports in eis.migration.apis and eis.migration.models may fail with a
192
+ RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
193
+
194
+ Solution 1:
195
+ Use specific imports for apis and models like:
196
+ - `from eis.migration.api.default_api import DefaultApi`
197
+ - `from eis.migration.model.pet import Pet`
198
+
199
+ Solution 2:
200
+ Before importing the package, adjust the maximum recursion limit as shown below:
201
+ ```
202
+ import sys
203
+ sys.setrecursionlimit(1500)
204
+ import eis.migration
205
+ from eis.migration.apis import *
206
+ from eis.migration.models import *
207
+ ```
208
+
File without changes
@@ -0,0 +1,28 @@
1
+ # flake8: noqa
2
+
3
+ """
4
+ EMIL MigrationService
5
+
6
+ The EMIL MigrationService API description # noqa: E501
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Contact: kontakt@emil.de
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ __version__ = "0.2.0"
15
+
16
+ # import ApiClient
17
+ from eis.migration.api_client import ApiClient
18
+
19
+ # import Configuration
20
+ from eis.migration.configuration import Configuration
21
+
22
+ # import exceptions
23
+ from eis.migration.exceptions import OpenApiException
24
+ from eis.migration.exceptions import ApiAttributeError
25
+ from eis.migration.exceptions import ApiTypeError
26
+ from eis.migration.exceptions import ApiValueError
27
+ from eis.migration.exceptions import ApiKeyError
28
+ from eis.migration.exceptions import ApiException
@@ -0,0 +1,3 @@
1
+ # do not import all apis into this module because that uses a lot of memory and stack frames
2
+ # if you need the ability to import all apis from one package, import them with
3
+ # from eis.migration.apis import MigrationApi
@@ -0,0 +1,160 @@
1
+ """
2
+ EMIL MigrationService
3
+
4
+ The EMIL MigrationService API description # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: kontakt@emil.de
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from eis.migration.api_client import ApiClient, Endpoint as _Endpoint
16
+ from eis.migration.model_utils import ( # noqa: F401
17
+ check_allowed_values,
18
+ check_validations,
19
+ date,
20
+ datetime,
21
+ file_type,
22
+ none_type,
23
+ validate_and_convert_types
24
+ )
25
+ from eis.migration.model.inline_response200 import InlineResponse200
26
+ from eis.migration.model.inline_response503 import InlineResponse503
27
+
28
+
29
+ class DefaultApi(object):
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None):
37
+ if api_client is None:
38
+ api_client = ApiClient()
39
+ self.api_client = api_client
40
+ self.check_endpoint = _Endpoint(
41
+ settings={
42
+ 'response_type': (InlineResponse200,),
43
+ 'auth': [],
44
+ 'endpoint_path': '/migrationservice/health',
45
+ 'operation_id': 'check',
46
+ 'http_method': 'GET',
47
+ 'servers': None,
48
+ },
49
+ params_map={
50
+ 'all': [
51
+ ],
52
+ 'required': [],
53
+ 'nullable': [
54
+ ],
55
+ 'enum': [
56
+ ],
57
+ 'validation': [
58
+ ]
59
+ },
60
+ root_map={
61
+ 'validations': {
62
+ },
63
+ 'allowed_values': {
64
+ },
65
+ 'openapi_types': {
66
+ },
67
+ 'attribute_map': {
68
+ },
69
+ 'location_map': {
70
+ },
71
+ 'collection_format_map': {
72
+ }
73
+ },
74
+ headers_map={
75
+ 'accept': [
76
+ 'application/json'
77
+ ],
78
+ 'content_type': [],
79
+ },
80
+ api_client=api_client
81
+ )
82
+
83
+ def check(
84
+ self,
85
+ **kwargs
86
+ ):
87
+ """Health Check # noqa: E501
88
+
89
+ Returns the health status of the MigrationService service. This endpoint is used to monitor the operational status of the MigrationService service. It typically returns a simple status indicator, such as 'UP' or 'OK', confirming that the service is operational and available. # noqa: E501
90
+ This method makes a synchronous HTTP request by default. To make an
91
+ asynchronous HTTP request, please pass async_req=True
92
+
93
+ >>> thread = api.check(async_req=True)
94
+ >>> result = thread.get()
95
+
96
+
97
+ Keyword Args:
98
+ _return_http_data_only (bool): response data without head status
99
+ code and headers. Default is True.
100
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
101
+ will be returned without reading/decoding response data.
102
+ Default is True.
103
+ _request_timeout (int/float/tuple): timeout setting for this request. If
104
+ one number provided, it will be total request timeout. It can also
105
+ be a pair (tuple) of (connection, read) timeouts.
106
+ Default is None.
107
+ _check_input_type (bool): specifies if type checking
108
+ should be done one the data sent to the server.
109
+ Default is True.
110
+ _check_return_type (bool): specifies if type checking
111
+ should be done one the data received from the server.
112
+ Default is True.
113
+ _spec_property_naming (bool): True if the variable names in the input data
114
+ are serialized names, as specified in the OpenAPI document.
115
+ False if the variable names in the input data
116
+ are pythonic names, e.g. snake case (default)
117
+ _content_type (str/None): force body content-type.
118
+ Default is None and content-type will be predicted by allowed
119
+ content-types and body.
120
+ _host_index (int/None): specifies the index of the server
121
+ that we want to use.
122
+ Default is read from the configuration.
123
+ _request_auths (list): set to override the auth_settings for an a single
124
+ request; this effectively ignores the authentication
125
+ in the spec for a single request.
126
+ Default is None
127
+ async_req (bool): execute request asynchronously
128
+
129
+ Returns:
130
+ InlineResponse200
131
+ If the method is called asynchronously, returns the request
132
+ thread.
133
+ """
134
+ kwargs['async_req'] = kwargs.get(
135
+ 'async_req', False
136
+ )
137
+ kwargs['_return_http_data_only'] = kwargs.get(
138
+ '_return_http_data_only', True
139
+ )
140
+ kwargs['_preload_content'] = kwargs.get(
141
+ '_preload_content', True
142
+ )
143
+ kwargs['_request_timeout'] = kwargs.get(
144
+ '_request_timeout', None
145
+ )
146
+ kwargs['_check_input_type'] = kwargs.get(
147
+ '_check_input_type', True
148
+ )
149
+ kwargs['_check_return_type'] = kwargs.get(
150
+ '_check_return_type', True
151
+ )
152
+ kwargs['_spec_property_naming'] = kwargs.get(
153
+ '_spec_property_naming', False
154
+ )
155
+ kwargs['_content_type'] = kwargs.get(
156
+ '_content_type')
157
+ kwargs['_host_index'] = kwargs.get('_host_index')
158
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
159
+ return self.check_endpoint.call_with_http_info(**kwargs)
160
+