o ckF[1=@sdZddlmZddlmZGdddeZGdddeZGdd d eZGd d d eZ Gd d d eZ GdddeZ dS)z Represents an OptionGroup )DBSecurityGroup) ResultSetc@s@eZdZdZ   dddZddZdd Zd d Zd d ZdS) OptionGroupa 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 NFcCs.||_||_||_||_||_||_g|_dSN)name engine_namemajor_engine_version descriptionallow_both_vpc_and_nonvpcvpc_idoptions)self connectionrrrr r r r6/usr/lib/python3/dist-packages/boto/rds/optiongroup.py__init__:s zOptionGroup.__init__cC d|jS)NzOptionGroup:%srr rrr__repr__E zOptionGroup.__repr__cCs |dkrtdtfg|_dSdS)NOptions)rOptionr r rattrsrrrr startElementHs  zOptionGroup.startElementcCs|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr8|dkr3d|_dSd|_dS|d krA||_dSt|||dS) NOptionGroupName EngineNameMajorEngineVersionOptionGroupDescription%AllowsVpcAndNonVpcInstanceMembershipstrueTFVpcId)rrrr lowerr r setattrr rvaluerrrr endElementPs        zOptionGroup.endElementcCs|j|jSr)rdelete_option_grouprrrrrdeletecszOptionGroup.delete)NNNNNFN) __name__ __module__ __qualname____doc__rrrr'r)rrrrrs   rc@s8eZdZdZ   d ddZddZdd Zd d ZdS) ra 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. NFc Csh||_||_||_||_||_||_||_||_|jdur g|_|jdur(g|_|jdur2g|_dSdSr)rr permanent persistentportsettingsdb_security_groupsvpc_security_groups) r rr r.r/r0r1r2r3rrrrws    zOption.__init__cCr)Nz Option:%srrrrrrrzOption.__repr__cCsX|dkrtdtfg|_dS|dkrtdtfg|_dS|dkr*tdtfg|_dSdS)NOptionSettingsDBSecurityGroupMembershipsVpcSecurityGroupMemberships)r OptionSettingr1rr2VpcSecurityGroupr3rrrrrs   zOption.startElementcCs|dkr ||_dS|dkr||_dS|dkr&|dkr!d|_dSd|_dS|dkr:|dkr5d|_dSd|_dS|dkrEt||_dSt|||dS) N OptionNameOptionDescription Permanentr!TF PersistentPort)rr r# permenantr/intr0r$r%rrrr's        zOption.endElement)NNFFNNNNr*r+r,r-rrrr'rrrrrgs  rc@s8eZdZdZ   d ddZddZdd Zd d ZdS) r7a 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. NFc Cs:||_||_||_||_||_||_||_||_| |_dSr) rr r& default_valueallowed_values data_type apply_type is_modifiable is_collection) r rr r&rArBrCrDrErFrrrrs zOptionSetting.__init__cCr)NzOptionSetting:%srrrrrrrzOptionSetting.__repr__cCdSrrrrrrrzOptionSetting.startElementcCs|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dS|dkr?||_dS|dkrS|d krNd |_dSd |_dS|d krg|d krbd |_ dSd |_ dSt |||dS) NName DescriptionValue DefaultValue AllowedValuesDataType ApplyType IsModifiabler!TF IsCollection) rr r&rArBrCrDr#rErFr$r%rrrr's.             zOptionSetting.endElement) NNNFNNNFFr@rrrrr7s   r7c@s2eZdZdZd ddZddZddZd d ZdS) r8zA Describes a VPC security group for use in a OptionGroup NcCs||_||_dSr)r status)r r rRrrrrs zVpcSecurityGroup.__init__cCr)NzVpcSecurityGroup:%s)r rrrrrrzVpcSecurityGroup.__repr__cCrGrrrrrrrrHzVpcSecurityGroup.startElementcCs4|dkr ||_dS|dkr||_dSt|||dS)NVpcSecurityGroupIdStatus)r rRr$r%rrrr's   zVpcSecurityGroup.endElement)NNr@rrrrr8s   r8c@s:eZdZdZ    d ddZddZdd Zd d ZdS) OptionGroupOptiona 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. NFc Csj||_||_||_||_||_||_||_||_| |_| |_ | |_ |j dur)g|_ |j dur3g|_ dSdSr) rr rrmin_minor_engine_versionr.r/ port_required default_portr1 depends_on) r rr rrrVr.r/rWrXr1rYrrrr s    zOptionGroupOption.__init__cCr)NzOptionGroupOption:%srrrrrr6rzOptionGroupOption.__repr__cCs2|dkrtdtfg|_dS|dkrg|_dSdS)NOptionGroupOptionSettingsOptionsDependedOn)rOptionGroupOptionSettingr1rYrrrrr9s  zOptionGroupOption.startElementcCs|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkrA|dkrr/rWr?rXr$r%rrrr'Cs2              zOptionGroupOption.endElement) NNNNNFFFNNNr@rrrrrU s  rUc@s6eZdZdZ  d ddZddZdd Zd d ZdS) r\a  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. NFcCs(||_||_||_||_||_||_dSr)rr rArBrDrE)r rr rArBrDrErrrrts  z!OptionGroupOptionSetting.__init__cCr)NzOptionGroupOptionSetting:%srrrrrr}rz!OptionGroupOptionSetting.__repr__cCrGrrrrrrrrHz%OptionGroupOptionSetting.startElementcCs|dkr ||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkrA|dkrs  HMAW