ó FRTc@s®dZddlmZddlmZdefd„ƒYZdefd„ƒYZdefd „ƒYZd efd „ƒYZ d efd „ƒYZ defd„ƒYZ dS(s Represents an OptionGroup iÿÿÿÿ(tDBSecurityGroup(t ResultSett OptionGroupcBsPeZdZdddddedd„Zd„Zd„Zd„Zd„Z RS(sÜ Represents an RDS option group Properties reference available from the AWS documentation at http://docs.aws.amazon.com/AmazonRDS/latest/APIReference/API_OptionGroup.html :ivar connection: :py:class:`boto.rds.RDSConnection` associated with the current object :ivar name: Name of the option group :ivar description: The description of the option group :ivar engine_name: The name of the database engine to use :ivar major_engine_version: The major version number of the engine to use :ivar allow_both_vpc_and_nonvpc: Indicates whether this option group can be applied to both VPC and non-VPC instances. The value ``True`` indicates the option group can be applied to both VPC and non-VPC instances. :ivar vpc_id: If AllowsVpcAndNonVpcInstanceMemberships is 'false', this field is blank. If AllowsVpcAndNonVpcInstanceMemberships is ``True`` and this field is blank, then this option group can be applied to both VPC and non-VPC instances. If this field contains a value, then this option group can only be applied to instances that are in the VPC indicated by this field. :ivar options: The list of :py:class:`boto.rds.optiongroup.Option` objects associated with the group cCsC||_||_||_||_||_||_g|_dS(N(tnamet engine_nametmajor_engine_versiont descriptiontallow_both_vpc_and_nonvpctvpc_idtoptions(tselft connectionRRRRRR((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyt__init__:s      cCs d|jS(NsOptionGroup:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyt__repr__EscCs/|dkr'tdtfgƒ|_ndSdS(NtOptions(RtOptionR tNone(R RtattrsR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyt startElementHs cCsÂ|dkr||_n¦|dkr0||_nŽ|dkrH||_nv|dkr`||_n^|dkr–|jƒdkrŠt|_q¾t|_n(|dkr®||_nt |||ƒdS(NtOptionGroupNamet EngineNametMajorEngineVersiontOptionGroupDescriptiont%AllowsVpcAndNonVpcInstanceMembershipsttruetVpcId( RRRRtlowertTrueRtFalseRtsetattr(R RtvalueR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyt endElementPs             cCs|jj|jƒS(N(R tdelete_option_groupR(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pytdeletecsN( t__name__t __module__t__doc__RRR R RRR!(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRs    Rc BsJeZdZddeeddddd„Zd„Zd„Zd„ZRS(sè Describes a Option for use in an OptionGroup :ivar name: The name of the option :ivar description: The description of the option. :ivar permanent: Indicate if this option is permanent. :ivar persistent: Indicate if this option is persistent. :ivar port: If required, the port configured for this option to use. :ivar settings: The option settings for this option. :ivar db_security_groups: If the option requires access to a port, then this DB Security Group allows access to the port. :ivar vpc_security_groups: If the option requires access to a port, then this VPC Security Group allows access to the port. c Cs||_||_||_||_||_||_||_||_|jdkrcg|_n|jdkr~g|_n|jdkr™g|_ndS(N( RRt permanentt persistenttporttsettingstdb_security_groupstvpc_security_groupsR( R RRR%R&R'R(R)R*((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ws          cCs d|jS(Ns Option:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ŒscCs}|dkr'tdtfgƒ|_nR|dkrNtdtfgƒ|_n+|dkrutdtfgƒ|_ndSdS(NtOptionSettingstDBSecurityGroupMembershipstVpcSecurityGroupMemberships(Rt OptionSettingR(RR)tVpcSecurityGroupR*R(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRs   cCsÎ|dkr||_n²|dkr0||_nš|dkrf|jƒdkrZt|_qÊt|_nd|dkrœ|jƒdkrt|_qÊt|_n.|dkrºt|ƒ|_nt |||ƒdS(Nt OptionNametOptionDescriptiont PermanentRt PersistenttPort( RRRRt permenantRR&tintR'R(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRŸs           N( R"R#R$RRR R RR(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRgs    R.c BsMeZdZdddedddeed„ Zd„Zd„Zd„ZRS(sö Describes a OptionSetting for use in an Option :ivar name: The name of the option that has settings that you can set. :ivar description: The description of the option setting. :ivar value: The current value of the option setting. :ivar default_value: The default value of the option setting. :ivar allowed_values: The allowed values of the option setting. :ivar data_type: The data type of the option setting. :ivar apply_type: The DB engine specific parameter type. :ivar is_modifiable: A Boolean value that, when true, indicates the option setting can be modified from the default. :ivar is_collection: Indicates if the option setting is part of a collection. c CsU||_||_||_||_||_||_||_||_| |_dS(N( RRRt default_valuetallowed_valuest data_typet apply_typet is_modifiablet is_collection( R RRRR7R8R9R:R;R<((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR Ås        cCs d|jS(NsOptionSetting:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ÒscCsdS(N(R(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRÕscCs(|dkr||_n |dkr0||_nô|dkrH||_nÜ|dkr`||_nÄ|dkrx||_n¬|dkr||_n”|dkr¨||_n||dkrÞ|jƒd krÒt|_ q$t |_ nF|d kr|jƒd krt|_ q$t |_ nt |||ƒdS( NtNamet DescriptiontValuet DefaultValuet AllowedValuestDataTypet ApplyTypet IsModifiableRt IsCollection( RRRR7R8R9R:RRR;RR<R(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRØs.                    N( R"R#R$RRR R RR(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR.´s    R/cBs8eZdZddd„Zd„Zd„Zd„ZRS(sA Describes a VPC security group for use in a OptionGroup cCs||_||_dS(N(Rtstatus(R RRF((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ùs cCs d|jS(NsVpcSecurityGroup:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ýscCsdS(N((R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRscCsD|dkr||_n(|dkr0||_nt|||ƒdS(NtVpcSecurityGroupIdtStatus(RRFR(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRs     N(R"R#R$RR R RR(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR/õs   tOptionGroupOptionc BsSeZdZdddddeeedddd„ Zd„Zd„Zd„ZRS(sÏ Describes a OptionGroupOption for use in an OptionGroup :ivar name: The name of the option :ivar description: The description of the option. :ivar engine_name: Engine name that this option can be applied to. :ivar major_engine_version: Indicates the major engine version that the option is available for. :ivar min_minor_engine_version: The minimum required engine version for the option to be applied. :ivar permanent: Indicate if this option is permanent. :ivar persistent: Indicate if this option is persistent. :ivar port_required: Specifies whether the option requires a port. :ivar default_port: If the option requires a port, specifies the default port for the option. :ivar settings: The option settings for this option. :ivar depends_on: List of all options that are prerequisites for this option. c Cs||_||_||_||_||_||_||_||_| |_| |_ | |_ |j dkr~g|_ n|j dkr™g|_ ndS(N( RRRRtmin_minor_engine_versionR%R&t port_requiredt default_portR(t depends_onR( R RRRRRJR%R&RKRLR(RM((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR s            cCs d|jS(NsOptionGroupOption:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR 6scCsG|dkr'tdtfgƒ|_n|dkr?g|_ndSdS(NtOptionGroupOptionSettingstOptionsDependedOn(RtOptionGroupOptionSettingR(RMR(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR9s    cCsL|dkr||_n0|dkr0||_n|dkrH||_n|dkr`||_nè|dkrx||_nÐ|dkr®|jƒdkr¢t|_qHt|_nš|dkrä|jƒdkrØt|_ qHt|_ nd|d kr|jƒdkrt|_ qHt|_ n.|d kr8t |ƒ|_ nt |||ƒdS( NR=R>RRt!MinimumRequiredMinorEngineVersionR2RR3t PortRequiredt DefaultPort(RRRRRJRRR5RR&RKR6RLR(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRCs2                    N( R"R#R$RRR R RR(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRI s    RPcBsDeZdZddedded„Zd„Zd„Zd„ZRS(s  Describes a OptionGroupOptionSetting for use in an OptionGroupOption. :ivar name: The name of the option that has settings that you can set. :ivar description: The description of the option setting. :ivar value: The current value of the option setting. :ivar default_value: The default value of the option setting. :ivar allowed_values: The allowed values of the option setting. :ivar data_type: The data type of the option setting. :ivar apply_type: The DB engine specific parameter type. :ivar is_modifiable: A Boolean value that, when true, indicates the option setting can be modified from the default. :ivar is_collection: Indicates if the option setting is part of a collection. cCs:||_||_||_||_||_||_dS(N(RRR7R8R:R;(R RRR7R8R:R;((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR ts      cCs d|jS(NsOptionGroupOptionSetting:%s(R(R ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR }scCsdS(N(R(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyR€scCsÂ|dkr||_n¦|dkr0||_nŽ|dkrH||_nv|dkr`||_n^|dkrx||_nF|dkr®|jƒdkr¢t|_q¾t|_nt |||ƒdS(Nt SettingNametSettingDescriptionR@RARCRDR( RRR7R8R:RRR;RR(R RRR ((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRƒs             N( R"R#R$RRR R RR(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pyRPcs    N( R$tboto.rds.dbsecuritygroupRtboto.resultsetRtobjectRRR.R/RIRP(((sA/opt/freeware/lib/python2.7/site-packages/boto/rds/optiongroup.pytsHMAW