o
    ëÉ¶d_  ã                   @   s8   d dl mZmZmZ d dlmZ eG dd„ deƒƒZdS )é    )Úformatted_flat_dictÚNONE_SENTINELÚ#value_allowed_none_or_none_sentinel)Úinit_model_state_from_kwargsc                   @   s   e Zd ZdZdd„ Zedd„ ƒZejdd„ ƒZedd„ ƒZejd	d„ ƒZed
d„ ƒZ	e	jdd„ ƒZ	edd„ ƒZ
e
jdd„ ƒZ
edd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZedd„ ƒZejdd„ ƒZdd„ Zdd„ Zd d!„ Zd"S )#Ú
Commitmentz/
    Subscribed Service commitment summary
    c              	   K   sd   dddddddddœ| _ dddddd	d
ddœ| _d| _d| _d| _d| _d| _d| _d| _d| _	dS )aQ  
        Initializes a new Commitment object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param id:
            The value to assign to the id property of this Commitment.
        :type id: str

        :param subscribed_service_id:
            The value to assign to the subscribed_service_id property of this Commitment.
        :type subscribed_service_id: str

        :param time_start:
            The value to assign to the time_start property of this Commitment.
        :type time_start: datetime

        :param time_end:
            The value to assign to the time_end property of this Commitment.
        :type time_end: datetime

        :param quantity:
            The value to assign to the quantity property of this Commitment.
        :type quantity: str

        :param used_amount:
            The value to assign to the used_amount property of this Commitment.
        :type used_amount: str

        :param available_amount:
            The value to assign to the available_amount property of this Commitment.
        :type available_amount: str

        :param funded_allocation_value:
            The value to assign to the funded_allocation_value property of this Commitment.
        :type funded_allocation_value: str

        ÚstrÚdatetime)ÚidÚsubscribed_service_idÚ
time_startÚtime_endÚquantityÚused_amountÚavailable_amountÚfunded_allocation_valuer	   ZsubscribedServiceIdZ	timeStartZtimeEndr   Z
usedAmountZavailableAmountZfundedAllocationValueN)
Zswagger_typesZattribute_mapÚ_idÚ_subscribed_service_idÚ_time_startÚ	_time_endÚ	_quantityÚ_used_amountÚ_available_amountÚ_funded_allocation_value)ÚselfÚkwargs© r   úIusr/lib/python3.10/site-packages/oci/onesubscription/models/commitment.pyÚ__init__   s4   'øø
zCommitment.__init__c                 C   ó   | j S )z¥
        **[Required]** Gets the id of this Commitment.
        SPM internal Commitment ID


        :return: The id of this Commitment.
        :rtype: str
        ©r   ©r   r   r   r   r	   W   ó   
zCommitment.idc                 C   ó
   || _ dS )z—
        Sets the id of this Commitment.
        SPM internal Commitment ID


        :param id: The id of this Commitment.
        :type: str
        Nr   )r   r	   r   r   r   r	   c   ó   

c                 C   r   )zÄ
        Gets the subscribed_service_id of this Commitment.
        SPM internal Subscribed Service ID


        :return: The subscribed_service_id of this Commitment.
        :rtype: str
        ©r   r    r   r   r   r
   o   r!   z Commitment.subscribed_service_idc                 C   r"   )zØ
        Sets the subscribed_service_id of this Commitment.
        SPM internal Subscribed Service ID


        :param subscribed_service_id: The subscribed_service_id of this Commitment.
        :type: str
        Nr$   )r   r
   r   r   r   r
   {   r#   c                 C   r   )z¦
        Gets the time_start of this Commitment.
        Commitment start date


        :return: The time_start of this Commitment.
        :rtype: datetime
        ©r   r    r   r   r   r   ‡   r!   zCommitment.time_startc                 C   r"   )z¯
        Sets the time_start of this Commitment.
        Commitment start date


        :param time_start: The time_start of this Commitment.
        :type: datetime
        Nr%   )r   r   r   r   r   r   “   r#   c                 C   r   )z 
        Gets the time_end of this Commitment.
        Commitment end date


        :return: The time_end of this Commitment.
        :rtype: datetime
        ©r   r    r   r   r   r   Ÿ   r!   zCommitment.time_endc                 C   r"   )z§
        Sets the time_end of this Commitment.
        Commitment end date


        :param time_end: The time_end of this Commitment.
        :type: datetime
        Nr&   )r   r   r   r   r   r   «   r#   c                 C   r   )z›
        Gets the quantity of this Commitment.
        Commitment quantity


        :return: The quantity of this Commitment.
        :rtype: str
        ©r   r    r   r   r   r   ·   r!   zCommitment.quantityc                 C   r"   )z¢
        Sets the quantity of this Commitment.
        Commitment quantity


        :param quantity: The quantity of this Commitment.
        :type: str
        Nr'   )r   r   r   r   r   r   Ã   r#   c                 C   r   )z¤
        Gets the used_amount of this Commitment.
        Commitment used amount


        :return: The used_amount of this Commitment.
        :rtype: str
        ©r   r    r   r   r   r   Ï   r!   zCommitment.used_amountc                 C   r"   )z®
        Sets the used_amount of this Commitment.
        Commitment used amount


        :param used_amount: The used_amount of this Commitment.
        :type: str
        Nr(   )r   r   r   r   r   r   Û   r#   c                 C   r   )z³
        Gets the available_amount of this Commitment.
        Commitment available amount


        :return: The available_amount of this Commitment.
        :rtype: str
        ©r   r    r   r   r   r   ç   r!   zCommitment.available_amountc                 C   r"   )zÂ
        Sets the available_amount of this Commitment.
        Commitment available amount


        :param available_amount: The available_amount of this Commitment.
        :type: str
        Nr)   )r   r   r   r   r   r   ó   r#   c                 C   r   )zÜ
        Gets the funded_allocation_value of this Commitment.
        Funded Allocation line value
        example: 12000.00


        :return: The funded_allocation_value of this Commitment.
        :rtype: str
        ©r   r    r   r   r   r   ÿ   s   z"Commitment.funded_allocation_valuec                 C   r"   )zò
        Sets the funded_allocation_value of this Commitment.
        Funded Allocation line value
        example: 12000.00


        :param funded_allocation_value: The funded_allocation_value of this Commitment.
        :type: str
        Nr*   )r   r   r   r   r   r     s   
c                 C   s   t | ƒS ©N)r   r    r   r   r   Ú__repr__  s   zCommitment.__repr__c                 C   s   |d u rdS | j |j kS )NF)Ú__dict__©r   Úotherr   r   r   Ú__eq__  s   zCommitment.__eq__c                 C   s
   | |k S r+   r   r.   r   r   r   Ú__ne__"  s   
zCommitment.__ne__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úpropertyr	   Úsetterr
   r   r   r   r   r   r   r,   r0   r1   r   r   r   r   r      sL    E















r   N)Zoci.utilr   r   r   Zoci.decoratorsr   Úobjectr   r   r   r   r   Ú<module>   s   