text
stringlengths
0
828
4939,"def get_store_profile_by_id(cls, store_profile_id, **kwargs):
""""""Find StoreProfile
Return single instance of StoreProfile 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_store_profile_by_id(store_profile_id, async=True)
>>> result = thread.get()
:param async bool
:param str store_profile_id: ID of storeProfile to return (required)
:return: StoreProfile
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._get_store_profile_by_id_with_http_info(store_profile_id, **kwargs)
else:
(data) = cls._get_store_profile_by_id_with_http_info(store_profile_id, **kwargs)
return data"
4940,"def replace_store_profile_by_id(cls, store_profile_id, store_profile, **kwargs):
""""""Replace StoreProfile
Replace all attributes of StoreProfile
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.replace_store_profile_by_id(store_profile_id, store_profile, async=True)
>>> result = thread.get()
:param async bool
:param str store_profile_id: ID of storeProfile to replace (required)
:param StoreProfile store_profile: Attributes of storeProfile to replace (required)
:return: StoreProfile
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._replace_store_profile_by_id_with_http_info(store_profile_id, store_profile, **kwargs)
else:
(data) = cls._replace_store_profile_by_id_with_http_info(store_profile_id, store_profile, **kwargs)
return data"
4941,"def update_store_profile_by_id(cls, store_profile_id, store_profile, **kwargs):
""""""Update StoreProfile
Update attributes of StoreProfile
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async=True
>>> thread = api.update_store_profile_by_id(store_profile_id, store_profile, async=True)
>>> result = thread.get()
:param async bool
:param str store_profile_id: ID of storeProfile to update. (required)
:param StoreProfile store_profile: Attributes of storeProfile to update. (required)
:return: StoreProfile
If the method is called asynchronously,
returns the request thread.
""""""
kwargs['_return_http_data_only'] = True
if kwargs.get('async'):
return cls._update_store_profile_by_id_with_http_info(store_profile_id, store_profile, **kwargs)
else:
(data) = cls._update_store_profile_by_id_with_http_info(store_profile_id, store_profile, **kwargs)
return data"
4942,"def get_documentation(self, request, *args, **kw):
"""""" Generate the documentation. """"""
ret = dict()
ret['resource'] = self.name()
ret['urls'] = self._get_url_doc()
ret['description'] = self.__doc__
ret['representation'] = self._get_representation_doc()
ret['methods'] = self._get_method_doc()
return ret"
4943,"def _serialize_object(self, response_data, request):
"""""" Override to not serialize doc responses. """"""
if self._is_doc_request(request):
return response_data
else:
return super(DocumentedResource, self)._serialize_object(
response_data, request)"
4944,"def _validate_output_data(
self, original_res, serialized_res, formatted_res, request):
"""""" Override to not validate doc output. """"""
if self._is_doc_request(request):
return
else:
return super(DocumentedResource, self)._validate_output_data(
original_res, serialized_res, formatted_res, request)"
4945,"def _get_method(self, request):
"""""" Override to check if this is a documentation request. """"""
if self._is_doc_request(request):
return self.get_documentation
else:
return super(DocumentedResource, self)._get_method(request)"
4946,"def _get_representation_doc(self):
"""""" Return documentation for the representation of the resource. """"""
if not self.representation:
return 'N/A'
fields = {}