text
stringlengths 0
828
|
---|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._get_wish_list_by_id_with_http_info(wish_list_id, **kwargs)
|
else:
|
(data) = cls._get_wish_list_by_id_with_http_info(wish_list_id, **kwargs)
|
return data"
|
4774,"def list_all_wish_lists(cls, **kwargs):
|
""""""List WishLists
|
Return a list of WishLists
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.list_all_wish_lists(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[WishList]
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._list_all_wish_lists_with_http_info(**kwargs)
|
else:
|
(data) = cls._list_all_wish_lists_with_http_info(**kwargs)
|
return data"
|
4775,"def replace_wish_list_by_id(cls, wish_list_id, wish_list, **kwargs):
|
""""""Replace WishList
|
Replace all attributes of WishList
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.replace_wish_list_by_id(wish_list_id, wish_list, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str wish_list_id: ID of wishList to replace (required)
|
:param WishList wish_list: Attributes of wishList to replace (required)
|
:return: WishList
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._replace_wish_list_by_id_with_http_info(wish_list_id, wish_list, **kwargs)
|
else:
|
(data) = cls._replace_wish_list_by_id_with_http_info(wish_list_id, wish_list, **kwargs)
|
return data"
|
4776,"def update_wish_list_by_id(cls, wish_list_id, wish_list, **kwargs):
|
""""""Update WishList
|
Update attributes of WishList
|
This method makes a synchronous HTTP request by default. To make an
|
asynchronous HTTP request, please pass async=True
|
>>> thread = api.update_wish_list_by_id(wish_list_id, wish_list, async=True)
|
>>> result = thread.get()
|
:param async bool
|
:param str wish_list_id: ID of wishList to update. (required)
|
:param WishList wish_list: Attributes of wishList to update. (required)
|
:return: WishList
|
If the method is called asynchronously,
|
returns the request thread.
|
""""""
|
kwargs['_return_http_data_only'] = True
|
if kwargs.get('async'):
|
return cls._update_wish_list_by_id_with_http_info(wish_list_id, wish_list, **kwargs)
|
else:
|
(data) = cls._update_wish_list_by_id_with_http_info(wish_list_id, wish_list, **kwargs)
|
return data"
|
4777,"def task(arg = None):
|
"""""" Task decorator """"""
|
# make sure stdout is patched
|
if not hasattr(sys.stdout, 'indent_level'):
|
sys.stdout = IndentedFile(sys.stdout)
|
def decorator(base):
|
info = ': ' + arg if type(arg) is str else ''
|
header = fore.green('** ' + fore.cyan(base.__name__) + info)
|
def func(*args, **kwargs):
|
sys.stdout.indent_level += 1
|
puts(header)
|
base(*args, **kwargs)
|
sys.stdout.indent_level -= 1
|
params = inspect.formatargspec(*inspect.getargspec(base))[1:-1]
|
specformat = fore.cyan('%s') + ' ' + fore.white('%s')
|
func._task = True
|
func._spec = specformat % (base.__name__, params)
|
func._desc = re.sub('\s+', ' ', inspect.getdoc(base) or '')
|
return func
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.