Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
³EYc@s\dZddlmZddlmZdejfd„ƒYZdejfd„ƒYZdS(	s#
Volume interface (1.1 extension).
iÿÿÿÿ(tbase(tutilstVolumecBsÅeZdZdZd„Zd„Zd„Zddd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(sDA volume is an extra block level storage to the OpenStack instances.tdisplay_namecCsd|jS(Ns<Volume: %s>(tid(tself((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyt__repr__scCs|jj|ƒdS(sDelete this volume.N(tmanagertdelete(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRscKs|jj||dS(s?Update the display_name or display_description for this volume.N(Rtupdate(Rtkwargs((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR	#strwcCs|jj|||||ƒS(sSet attachment metadata.

        :param instance_uuid: uuid of the attaching instance.
        :param mountpoint: mountpoint on the attaching instance or host.
        :param mode: the access mode
        :param host_name: name of the attaching host.
        (Rtattach(Rt
instance_uuidt
mountpointtmodet	host_name((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR's	cCs|jj|ƒS(sClear attachment metadata.(Rtdetach(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR3scCs|jj|ƒS(sReserve this volume.(Rtreserve(Rtvolume((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR7scCs|jj|ƒS(sUnreserve this volume.(Rt	unreserve(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR;scCs|jj|ƒS(sBegin detaching volume.(Rtbegin_detaching(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR?scCs|jj|ƒS(sRoll detaching volume.(Rtroll_detaching(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRCscCs|jj||ƒS(s]Initialize a volume connection.

        :param connector: connector dict from nova.
        (Rtinitialize_connection(RRt	connector((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRGscCs|jj||ƒS(s\Terminate a volume connection.

        :param connector: connector dict from nova.
        (Rtterminate_connection(RRR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRNscCs|jj||ƒS(s§Set or Append metadata to a volume.

        :param volume : The :class: `Volume` to set metadata on
        :param metadata: A dict of key/value pairs to set
        (Rtset_metadata(RRtmetadata((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRUscCs|jj|||||ƒS(s-Upload a volume to image service as an image.(Rtupload_to_image(Rtforcet
image_nametcontainer_formattdisk_format((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR]scCs|jj|ƒdS(s€Delete the specified volume ignoring its current state.

        :param volume: The UUID of the volume to force-delete.
        N(Rtforce_delete(R((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR!cscCs|jj||ƒdS(s*Update the volume with the provided state.N(Rtreset_state(Rtstate((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR"jscCs|jj||ƒdS(sªExtend the size of the specified volume.

        :param volume: The UUID of the volume to extend.
        :param new_size: The desired size to extend volume to.
        N(Rtextend(RRtnew_size((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR$nscCs|jj|||ƒdS(s!Migrate the volume to a new host.N(Rtmigrate_volume(Rthosttforce_host_copy((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR&vscCs|jj||ƒS(s#Update all metadata of this volume.(Rtupdate_all_metadata(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR)zscCs|jj||ƒdS(sðUpdate the read-only access mode flag of the specified volume.

        :param volume: The UUID of the volume to update.
        :param read_only: The value to indicate whether to update volume to
            read-only access mode.
        N(Rtupdate_readonly_flag(RRt	read_only((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR*~sN(t__name__t
__module__t__doc__t	NAME_ATTRRRR	tNoneRRRRRRRRRRR!R"R$R&R)R*(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRs,																	t
VolumeManagercBs.eZdZeZddddddddddd„
Zd„Zeddd„Z	d„Z
d„Zdd„Zddd„Z
d	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z RS(s+
    Manage :class:`Volume` resources.
    cCs–|
dkri}n|
}ii
|d6|d6|d6|d6|d6|d6|d6|	d6d	d
6dd6|d
6|d6|d6d6}
|jd|
dƒS(s¥
        Creates a volume.

        :param size: Size of volume in GB
        :param snapshot_id: ID of the snapshot
        :param display_name: Name of the volume
        :param display_description: Description of the volume
        :param volume_type: Type of volume
        :param user_id: User id derived from context
        :param project_id: Project id derived from context
        :param availability_zone: Availability Zone to use
        :param metadata: Optional metadata to set on volume creation
        :param imageRef: reference to an image stored in glance
        :param source_volid: ID of source volume to clone from
        :rtype: :class:`Volume`
        tsizetsnapshot_idRtdisplay_descriptiontvolume_typetuser_idt
project_idtavailability_zonetcreatingtstatustdetachedt
attach_statusRtimageReftsource_volidRs/volumesN(R0t_create(RR2R3R>RR4R5R6R7R8RR=tvolume_metadatatbody((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytcreateŽs"	
cCs|jd|dƒS(sw
        Get a volume.

        :param volume_id: The ID of the volume to get.
        :rtype: :class:`Volume`
        s/volumes/%sR(t_get(Rt	volume_id((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytget¹scCsi|dkri}n|r(||d<ntj|tƒ}d}|rOd}n|jd||fdƒS(sU
        Get a list of all volumes.

        :rtype: list of :class:`Volume`
        tlimitts/details/volumes%s%stvolumesN(R0Rtbuild_query_paramtTruet_list(Rtdetailedtsearch_optsRFtquery_stringtdetail((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytlistÂs	
	cCs|jdtj|ƒƒdS(sY
        Delete a volume.

        :param volume: The :class:`Volume` to delete.
        s/volumes/%sN(t_deleteRtgetid(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR×scKs8|s
dSi|d6}|jdtj|ƒ|ƒdS(s…
        Update the display_name or display_description for a volume.

        :param volume: The :class:`Volume` to update.
        NRs/volumes/%s(t_updateRRR(RRR
RA((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR	ßs
cKsLi||6}|jd||dtj|ƒ}|jjj|d|ƒS(s,
        Perform a volume "action."
        tmodify_body_for_actions/volumes/%s/actionRA(t	run_hooksRRRtapitclienttpost(RtactionRtinfoR
RAturl((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyt_actionìs
RcCsmi|d6|d6}|dk	r7|ji|d6ƒn|dk	rZ|ji|d6ƒn|jd||ƒS(sv
        Set attachment metadata.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to attach.
        :param instance_uuid: uuid of the attaching instance or host.
        :param mountpoint: mountpoint on the attaching instance.
        :param mode: the access mode.
        :param host_name: name of the attaching host.
        RRR
Rs	os-attachN(R0R	R\(RRR
RRRRA((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRõscCs|jd|ƒS(s•
        Clear attachment metadata.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to detach.
        s	os-detach(R\(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRscCs|jd|ƒS(s
        Reserve this volume.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to reserve.
        s
os-reserve(R\(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRscCs|jd|ƒS(s”
        Unreserve this volume.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to unreserve.
        sos-unreserve(R\(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRscCs|jd|ƒS(s—
        Begin detaching this volume.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to detach.
        sos-begin_detaching(R\(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR#scCs|jd|ƒS(sž
        Roll detaching this volume.

        :param volume: The :class:`Volume` (or its ID)
                       you would like to roll detaching.
        sos-roll_detaching(R\(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR,scCs"|jd|i|d6ƒddS(sž
        Initialize a volume connection.

        :param volume: The :class:`Volume` (or its ID).
        :param connector: connector dict from nova.
        sos-initialize_connectionRitconnection_info(R\(RRR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR5scCs|jd|i|d6ƒdS(s
        Terminate a volume connection.

        :param volume: The :class:`Volume` (or its ID).
        :param connector: connector dict from nova.
        sos-terminate_connectionRN(R\(RRR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR?scCs-i|d6}|jdtj|ƒ|dƒS(s
        Update/Set a volumes metadata.

        :param volume: The :class:`Volume`.
        :param metadata: A list of keys to be set.
        Rs/volumes/%s/metadata(R?RRR(RRRRA((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyRIs
cCs5x.|D]&}|jdtj|ƒ|fƒqWdS(sž
        Delete specified keys from volumes metadata.

        :param volume: The :class:`Volume`.
        :param keys: A list of keys to be removed.
        s/volumes/%s/metadata/%sN(RQRRR(RRtkeystk((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytdelete_metadataTs
cCs/|jd|i|d6|d6|d6|d6ƒS(sq
        Upload volume to image service as image.

        :param volume: The :class:`Volume` to upload.
        sos-volume_upload_imageRRRR (R\(RRRRRR ((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR^s	
cCs|jdtj|ƒƒS(Nsos-force_delete(R\RRR(RR((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR!lscCs|jd|i|d6ƒS(s3Update the provided volume with the provided state.sos-reset_statusR:(R\(RRR#((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR"oscCs#|jdtj|ƒi|d6ƒS(Ns	os-extendR%(R\RRR(RRR%((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR$ss	cCs|jd|ƒjS(sÀ
        Retrieve the encryption metadata from the desired volume.

        :param volume_id: the id of the volume to query
        :return: a dictionary of volume encryption metadata
        s/volumes/%s/encryption(RCt_info(RRD((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytget_encryption_metadataxscCs!|jd|i|d6|d6ƒS(s¿Migrate volume to new host.

        :param volume: The :class:`Volume` to migrate
        :param host: The destination host
        :param force_host_copy: Skip driver optimizations
        sos-migrate_volumeR'R((R\(RRR'R(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR&s	cCs4tj|ƒ}|jd|i|d6|d6ƒdS(s$Complete the migration from the old volume to the temp new one.

        :param old_volume: The original :class:`Volume` in the migration
        :param new_volume: The new temporary :class:`Volume` in the migration
        :param error: Inform of an error to cause migration cleanup
        sos-migrate_volume_completiont
new_volumeterrori(RRRR\(Rt
old_volumeRcRdt
new_volume_id((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytmigrate_volume_completions	cCs*i|d6}|jdtj|ƒ|ƒS(sUpdate all metadata of a volume.

        :param volume: The :class:`Volume`.
        :param metadata: A list of keys to be updated.
        Rs/volumes/%s/metadata(RSRRR(RRRRA((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR)šs
cCs#|jdtj|ƒi|d6ƒS(Nsos-update_readonly_flagtreadonly(R\RRR(RRtflag((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR*¤s	cCs#|jdtj|ƒi|d6ƒS(Nsos-set_bootabletbootable(R\RRR(RRRi((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pytset_bootable©s	N(!R,R-R.Rtresource_classR0RBRERJRPRR	R\RRRRRRRRRR`RR!R"R$RbR&RgR)R*Rk(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyR1ˆsB'				
												
	
		
								
	
	N(R.tcinderclientRRtResourceRtManagerWithFindR1(((sL/home/tvault/.virtenv/lib/python2.7/site-packages/cinderclient/v1/volumes.pyt<module>sp