text stringlengths 0 828 |
|---|
:param str order_id: ID of order to return (required) |
:return: Order |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._get_order_by_id_with_http_info(order_id, **kwargs) |
else: |
(data) = cls._get_order_by_id_with_http_info(order_id, **kwargs) |
return data" |
4271,"def list_all_orders(cls, **kwargs): |
""""""List Orders |
Return a list of Orders |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.list_all_orders(async=True) |
>>> result = thread.get() |
:param async bool |
:param int page: page number |
:param int size: page size |
:param str sort: page order |
:return: page[Order] |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._list_all_orders_with_http_info(**kwargs) |
else: |
(data) = cls._list_all_orders_with_http_info(**kwargs) |
return data" |
4272,"def replace_order_by_id(cls, order_id, order, **kwargs): |
""""""Replace Order |
Replace all attributes of Order |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.replace_order_by_id(order_id, order, async=True) |
>>> result = thread.get() |
:param async bool |
:param str order_id: ID of order to replace (required) |
:param Order order: Attributes of order to replace (required) |
:return: Order |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._replace_order_by_id_with_http_info(order_id, order, **kwargs) |
else: |
(data) = cls._replace_order_by_id_with_http_info(order_id, order, **kwargs) |
return data" |
4273,"def update_order_by_id(cls, order_id, order, **kwargs): |
""""""Update Order |
Update attributes of Order |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.update_order_by_id(order_id, order, async=True) |
>>> result = thread.get() |
:param async bool |
:param str order_id: ID of order to update. (required) |
:param Order order: Attributes of order to update. (required) |
:return: Order |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._update_order_by_id_with_http_info(order_id, order, **kwargs) |
else: |
(data) = cls._update_order_by_id_with_http_info(order_id, order, **kwargs) |
return data" |
4274,"async def newnations(self, root): |
""""""Most recently founded nations, from newest. |
Returns |
------- |
an :class:`ApiQuery` of a list of :class:`Nation` |
"""""" |
return [aionationstates.Nation(n) |
for n in root.find('NEWNATIONS').text.split(',')]" |
4275,"async def regions(self, root): |
""""""List of all the regions, seemingly in order of creation. |
Returns |
------- |
an :class:`ApiQuery` of a list of :class:`Region` |
"""""" |
return [aionationstates.Region(r) |
for r in root.find('REGIONS').text.split(',')]" |
4276,"def regionsbytag(self, *tags): |
""""""All regions with any of the named tags. |
Parameters |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.