<s> """<STR_LIT>""" <EOL> from cafe . engine . http . client import AutoMarshallingHTTPClient <EOL> from cloudcafe . networking . networks . extensions . limits_api . models . response import Limits <EOL> class LimitsClient ( AutoMarshallingHTTPClient ) : <EOL> def __init__ ( self , url , auth_token , serialize_format = None , <EOL> deserialize_format = None , tenant_id = None ) : <EOL> """<STR_LIT>""" <EOL> super ( LimitsClient , self ) . __init__ ( serialize_format , <EOL> deserialize_format ) <EOL> self . auth_token = auth_token <EOL> self . default_headers [ '<STR_LIT>' ] = auth_token <EOL> ct = '<STR_LIT>' . format ( <EOL> content_type = '<STR_LIT>' , <EOL> content_subtype = self . serialize_format ) <EOL> accept = '<STR_LIT>' . format ( <EOL> content_type = '<STR_LIT>' , <EOL> content_subtype = self . deserialize_format ) <EOL> self . default_headers [ '<STR_LIT:Content-Type>' ] = ct <EOL> self . default_headers [ '<STR_LIT>' ] = accept <EOL> if tenant_id : <EOL> self . default_headers [ '<STR_LIT>' ] = tenant_id <EOL> self . url = url <EOL> self . limits_url = '<STR_LIT>' . format ( url = self . url ) <EOL> def get_limits ( self , page_reverse = None , requestslib_kwargs = None ) : <EOL> """<STR_LIT>""" <EOL> params = { '<STR_LIT>' : page_reverse } <EOL> url = self . limits_url <EOL> resp = self . request ( '<STR_LIT:GET>' , url , params = params , <EOL> response_entity_type = Limits , <EOL> requestslib_kwargs = requestslib_kwargs ) <EOL> return resp </s>
