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    
dmapi / usr / lib / python2.7 / dist-packages / dmapi / db / sqlalchemy / api_models.pyc
Size: Mime:
ó
}eµcc@sõddlmZddlmZddlmZddlmZddlmZddlmZddl	m
Z
ddlmZdd	lmZdd
lm
Z
ddlmZddlmZdd
lmZddlmZddlmZddlmZddlmZd„Zdejejfd„ƒYZe
deƒZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZd efd!„ƒYZ d"efd#„ƒYZ!d$efd%„ƒYZ"d&efd'„ƒYZ#d(efd)„ƒYZ$d*efd+„ƒYZ%d,efd-„ƒYZ&d.efd/„ƒYZ'd0efd1„ƒYZ(d2efd3„ƒYZ)d4efd5„ƒYZ*d6efd7„ƒYZ+d8efd9„ƒYZ,d:efd;„ƒYZ-d<efd=„ƒYZ.d>efd?„ƒYZ/d@efdA„ƒYZ0dBefdC„ƒYZ1dDefdE„ƒYZ2dFefdG„ƒYZ3dHefdI„ƒYZ4dJefdK„ƒYZ5dLefdM„ƒYZ6dNefdO„ƒYZ7dPefdQ„ƒYZ8dRefdS„ƒYZ9dTS(Uiÿÿÿÿ(tmodels(tBoolean(tColumn(tDateTime(t
MEDIUMTEXT(tEnum(tdeclarative_base(tFloat(t
ForeignKey(tIndex(tInteger(torm(tbackref(tschema(tString(tText(tUnicodecCstƒjtƒdƒS(Ntmysql(Rtwith_variantR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyt
MediumTextst_NovaAPIBasecBseZRS((t__name__t
__module__(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRstclst
AggregateHostcBsteZdZdZejddddƒfZeede	de	ƒZ
eedƒƒZeee
d	ƒd
eƒZRS(s1Represents a host that is member of an aggregate.taggregate_hoststhosttaggregate_idtnamet&uniq_aggregate_hosts0host0aggregate_idtprimary_keyt
autoincrementiÿs
aggregates.idtnullable(RRt__doc__t
__tablename__R
tUniqueConstraintt__table_args__RR
tTruetidRRRtFalseR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR#s	tAggregateMetadatacBs˜eZdZdZejddddƒeddƒfZee	de
ƒZeedƒd	e
ƒZeedƒd	e
ƒZee	ed
ƒd	e
ƒZRS(s6Represents a metadata key/value pair for an aggregate.taggregate_metadataRtkeyRt(uniq_aggregate_metadata0aggregate_id0keytaggregate_metadata_key_idxRiÿR s
aggregates.id(RRR!R"R
R#R	R$RR
R%R&RR'R*tvalueRR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR(0st	AggregatecBsæeZdZdZeddƒejdddƒfZee	de
de
ƒZeedƒƒZ
eed	ƒƒZejed
ddd
ƒZejed
ddd
ƒZed„ƒZed„ƒZed„ƒZed„ƒZRS(s7Represents a cluster of hosts that exists in this zone.t
aggregatestaggregate_uuid_idxtuuidRtuniq_aggregate0nameRRi$iÿtprimaryjoins*Aggregate.id == AggregateHost.aggregate_idtcascadetdeletes.Aggregate.id == AggregateMetadata.aggregate_idcCs
dddgS(Nthoststmetadetailstavailability_zone((tself((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyt_extra_keysPscCsg|jD]}|j^q
S(N(t_hostsR(R9th((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR6TscCsd„|jDƒS(NcSsi|]}|j|j“qS((R-R*(t.0tm((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pys
<dictcomp>Zs	(t	_metadata(R9((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR7XscCsd|jkrdS|jdS(NR8(R7tNone(R9((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR8\s(RRR!R"R	R
R#R$RR
R%R&RR1RRtrelationshipRR;R(R?tpropertyR:R6R7R8(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR.?s$		tCellMappingcBs¿eZdZdZeddƒejdddƒfZee	de
ƒZeedƒde
ƒZeed	ƒƒZeeƒƒZeeƒƒZejd
dedd
e
ƒdeddƒZRS(s1Contains information on communicating with a cellt
cell_mappingstuuid_idxR1Rtuniq_cell_mappings0uuidRi$R iÿtHostMappingRtcell_mappingtuselisttforeign_keysR3s%CellMapping.id == HostMapping.cell_id(RRR!R"R	R
R#R$RR
R%R&RR'R1RRt
transport_urltdatabase_connectionRRARthost_mapping(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRCcstInstanceMappingcBsÎeZdZdZeddƒeddƒejdddƒfZee	de
ƒZeed	ƒd
e
ƒZee	edƒd
e
ƒZeedƒd
e
ƒZejd
dedde
ƒdeddƒZRS(s:Contains the mapping of an instance to which cell it is intinstance_mappingstproject_id_idxt
project_idtinstance_uuid_idxt
instance_uuidRt$uniq_instance_mappings0instance_uuidRi$R scell_mappings.idiÿRCRtinstance_mappingRIRJR3s)InstanceMapping.cell_id == CellMapping.id(RRR!R"R	R
R#R$RR
R%R&RR'RSRtcell_idRQRRARRH(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRNvs	RGcBs}eZdZdZeddƒejdddƒfZee	de
ƒZee	edƒde
ƒZeed	ƒde
ƒZRS(
s9Contains mapping of a compute host to which cell it is int
host_mappingsthost_idxRRtuniq_host_mappings0hostRscell_mappings.idR iÿ(RRR!R"R	R
R#R$RR
R%R&RR'RVRR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRG‰s	tRequestSpeccBsweZdZdZeddƒejdddƒfZee	de
ƒZeedƒde
ƒZeeƒde
ƒZRS(	s3Represents the information passed to the scheduler.t
request_specstrequest_spec_instance_uuid_idxRSRt uniq_request_specs0instance_uuidRi$R (RRR!R"R	R
R#R$RR
R%R&RR'RSRtspec(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRZ–stFlavorscBs"eZdZdZejdddƒejdddƒfZeede	ƒZ
eedƒdeƒZ
eedeƒZeedeƒZeeƒZeeƒZeedƒdeƒZeeded	d
ƒZeed	dƒZeeƒZeed	eƒZeed	e	ƒZeeƒZRS(s)Represents possible flavors for instancestflavorstflavoridRtuniq_flavors0flavoridtuniq_flavors0nameRiÿR tdefaultii(RRR!R"R
R#R$RR
R%R&RR'Rt	memory_mbtvcpustroot_gbtephemeral_gbRatswapRtrxtx_factortvcpu_weightRtdisabledt	is_publicRtdescription(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR_¥s"tFlavorExtraSpecscBsÀeZdZdZedddƒejddddƒidd6fZee	d	e
ƒZeed
ƒde
ƒZeed
ƒƒZee	edƒde
ƒZejed
ddeddƒZRS(s;Represents additional specs as key/value pairs for a flavortflavor_extra_specst$flavor_extra_specs_flavor_id_key_idxt	flavor_idR*Rt%uniq_flavor_extra_specs0flavor_id0keytutf8_bint
mysql_collateRiÿR s
flavors.idRtextra_specsRJR3s(FlavorExtraSpecs.flavor_id == Flavors.id(RRR!R"R	R
R#R$RR
R%R&RR'R*R-RRrRRAR_tflavor(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRo»stFlavorProjectscBs•eZdZdZejddddƒfZeede	ƒZ
eeedƒdeƒZ
eed	ƒdeƒZejed
dde
d
dƒZRS(s+Represents projects associated with flavorstflavor_projectsRrRQRt)uniq_flavor_projects0flavor_id0project_idRs
flavors.idR iÿRtprojectsRJR3s&FlavorProjects.flavor_id == Flavors.id(RRR!R"R
R#R$RR
R%R&RR'RrRRQRRAR_Rw(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRxÏstBuildRequestcBs­eZdZdZeddƒeddƒejdddƒfZee	de
ƒZeed	ƒƒZ
eed
ƒdeƒZeeƒƒZeeƒƒZeeƒƒZRS(s3Represents the information passed to the scheduler.tbuild_requestst build_requests_instance_uuid_idxRStbuild_requests_project_id_idxRQRt!uniq_build_requests0instance_uuidRi$iÿR (RRR!R"R	R
R#R$RR
R%R&RRSR'RQRtinstancetblock_device_mappingsRttags(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR|ÞstKeyPaircBs¿eZdZdZejddddƒfZeede	de
ƒZeedƒde
ƒZ
eedƒde
ƒZeedƒƒZeeƒƒZeedd	dd
ƒde
ddƒZRS(s-Represents a public key pair for ssh / WinRM.t	key_pairstuser_idRtuniq_key_pairs0user_id0nameRR iÿtsshtx509t
keypair_typestserver_default(RRR!R"R
R#R$RR
R%R'R&RRR†tfingerprintRt
public_keyRttype(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR„øst
ResourceClasscBs\eZdZdZejdddƒfZeede	de
ƒZeedƒde
ƒZ
RS(s?Represents the type of resource for an inventory or allocation.tresource_classesRtuniq_resource_classes0nameRR iÿ(RRR!R"R
R#R$RR
R%R'R&RR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRs
tResourceProviderc	BsþeZdZdZeddƒejdddƒeddƒeddƒed	d
ƒejdddƒfZee	de
d
eƒZee
dƒd
eƒZeedƒd
e
ƒZee	ddƒZee	edƒd
e
ƒZee	edƒd
e
ƒZRS(s1Represents a mapping to a providers of resources.tresource_providerstresource_providers_uuid_idxR1Rtuniq_resource_providers0uuidtresource_providers_name_idxt'resource_providers_root_provider_id_idxtroot_provider_idt)resource_providers_parent_provider_id_idxtparent_provider_idtuniq_resource_providers0nameRR i$iÈRdisresource_providers.id(RRR!R"R	R
R#R$RR
R%R'R&RR1RRt
generationRR˜Rš(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR’s(	t	InventorycBseZdZdZeddƒeddƒedddƒejddddƒfZee	d	e
d
eƒZee	d
eƒZ
ee	d
eƒZee	d
eƒZee	d
eƒZee	d
eƒZee	d
eƒZee	d
eƒZeed
eƒZejddd
de
ƒZRS(s,Represents a quantity of available resource.tinventoriest$inventories_resource_provider_id_idxtresource_provider_idt!inventories_resource_class_id_idxtresource_class_idt0inventories_resource_provider_resource_class_idxRt1uniq_inventories0resource_provider_resource_classRR R’R3s5Inventory.resource_provider_id == ResourceProvider.idRJ(RRR!R"R	R
R#R$RR
R%R'R&R R¢ttotaltreservedtmin_unittmax_unitt	step_sizeRtallocation_ratioRRAtresource_provider(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR4s.	t
AllocationcBsÅeZdZdZeddddƒeddƒeddƒfZeed	ed
e	ƒZ
eed
e	ƒZeedƒd
e	ƒZ
eed
e	ƒZeed
e	ƒZejdd
ddeƒZRS(sA use of inventory.tallocationst,allocations_resource_provider_class_used_idxR R¢tusedt!allocations_resource_class_id_idxtallocations_consumer_id_idxtconsumer_idRR i$R’R3s6Allocation.resource_provider_id == ResourceProvider.idRJ(RRR!R"R	R$RR
R%R'R&R RR²R¢R¯RRAR«(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR¬Ss"tResourceProviderAggregatecBsVeZdZdZeddƒfZeedede	ƒZ
eedede	ƒZRS(s0Associate a resource provider with an aggregate.tresource_provider_aggregatest-resource_provider_aggregates_aggregate_id_idxRRR (RRR!R"R	R$RR
R%R'R R(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR³lstPlacementAggregatecBs\eZdZdZejdddƒfZeede	de	ƒZ
eedƒde	ƒZRS(	s!A grouping of resource providers.tplacement_aggregatesR1Rtuniq_placement_aggregates0uuidRRi$tindex(
RRR!R"R
R#R$RR
R%R&RR1(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR¶ys
tInstanceGroupMembercBskeZdZdZeddƒfZeedede	ƒZ
eedƒƒZeee
dƒde	ƒZRS(s-Represents the members for an instance group.tinstance_group_membert"instance_group_member_instance_idxRSRR iÿsinstance_groups.id(RRR!R"R	R$RR
R%R'R&RRSRtgroup_id(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRº„stInstanceGroupPolicycBskeZdZdZeddƒfZeedede	ƒZ
eedƒƒZeee
dƒde	ƒZRS(s1Represents the policy type for an instance group.tinstance_group_policyt instance_group_policy_policy_idxtpolicyRR iÿsinstance_groups.id(RRR!R"R	R$RR
R%R'R&RRÁRR½(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR¾st
InstanceGroupcBsÚeZdZdZejdddƒfZeede	de	ƒZ
eedƒƒZeedƒƒZ
eedƒd	eƒZeedƒƒZejed
dƒZejed
dƒZed
„ƒZed„ƒZRS(s~Represents an instance group.

    A group will maintain a collection of instances and the relationship
    between them.
    tinstance_groupsR1Rtuniq_instance_groups0uuidRRiÿi$R R3s0InstanceGroup.id == InstanceGroupPolicy.group_ids0InstanceGroup.id == InstanceGroupMember.group_idcCsg|jD]}|j^q
S(N(t	_policiesRÁ(R9tp((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pytpolicies²scCsg|jD]}|j^q
S(N(t_membersRS(R9R>((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pytmembers¶s(RRR!R"R
R#R$RR
R%R&RR†RQR'R1RRRAR¾RÅRºRÈRBRÇRÉ(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRœs		tQuotacBsweZdZdZejddddƒfZeede	ƒZ
eedƒƒZeedƒde
ƒZeeƒZRS(	sjRepresents a single quota override for a project.

    If there is no row for a given project id and resource, then the
    default for the quota class is used.  If there is no row for a
    given quota class and resource, then the default for the
    deployment is used. If the row is present but the hard limit is
    Null, then the resource is unlimited.
    tquotasRQtresourceRtuniq_quotas0project_id0resourceRiÿR (RRR!R"R
R#R$RR
R%R&RRQR'RÌt
hard_limit(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRÊ»stProjectUserQuotacBs¼eZdZdZdZejddddeƒeddƒeddƒfZe	e
d	ed
eƒZ
e	edƒd
eƒZe	edƒd
eƒZe	edƒd
eƒZe	e
ƒZRS(s@Represents a single quota override for a user with in a project.tproject_user_quotast4uniq_project_user_quotas0user_id0project_id0resourceR†RQRÌRt"project_user_quotas_project_id_idxtproject_user_quotas_user_id_idxRR iÿ(RRR!R"t	uniq_nameR
R#R	R$RR
R%R'R&RRQR†RÌRÎ(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRÏÓst
QuotaClasscBsheZdZdZeddƒfZeedeƒZ	ee
dƒƒZee
dƒƒZeeƒZ
RS(sRepresents a single quota override for a quota class.

    If there is no row for a given quota class and resource, then the
    default for the deployment is used.  If the row is present but the
    hard limit is Null, then the resource is unlimited.
    t
quota_classestquota_classes_class_name_idxt
class_nameRiÿ(RRR!R"R	R$RR
R%R&RRØRÌRÎ(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRÕést
QuotaUsagecBs¿eZdZdZeddƒeddƒfZeedeƒZ	ee
dƒƒZee
dƒƒZee
dƒde
ƒZeede
ƒZeede
ƒZed	„ƒZeeƒZRS(
s2Represents the current usage for a given resource.tquota_usagestquota_usages_project_id_idxRQtquota_usages_user_id_idxR†RiÿR cCs|j|jS(N(tin_useR¦(R9((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyR¥s(RRR!R"R	R$RR
R%R&RRQR†R'RÌRÝR¦RBR¥t
until_refresh(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRÙýstReservationcBseZdZdZeddƒeddƒeddƒedd	ƒfZeed
ede	ƒZ
eedƒde	ƒZeee
d
ƒde	ƒZeedƒƒZeedƒƒZeedƒƒZeede	ƒZeeƒZejddeddƒZRS(s-Represents a resource reservation for quotas.treservationstreservations_project_id_idxRQtreservations_uuid_idxR1treservations_expire_idxtexpiretreservations_user_id_idxR†RR i$squota_usages.idiÿRÙRJR3s%Reservation.usage_id == QuotaUsage.id(RRR!R"R	R$RR
R%R'R&RR1Rtusage_idRQR†RÌtdeltaRRäRRAtusage(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRßs$tTraitcBsbeZdZdZejdddƒfZeede	de
de	ƒZeedƒde
ƒZ
RS(sRepresents a trait.ttraitsRtuniq_traits0nameRR Riÿ(RRR!R"R
R#R$RR
R%R'R&RR(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRé1s
tResourceProviderTraitcBskeZdZdZedddƒfZeeedƒde	de
ƒZeeedƒde	de
ƒZRS(	s@Represents the relationship between traits and resource providertresource_provider_traitst4resource_provider_traits_resource_provider_trait_idxR ttrait_ids	traits.idRR sresource_providers.id(
RRR!R"R	R$RR
RR%R'RïR (((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRì=s	tProjectcBsbeZdZdZejdddƒfZeede	de
de	ƒZeedƒde
ƒZ
RS(	s$The project is the Keystone project.R{texternal_idRtuniq_projects0external_idRR Riÿ(RRR!R"R
R#R$RR
R%R'R&RRñ(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRðNstUsercBsbeZdZdZejdddƒfZeede	de
de	ƒZeedƒde
ƒZ
RS(	sThe user is the Keystone user.tusersRñRtuniq_users0external_idRR Riÿ(RRR!R"R
R#R$RR
R%R'R&RRñ(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRó]stConsumercBs§eZdZdZedddƒeddddƒejdddƒfZee	d	e
d
ede
ƒZee
dƒd
eƒZee	d
eƒZee	d
eƒZRS(
sRepresents a resource consumer.t	consumerstconsumers_project_id_uuid_idxRQR1t%consumers_project_id_user_id_uuid_idxR†Rtuniq_consumers0uuidRR Ri$(RRR!R"R	R
R#R$RR
R%R'R&RR1RQR†(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyRölsN(:toslo_db.sqlalchemyRt
sqlalchemyRRRtsqlalchemy.dialects.mysqlRRtsqlalchemy.ext.declarativeRRRR	R
Rtsqlalchemy.ormRR
RRRRt	ModelBasetTimestampMixinRtAPI_BASERR(R.RCRNRGRZR_RoRxR|R„RR’RR¬R³R¶RºR¾RÂRÊRÏRÕRÙRßRéRìRðRóRö(((sB/usr/lib/python2.7/dist-packages/dmapi/db/sqlalchemy/api_models.pyt<module>sd	
$