HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //home/arjun/projects/env/lib/python3.10/site-packages/boto/ec2/__pycache__/address.cpython-310.pyc
o

we��@s ddlmZGdd�de�ZdS)�)�	EC2ObjectcsTeZdZdZd�fdd�	Zdd�Zdd�Zdd
d�ZeZddd
�Z	ddd�Z
�ZS)�Addressa�
    Represents an EC2 Elastic IP Address

    :ivar public_ip: The Elastic IP address.
    :ivar instance_id: The instance the address is associated with (if any).
    :ivar domain: Indicates whether the address is a EC2 address or a VPC address (standard|vpc).
    :ivar allocation_id: The allocation ID for the address (VPC addresses only).
    :ivar association_id: The association ID for the address (VPC addresses only).
    :ivar network_interface_id: The network interface (if any) that the address is associated with (VPC addresses only).
    :ivar network_interface_owner_id: The owner IID (VPC addresses only).
    :ivar private_ip_address: The private IP address associated with the Elastic IP address (VPC addresses only).
    NcsJtt|��|�||_||_||_d|_d|_d|_d|_	d|_
d|_dS)N)�superr�__init__�
connection�	public_ip�instance_id�domain�
allocation_id�association_id�network_interface_id�network_interface_owner_id�private_ip_address)�selfrrr��	__class__��I/home/arjun/projects/env/lib/python3.10/site-packages/boto/ec2/address.pyr(s
zAddress.__init__cCs
d|jS)Nz
Address:%s)r)rrrr�__repr__4s
zAddress.__repr__cCs�|dkr	||_dS|dkr||_dS|dkr||_dS|dkr$||_dS|dkr-||_dS|dkr6||_dS|dkr?||_dS|dkrH||_dSt|||�dS)	N�publicIp�
instanceIdr	�allocationId�
associationId�networkInterfaceId�networkInterfaceOwnerId�privateIpAddress)	rrr	r
rrr
r�setattr)r�name�valuerrrr�
endElement7s"







zAddress.endElementFcC�*|jr|jj|j|d�S|jj|j|d�S)zz
        Free up this Elastic IP address.
        :see: :meth:`boto.ec2.connection.EC2Connection.release_address`
        )r
�dry_run�rr!)r
r�release_addressr�rr!rrr�releaseKs��zAddress.releasec	Cs>|jr|jj||j|j||||d�S|jj||j||||d�S)z�
        Associate this Elastic IP address with a currently running instance.
        :see: :meth:`boto.ec2.connection.EC2Connection.associate_address`
        )rrr
rr�allow_reassociationr!)rrrrr&r!)r
r�associate_addressr)rrrrr&r!rrr�	associate\s$�	�zAddress.associatecCr )z�
        Disassociate this Elastic IP address from a currently running instance.
        :see: :meth:`boto.ec2.connection.EC2Connection.disassociate_address`
        )rr!r")rr�disassociate_addressrr$rrr�disassociatets��zAddress.disassociate)NNN)F)NNNFF)�__name__�
__module__�__qualname__�__doc__rrrr%�deleter(r*�
__classcell__rrrrrs


rN)�boto.ec2.ec2objectrrrrrr�<module>s