themeparks 1.0.1__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_client/__init__.py +40 -0
- openapi_client/api/__init__.py +3 -0
- openapi_client/api/destinations_api.py +152 -0
- openapi_client/api/entities_api.py +696 -0
- openapi_client/api_client.py +866 -0
- openapi_client/apis/__init__.py +18 -0
- openapi_client/configuration.py +446 -0
- openapi_client/exceptions.py +159 -0
- openapi_client/model/__init__.py +5 -0
- openapi_client/model/boarding_group_state.py +283 -0
- openapi_client/model/destination_entry.py +273 -0
- openapi_client/model/destination_park_entry.py +259 -0
- openapi_client/model/destinations_response.py +261 -0
- openapi_client/model/entity_child.py +279 -0
- openapi_client/model/entity_children_response.py +279 -0
- openapi_client/model/entity_data.py +305 -0
- openapi_client/model/entity_data_location.py +259 -0
- openapi_client/model/entity_live_data.py +307 -0
- openapi_client/model/entity_live_data_response.py +279 -0
- openapi_client/model/entity_schedule_response.py +279 -0
- openapi_client/model/entity_type.py +286 -0
- openapi_client/model/live_queue.py +283 -0
- openapi_client/model/live_queue_boardinggroup.py +277 -0
- openapi_client/model/live_queue_paidreturntime.py +275 -0
- openapi_client/model/live_queue_returntime.py +269 -0
- openapi_client/model/live_queue_standby.py +255 -0
- openapi_client/model/live_show_time.py +263 -0
- openapi_client/model/live_status_type.py +284 -0
- openapi_client/model/price_data.py +259 -0
- openapi_client/model/return_time_state.py +283 -0
- openapi_client/model/schedule_entry.py +286 -0
- openapi_client/model/tag_data.py +275 -0
- openapi_client/model_utils.py +2037 -0
- openapi_client/models/__init__.py +34 -0
- openapi_client/rest.py +346 -0
- themeparks-1.0.1.dist-info/METADATA +32 -0
- themeparks-1.0.1.dist-info/RECORD +39 -0
- themeparks-1.0.1.dist-info/WHEEL +5 -0
- themeparks-1.0.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Theme Parks Wiki V1 API
|
|
5
|
+
|
|
6
|
+
api.themeparks.wiki # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0-alpha
|
|
9
|
+
Generated by: https://openapi-generator.tech
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
__version__ = "1.0.1"
|
|
14
|
+
|
|
15
|
+
import warnings
|
|
16
|
+
|
|
17
|
+
warnings.warn(
|
|
18
|
+
"The legacy `themeparks` package (imported as `openapi_client`) is "
|
|
19
|
+
"deprecated. v2 is a full rewrite as a typed, modern SDK with sync + "
|
|
20
|
+
"async clients, fixes for the nullable queue-field crashes (issues "
|
|
21
|
+
"#1, #2), and proper docs. Install it with `pip install --upgrade "
|
|
22
|
+
"themeparks` (or `pip install themeparks>=2`). Migration guide: "
|
|
23
|
+
"https://github.com/ThemeParks/ThemeParks_Python/blob/main/MIGRATION.md",
|
|
24
|
+
DeprecationWarning,
|
|
25
|
+
stacklevel=2,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
# import ApiClient
|
|
29
|
+
from openapi_client.api_client import ApiClient
|
|
30
|
+
|
|
31
|
+
# import Configuration
|
|
32
|
+
from openapi_client.configuration import Configuration
|
|
33
|
+
|
|
34
|
+
# import exceptions
|
|
35
|
+
from openapi_client.exceptions import OpenApiException
|
|
36
|
+
from openapi_client.exceptions import ApiAttributeError
|
|
37
|
+
from openapi_client.exceptions import ApiTypeError
|
|
38
|
+
from openapi_client.exceptions import ApiValueError
|
|
39
|
+
from openapi_client.exceptions import ApiKeyError
|
|
40
|
+
from openapi_client.exceptions import ApiException
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Theme Parks Wiki V1 API
|
|
3
|
+
|
|
4
|
+
api.themeparks.wiki # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0-alpha
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from openapi_client.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from openapi_client.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from openapi_client.model.destinations_response import DestinationsResponse
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class DestinationsApi(object):
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None):
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
self.get_destinations_endpoint = _Endpoint(
|
|
39
|
+
settings={
|
|
40
|
+
'response_type': (DestinationsResponse,),
|
|
41
|
+
'auth': [],
|
|
42
|
+
'endpoint_path': '/destinations',
|
|
43
|
+
'operation_id': 'get_destinations',
|
|
44
|
+
'http_method': 'GET',
|
|
45
|
+
'servers': None,
|
|
46
|
+
},
|
|
47
|
+
params_map={
|
|
48
|
+
'all': [
|
|
49
|
+
],
|
|
50
|
+
'required': [],
|
|
51
|
+
'nullable': [
|
|
52
|
+
],
|
|
53
|
+
'enum': [
|
|
54
|
+
],
|
|
55
|
+
'validation': [
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
root_map={
|
|
59
|
+
'validations': {
|
|
60
|
+
},
|
|
61
|
+
'allowed_values': {
|
|
62
|
+
},
|
|
63
|
+
'openapi_types': {
|
|
64
|
+
},
|
|
65
|
+
'attribute_map': {
|
|
66
|
+
},
|
|
67
|
+
'location_map': {
|
|
68
|
+
},
|
|
69
|
+
'collection_format_map': {
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
headers_map={
|
|
73
|
+
'accept': [
|
|
74
|
+
'application/json'
|
|
75
|
+
],
|
|
76
|
+
'content_type': [],
|
|
77
|
+
},
|
|
78
|
+
api_client=api_client
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
def get_destinations(
|
|
82
|
+
self,
|
|
83
|
+
**kwargs
|
|
84
|
+
):
|
|
85
|
+
"""Get a list of supported destinations available on the live API # noqa: E501
|
|
86
|
+
|
|
87
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
88
|
+
asynchronous HTTP request, please pass async_req=True
|
|
89
|
+
|
|
90
|
+
>>> thread = api.get_destinations(async_req=True)
|
|
91
|
+
>>> result = thread.get()
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
Keyword Args:
|
|
95
|
+
_return_http_data_only (bool): response data without head status
|
|
96
|
+
code and headers. Default is True.
|
|
97
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
98
|
+
will be returned without reading/decoding response data.
|
|
99
|
+
Default is True.
|
|
100
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
101
|
+
one number provided, it will be total request timeout. It can also
|
|
102
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
103
|
+
Default is None.
|
|
104
|
+
_check_input_type (bool): specifies if type checking
|
|
105
|
+
should be done one the data sent to the server.
|
|
106
|
+
Default is True.
|
|
107
|
+
_check_return_type (bool): specifies if type checking
|
|
108
|
+
should be done one the data received from the server.
|
|
109
|
+
Default is True.
|
|
110
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
111
|
+
are serialized names, as specified in the OpenAPI document.
|
|
112
|
+
False if the variable names in the input data
|
|
113
|
+
are pythonic names, e.g. snake case (default)
|
|
114
|
+
_content_type (str/None): force body content-type.
|
|
115
|
+
Default is None and content-type will be predicted by allowed
|
|
116
|
+
content-types and body.
|
|
117
|
+
_host_index (int/None): specifies the index of the server
|
|
118
|
+
that we want to use.
|
|
119
|
+
Default is read from the configuration.
|
|
120
|
+
async_req (bool): execute request asynchronously
|
|
121
|
+
|
|
122
|
+
Returns:
|
|
123
|
+
DestinationsResponse
|
|
124
|
+
If the method is called asynchronously, returns the request
|
|
125
|
+
thread.
|
|
126
|
+
"""
|
|
127
|
+
kwargs['async_req'] = kwargs.get(
|
|
128
|
+
'async_req', False
|
|
129
|
+
)
|
|
130
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
131
|
+
'_return_http_data_only', True
|
|
132
|
+
)
|
|
133
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
134
|
+
'_preload_content', True
|
|
135
|
+
)
|
|
136
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
137
|
+
'_request_timeout', None
|
|
138
|
+
)
|
|
139
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
140
|
+
'_check_input_type', True
|
|
141
|
+
)
|
|
142
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
143
|
+
'_check_return_type', True
|
|
144
|
+
)
|
|
145
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
146
|
+
'_spec_property_naming', False
|
|
147
|
+
)
|
|
148
|
+
kwargs['_content_type'] = kwargs.get(
|
|
149
|
+
'_content_type')
|
|
150
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
151
|
+
return self.get_destinations_endpoint.call_with_http_info(**kwargs)
|
|
152
|
+
|