text
stringlengths 0
828
|
---|
:param async bool |
:param str brand_id: ID of brand to return (required) |
:return: Brand |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._get_brand_by_id_with_http_info(brand_id, **kwargs) |
else: |
(data) = cls._get_brand_by_id_with_http_info(brand_id, **kwargs) |
return data" |
4932,"def list_all_brands(cls, **kwargs): |
""""""List Brands |
Return a list of Brands |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.list_all_brands(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[Brand] |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._list_all_brands_with_http_info(**kwargs) |
else: |
(data) = cls._list_all_brands_with_http_info(**kwargs) |
return data" |
4933,"def replace_brand_by_id(cls, brand_id, brand, **kwargs): |
""""""Replace Brand |
Replace all attributes of Brand |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.replace_brand_by_id(brand_id, brand, async=True) |
>>> result = thread.get() |
:param async bool |
:param str brand_id: ID of brand to replace (required) |
:param Brand brand: Attributes of brand to replace (required) |
:return: Brand |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._replace_brand_by_id_with_http_info(brand_id, brand, **kwargs) |
else: |
(data) = cls._replace_brand_by_id_with_http_info(brand_id, brand, **kwargs) |
return data" |
4934,"def update_brand_by_id(cls, brand_id, brand, **kwargs): |
""""""Update Brand |
Update attributes of Brand |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.update_brand_by_id(brand_id, brand, async=True) |
>>> result = thread.get() |
:param async bool |
:param str brand_id: ID of brand to update. (required) |
:param Brand brand: Attributes of brand to update. (required) |
:return: Brand |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._update_brand_by_id_with_http_info(brand_id, brand, **kwargs) |
else: |
(data) = cls._update_brand_by_id_with_http_info(brand_id, brand, **kwargs) |
return data" |
4935,"def filter_(*permissions, **kwargs): |
"""""" |
Constructs a clause to filter all bearers or targets for a given |
berarer or target. |
"""""" |
bearer = kwargs['bearer'] |
target = kwargs.get('target') |
bearer_cls = type_for(bearer) |
# We need a query object. There are many ways to get one, Either we can |
# be passed one, or we can make one from the session. We can either be |
# passed the session, or we can grab the session from the bearer passed. |
if 'query' in kwargs: |
query = kwargs['query'] |
elif 'session' in kwargs: |
query = kwargs['session'].query(target) |
else: |
query = object_session(bearer).query(target) |
Subsets and Splits