text
stringlengths
0
828
:param async bool
:param str option_id: ID of option to delete. (required)
:return: None
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._delete_option_by_id_with_http_info(option_id, **kwargs)
else:
(data) = cls._delete_option_by_id_with_http_info(option_id, **kwargs)
return data"
3840,"def get_option_by_id(cls, option_id, **kwargs):
""""""Find Option
Return single instance of Option by its ID.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.get_option_by_id(option_id, async=True)
>>> result = thread.get()
:param async bool
:param str option_id: ID of option to return (required)
:return: Option
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._get_option_by_id_with_http_info(option_id, **kwargs)
else:
(data) = cls._get_option_by_id_with_http_info(option_id, **kwargs)
return data"
3841,"def list_all_options(cls, **kwargs):
""""""List Options
Return a list of Options
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.list_all_options(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[Option]
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._list_all_options_with_http_info(**kwargs)
else:
(data) = cls._list_all_options_with_http_info(**kwargs)
return data"
3842,"def replace_option_by_id(cls, option_id, option, **kwargs):
""""""Replace Option
Replace all attributes of Option
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.replace_option_by_id(option_id, option, async=True)
>>> result = thread.get()
:param async bool
:param str option_id: ID of option to replace (required)
:param Option option: Attributes of option to replace (required)
:return: Option
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._replace_option_by_id_with_http_info(option_id, option, **kwargs)
else:
(data) = cls._replace_option_by_id_with_http_info(option_id, option, **kwargs)
return data"
3843,"def update_option_by_id(cls, option_id, option, **kwargs):
""""""Update Option
Update attributes of Option
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_option_by_id(option_id, option, async=True)
>>> result = thread.get()
:param async bool
:param str option_id: ID of option to update. (required)
:param Option option: Attributes of option to update. (required)
:return: Option
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._update_option_by_id_with_http_info(option_id, option, **kwargs)
else:
(data) = cls._update_option_by_id_with_http_info(option_id, option, **kwargs)