#NEWLINE# def get_container( self , container , headers = None , prefix = None , delimiter = None , marker = None , end_marker = None , limit = None , query = None , cdn = False , decode_json = True ) : #NEWLINE# #INDENT# '\n        GETs the container and returns the results. This is done to\n        list the objects for the container. Some useful headers are\n        also returned:\n\n        =========================== =================================\n        x-container-bytes-used      Object storage used for the\n                                    container, in bytes.\n        x-container-object-count    The number of objects in the\n                                    container.\n        =========================== =================================\n\n        Also, any user headers beginning with x-container-meta- are\n        returned.\n\n        These values can be delayed depending the Swift cluster.\n\n        :param container: The name of the container.\n        :param headers: Additional headers to send with the request.\n        :param prefix: The prefix object names must match to be\n            listed.\n        :param delimiter: The delimiter for the listing. Delimiters\n            indicate how far to progress through object names before\n            "rolling them up". For instance, a delimiter=\'/\' query on\n            an container with the objects::\n\n                one/one\n                one/two\n                two\n                three/one\n\n            would return the JSON value of::\n\n                [{\'subdir\': \'one/\'},\n                 {\'count\': 0, \'bytes\': 0, \'name\': \'two\'},\n                 {\'subdir\': \'three/\'}]\n\n            Using this with prefix can allow you to traverse a psuedo\n            hierarchy.\n        :param marker: Only object names after this marker will be\n            returned. Swift returns a limited number of objects per\n            request (often 10,000). To get the next batch of names,\n            you issue another query with the marker set to the last\n            name you received. You can continue to issue requests\n            until you receive no more names.\n        :param end_marker: Only object names before this marker will be\n            returned.\n        :param limit: Limits the size of the list returned per\n            request. The default and maximum depends on the Swift\n            cluster (usually 10,000).\n        :param query: Set to a dict of query values to send on the\n            query string of the request.\n        :param cdn: If set True, the CDN management interface will be\n            used.\n        :param decode_json: If set False, the usual decoding of the\n            JSON response will be skipped and the raw contents will\n            be returned instead.\n        :returns: A tuple of (status, reason, headers, contents).\n\n            :status: is an int for the HTTP status code.\n            :reason: is the str for the HTTP status (ex: "Ok").\n            :headers: is a dict with all lowercase keys of the HTTP\n                headers; if a header has multiple values, it will be a\n                list.\n            :contents: is the decoded JSON response or the raw str\n                for the HTTP body.\n        ' #NEWLINE# query = dict ( ( query or { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) #NEWLINE# query [ 'format' ] = 'json' #NEWLINE# if prefix : #NEWLINE# #INDENT# query [ 'prefix' ] = prefix #NEWLINE# #UNINDENT# if delimiter : #NEWLINE# #INDENT# query [ 'delimiter' ] = delimiter #NEWLINE# #UNINDENT# if marker : #NEWLINE# #INDENT# query [ 'marker' ] = marker #NEWLINE# #UNINDENT# if end_marker : #NEWLINE# #INDENT# query [ 'end_marker' ] = headers #NEWLINE# #UNINDENT# if limit : #NEWLINE# #INDENT# query [ 'limit' ] = limit #NEWLINE# #UNINDENT# return self . request ( 'GET' , self . _container_path ( container ) , '' , headers , decode_json = decode_json , query = query , cdn = cdn )