File: //lib/python3.9/site-packages/oci/sch/models/__pycache__/function_task_details.cpython-39.pyc
a
���f� � @ sD d dl mZ ddlmZmZmZ ddlmZ eG dd� de��ZdS )� )�TaskDetails� )�formatted_flat_dict�
NONE_SENTINEL�#value_allowed_none_or_none_sentinel)�init_model_state_from_kwargsc @ s~ e Zd ZdZdd� Zedd� �Zejdd� �Zedd� �Zejd d� �Zed
d� �Z e jdd� �Z d
d� Z
dd� Zdd� ZdS )�FunctionTaskDetailsaE
The Functions task.
Batch input for a function can be limited by either size or time. The first limit reached determines the boundary of the batch.
For configuration instructions, see
`Creating a Connector`__.
__ https://docs.cloud.oracle.com/iaas/Content/connector-hub/create-service-connector.htm
c K sB ddddd�| _ ddddd�| _d| _d| _d| _d| _d | _dS )
a
Initializes a new FunctionTaskDetails object with values from keyword arguments. The default value of the :py:attr:`~oci.sch.models.FunctionTaskDetails.kind` attribute
of this class is ``function`` and it should not be changed.
The following keyword arguments are supported (corresponding to the getters/setters of this class):
:param kind:
The value to assign to the kind property of this FunctionTaskDetails.
Allowed values for this property are: "function", "logRule"
:type kind: str
:param function_id:
The value to assign to the function_id property of this FunctionTaskDetails.
:type function_id: str
:param batch_size_in_kbs:
The value to assign to the batch_size_in_kbs property of this FunctionTaskDetails.
:type batch_size_in_kbs: int
:param batch_time_in_sec:
The value to assign to the batch_time_in_sec property of this FunctionTaskDetails.
:type batch_time_in_sec: int
�str�int)�kind�function_id�batch_size_in_kbs�batch_time_in_secr Z
functionIdZbatchSizeInKbsZbatchTimeInSecN�function)Z
swagger_typesZ
attribute_mapZ_kind�_function_id�_batch_size_in_kbs�_batch_time_in_sec)�self�kwargs� r �H/usr/lib/python3.9/site-packages/oci/sch/models/function_task_details.py�__init__ s ��zFunctionTaskDetails.__init__c C s | j S )a9
**[Required]** Gets the function_id of this FunctionTaskDetails.
The `OCID`__ of the function to be used as a task.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:return: The function_id of this FunctionTaskDetails.
:rtype: str
�r �r r r r r C s zFunctionTaskDetails.function_idc C s
|| _ dS )a4
Sets the function_id of this FunctionTaskDetails.
The `OCID`__ of the function to be used as a task.
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
:param function_id: The function_id of this FunctionTaskDetails.
:type: str
Nr )r r r r r r Q s c C s | j S )z�
Gets the batch_size_in_kbs of this FunctionTaskDetails.
Size limit (kilobytes) for batch sent to invoke the function.
:return: The batch_size_in_kbs of this FunctionTaskDetails.
:rtype: int
�r r r r r r
_ s
z%FunctionTaskDetails.batch_size_in_kbsc C s
|| _ dS )z�
Sets the batch_size_in_kbs of this FunctionTaskDetails.
Size limit (kilobytes) for batch sent to invoke the function.
:param batch_size_in_kbs: The batch_size_in_kbs of this FunctionTaskDetails.
:type: int
Nr )r r
r r r r
k s
c C s | j S )z�
Gets the batch_time_in_sec of this FunctionTaskDetails.
Time limit (seconds) for batch sent to invoke the function.
:return: The batch_time_in_sec of this FunctionTaskDetails.
:rtype: int
�r r r r r r w s
z%FunctionTaskDetails.batch_time_in_secc C s
|| _ dS )z�
Sets the batch_time_in_sec of this FunctionTaskDetails.
Time limit (seconds) for batch sent to invoke the function.
:param batch_time_in_sec: The batch_time_in_sec of this FunctionTaskDetails.
:type: int
Nr )r r r r r r � s
c C s t | �S �N)r r r r r �__repr__� s zFunctionTaskDetails.__repr__c C s |d u rdS | j |j kS )NF)�__dict__�r �otherr r r �__eq__� s zFunctionTaskDetails.__eq__c C s
| |k S r r r r r r �__ne__� s zFunctionTaskDetails.__ne__N)
�__name__�
__module__�__qualname__�__doc__r �propertyr �setterr
r r r! r"