https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/boto/ec2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/boto/ec2/__pycache__/spotinstancerequest.cpython-310.pyc
o

ckF[x�@sPdZddlmZddlmZGdd�de�ZGdd�de�ZGdd	�d	e�Zd
S)z)
Represents an EC2 Spot Instance Request
�)�TaggedEC2Object)�LaunchSpecificationc@�2eZdZdZddd�Zdd�Zdd�Zd	d
�ZdS)�SpotInstanceStateFaultz�
    The fault codes for the Spot Instance request, if any.

    :ivar code: The reason code for the Spot Instance state change.
    :ivar message: The message for the Spot Instance state change.
    NcCs||_||_dS�N��code�message)�selfrr	�r�>/usr/lib/python3/dist-packages/boto/ec2/spotinstancerequest.py�__init__'s
zSpotInstanceStateFault.__init__cCsd|j|jfS)Nz(%s, %s)r�r
rrr�__repr__+szSpotInstanceStateFault.__repr__cC�dSrr�r
�name�attrs�
connectionrrr�startElement.�z#SpotInstanceStateFault.startElementcCs.|dkr||_n|dkr||_t|||�dS)Nrr	)rr	�setattr�r
r�valuerrrr�
endElement1s
z!SpotInstanceStateFault.endElement)NN��__name__�
__module__�__qualname__�__doc__r
rrrrrrrrs
rc@r)�SpotInstanceStatusz�
    Contains the status of a Spot Instance Request.

    :ivar code: Status code of the request.
    :ivar message: The description for the status code for the Spot request.
    :ivar update_time: Time the status was stated.
    NcCs||_||_||_dSr)r�update_timer	)r
rr!r	rrrr
Bs
zSpotInstanceStatus.__init__cC�
d|jS)Nz<Status: %s>)rrrrrrG�
zSpotInstanceStatus.__repr__cCrrrrrrrrJrzSpotInstanceStatus.startElementcCs:|dkr	||_dS|dkr||_dS|dkr||_dSdS)Nrr	�
updateTime)rr	r!rrrrrMs


�zSpotInstanceStatus.endElement)NNNrrrrrr 9s
r csHeZdZdZd�fdd�	Zdd�Z�fdd�Zd	d
�Zddd
�Z�Z	S)�SpotInstanceRequesta

    :ivar id: The ID of the Spot Instance Request.
    :ivar price: The maximum hourly price for any Spot Instance launched to
        fulfill the request.
    :ivar type: The Spot Instance request type.
    :ivar state: The state of the Spot Instance request.
    :ivar fault: The fault codes for the Spot Instance request, if any.
    :ivar valid_from: The start date of the request. If this is a one-time
        request, the request becomes active at this date and time and remains
        active until all instances launch, the request expires, or the request is
        canceled. If the request is persistent, the request becomes active at this
        date and time and remains active until it expires or is canceled.
    :ivar valid_until: The end date of the request. If this is a one-time
        request, the request remains active until all instances launch, the request
        is canceled, or this date is reached. If the request is persistent, it
        remains active until it is canceled or this date is reached.
    :ivar launch_group: The instance launch group. Launch groups are Spot
        Instances that launch together and terminate together.
    :ivar launched_availability_zone: foo
    :ivar product_description: The Availability Zone in which the bid is
        launched.
    :ivar availability_zone_group: The Availability Zone group. If you specify
        the same Availability Zone group for all Spot Instance requests, all Spot
        Instances are launched in the same Availability Zone.
    :ivar create_time: The time stamp when the Spot Instance request was
        created.
    :ivar launch_specification: Additional information for launching instances.
    :ivar instance_id: The instance ID, if an instance has been launched to
        fulfill the Spot Instance request.
    :ivar status: The status code and status message describing the Spot
        Instance request.

    Ncsntt|��|�d|_d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_dSr)�superr%r
�id�price�type�state�fault�
valid_from�valid_until�launch_group�launched_availability_zone�product_description�availability_zone_group�create_time�launch_specification�instance_id�status)r
r��	__class__rrr
zs 
zSpotInstanceRequest.__init__cCr")NzSpotInstanceRequest:%s)r'rrrrr�r#zSpotInstanceRequest.__repr__cshtt|��|||�}|dur|S|dkrt|�|_|jS|dkr't�|_|jS|dkr2t�|_|jSdS)N�launchSpecificationr+r5)	r&r%rrr3rr+r r5)r
rrr�retvalr6rrr�s�
z SpotInstanceRequest.startElementcCs�|dkr	||_dS|dkrt|�|_dS|dkr||_dS|dkr&||_dS|dkr/||_dS|dkr8||_dS|dkrA||_dS|dkrJ||_dS|d	krS||_	dS|d
kr\||_
dS|dkre||_dS|dkrn||_dSt
|||�dS)
N�spotInstanceRequestId�	spotPricer)r*�	validFrom�
validUntil�launchGroup�availabilityZoneGroup�launchedAvailabilityZone�
instanceId�
createTime�productDescription)r'�floatr(r)r*r,r-r.r1r/r4r2r0rrrrrr�s2










zSpotInstanceRequest.endElementFcCs|jj|jg|d�dS)N)�dry_run)r�cancel_spot_instance_requestsr')r
rErrr�cancel�s
�zSpotInstanceRequest.cancelr)F)
rrrrr
rrrrG�
__classcell__rrr6rr%Vs#r%N)	r�boto.ec2.ec2objectr�boto.ec2.launchspecificationr�objectrr r%rrrr�<module>s

https://t.me/RX1948 - 2025