o
    ɶdiV                     @   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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
d0d/ Zed1d2 Zej
d3d2 Zed4d5 Zej
d6d5 Zed7d8 Zej
d9d8 Zed:d; Zej
d<d; Zd=d> Zd?d@ ZdAdB ZdCS )DFunctionSummaryz 
    Summary of a function.
    GENERIC_X86GENERIC_ARMGENERIC_X86_ARMc                 K   sX  i 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i| _ i 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)i| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _	d*| _
d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*| _d*S )+a  
        Initializes a new FunctionSummary 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 FunctionSummary.
        :type id: str

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

        :param application_id:
            The value to assign to the application_id property of this FunctionSummary.
        :type application_id: str

        :param compartment_id:
            The value to assign to the compartment_id property of this FunctionSummary.
        :type compartment_id: str

        :param lifecycle_state:
            The value to assign to the lifecycle_state property of this FunctionSummary.
        :type lifecycle_state: str

        :param image:
            The value to assign to the image property of this FunctionSummary.
        :type image: str

        :param image_digest:
            The value to assign to the image_digest property of this FunctionSummary.
        :type image_digest: str

        :param source_details:
            The value to assign to the source_details property of this FunctionSummary.
        :type source_details: oci.functions.models.FunctionSourceDetails

        :param shape:
            The value to assign to the shape property of this FunctionSummary.
            Allowed values for this property are: "GENERIC_X86", "GENERIC_ARM", "GENERIC_X86_ARM", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type shape: str

        :param memory_in_mbs:
            The value to assign to the memory_in_mbs property of this FunctionSummary.
        :type memory_in_mbs: int

        :param timeout_in_seconds:
            The value to assign to the timeout_in_seconds property of this FunctionSummary.
        :type timeout_in_seconds: int

        :param provisioned_concurrency_config:
            The value to assign to the provisioned_concurrency_config property of this FunctionSummary.
        :type provisioned_concurrency_config: oci.functions.models.FunctionProvisionedConcurrencyConfig

        :param trace_config:
            The value to assign to the trace_config property of this FunctionSummary.
        :type trace_config: oci.functions.models.FunctionTraceConfig

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

        :param invoke_endpoint:
            The value to assign to the invoke_endpoint property of this FunctionSummary.
        :type invoke_endpoint: str

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

        :param time_created:
            The value to assign to the time_created property of this FunctionSummary.
        :type time_created: datetime

        :param time_updated:
            The value to assign to the time_updated property of this FunctionSummary.
        :type time_updated: datetime

        idstrdisplay_nameapplication_idcompartment_idlifecycle_stateimageimage_digestsource_detailsZFunctionSourceDetailsshapememory_in_mbsinttimeout_in_secondsprovisioned_concurrency_configZ$FunctionProvisionedConcurrencyConfigtrace_configZFunctionTraceConfigfreeform_tagszdict(str, str)invoke_endpointdefined_tagszdict(str, dict(str, object))time_createddatetimetime_updatedZdisplayNameZapplicationIdZcompartmentIdZlifecycleStateZimageDigestZsourceDetailsZmemoryInMBsZtimeoutInSecondsZprovisionedConcurrencyConfigZtraceConfigZfreeformTagsZinvokeEndpointZdefinedTagsZtimeCreatedZtimeUpdatedN)Zswagger_typesZattribute_map_id_display_name_application_id_compartment_id_lifecycle_state_image_image_digest_source_details_shape_memory_in_mbs_timeout_in_seconds_provisioned_concurrency_config_trace_config_freeform_tags_invoke_endpoint_defined_tags_time_created_time_updated)selfkwargs r3   Iusr/lib/python3.10/site-packages/oci/functions/models/function_summary.py__init__   s   P	
	

zFunctionSummary.__init__c                 C      | j S )a
  
        **[Required]** Gets the id of this FunctionSummary.
        The `OCID`__ of the function.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :return: The id of this FunctionSummary.
        :rtype: str
        r   r1   r3   r3   r4   r
         zFunctionSummary.idc                 C   
   || _ dS )z
        Sets the id of this FunctionSummary.
        The `OCID`__ of the function.

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm


        :param id: The id of this FunctionSummary.
        :type: str
        Nr7   )r1   r
   r3   r3   r4   r
         
c                 C   r6   )a  
        Gets the display_name of this FunctionSummary.
        The display name of the function. The display name is unique within the application containing the function.


        :return: The display_name of this FunctionSummary.
        :rtype: str
        r    r8   r3   r3   r4   r         
zFunctionSummary.display_namec                 C   r:   )a  
        Sets the display_name of this FunctionSummary.
        The display name of the function. The display name is unique within the application containing the function.


        :param display_name: The display_name of this FunctionSummary.
        :type: str
        Nr<   )r1   r   r3   r3   r4   r         

c                 C   r6   )z
        Gets the application_id of this FunctionSummary.
        The OCID of the application the function belongs to.


        :return: The application_id of this FunctionSummary.
        :rtype: str
        r!   r8   r3   r3   r4   r      r=   zFunctionSummary.application_idc                 C   r:   )z
        Sets the application_id of this FunctionSummary.
        The OCID of the application the function belongs to.


        :param application_id: The application_id of this FunctionSummary.
        :type: str
        Nr?   )r1   r   r3   r3   r4   r      r>   c                 C   r6   )z
        Gets the compartment_id of this FunctionSummary.
        The OCID of the compartment that contains the function.


        :return: The compartment_id of this FunctionSummary.
        :rtype: str
        r"   r8   r3   r3   r4   r      r=   zFunctionSummary.compartment_idc                 C   r:   )z
        Sets the compartment_id of this FunctionSummary.
        The OCID of the compartment that contains the function.


        :param compartment_id: The compartment_id of this FunctionSummary.
        :type: str
        Nr@   )r1   r   r3   r3   r4   r     r>   c                 C   r6   )z
        Gets the lifecycle_state of this FunctionSummary.
        The current state of the function.


        :return: The lifecycle_state of this FunctionSummary.
        :rtype: str
        r#   r8   r3   r3   r4   r     r=   zFunctionSummary.lifecycle_statec                 C   r:   )z
        Sets the lifecycle_state of this FunctionSummary.
        The current state of the function.


        :param lifecycle_state: The lifecycle_state of this FunctionSummary.
        :type: str
        NrA   )r1   r   r3   r3   r4   r     r>   c                 C   r6   )a  
        Gets the image of this FunctionSummary.
        The qualified name of the Docker image to use in the function, including the image tag.
        The image should be in the OCI Registry that is in the same region as the function itself.
        Example: `phx.ocir.io/ten/functions/function:0.0.1`


        :return: The image of this FunctionSummary.
        :rtype: str
        r$   r8   r3   r3   r4   r   '  r9   zFunctionSummary.imagec                 C   r:   )a  
        Sets the image of this FunctionSummary.
        The qualified name of the Docker image to use in the function, including the image tag.
        The image should be in the OCI Registry that is in the same region as the function itself.
        Example: `phx.ocir.io/ten/functions/function:0.0.1`


        :param image: The image of this FunctionSummary.
        :type: str
        NrB   )r1   r   r3   r3   r4   r   5  r;   c                 C   r6   )a  
        Gets the image_digest of this FunctionSummary.
        The image digest for the version of the image that will be pulled when invoking this function.
        If no value is specified, the digest currently associated with the image in the OCI Registry will be used.
        Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7`


        :return: The image_digest of this FunctionSummary.
        :rtype: str
        r%   r8   r3   r3   r4   r   C  r9   zFunctionSummary.image_digestc                 C   r:   )a  
        Sets the image_digest of this FunctionSummary.
        The image digest for the version of the image that will be pulled when invoking this function.
        If no value is specified, the digest currently associated with the image in the OCI Registry will be used.
        Example: `sha256:ca0eeb6fb05351dfc8759c20733c91def84cb8007aa89a5bf606bc8b315b9fc7`


        :param image_digest: The image_digest of this FunctionSummary.
        :type: str
        NrC   )r1   r   r3   r3   r4   r   Q  r;   c                 C   r6   )z
        Gets the source_details of this FunctionSummary.

        :return: The source_details of this FunctionSummary.
        :rtype: oci.functions.models.FunctionSourceDetails
        r&   r8   r3   r3   r4   r   _     zFunctionSummary.source_detailsc                 C   r:   )z
        Sets the source_details of this FunctionSummary.

        :param source_details: The source_details of this FunctionSummary.
        :type: oci.functions.models.FunctionSourceDetails
        NrD   )r1   r   r3   r3   r4   r   i     
c                 C   r6   )a  
        Gets the shape of this FunctionSummary.
        The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest.

        Allowed values for this property are: "GENERIC_X86", "GENERIC_ARM", "GENERIC_X86_ARM", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The shape of this FunctionSummary.
        :rtype: str
        )r'   r8   r3   r3   r4   r   s  s   zFunctionSummary.shapec                 C   s    g d}t ||sd}|| _dS )a  
        Sets the shape of this FunctionSummary.
        The processor shape (`GENERIC_X86`/`GENERIC_ARM`) on which to run functions in the application, extracted from the image manifest.


        :param shape: The shape of this FunctionSummary.
        :type: str
        )r   r   r	   ZUNKNOWN_ENUM_VALUEN)r   r'   )r1   r   Zallowed_valuesr3   r3   r4   r     s   


c                 C   r6   )z
        Gets the memory_in_mbs of this FunctionSummary.
        Maximum usable memory for the function (MiB).


        :return: The memory_in_mbs of this FunctionSummary.
        :rtype: int
        r(   r8   r3   r3   r4   r     r=   zFunctionSummary.memory_in_mbsc                 C   r:   )z
        Sets the memory_in_mbs of this FunctionSummary.
        Maximum usable memory for the function (MiB).


        :param memory_in_mbs: The memory_in_mbs of this FunctionSummary.
        :type: int
        NrG   )r1   r   r3   r3   r4   r     r>   c                 C   r6   )z
        Gets the timeout_in_seconds of this FunctionSummary.
        Timeout for executions of the function. Value in seconds.


        :return: The timeout_in_seconds of this FunctionSummary.
        :rtype: int
        r)   r8   r3   r3   r4   r     r=   z"FunctionSummary.timeout_in_secondsc                 C   r:   )z
        Sets the timeout_in_seconds of this FunctionSummary.
        Timeout for executions of the function. Value in seconds.


        :param timeout_in_seconds: The timeout_in_seconds of this FunctionSummary.
        :type: int
        NrH   )r1   r   r3   r3   r4   r     r>   c                 C   r6   )z
        Gets the provisioned_concurrency_config of this FunctionSummary.

        :return: The provisioned_concurrency_config of this FunctionSummary.
        :rtype: oci.functions.models.FunctionProvisionedConcurrencyConfig
        r*   r8   r3   r3   r4   r     rE   z.FunctionSummary.provisioned_concurrency_configc                 C   r:   )a  
        Sets the provisioned_concurrency_config of this FunctionSummary.

        :param provisioned_concurrency_config: The provisioned_concurrency_config of this FunctionSummary.
        :type: oci.functions.models.FunctionProvisionedConcurrencyConfig
        NrI   )r1   r   r3   r3   r4   r     rF   c                 C   r6   )z
        Gets the trace_config of this FunctionSummary.

        :return: The trace_config of this FunctionSummary.
        :rtype: oci.functions.models.FunctionTraceConfig
        r+   r8   r3   r3   r4   r     rE   zFunctionSummary.trace_configc                 C   r:   )z
        Sets the trace_config of this FunctionSummary.

        :param trace_config: The trace_config of this FunctionSummary.
        :type: oci.functions.models.FunctionTraceConfig
        NrJ   )r1   r   r3   r3   r4   r     rF   c                 C   r6   )a  
        Gets the freeform_tags of this FunctionSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The freeform_tags of this FunctionSummary.
        :rtype: dict(str, str)
        r,   r8   r3   r3   r4   r        zFunctionSummary.freeform_tagsc                 C   r:   )a  
        Sets the freeform_tags of this FunctionSummary.
        Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace.
        For more information, see `Resource Tags`__.

        Example: `{"Department": "Finance"}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param freeform_tags: The freeform_tags of this FunctionSummary.
        :type: dict(str, str)
        NrK   )r1   r   r3   r3   r4   r        
c                 C   r6   )a;  
        Gets the invoke_endpoint of this FunctionSummary.
        The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.


        :return: The invoke_endpoint of this FunctionSummary.
        :rtype: str
        r-   r8   r3   r3   r4   r     r=   zFunctionSummary.invoke_endpointc                 C   r:   )aI  
        Sets the invoke_endpoint of this FunctionSummary.
        The base https invoke URL to set on a client in order to invoke a function. This URL will never change over the lifetime of the function and can be cached.


        :param invoke_endpoint: The invoke_endpoint of this FunctionSummary.
        :type: str
        NrN   )r1   r   r3   r3   r4   r     r>   c                 C   r6   )a  
        Gets the defined_tags of this FunctionSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :return: The defined_tags of this FunctionSummary.
        :rtype: dict(str, dict(str, object))
        r.   r8   r3   r3   r4   r   #  s   zFunctionSummary.defined_tagsc                 C   r:   )a  
        Sets the defined_tags of this FunctionSummary.
        Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see `Resource Tags`__.

        Example: `{"Operations": {"CostCenter": "42"}}`

        __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm


        :param defined_tags: The defined_tags of this FunctionSummary.
        :type: dict(str, dict(str, object))
        NrO   )r1   r   r3   r3   r4   r   3  s   
c                 C   r6   )aR  
        Gets the time_created of this FunctionSummary.
        The time the function was created, expressed in `RFC 3339`__
        timestamp format.

        Example: `2018-09-12T22:47:12.613Z`

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


        :return: The time_created of this FunctionSummary.
        :rtype: datetime
        r/   r8   r3   r3   r4   r   C  rL   zFunctionSummary.time_createdc                 C   r:   )a]  
        Sets the time_created of this FunctionSummary.
        The time the function was created, expressed in `RFC 3339`__
        timestamp format.

        Example: `2018-09-12T22:47:12.613Z`

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


        :param time_created: The time_created of this FunctionSummary.
        :type: datetime
        NrP   )r1   r   r3   r3   r4   r   T  rM   c                 C   r6   )aR  
        Gets the time_updated of this FunctionSummary.
        The time the function was updated, expressed in `RFC 3339`__
        timestamp format.

        Example: `2018-09-12T22:47:12.613Z`

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


        :return: The time_updated of this FunctionSummary.
        :rtype: datetime
        r0   r8   r3   r3   r4   r   e  rL   zFunctionSummary.time_updatedc                 C   r:   )a]  
        Sets the time_updated of this FunctionSummary.
        The time the function was updated, expressed in `RFC 3339`__
        timestamp format.

        Example: `2018-09-12T22:47:12.613Z`

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


        :param time_updated: The time_updated of this FunctionSummary.
        :type: datetime
        NrQ   )r1   r   r3   r3   r4   r   v  rM   c                 C   s   t | S N)r   r8   r3   r3   r4   __repr__  s   zFunctionSummary.__repr__c                 C   s   |d u rdS | j |j kS )NF)__dict__r1   otherr3   r3   r4   __eq__  s   zFunctionSummary.__eq__c                 C   s
   | |k S rR   r3   rU   r3   r3   r4   __ne__  s   
zFunctionSummary.__ne__N)__name__
__module____qualname____doc__ZSHAPE_GENERIC_X86ZSHAPE_GENERIC_ARMZSHAPE_GENERIC_X86_ARMr5   propertyr
   setterr   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   rS   rW   rX   r3   r3   r3   r4   r      s     














	
	






	
	
	
	









r   N)Zoci.utilr   r   r   Zoci.decoratorsr   objectr   r3   r3   r3   r4   <module>   s   