ruạṛ
a N��f�V � @ s8 d dl mZmZmZ d dlmZ eG dd� de��ZdS )� )�formatted_flat_dict� NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s e Zd ZdZdZdZdZdZdZdZ dZ d d � Zedd� �Z e jd d� �Z edd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zed d!� �Zejd"d!� �Zed#d$� �Zejd%d$� �Zed&d'� �Zejd(d'� �Zed)d*� �Zejd+d*� �Zed,d-� �Zejd.d-� �Zed/d0� �Zejd1d0� �Zed2d3� �Zejd4d3� �Zed5d6� �Zejd7d6� �Zed8d9� �Zejd:d9� �Zed;d<� �Zejd=d<� �Zd>d?� Zd@dA� Z dBdC� Z!dDS )E�Functionz� A function resource defines the code (Docker image) and configuration for a specific function. Functions are defined in applications. Avoid entering confidential information. �CREATING�ACTIVE�INACTIVE�UPDATING�DELETING�DELETED�FAILEDc K s� dddddddddddddddddd�| _ d d ddd ddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _dS )a� Initializes a new Function 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 Function. :type id: str :param display_name: The value to assign to the display_name property of this Function. :type display_name: str :param lifecycle_state: The value to assign to the lifecycle_state property of this Function. Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param application_id: The value to assign to the application_id property of this Function. :type application_id: str :param compartment_id: The value to assign to the compartment_id property of this Function. :type compartment_id: str :param image: The value to assign to the image property of this Function. :type image: str :param image_digest: The value to assign to the image_digest property of this Function. :type image_digest: str :param memory_in_mbs: The value to assign to the memory_in_mbs property of this Function. :type memory_in_mbs: int :param config: The value to assign to the config property of this Function. :type config: dict(str, str) :param timeout_in_seconds: The value to assign to the timeout_in_seconds property of this Function. :type timeout_in_seconds: int :param provisioned_concurrency_config: The value to assign to the provisioned_concurrency_config property of this Function. :type provisioned_concurrency_config: oci.functions.models.FunctionProvisionedConcurrencyConfig :param trace_config: The value to assign to the trace_config property of this Function. :type trace_config: oci.functions.models.FunctionTraceConfig :param freeform_tags: The value to assign to the freeform_tags property of this Function. :type freeform_tags: dict(str, str) :param invoke_endpoint: The value to assign to the invoke_endpoint property of this Function. :type invoke_endpoint: str :param defined_tags: The value to assign to the defined_tags property of this Function. :type defined_tags: dict(str, dict(str, object)) :param time_created: The value to assign to the time_created property of this Function. :type time_created: datetime :param time_updated: The value to assign to the time_updated property of this Function. :type time_updated: datetime �str�intzdict(str, str)�$FunctionProvisionedConcurrencyConfig�FunctionTraceConfigzdict(str, dict(str, object))�datetime)�id�display_name�lifecycle_state�application_id�compartment_id�image�image_digest� memory_in_mbs�config�timeout_in_seconds�provisioned_concurrency_config�trace_config� freeform_tags�invoke_endpoint�defined_tags�time_created�time_updatedr �displayName�lifecycleState� applicationId� compartmentIdr �imageDigest�memoryInMBsr �timeoutInSeconds�provisionedConcurrencyConfig�traceConfig�freeformTags�invokeEndpoint�definedTags�timeCreated�timeUpdatedN)� swagger_types� attribute_map�_id� _display_name�_lifecycle_state�_application_id�_compartment_id�_image� _image_digest�_memory_in_mbs�_config�_timeout_in_seconds�_provisioned_concurrency_config� _trace_config�_freeform_tags�_invoke_endpoint� _defined_tags� _time_created� _time_updated)�self�kwargs� rG ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/functions/models/function.py�__init__, sj M��zFunction.__init__c C s | j S )z� **[Required]** Gets the id of this Function. The `OCID`__ of the function. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :return: The id of this Function. :rtype: str �r4 �rE rG rG rH r � s zFunction.idc C s || _ dS )z� Sets the id of this Function. The `OCID`__ of the function. __ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm :param id: The id of this Function. :type: str NrJ )rE r rG rG rH r � s c C s | j S )z� Gets the display_name of this Function. The display name of the function. The display name is unique within the application containing the function. :return: The display_name of this Function. :rtype: str �r5 rK rG rG rH r � s zFunction.display_namec C s || _ dS )a Sets the display_name of this Function. 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 Function. :type: str NrL )rE r rG rG rH r � s c C s | j S )a� Gets the lifecycle_state of this Function. The current state of the function. Allowed values for this property are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this Function. :rtype: str )r6 rK rG rG rH r � s zFunction.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this Function. The current state of the function. :param lifecycle_state: The lifecycle_state of this Function. :type: str )r r r r r r r �UNKNOWN_ENUM_VALUEN)r r6 )rE r �allowed_valuesrG rG rH r � s c C s | j S )z� Gets the application_id of this Function. The OCID of the application the function belongs to. :return: The application_id of this Function. :rtype: str �r7 rK rG rG rH r s zFunction.application_idc C s || _ dS )z� Sets the application_id of this Function. The OCID of the application the function belongs to. :param application_id: The application_id of this Function. :type: str NrO )rE r rG rG rH r s c C s | j S )z� Gets the compartment_id of this Function. The OCID of the compartment that contains the function. :return: The compartment_id of this Function. :rtype: str �r8 rK rG rG rH r s zFunction.compartment_idc C s || _ dS )z� Sets the compartment_id of this Function. The OCID of the compartment that contains the function. :param compartment_id: The compartment_id of this Function. :type: str NrP )rE r rG rG rH r ( s c C s | j S )at Gets the image of this Function. 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 Function. :rtype: str �r9 rK rG rG rH r 4 s zFunction.imagec C s || _ dS )ax Sets the image of this Function. 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 Function. :type: str NrQ )rE r rG rG rH r B s c C s | j S )a� Gets the image_digest of this Function. 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 Function. :rtype: str �r: rK rG rG rH r P s zFunction.image_digestc C s || _ dS )a� Sets the image_digest of this Function. 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 Function. :type: str NrR )rE r rG rG rH r ^ s c C s | j S )z� Gets the memory_in_mbs of this Function. Maximum usable memory for the function (MiB). :return: The memory_in_mbs of this Function. :rtype: int �r; rK rG rG rH r l s zFunction.memory_in_mbsc C s || _ dS )z� Sets the memory_in_mbs of this Function. Maximum usable memory for the function (MiB). :param memory_in_mbs: The memory_in_mbs of this Function. :type: int NrS )rE r rG rG rH r x s c C s | j S )ar Gets the config of this Function. Function configuration. Overrides application configuration. Keys must be ASCII strings consisting solely of letters, digits, and the '_' (underscore) character, and must not begin with a digit. Values should be limited to printable unicode characters. Example: `{"MY_FUNCTION_CONFIG": "ConfVal"}` The maximum size for all configuration keys and values is limited to 4KB. This is measured as the sum of octets necessary to represent each key and value in UTF-8. :return: The config of this Function. :rtype: dict(str, str) �r<