o
    ɶd4                     @   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                   @   sh  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d(d) Zd*d+ Zd,d- Zd.S )/PackageSummaryz&
    Summary 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S )a  
        Initializes a new PackageSummary 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 PackageSummary.
        :type id: str

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

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

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

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

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

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

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

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

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

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

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

        strdatetimez	list[str]zlist[ResourceTypeMetadata]zlist[MetadataProperty]zdict(str, str)zdict(str, dict(str, object)))idpublisher_idnamedisplay_nameversiontime_publisheddescriptionresource_typesresource_types_metadatapublisher_metadatafreeform_tagsdefined_tagsr	   ZpublisherIdr   ZdisplayNamer   ZtimePublishedr   ZresourceTypesZresourceTypesMetadataZpublisherMetadataZfreeformTagsZdefinedTagsN)Zswagger_typesZattribute_map_id_publisher_id_name_display_name_version_time_published_description_resource_types_resource_types_metadata_publisher_metadata_freeform_tags_defined_tags)selfkwargs r#   Busr/lib/python3.10/site-packages/oci/oda/models/package_summary.py__init__   sL   7
zPackageSummary.__init__c                 C      | j S )z
        **[Required]** Gets the id of this PackageSummary.
        Unique immutable identifier that was assigned when the Package was registered.


        :return: The id of this PackageSummary.
        :rtype: str
        r   r!   r#   r#   r$   r	   s      
zPackageSummary.idc                 C   
   || _ dS )z
        Sets the id of this PackageSummary.
        Unique immutable identifier that was assigned when the Package was registered.


        :param id: The id of this PackageSummary.
        :type: str
        Nr'   )r!   r	   r#   r#   r$   r	         

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


        :return: The publisher_id of this PackageSummary.
        :rtype: str
        r   r(   r#   r#   r$   r
      r)   zPackageSummary.publisher_idc                 C   r*   )z
        Sets the publisher_id of this PackageSummary.
        ID of the publisher providing the package.


        :param publisher_id: The publisher_id of this PackageSummary.
        :type: str
        Nr,   )r!   r
   r#   r#   r$   r
      r+   c                 C   r&   )z
        **[Required]** Gets the name of this PackageSummary.
        Name of package.


        :return: The name of this PackageSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zPackageSummary.namec                 C   r*   )z
        Sets the name of this PackageSummary.
        Name of package.


        :param name: The name of this PackageSummary.
        :type: str
        Nr-   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the display_name of this PackageSummary.
        Display name for the package (displayed in UI and user-facing applications).


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


        :param display_name: The display_name of this PackageSummary.
        :type: str
        Nr.   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )z
        **[Required]** Gets the version of this PackageSummary.
        Version of the package.


        :return: The version of this PackageSummary.
        :rtype: str
        r   r(   r#   r#   r$   r      r)   zPackageSummary.versionc                 C   r*   )z
        Sets the version of this PackageSummary.
        Version of the package.


        :param version: The version of this PackageSummary.
        :type: str
        Nr/   )r!   r   r#   r#   r$   r      r+   c                 C   r&   )aC  
        **[Required]** Gets the time_published of this PackageSummary.
        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 PackageSummary.
        :rtype: datetime
        r   r(   r#   r#   r$   r      s   zPackageSummary.time_publishedc                 C   r*   )aA  
        Sets the time_published of this PackageSummary.
        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 PackageSummary.
        :type: datetime
        Nr0   )r!   r   r#   r#   r$   r      s   
c                 C   r&   )z
        **[Required]** Gets the description of this PackageSummary.
        Description of the package.


        :return: The description of this PackageSummary.
        :rtype: str
        r   r(   r#   r#   r$   r     r)   zPackageSummary.descriptionc                 C   r*   )z
        Sets the description of this PackageSummary.
        Description of the package.


        :param description: The description of this PackageSummary.
        :type: str
        Nr1   )r!   r   r#   r#   r$   r     r+   c                 C   r&   )z
        **[Required]** Gets the resource_types of this PackageSummary.
        A list of resource types describing the content of the package.


        :return: The resource_types of this PackageSummary.
        :rtype: list[str]
        r   r(   r#   r#   r$   r     r)   zPackageSummary.resource_typesc                 C   r*   )z
        Sets the resource_types of this PackageSummary.
        A list of resource types describing the content of the package.


        :param resource_types: The resource_types of this PackageSummary.
        :type: list[str]
        Nr2   )r!   r   r#   r#   r$   r   +  r+   c                 C   r&   )a  
        **[Required]** Gets the resource_types_metadata of this PackageSummary.
        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 PackageSummary.
        :rtype: list[oci.oda.models.ResourceTypeMetadata]
        r   r(   r#   r#   r$   r   7  r)   z&PackageSummary.resource_types_metadatac                 C   r*   )a  
        Sets the resource_types_metadata of this PackageSummary.
        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 PackageSummary.
        :type: list[oci.oda.models.ResourceTypeMetadata]
        Nr3   )r!   r   r#   r#   r$   r   C  r+   c                 C   r&   )aP  
        **[Required]** Gets the publisher_metadata of this PackageSummary.
        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 PackageSummary.
        :rtype: list[oci.oda.models.MetadataProperty]
        r   r(   r#   r#   r$   r   O  r)   z!PackageSummary.publisher_metadatac                 C   r*   )aR  
        Sets the publisher_metadata of this PackageSummary.
        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 PackageSummary.
        :type: list[oci.oda.models.MetadataProperty]
        Nr4   )r!   r   r#   r#   r$   r   [  r+   c                 C   r&   )a  
        Gets the freeform_tags of this PackageSummary.
        Simple key-value pair that is applied without any predefined name, type, or scope.
        Example: `{"bar-key": "value"}`


        :return: The freeform_tags of this PackageSummary.
        :rtype: dict(str, str)
        r   r(   r#   r#   r$   r   g     zPackageSummary.freeform_tagsc                 C   r*   )a+  
        Sets the freeform_tags of this PackageSummary.
        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 PackageSummary.
        :type: dict(str, str)
        Nr5   )r!   r   r#   r#   r$   r   t     
c                 C   r&   )a9  
        Gets the defined_tags of this PackageSummary.
        Usage of predefined tag keys. These predefined keys are scoped to namespaces.
        Example: `{"foo-namespace": {"bar-key": "value"}}`


        :return: The defined_tags of this PackageSummary.
        :rtype: dict(str, dict(str, object))
        r    r(   r#   r#   r$   r     r6   zPackageSummary.defined_tagsc                 C   r*   )aD  
        Sets the defined_tags of this PackageSummary.
        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 PackageSummary.
        :type: dict(str, dict(str, object))
        Nr8   )r!   r   r#   r#   r$   r     r7   c                 C   s   t | S N)r   r(   r#   r#   r$   __repr__  s   zPackageSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r!   otherr#   r#   r$   __eq__  s   zPackageSummary.__eq__c                 C   s
   | |k S r9   r#   r<   r#   r#   r$   __ne__  s   
zPackageSummary.__ne__N)__name__
__module____qualname____doc__r%   propertyr	   setterr
   r   r   r   r   r   r   r   r   r   r   r:   r>   r?   r#   r#   r#   r$   r      sl    a























r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r#   r#   r#   r$   <module>   s   