a Mf%@sfddlZddlZddlmZddlmZddlmZ d eZ eZ d e e Z Gdd d eZGd d d eZGd d d eZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGd d!d!eZGd"d#d#eZGd$d%d%eZGd&d'd'e ZGd(d)d)eZdS)*N) __version__)RequestException)ConnectTimeoutzOracle-PythonSDK/{}zClient Version: {}, OS Version: {}, See https://docs.oracle.com/iaas/Content/API/Concepts/sdk_troubleshooting.htm for common issues and steps to resolve them. If you need to contact support, or file a GitHub issue, please include this full error message.cs(eZdZdZfddZddZZS) ServiceErrorz'The service returned an error response.c sd||_||_||_||_|d|_||_|d|_|d|_ |d|_ |d|_ |d|_ |d|_ dt|jt|jt|j}d |j }|sd |j}|j |||j||j|j |j |j d d }|j rd ||j ||d<nd|||d<t|dtrPtj|d} | D]\} } | |vr2| || <q2tt||dS)Noriginal_requestoperation_nameapi_reference_linktarget_servicerequest_endpointclient_version timestampzSee https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_{}__{}_{} for more information about resolving this error.zsIf you are unable to resolve this {} issue, please contact Oracle support and provide them this full error message.z"The service returned error code %szTo get more info on the failing request, refer to https://docs.oracle.com/en-us/iaas/tools/python/latest/logging.html for ways to log the request/response details.) r statuscodeopc-request-idmessagerr r r logging_tipsz?{} Also see {} for details on this operation's requirements. {}troubleshooting_tipsz{} {}deserialized_data)rrheadersrgetr_get_opc_request_id request_idrr r r r r formatstrlower isinstancedictociutilcamel_to_snake_keysitemssuperr__init__) selfrrrrkwargsapi_errors_info contact_info error_detailsrkeyvalue __class__r/sparta/input/_build_configuration/image_build+validate/lib/bmcenv/lib64/python3.9/site-packages/oci/exceptions.pyr#sH        $     zServiceError.__init__cCs<|jdr|jdS|jr4|jjr4|jjdSdSdS)Nr)rrr header_paramsr$r-r-r.rBs   z ServiceError._get_opc_request_id)__name__ __module__ __qualname____doc__r#r __classcell__r-r-r+r.rs 0rc@seZdZdZdS)TransientServiceErrorz"A transient service error occurredNr1r2r3r4r-r-r-r.r6Ksr6c@seZdZdZdS) ClientErrorzA client-side error occurred..Nr7r-r-r-r.r8Osr8c@seZdZdZdS)ConfigFileNotFoundzConfig file not be found.Nr7r-r-r-r.r9Ssr9c@s eZdZdZddZddZdS) InvalidConfigzThe config object is missing required keys or contains malformed values. For example: .. code-block:: python raise InvalidConfig({ "region": "missing", "key_id": "malformed' }) cCs ||_dS)z':param errors: {config key: error code}N)errors)r$r;r-r-r.r#cszInvalidConfig.__init__cCs t|jSN)rr;r0r-r-r.__str__gszInvalidConfig.__str__N)r1r2r3r4r#r=r-r-r-r.r:Ws r:c@seZdZdZdS)!InvalidResourcePrincipalArgumentszThe ResourceId is missing.Nr7r-r-r-r.r>ksr>c@seZdZdZdS)InvalidPrivateKeyzOThe provided key is not a private key, or the provided passphrase is incorrect.Nr7r-r-r-r.r?osr?c@seZdZdZdS)MissingPrivateKeyPassphrasez'The provided key requires a passphrase.Nr7r-r-r-r.r@ssr@c@seZdZdZdS)InvalidKeyFilePathzKThe value is expected to be a file name but it's not a valid key_file path.Nr7r-r-r-r.rAwsrAc@seZdZdZdS)ProfileNotFoundz7The specified profile was not found in the config file.Nr7r-r-r-r.rB{srBc@seZdZdZdS)WaitUntilNotSupportedz-wait_until is not supported by this response.Nr7r-r-r-r.rCsrCc@seZdZdZdS)MaximumWaitTimeExceededz$Maximum wait time has been exceeded.Nr7r-r-r-r.rDsrDcs eZdZdZfddZZS)MultipartUploadErrorz Exception thrown when an error with a multipart upload occurs. As multipart uploads can be parallelised, this error contains a collection of errors which caused individual part uploads to fail c sPg|_d|vr0|ds0|j|dqdt|_tt||jdS)z :param queue error_causes_queue: A queue containing errors which occured during the multipart upload error_causes_queuez,MultipartUploadError exception has occured. N) error_causesemptyappendr$UPLOAD_MANAGER_DEBUG_INFORMATION_LOGrr" Exceptionr#)r$r%r+r-r.r#s   zMultipartUploadError.__init__)r1r2r3r4r#r5r-r-r+r.rEsrEc@seZdZdZgdfddZdS)CompositeOperationErrora- An exception occurred during a composite operation (e.g. launching an instance and waiting for state) but part of the composite operation succeeded. This exception has the following attributes: :var list partial_results: Any partial results which are available (e.g. if the :py:meth:`~oci.core.ComputeClient.launch_instance` succeeded and the waiting for state failed then this will contain the :py:meth:`~oci.core.ComputeClient.launch_instance` result) :var Exception cause: The exception which caused the composite operation to fail NcCs||_||_dSr<)partial_resultscause)r$rMrNr-r-r.r#sz CompositeOperationError.__init__)r1r2r3r4r#r-r-r-r.rLsrLc@seZdZdZdS)rz-An exception occurred when making the requestNr7r-r-r-r.rsrc@seZdZdZdS)rzThe request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. Nr7r-r-r-r.rsrc@seZdZdZdS)/MissingEndpointForNonRegionalServiceClientErrorzXNo endpoint value was provided when trying to create a non-regional service client. Nr7r-r-r-r.rOsrO)platformoci.utilrversionroci._vendor.requests.exceptionsrBaseRequestExceptionrBaseConnectTimeoutrCLIENT_VERSION OS_VERSIONrJrKrr6r8r9r:r>r?r@rArBrCrDrErL ValueErrorrOr-r-r-r.s0     <