ó FRTc@s€ddlmZddlmZddlmZddlmZddlmZdefd„ƒYZ defd „ƒYZ d S( iÿÿÿÿ(tBucket(t S3Connection(tSubdomainCallingFormat(tcheck_lowercase_bucketname(tget_utf8_valuetLocationcBseZdZdZRS(tUStEU(t__name__t __module__tDEFAULTR(((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyRst GSConnectioncBsqeZdZdZddedddddeddeƒded„Zdej ddd„Z edd„Z RS( sstorage.googleapis.coms)Signature=%s&Expires=%d&GoogleAccessId=%sit/cCsJtt|ƒj||||||||| | | | | dtd|ƒdS(Ntgoogletsuppress_consec_slashes(tsuperR t__init__R(tselftgs_access_key_idtgs_secret_access_keyt is_securetporttproxyt proxy_portt proxy_usert proxy_passthosttdebugthttps_connection_factorytcalling_formattpathR((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyR%s  tSTANDARDc Cs+t|ƒ|r?|r)|||jj%ss%sts;%s%stPUTtheaderstdatai™iÈN( Rtprovidert acl_headerRR t make_requestRtreadtstatuststorage_create_errortreasont bucket_clasststorage_response_error( Rt bucket_nameR"tlocationtpolicyt storage_classt location_elemtstorage_class_elemR#tresponsetbody((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyt create_bucket1s4       cCs2|j||ƒ}|r.|j|ddƒn|S(s– Retrieves a bucket by name. If the bucket does not exist, an ``S3ResponseError`` will be raised. If you are unsure if the bucket exists or not, you can use the ``S3Connection.lookup`` method, which will either return a valid bucket or ``None``. :type bucket_name: string :param bucket_name: The name of the bucket :type headers: dict :param headers: Additional headers to pass along with the request to AWS. :type validate: boolean :param validate: If ``True``, it will try to fetch all keys within the given bucket. (Default: ``True``) tmaxkeysi(R+t get_all_keys(RR-tvalidateR"tbucket((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyt get_bucketjsN( RR t DefaultHostt QueryStringtNonetTrueRRRR R5R:(((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyR s      7N( tboto.gs.bucketRtboto.s3.connectionRRRt boto.utilsRtobjectRR (((s?/opt/freeware/lib/python2.7/site-packages/boto/gs/connection.pyts