ruạṛ
a ���f�p � @ 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 @ sv e Zd ZdZdZdZdZdZdZdZ dZ d Zd Zdd� Z ed d� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd� �Zejdd� �Zedd � �Zejd!d � �Zed"d#� �Zejd$d#� �Zed%d&� �Zejd'd&� �Zed(d)� �Zejd*d)� �Zed+d,� �Zejd-d,� �Zed.d/� �Zejd0d/� �Zed1d2� �Zejd3d2� �Zed4d5� �Zejd6d5� �Zed7d8� �Zejd9d8� �Zed:d;� �Zejd<d;� �Zed=d>� �Z e jd?d>� �Z ed@dA� �Z!e!jdBdA� �Z!edCdD� �Z"e"jdEdD� �Z"edFdG� �Z#e#jdHdG� �Z#edIdJ� �Z$e$jdKdJ� �Z$dLdM� Z%dNdO� Z&dPdQ� Z'dRS )S�OperatorControlz� Operator Access Control enables you to grant, audit, or revoke the access Oracle has to your Exadata Cloud@Customer infrastructure, and obtain audit reports of all actions taken by a human operator, in a near real-time manner. �EXACC�EXADATAINFRASTRUCTURE�AUTONOMOUSVMCLUSTER�CLOUDAUTONOMOUSVMCLUSTER�CCCINFRASTRUCTURE�CREATED�ASSIGNED� UNASSIGNED�DELETEDc K s� dddddddddddddddddddddd�| _ d d ddd ddddddddddddddddd�| _d| _d| _d| _d| _d| _d| _d| _d| _ d| _ d| _d| _d| _ d| _d| _d| _d| _d| _d| _d| _d| _d| _dS )an Initializes a new OperatorControl 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 OperatorControl. :type id: str :param operator_control_name: The value to assign to the operator_control_name property of this OperatorControl. :type operator_control_name: str :param description: The value to assign to the description property of this OperatorControl. :type description: str :param approvers_list: The value to assign to the approvers_list property of this OperatorControl. :type approvers_list: list[str] :param approver_groups_list: The value to assign to the approver_groups_list property of this OperatorControl. :type approver_groups_list: list[str] :param pre_approved_op_action_list: The value to assign to the pre_approved_op_action_list property of this OperatorControl. :type pre_approved_op_action_list: list[str] :param approval_required_op_action_list: The value to assign to the approval_required_op_action_list property of this OperatorControl. :type approval_required_op_action_list: list[str] :param is_fully_pre_approved: The value to assign to the is_fully_pre_approved property of this OperatorControl. :type is_fully_pre_approved: bool :param email_id_list: The value to assign to the email_id_list property of this OperatorControl. :type email_id_list: list[str] :param resource_type: The value to assign to the resource_type property of this OperatorControl. Allowed values for this property are: "EXACC", "EXADATAINFRASTRUCTURE", "AUTONOMOUSVMCLUSTER", "CLOUDAUTONOMOUSVMCLUSTER", "CCCINFRASTRUCTURE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resource_type: str :param system_message: The value to assign to the system_message property of this OperatorControl. :type system_message: str :param compartment_id: The value to assign to the compartment_id property of this OperatorControl. :type compartment_id: str :param lifecycle_state: The value to assign to the lifecycle_state property of this OperatorControl. Allowed values for this property are: "CREATED", "ASSIGNED", "UNASSIGNED", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param time_of_creation: The value to assign to the time_of_creation property of this OperatorControl. :type time_of_creation: datetime :param time_of_modification: The value to assign to the time_of_modification property of this OperatorControl. :type time_of_modification: datetime :param number_of_approvers: The value to assign to the number_of_approvers property of this OperatorControl. :type number_of_approvers: int :param is_default_operator_control: The value to assign to the is_default_operator_control property of this OperatorControl. :type is_default_operator_control: bool :param time_of_deletion: The value to assign to the time_of_deletion property of this OperatorControl. :type time_of_deletion: datetime :param last_modified_info: The value to assign to the last_modified_info property of this OperatorControl. :type last_modified_info: str :param freeform_tags: The value to assign to the freeform_tags property of this OperatorControl. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this OperatorControl. :type defined_tags: dict(str, dict(str, object)) �strz list[str]�boolZdatetime�intzdict(str, str)zdict(str, dict(str, object)))�id�operator_control_name�description�approvers_list�approver_groups_list�pre_approved_op_action_list� approval_required_op_action_list�is_fully_pre_approved� email_id_list� resource_type�system_message�compartment_id�lifecycle_state�time_of_creation�time_of_modification�number_of_approvers�is_default_operator_control�time_of_deletion�last_modified_info� freeform_tags�defined_tagsr ZoperatorControlNamer Z approversListZapproverGroupsListZpreApprovedOpActionListZapprovalRequiredOpActionListZisFullyPreApprovedZemailIdListZresourceTypeZ systemMessageZ compartmentIdZlifecycleStateZtimeOfCreationZtimeOfModificationZnumberOfApproversZisDefaultOperatorControlZtimeOfDeletionZlastModifiedInfoZfreeformTagsZdefinedTagsN)Z swagger_typesZ attribute_map�_id�_operator_control_name�_description�_approvers_list�_approver_groups_list�_pre_approved_op_action_list�!_approval_required_op_action_list�_is_fully_pre_approved�_email_id_list�_resource_type�_system_message�_compartment_id�_lifecycle_state�_time_of_creation�_time_of_modification�_number_of_approvers�_is_default_operator_control�_time_of_deletion�_last_modified_info�_freeform_tags� _defined_tags)�self�kwargs� r? �W/usr/lib/python3.9/site-packages/oci/operator_access_control/models/operator_control.py�__init__6 s� _��zOperatorControl.__init__c C s | j S )z� **[Required]** Gets the id of this OperatorControl. The OCID of the operator control. :return: The id of this OperatorControl. :rtype: str �r( �r= r? r? r@ r � s zOperatorControl.idc C s || _ dS )z� Sets the id of this OperatorControl. The OCID of the operator control. :param id: The id of this OperatorControl. :type: str NrB )r= r r? r? r@ r � s c C s | j S )z� **[Required]** Gets the operator_control_name of this OperatorControl. Name of the operator control. The name must be unique. :return: The operator_control_name of this OperatorControl. :rtype: str �r) rC r? r? r@ r � s z%OperatorControl.operator_control_namec C s || _ dS )z� Sets the operator_control_name of this OperatorControl. Name of the operator control. The name must be unique. :param operator_control_name: The operator_control_name of this OperatorControl. :type: str NrD )r= r r? r? r@ r � s c C s | j S )z� Gets the description of this OperatorControl. Description of operator control. :return: The description of this OperatorControl. :rtype: str �r* rC r? r? r@ r s zOperatorControl.descriptionc C s || _ dS )z� Sets the description of this OperatorControl. Description of operator control. :param description: The description of this OperatorControl. :type: str NrE )r= r r? r? r@ r s c C s | j S )a$ Gets the approvers_list of this OperatorControl. List of users who can approve an access request associated with a target resource under the governance of this operator control. :return: The approvers_list of this OperatorControl. :rtype: list[str] �r+ rC r? r? r@ r " s zOperatorControl.approvers_listc C s || _ dS )a1 Sets the approvers_list of this OperatorControl. List of users who can approve an access request associated with a target resource under the governance of this operator control. :param approvers_list: The approvers_list of this OperatorControl. :type: list[str] NrF )r= r r? r? r@ r . s c C s | j S )a6 Gets the approver_groups_list of this OperatorControl. List of user groups who can approve an access request associated with a target resource under the governance of this operator control. :return: The approver_groups_list of this OperatorControl. :rtype: list[str] �r, rC r? r? r@ r : s z$OperatorControl.approver_groups_listc C s || _ dS )aI Sets the approver_groups_list of this OperatorControl. List of user groups who can approve an access request associated with a target resource under the governance of this operator control. :param approver_groups_list: The approver_groups_list of this OperatorControl. :type: list[str] NrG )r= r r? r? r@ r F s c C s | j S )a� Gets the pre_approved_op_action_list of this OperatorControl. List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list. :return: The pre_approved_op_action_list of this OperatorControl. :rtype: list[str] �r- rC r? r? r@ r R s z+OperatorControl.pre_approved_op_action_listc C s || _ dS )a� Sets the pre_approved_op_action_list of this OperatorControl. List of pre-approved operator actions. Access requests associated with a resource governed by this operator control will be automatically approved if the access request only contain operator actions in the pre-approved list. :param pre_approved_op_action_list: The pre_approved_op_action_list of this OperatorControl. :type: list[str] NrH )r= r r? r? r@ r _ s c C s | j S )a Gets the approval_required_op_action_list of this OperatorControl. List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list. :return: The approval_required_op_action_list of this OperatorControl. :rtype: list[str] �r. rC r? r? r@ r l s z0OperatorControl.approval_required_op_action_listc C s || _ dS )a- Sets the approval_required_op_action_list of this OperatorControl. List of operator actions that need explicit approval. Any operator action not in the pre-approved list will require explicit approval. Access requests associated with a resource governed by this operator control will be require explicit approval if the access request contains any operator action in this list. :param approval_required_op_action_list: The approval_required_op_action_list of this OperatorControl. :type: list[str] NrI )r= r r? r? r@ r z s c C s | j S )a] Gets the is_fully_pre_approved of this OperatorControl. Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved. :return: The is_fully_pre_approved of this OperatorControl. :rtype: bool �r/ rC r? r? r@ r � s z%OperatorControl.is_fully_pre_approvedc C s || _ dS )aq Sets the is_fully_pre_approved of this OperatorControl. Whether all the operator actions have been pre-approved. If yes, all access requests associated with a resource governed by this operator control will be auto-approved. :param is_fully_pre_approved: The is_fully_pre_approved of this OperatorControl. :type: bool NrJ )r= r r? r? r@ r � s c C s | j S )z� Gets the email_id_list of this OperatorControl. List of emailId. :return: The email_id_list of this OperatorControl. :rtype: list[str] �r0 rC r? r? r@ r � s zOperatorControl.email_id_listc C s || _ dS )z� Sets the email_id_list of this OperatorControl. List of emailId. :param email_id_list: The email_id_list of this OperatorControl. :type: list[str] NrK )r= r r? r? r@ r � s c C s | j S )a� Gets the resource_type of this OperatorControl. resourceType for which the OperatorControl is applicable Allowed values for this property are: "EXACC", "EXADATAINFRASTRUCTURE", "AUTONOMOUSVMCLUSTER", "CLOUDAUTONOMOUSVMCLUSTER", "CCCINFRASTRUCTURE", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The resource_type of this OperatorControl. :rtype: str )r1 rC r? r? r@ r � s zOperatorControl.resource_typec C s g d�}t ||�sd}|| _dS )z� Sets the resource_type of this OperatorControl. resourceType for which the OperatorControl is applicable :param resource_type: The resource_type of this OperatorControl. :type: str )r r r r r �UNKNOWN_ENUM_VALUEN)r r1 )r= r �allowed_valuesr? r? r@ r � s c C s | j S )a* Gets the system_message of this OperatorControl. System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control. :return: The system_message of this OperatorControl. :rtype: str �r2 rC r? r? r@ r � s zOperatorControl.system_messagec C s || _ dS )a7 Sets the system_message of this OperatorControl. System message that would be displayed to the operator users on accessing the target resource under the governance of this operator control. :param system_message: The system_message of this OperatorControl. :type: str NrN )r= r r? r? r@ r � s c C s | j S )z� **[Required]** Gets the compartment_id of this OperatorControl. The OCID of the compartment that contains the operator control. :return: The compartment_id of this OperatorControl. :rtype: str �r3 rC r? r? r@ r � s zOperatorControl.compartment_idc C s || _ dS )z� Sets the compartment_id of this OperatorControl. The OCID of the compartment that contains the operator control. :param compartment_id: The compartment_id of this OperatorControl. :type: str NrO )r= r r? r? r@ r � s c C s | j S )a� Gets the lifecycle_state of this OperatorControl. The current lifecycle state of the operator control. Allowed values for this property are: "CREATED", "ASSIGNED", "UNASSIGNED", "DELETED", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this OperatorControl. :rtype: str )r4 rC r? r? r@ r s zOperatorControl.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this OperatorControl. The current lifecycle state of the operator control. :param lifecycle_state: The lifecycle_state of this OperatorControl. :type: str )r r r r rL N)r r4 )r= r rM r? r? r@ r s c C s | j S )aQ Gets the time_of_creation of this OperatorControl. Time when the operator control was created expressed in `RFC 3339`__ timestamp format. Example: '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :return: The time_of_creation of this OperatorControl. :rtype: datetime �r5 rC r? r? r@ r & s z OperatorControl.time_of_creationc C s || _ dS )a` Sets the time_of_creation of this OperatorControl. Time when the operator control was created expressed in `RFC 3339`__ timestamp format. Example: '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :param time_of_creation: The time_of_creation of this OperatorControl. :type: datetime NrP )r= r r? r? r@ r 4 s c C s | j S )a_ Gets the time_of_modification of this OperatorControl. Time when the operator control was last modified expressed in `RFC 3339`__ timestamp format. Example: '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :return: The time_of_modification of this OperatorControl. :rtype: datetime �r6 rC r? r? r@ r! B s z$OperatorControl.time_of_modificationc C s || _ dS )ar Sets the time_of_modification of this OperatorControl. Time when the operator control was last modified expressed in `RFC 3339`__ timestamp format. Example: '2020-05-22T21:10:29.600Z' __ https://tools.ietf.org/html/rfc3339 :param time_of_modification: The time_of_modification of this OperatorControl. :type: datetime NrQ )r= r! r? r? r@ r! P s c C s | j S )z� Gets the number_of_approvers of this OperatorControl. Number of approvers required to approve an access request. :return: The number_of_approvers of this OperatorControl. :rtype: int �r7 rC r? r? r@ r"