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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d0d/ Zd1d2 Zd3d4 Zd5d6 Zd7S )8Packagez&
    Details of `Package` object.
    c                 K   s   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ddddd
| _d| _d| _d| _d| _d| _d| _d| _d| _	d| _
d| _d| _d| _d| _d| _d| _dS )a	  
        Initializes a new Package 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 Package.
        :type id: str

        :param publisher_id:
            The value to assign to the publisher_id property of this Package.
        :type publisher_id: str

        :param name:
            The value to assign to the name property of this Package.
        :type name: str

        :param display_name:
            The value to assign to the display_name property of this Package.
        :type display_name: str

        :param version:
            The value to assign to the version property of this Package.
        :type version: str

        :param time_uploaded:
            The value to assign to the time_uploaded property of this Package.
        :type time_uploaded: datetime

        :param time_published:
            The value to assign to the time_published property of this Package.
        :type time_published: datetime

        :param description:
            The value to assign to the description property of this Package.
        :type description: str

        :param resource_types:
            The value to assign to the resource_types property of this Package.
        :type resource_types: list[str]

        :param resource_types_metadata:
            The value to assign to the resource_types_metadata property of this Package.
        :type resource_types_metadata: list[oci.oda.models.ResourceTypeMetadata]

        :param publisher_metadata:
            The value to assign to the publisher_metadata property of this Package.
        :type publisher_metadata: list[oci.oda.models.MetadataProperty]

        :param freeform_tags:
            The value to assign to the freeform_tags property of this Package.
        :type freeform_tags: dict(str, str)

        :param defined_tags:
            The value to assign to the defined_tags property of this Package.
        :type defined_tags: dict(str, dict(str, object))

        :param import_contract:
            The value to assign to the import_contract property of this Package.
        :type import_contract: oci.oda.models.ImportContract

        :param default_parameter_values:
            The value to assign to the default_parameter_values property of this Package.
        :type default_parameter_values: oci.oda.models.DefaultParameterValues

        strdatetimez	list[str]zlist[ResourceTypeMetadata]zlist[MetadataProperty]zdict(str, str)zdict(str, dict(str, object))ZImportContractZDefaultParameterValues)idpublisher_idnamedisplay_nameversiontime_uploadedtime_publisheddescriptionresource_typesresource_types_metadatapublisher_metadatafreeform_tagsdefined_tagsimport_contractdefault_parameter_valuesr	   ZpublisherIdr   ZdisplayNamer   ZtimeUploadedZtimePublishedr   ZresourceTypesZresourceTypesMetadataZpublisherMetadataZfreeformTagsZdefinedTagsZimportContractZdefaultParameterValuesN)Zswagger_typesZattribute_map_id_publisher_id_name_display_name_version_time_uploaded_time_published_description_resource_types_resource_types_metadata_publisher_metadata_freeform_tags_defined_tags_import_contract_default_parameter_values)selfkwargs r)   :usr/lib/python3.10/site-packages/oci/oda/models/package.py__init__   s^   C
zPackage.__init__c                 C      | j S )z
        **[Required]** Gets the id of this Package.
        Unique immutable identifier that was assigned when the Package was registered.


        :return: The id of this Package.
        :rtype: str
        r   r'   r)   r)   r*   r	         
z
Package.idc                 C   
   || _ dS )z
        Sets the id of this Package.
        Unique immutable identifier that was assigned when the Package was registered.


        :param id: The id of this Package.
        :type: str
        Nr-   )r'   r	   r)   r)   r*   r	         

c                 C   r,   )z
        **[Required]** Gets the publisher_id of this Package.
        ID of the publisher providing the package.


        :return: The publisher_id of this Package.
        :rtype: str
        r   r.   r)   r)   r*   r
      r/   zPackage.publisher_idc                 C   r0   )z
        Sets the publisher_id of this Package.
        ID of the publisher providing the package.


        :param publisher_id: The publisher_id of this Package.
        :type: str
        Nr2   )r'   r
   r)   r)   r*   r
      r1   c                 C   r,   )z
        **[Required]** Gets the name of this Package.
        Name of package.


        :return: The name of this Package.
        :rtype: str
        r   r.   r)   r)   r*   r      r/   zPackage.namec                 C   r0   )z
        Sets the name of this Package.
        Name of package.


        :param name: The name of this Package.
        :type: str
        Nr3   )r'   r   r)   r)   r*   r      r1   c                 C   r,   )z
        **[Required]** Gets the display_name of this Package.
        Display name for the package (displayed in UI and user-facing applications).


        :return: The display_name of this Package.
        :rtype: str
        r   r.   r)   r)   r*   r      r/   zPackage.display_namec                 C   r0   )z
        Sets the display_name of this Package.
        Display name for the package (displayed in UI and user-facing applications).


        :param display_name: The display_name of this Package.
        :type: str
        Nr4   )r'   r   r)   r)   r*   r      r1   c                 C   r,   )z
        **[Required]** Gets the version of this Package.
        Version of the package.


        :return: The version of this Package.
        :rtype: str
        r   r.   r)   r)   r*   r      r/   zPackage.versionc                 C   r0   )z
        Sets the version of this Package.
        Version of the package.


        :param version: The version of this Package.
        :type: str
        Nr5   )r'   r   r)   r)   r*   r      r1   c                 C   r,   )a-  
        **[Required]** Gets the time_uploaded of this Package.
        When the package was uploaded. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_uploaded of this Package.
        :rtype: datetime
        r   r.   r)   r)   r*   r         zPackage.time_uploadedc                 C   r0   )a*  
        Sets the time_uploaded of this Package.
        When the package was uploaded. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_uploaded: The time_uploaded of this Package.
        :type: datetime
        Nr6   )r'   r   r)   r)   r*   r        
c                 C   r,   )a5  
        **[Required]** Gets the time_published of this Package.
        When the package was last published. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :return: The time_published of this Package.
        :rtype: datetime
        r   r.   r)   r)   r*   r     r7   zPackage.time_publishedc                 C   r0   )a3  
        Sets the time_published of this Package.
        When the package was last published. A date-time string as described in `RFC 3339`__, section 14.29.

        __ https://tools.ietf.org/rfc/rfc3339


        :param time_published: The time_published of this Package.
        :type: datetime
        Nr9   )r'   r   r)   r)   r*   r   *  r8   c                 C   r,   )z
        **[Required]** Gets the description of this Package.
        Description of the package.


        :return: The description of this Package.
        :rtype: str
        r   r.   r)   r)   r*   r   8  r/   zPackage.descriptionc                 C   r0   )z
        Sets the description of this Package.
        Description of the package.


        :param description: The description of this Package.
        :type: str
        Nr:   )r'   r   r)   r)   r*   r   D  r1   c                 C   r,   )z
        **[Required]** Gets the resource_types of this Package.
        A list of resource types describing the content of the package.


        :return: The resource_types of this Package.
        :rtype: list[str]
        r    r.   r)   r)   r*   r   P  r/   zPackage.resource_typesc                 C   r0   )z
        Sets the resource_types of this Package.
        A list of resource types describing the content of the package.


        :param resource_types: The resource_types of this Package.
        :type: list[str]
        Nr;   )r'   r   r)   r)   r*   r   \  r1   c                 C   r,   )a  
        **[Required]** Gets the resource_types_metadata of this Package.
        A map of resource type to metadata key/value map that further describes the content for the resource types in this package.. Keys are resource type names, values are a map of name/value pairs per resource type.


        :return: The resource_types_metadata of this Package.
        :rtype: list[oci.oda.models.ResourceTypeMetadata]
        r!   r.   r)   r)   r*   r   h  r/   zPackage.resource_types_metadatac                 C   r0   )a  
        Sets the resource_types_metadata of this Package.
        A map of resource type to metadata key/value map that further describes the content for the resource types in this package.. Keys are resource type names, values are a map of name/value pairs per resource type.


        :param resource_types_metadata: The resource_types_metadata of this Package.
        :type: list[oci.oda.models.ResourceTypeMetadata]
        Nr<   )r'   r   r)   r)   r*   r   t  r1   c                 C   r,   )aB  
        **[Required]** Gets the publisher_metadata of this Package.
        A map of metadata key/value pairs that further describes the publisher and the platform in which the package might be used.


        :return: The publisher_metadata of this Package.
        :rtype: list[oci.oda.models.MetadataProperty]
        r"   r.   r)   r)   r*   r     r/   zPackage.publisher_metadatac                 C   r0   )aD  
        Sets the publisher_metadata of this Package.
        A map of metadata key/value pairs that further describes the publisher and the platform in which the package might be used.


        :param publisher_metadata: The publisher_metadata of this Package.
        :type: list[oci.oda.models.MetadataProperty]
        Nr=   )r'   r   r)   r)   r*   r     r1   c                 C   r,   )a  
        Gets the freeform_tags of this Package.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this Package.
        :rtype: dict(str, str)
        r#   r.   r)   r)   r*   r        zPackage.freeform_tagsc                 C   r0   )a  
        Sets the freeform_tags of this Package.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :param freeform_tags: The freeform_tags of this Package.
        :type: dict(str, str)
        Nr>   )r'   r   r)   r)   r*   r        
c                 C   r,   )a+  
        Gets the defined_tags of this Package.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this Package.
        :rtype: dict(str, dict(str, object))
        r$   r.   r)   r)   r*   r     r?   zPackage.defined_tagsc                 C   r0   )a6  
        Sets the defined_tags of this Package.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :param defined_tags: The defined_tags of this Package.
        :type: dict(str, dict(str, object))
        NrA   )r'   r   r)   r)   r*   r     r@   c                 C   r,   )z
        **[Required]** Gets the import_contract of this Package.

        :return: The import_contract of this Package.
        :rtype: oci.oda.models.ImportContract
        r%   r.   r)   r)   r*   r        zPackage.import_contractc                 C   r0   )z
        Sets the import_contract of this Package.

        :param import_contract: The import_contract of this Package.
        :type: oci.oda.models.ImportContract
        NrB   )r'   r   r)   r)   r*   r        
c                 C   r,   )z
        **[Required]** Gets the default_parameter_values of this Package.

        :return: The default_parameter_values of this Package.
        :rtype: oci.oda.models.DefaultParameterValues
        r&   r.   r)   r)   r*   r     rC   z Package.default_parameter_valuesc                 C   r0   )z
        Sets the default_parameter_values of this Package.

        :param default_parameter_values: The default_parameter_values of this Package.
        :type: oci.oda.models.DefaultParameterValues
        NrE   )r'   r   r)   r)   r*   r     rD   c                 C   s   t | S N)r   r.   r)   r)   r*   __repr__  s   zPackage.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r'   otherr)   r)   r*   __eq__  s   zPackage.__eq__c                 C   s
   | |k S rF   r)   rI   r)   r)   r*   __ne__  s   
zPackage.__ne__N)__name__
__module____qualname____doc__r+   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   r   r   r   rG   rK   rL   r)   r)   r)   r*   r      s    v


























	
	
	
	r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r)   r)   r)   r*   <module>   s   