ruạṛ
a O��f� � @ 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 Zd ZdZ dZd ZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZdZ dZ!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/d0� �Z*e*j&d1d0� �Z*e$d2d3� �Z+e+j&d4d3� �Z+e$d5d6� �Z,e,j&d7d6� �Z,e$d8d9� �Z-e-j&d:d9� �Z-e$d;d<� �Z.e.j&d=d<� �Z.e$d>d?� �Z/e/j&d@d?� �Z/e$dAdB� �Z0e0j&dCdB� �Z0e$dDdE� �Z1e1j&dFdE� �Z1e$dGdH� �Z2e2j&dIdH� �Z2e$dJdK� �Z3e3j&dLdK� �Z3e$dMdN� �Z4e4j&dOdN� �Z4e$dPdQ� �Z5e5j&dRdQ� �Z5e$dSdT� �Z6e6j&dUdT� �Z6e$dVdW� �Z7e7j&dXdW� �Z7e$dYdZ� �Z8e8j&d[dZ� �Z8e$d\d]� �Z9e9j&d^d]� �Z9e$d_d`� �Z:e:j&dad`� �Z:e$dbdc� �Z;e;j&dddc� �Z;e$dedf� �Z<e<j&dgdf� �Z<e$dhdi� �Z=e=j&djdi� �Z=e$dkdl� �Z>e>j&dmdl� �Z>e$dndo� �Z?e?j&dpdo� �Z?e$dqdr� �Z@e@j&dsdr� �Z@e$dtdu� �ZAeAj&dvdu� �ZAe$dwdx� �ZBeBj&dydx� �ZBe$dzd{� �ZCeCj&d|d{� �ZCd}d~� ZDdd�� ZEd�d�� ZFd�S )�� AccessRequesta� An Oracle operator raises access request when they need access to any infrastructure resource governed by Operator Access Control. The access request identifies the target resource and the set of operator actions. Access request handling depends upon the Operator Control that governs the target resource, and the set of operator actions listed for approval in the access request. If all of the operator actions listed in the access request are in the pre-approved list in the Operator Control that governs the target resource, then the access request is automatically approved. If not, then the access request requires explicit approval from the approver group specified by the Operator Control governing the target resource. You can approve or reject an access request. You can also revoke the approval of an already approved access request. While creating an access request, the operator specifies the duration of access. You have the option to approve the entire duration or reduce or even increase the time duration. An operator can also request for an extension. The approval for such an extension is processed the same way the original access request was processed. �EXACC�EXADATAINFRASTRUCTURE�AUTONOMOUSVMCLUSTER�CLOUDAUTONOMOUSVMCLUSTER�S1�S2�S3�S4�CREATED�APPROVALWAITING�PREAPPROVED�APPROVED�MOREINFO�REJECTED�DEPLOYED�DEPLOYFAILED� UNDEPLOYED�UNDEPLOYFAILED�CLOSEFAILED�REVOKEFAILED�EXPIRYFAILED�REVOKING�REVOKED� EXTENDING�EXTENDED�EXTENSIONREJECTED� COMPLETING� COMPLETED�EXPIRED�APPROVEDFORFUTURE�INREVIEWc K s@ ddddddddddddddddddddddddddddddd�| _ d d ddd ddddddddddddddddddd 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 )(aM Initializes a new AccessRequest 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 AccessRequest. :type id: str :param request_id: The value to assign to the request_id property of this AccessRequest. :type request_id: str :param access_reason_summary: The value to assign to the access_reason_summary property of this AccessRequest. :type access_reason_summary: str :param operator_id: The value to assign to the operator_id property of this AccessRequest. :type operator_id: str :param resource_id: The value to assign to the resource_id property of this AccessRequest. :type resource_id: str :param resource_name: The value to assign to the resource_name property of this AccessRequest. :type resource_name: str :param compartment_id: The value to assign to the compartment_id property of this AccessRequest. :type compartment_id: str :param resource_type: The value to assign to the resource_type property of this AccessRequest. Allowed values for this property are: "EXACC", "EXADATAINFRASTRUCTURE", "AUTONOMOUSVMCLUSTER", "CLOUDAUTONOMOUSVMCLUSTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type resource_type: str :param action_requests_list: The value to assign to the action_requests_list property of this AccessRequest. :type action_requests_list: list[str] :param reason: The value to assign to the reason property of this AccessRequest. :type reason: str :param severity: The value to assign to the severity property of this AccessRequest. Allowed values for this property are: "S1", "S2", "S3", "S4", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type severity: str :param duration: The value to assign to the duration property of this AccessRequest. :type duration: int :param extend_duration: The value to assign to the extend_duration property of this AccessRequest. :type extend_duration: int :param workflow_id: The value to assign to the workflow_id property of this AccessRequest. :type workflow_id: list[str] :param is_auto_approved: The value to assign to the is_auto_approved property of this AccessRequest. :type is_auto_approved: bool :param lifecycle_state: The value to assign to the lifecycle_state property of this AccessRequest. Allowed values for this property are: "CREATED", "APPROVALWAITING", "PREAPPROVED", "APPROVED", "MOREINFO", "REJECTED", "DEPLOYED", "DEPLOYFAILED", "UNDEPLOYED", "UNDEPLOYFAILED", "CLOSEFAILED", "REVOKEFAILED", "EXPIRYFAILED", "REVOKING", "REVOKED", "EXTENDING", "EXTENDED", "EXTENSIONREJECTED", "COMPLETING", "COMPLETED", "EXPIRED", "APPROVEDFORFUTURE", "INREVIEW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type lifecycle_state: str :param lifecycle_details: The value to assign to the lifecycle_details property of this AccessRequest. :type lifecycle_details: str :param time_of_creation: The value to assign to the time_of_creation property of this AccessRequest. :type time_of_creation: datetime :param time_of_modification: The value to assign to the time_of_modification property of this AccessRequest. :type time_of_modification: datetime :param time_of_user_creation: The value to assign to the time_of_user_creation property of this AccessRequest. :type time_of_user_creation: datetime :param user_id: The value to assign to the user_id property of this AccessRequest. :type user_id: str :param approver_comment: The value to assign to the approver_comment property of this AccessRequest. :type approver_comment: str :param closure_comment: The value to assign to the closure_comment property of this AccessRequest. :type closure_comment: str :param opctl_id: The value to assign to the opctl_id property of this AccessRequest. :type opctl_id: str :param opctl_name: The value to assign to the opctl_name property of this AccessRequest. :type opctl_name: str :param system_message: The value to assign to the system_message property of this AccessRequest. :type system_message: str :param opctl_additional_message: The value to assign to the opctl_additional_message property of this AccessRequest. :type opctl_additional_message: str :param audit_type: The value to assign to the audit_type property of this AccessRequest. :type audit_type: list[str] :param freeform_tags: The value to assign to the freeform_tags property of this AccessRequest. :type freeform_tags: dict(str, str) :param defined_tags: The value to assign to the defined_tags property of this AccessRequest. :type defined_tags: dict(str, dict(str, object)) �strz list[str]�int�bool�datetimezdict(str, str)zdict(str, dict(str, object)))�id� request_id�access_reason_summary�operator_id�resource_id� resource_name�compartment_id� resource_type�action_requests_list�reason�severity�duration�extend_duration�workflow_id�is_auto_approved�lifecycle_state�lifecycle_details�time_of_creation�time_of_modification�time_of_user_creation�user_id�approver_comment�closure_comment�opctl_id� opctl_name�system_message�opctl_additional_message� audit_type� freeform_tags�defined_tagsr* � requestId�accessReasonSummary� operatorId� resourceId�resourceName� compartmentId�resourceType�actionRequestsListr3 r4 r5 �extendDuration� workflowId�isAutoApproved�lifecycleState�lifecycleDetails�timeOfCreation�timeOfModification�timeOfUserCreation�userId�approverComment�closureComment�opctlId� opctlName� systemMessage�opctlAdditionalMessage� auditType�freeformTags�definedTagsN) � swagger_types� attribute_map�_id�_request_id�_access_reason_summary�_operator_id�_resource_id�_resource_name�_compartment_id�_resource_type�_action_requests_list�_reason� _severity� _duration�_extend_duration�_workflow_id�_is_auto_approved�_lifecycle_state�_lifecycle_details�_time_of_creation�_time_of_modification�_time_of_user_creation�_user_id�_approver_comment�_closure_comment� _opctl_id�_opctl_name�_system_message�_opctl_additional_message�_audit_type�_freeform_tags� _defined_tags)�self�kwargs� r� ��/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/operator_access_control/models/access_request.py�__init__� s� �"�!zAccessRequest.__init__c C s | j S )z� **[Required]** Gets the id of this AccessRequest. The OCID of the access request. :return: The id of this AccessRequest. :rtype: str �rd �r� r� r� r� r* y s zAccessRequest.idc C s || _ dS )z� Sets the id of this AccessRequest. The OCID of the access request. :param id: The id of this AccessRequest. :type: str Nr� )r� r* r� r� r� r* � s c C s | j S )z� Gets the request_id of this AccessRequest. This is an automatic identifier generated by the system which is easier for human comprehension. :return: The request_id of this AccessRequest. :rtype: str �re r� r� r� r� r+ � s zAccessRequest.request_idc C s || _ dS )z� Sets the request_id of this AccessRequest. This is an automatic identifier generated by the system which is easier for human comprehension. :param request_id: The request_id of this AccessRequest. :type: str Nr� )r� r+ r� r� r� r+ � s c C s | j S )z� **[Required]** Gets the access_reason_summary of this AccessRequest. Summary comment by the operator creating the access request. :return: The access_reason_summary of this AccessRequest. :rtype: str �rf r� r� r� r� r, � s z#AccessRequest.access_reason_summaryc C s || _ dS )z� Sets the access_reason_summary of this AccessRequest. Summary comment by the operator creating the access request. :param access_reason_summary: The access_reason_summary of this AccessRequest. :type: str Nr� )r� r, r� r� r� r, � s c C s | j S )a� Gets the operator_id of this AccessRequest. A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy. :return: The operator_id of this AccessRequest. :rtype: str �rg r� r� r� r� r- � s zAccessRequest.operator_idc C s || _ dS )a� Sets the operator_id of this AccessRequest. A unique identifier associated with the operator who raised the request. This identifier can not be used directly to identify the operator. You need to provide this identifier if you would like Oracle to provide additional information about the operator action within Oracle tenancy. :param operator_id: The operator_id of this AccessRequest. :type: str Nr� )r� r- r� r� r� r- � s c C s | j S )aC **[Required]** Gets the resource_id of this AccessRequest. The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource. :return: The resource_id of this AccessRequest. :rtype: str �rh r� r� r� r� r. � s zAccessRequest.resource_idc C s || _ dS )a> Sets the resource_id of this AccessRequest. The OCID of the target resource associated with the access request. The operator raises an access request to get approval to access the target resource. :param resource_id: The resource_id of this AccessRequest. :type: str Nr� )r� r. r� r� r� r. � s c C s | j S )z� Gets the resource_name of this AccessRequest. The name of the target resource. :return: The resource_name of this AccessRequest. :rtype: str �ri r� r� r� r� r/ � s zAccessRequest.resource_namec C s || _ dS )z� Sets the resource_name of this AccessRequest. The name of the target resource. :param resource_name: The resource_name of this AccessRequest. :type: str Nr� )r� r/ r� r� r� r/ s c C s | j S )z� Gets the compartment_id of this AccessRequest. The OCID of the compartment that contains the access request. :return: The compartment_id of this AccessRequest. :rtype: str �rj r� r� r� r� r0 s zAccessRequest.compartment_idc C s || _ dS )z� Sets the compartment_id of this AccessRequest. The OCID of the compartment that contains the access request. :param compartment_id: The compartment_id of this AccessRequest. :type: str Nr� )r� r0 r� r� r� r0 s c C s | j S )a� Gets the resource_type of this AccessRequest. resourceType for which the AccessRequest is applicable Allowed values for this property are: "EXACC", "EXADATAINFRASTRUCTURE", "AUTONOMOUSVMCLUSTER", "CLOUDAUTONOMOUSVMCLUSTER", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The resource_type of this AccessRequest. :rtype: str )rk r� r� r� r� r1 % s zAccessRequest.resource_typec C s g d�}t ||�sd}|| _dS )z� Sets the resource_type of this AccessRequest. resourceType for which the AccessRequest is applicable :param resource_type: The resource_type of this AccessRequest. :type: str )r r r r �UNKNOWN_ENUM_VALUEN)r rk )r� r1 �allowed_valuesr� r� r� r1 4 s c C s | j S )z� Gets the action_requests_list of this AccessRequest. List of operator actions for which approval is sought by the operator user. :return: The action_requests_list of this AccessRequest. :rtype: list[str] �rl r� r� r� r� r2 C s z"AccessRequest.action_requests_listc C s || _ dS )a Sets the action_requests_list of this AccessRequest. List of operator actions for which approval is sought by the operator user. :param action_requests_list: The action_requests_list of this AccessRequest. :type: list[str] Nr� )r� r2 r� r� r� r2 O s c C s | j S )z� Gets the reason of this AccessRequest. Summary reason for which the operator is requesting access on the target resource. :return: The reason of this AccessRequest. :rtype: str �rm r� r� r� r� r3 [ s zAccessRequest.reasonc C s || _ dS )z� Sets the reason of this AccessRequest. Summary reason for which the operator is requesting access on the target resource. :param reason: The reason of this AccessRequest. :type: str Nr� )r� r3 r� r� r� r3 g s c C s | j S )a� Gets the severity of this AccessRequest. Priority assigned to the access request by the operator Allowed values for this property are: "S1", "S2", "S3", "S4", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The severity of this AccessRequest. :rtype: str )rn r� r� r� r� r4 s s zAccessRequest.severityc C s g d�}t ||�sd}|| _dS )z� Sets the severity of this AccessRequest. Priority assigned to the access request by the operator :param severity: The severity of this AccessRequest. :type: str )r r r r r� N)r rn )r� r4 r� r� r� r� r4 � s c C s | j S )z� Gets the duration of this AccessRequest. Duration in hours for which access is sought on the target resource. :return: The duration of this AccessRequest. :rtype: int �ro r� r� r� r� r5 � s zAccessRequest.durationc C s || _ dS )z� Sets the duration of this AccessRequest. Duration in hours for which access is sought on the target resource. :param duration: The duration of this AccessRequest. :type: int Nr� )r� r5 r� r� r� r5 � s c C s | j S )z� Gets the extend_duration of this AccessRequest. Duration in hours for which extension access is sought on the target resource. :return: The extend_duration of this AccessRequest. :rtype: int �rp r� r� r� r� r6 � s zAccessRequest.extend_durationc C s || _ dS )z� Sets the extend_duration of this AccessRequest. Duration in hours for which extension access is sought on the target resource. :param extend_duration: The extend_duration of this AccessRequest. :type: int Nr� )r� r6 r� r� r� r6 � s c C s | j S )aj Gets the workflow_id of this AccessRequest. The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error. :return: The workflow_id of this AccessRequest. :rtype: list[str] �rq r� r� r� r� r7 � s zAccessRequest.workflow_idc C s || _ dS )at Sets the workflow_id of this AccessRequest. The OCID of the workflow associated with the access request. This is needed if you want to contact Oracle Support for a stuck access request or for an access request that encounters an internal error. :param workflow_id: The workflow_id of this AccessRequest. :type: list[str] Nr� )r� r7 r� r� r� r7 � s c C s | j S )z� Gets the is_auto_approved of this AccessRequest. Whether the access request was automatically approved. :return: The is_auto_approved of this AccessRequest. :rtype: bool �rr r� r� r� r� r8 � s zAccessRequest.is_auto_approvedc C s || _ dS )z� Sets the is_auto_approved of this AccessRequest. Whether the access request was automatically approved. :param is_auto_approved: The is_auto_approved of this AccessRequest. :type: bool Nr� )r� r8 r� r� r� r8 � s c C s | j S )a� Gets the lifecycle_state of this AccessRequest. The current state of the AccessRequest. Allowed values for this property are: "CREATED", "APPROVALWAITING", "PREAPPROVED", "APPROVED", "MOREINFO", "REJECTED", "DEPLOYED", "DEPLOYFAILED", "UNDEPLOYED", "UNDEPLOYFAILED", "CLOSEFAILED", "REVOKEFAILED", "EXPIRYFAILED", "REVOKING", "REVOKED", "EXTENDING", "EXTENDED", "EXTENSIONREJECTED", "COMPLETING", "COMPLETED", "EXPIRED", "APPROVEDFORFUTURE", "INREVIEW", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The lifecycle_state of this AccessRequest. :rtype: str )rs r� r� r� r� r9 � s zAccessRequest.lifecycle_statec C s g d�}t ||�sd}|| _dS )z� Sets the lifecycle_state of this AccessRequest. The current state of the AccessRequest. :param lifecycle_state: The lifecycle_state of this AccessRequest. :type: str )r r r r r r r r r r r r r r r r r r r! r"