Submit
Path:
~
/
/
usr
/
lib
/
python2.7
/
site-packages
/
boto
/
glacier
/
File Content:
layer2.pyc
� �Wc @ s: d d l m Z d d l m Z d e f d � � YZ d S( i����( t Layer1( t Vaultt Layer2c B s; e Z d Z d � Z d � Z d � Z d � Z d � Z RS( sT Provides a more pythonic and friendly interface to Glacier based on Layer1 c O s2 d | k r | d | _ n t | | � | _ d S( Nt layer1( R R ( t selft argst kwargs( ( s7 /usr/lib/python2.7/site-packages/boto/glacier/layer2.pyt __init__! s c C s | j j | � | j | � S( s� Creates a vault. :type name: str :param name: The name of the vault :rtype: :class:`boto.glacier.vault.Vault` :return: A Vault object representing the vault. ( R t create_vaultt get_vault( R t name( ( s7 /usr/lib/python2.7/site-packages/boto/glacier/layer2.pyR ( s c C s | j j | � S( s� Delete a vault. This operation deletes a vault. Amazon Glacier will delete a vault only if there are no archives in the vault as per the last inventory and there have been no writes to the vault since the last inventory. If either of these conditions is not satisfied, the vault deletion fails (that is, the vault is not removed) and Amazon Glacier returns an error. This operation is idempotent, you can send the same request multiple times and it has no further effect after the first time Amazon Glacier delete the specified vault. :type vault_name: str :param vault_name: The name of the vault to delete. ( R t delete_vault( R R ( ( s7 /usr/lib/python2.7/site-packages/boto/glacier/layer2.pyR 4 s c C s"