o ckF[¹ã@spddlmZGdd„deƒZGdd„deƒZGdd„deƒZGdd „d eƒZGd d „d eƒZGd d „d eƒZdS)é)Újsonc@sHeZdZdZ  ddd„Zdd„Zdd„Zdd d „Zd d „Zd d„Z dS)Ú OptionStatusa8 Presents a combination of status field (defined below) which are accessed as attributes and option values which are stored in the native Python dictionary. In this class, the option values are merged from a JSON object that is stored as the Option part of the object. :ivar domain_name: The name of the domain this option is associated with. :ivar create_date: A timestamp for when this option was created. :ivar state: The state of processing a change to an option. Possible values: * RequiresIndexDocuments: the option's latest value will not be visible in searches until IndexDocuments has been called and indexing is complete. * Processing: the option's latest value is not yet visible in all searches but is in the process of being activated. * Active: the option's latest value is completely visible. :ivar update_date: A timestamp for when this option was updated. :ivar update_version: A unique integer that indicates when this option was last updated. NcCs&||_||_||_||_| |¡dS©N)ÚdomainÚ refresh_fnÚ refresh_keyÚsave_fnÚrefresh)ÚselfrÚdatarrr©r ú@/usr/lib/python3/dist-packages/boto/cloudsearch2/optionstatus.pyÚ__init__5s zOptionStatus.__init__cCs0|d|_|d|_|d|_t|dƒ|_dS)NÚ CreationDateÚStateÚ UpdateDateÚ UpdateVersion)Ú creation_dateÚstatusÚ update_dateÚintÚupdate_version)r rr r r Ú_update_status=s   zOptionStatus._update_statuscCs|r | |¡dSdSr)Úupdate)r Úoptionsr r r Ú_update_optionsCsÿzOptionStatus._update_optionscCs^|s|jr| |jj¡}|r|jr|jD]}||}q|r-| |d¡| |d¡dSdS)zÞ Refresh the local state of the object. You can either pass new state data in as the parameter ``data`` or, if that parameter is omitted, the state data will be retrieved from CloudSearch. ÚStatusÚOptionsN)rrÚnamerrr)r r Úkeyr r r r Gs   þzOptionStatus.refreshcCs t |¡S)zL Return the JSON representation of the options as a string. )rÚdumps©r r r r Úto_jsonYs zOptionStatus.to_jsoncCs,|jr| |jj| ¡¡}| |¡dSdS)zf Write the current state of the local object back to the CloudSearch service. N)rrrr"r )r r r r r Úsave_sþzOptionStatus.save)NNNNr) Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrr r"r#r r r r rs ÿ  rc@óeZdZdd„ZdS)ÚIndexFieldStatuscCódSrr r!r r r r#józIndexFieldStatus.saveN©r$r%r&r#r r r r r)ió r)c@r()ÚAvailabilityOptionsStatuscCr*rr r!r r r r#or+zAvailabilityOptionsStatus.saveNr,r r r r r.nr-r.c@ó eZdZdS)ÚScalingParametersStatusN©r$r%r&r r r r r0sór0c@r/)ÚExpressionStatusNr1r r r r r3wr2r3c@sDeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dS)ÚServicePoliciesStatuscCsdd|dd|giidœS)aì Returns a new policy statement that will allow access to the service described by ``arn`` by the ip specified in ``ip``. :type arn: string :param arn: The Amazon Resource Notation identifier for the service you wish to provide access to. This would be either the search service or the document service. :type ip: string :param ip: An IP address or CIDR block you wish to grant access to. ÚAllowÚ*Ú IpAddressú aws:SourceIp)ÚEffectÚActionÚResourceÚ Conditionr )r ÚarnÚipr r r Ú new_statement}sÿÿüz#ServicePoliciesStatus.new_statementcCs²d|vr| ||¡}|g|d<| ¡dSd}|dD](}|d|krC|dD]}|dkrBd}|d|}||dvrB|d |¡q'q|rS| ||¡}|d |¡| ¡dS)NÚ StatementTr;r<r7Fr8)r?r#Úappend)r r=r>ÚsÚ add_statementÚ statementÚcondition_nameÚ conditionr r r Ú _allow_ip—s$        €  zServicePoliciesStatus._allow_ipcCó|jj}| ||¡dS)zî Add the provided ip address or CIDR block to the list of allowable address for the search service. :type ip: string :param ip: An IP address or CIDR block you wish to grant access to. N©rÚ service_arnrG©r r>r=r r r Úallow_search_ip¬ó z%ServicePoliciesStatus.allow_search_ipcCrH)zð Add the provided ip address or CIDR block to the list of allowable address for the document service. :type ip: string :param ip: An IP address or CIDR block you wish to grant access to. NrIrKr r r Ú allow_doc_ip¸rMz"ServicePoliciesStatus.allow_doc_ipcCs~d|vrdSd}|dD](}|d|kr4|dD]}|dkr3|d|}||dvr3|d |¡d}qq |r=| ¡dSdS)Nr@Fr;r<r7r8T)Úremover#)r r=r>Ú need_updaterDrErFr r r Ú _disallow_ipÄs     € ÿz"ServicePoliciesStatus._disallow_ipcCrH)zó Remove the provided ip address or CIDR block from the list of allowable address for the search service. :type ip: string :param ip: An IP address or CIDR block you wish to grant access to. N©rrJrQrKr r r Údisallow_search_ipÓrMz(ServicePoliciesStatus.disallow_search_ipcCrH)zõ Remove the provided ip address or CIDR block from the list of allowable address for the document service. :type ip: string :param ip: An IP address or CIDR block you wish to grant access to. NrRrKr r r Údisallow_doc_ipßrMz%ServicePoliciesStatus.disallow_doc_ipN) r$r%r&r?rGrLrNrQrSrTr r r r r4{s   r4N) Ú boto.compatrÚdictrr)r.r0r3r4r r r r Ús M