oci 2.138.1__py3-none-any.whl → 2.139.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/_vendor/idna/__init__.py +45 -2
- oci/_vendor/idna/codec.py +47 -43
- oci/_vendor/idna/compat.py +10 -7
- oci/_vendor/idna/core.py +210 -173
- oci/_vendor/idna/idnadata.py +3869 -1676
- oci/_vendor/idna/intranges.py +13 -9
- oci/_vendor/idna/package_data.py +2 -3
- oci/_vendor/idna/uts46data.py +8355 -8031
- oci/_vendor/urllib3/__init__.py +1 -1
- oci/_vendor/urllib3/_collections.py +19 -1
- oci/_vendor/urllib3/_version.py +2 -2
- oci/_vendor/urllib3/connection.py +8 -3
- oci/_vendor/urllib3/connectionpool.py +45 -13
- oci/_vendor/urllib3/contrib/__init__.py +1 -1
- oci/_vendor/urllib3/contrib/_appengine_environ.py +1 -1
- oci/_vendor/urllib3/contrib/_securetransport/__init__.py +1 -1
- oci/_vendor/urllib3/contrib/_securetransport/bindings.py +2 -2
- oci/_vendor/urllib3/contrib/_securetransport/low_level.py +1 -1
- oci/_vendor/urllib3/contrib/appengine.py +2 -2
- oci/_vendor/urllib3/contrib/ntlmpool.py +3 -3
- oci/_vendor/urllib3/contrib/pyopenssl.py +14 -7
- oci/_vendor/urllib3/contrib/securetransport.py +2 -4
- oci/_vendor/urllib3/contrib/socks.py +1 -1
- oci/_vendor/urllib3/exceptions.py +1 -1
- oci/_vendor/urllib3/fields.py +1 -1
- oci/_vendor/urllib3/filepost.py +1 -1
- oci/_vendor/urllib3/packages/__init__.py +2 -2
- oci/_vendor/urllib3/packages/backports/__init__.py +1 -1
- oci/_vendor/urllib3/packages/backports/makefile.py +1 -1
- oci/_vendor/urllib3/packages/backports/weakref_finalize.py +160 -0
- oci/_vendor/urllib3/packages/six.py +1 -2
- oci/_vendor/urllib3/poolmanager.py +7 -4
- oci/_vendor/urllib3/request.py +22 -1
- oci/_vendor/urllib3/response.py +65 -4
- oci/_vendor/urllib3/util/__init__.py +1 -1
- oci/_vendor/urllib3/util/connection.py +1 -1
- oci/_vendor/urllib3/util/proxy.py +1 -1
- oci/_vendor/urllib3/util/queue.py +1 -1
- oci/_vendor/urllib3/util/request.py +1 -1
- oci/_vendor/urllib3/util/response.py +1 -1
- oci/_vendor/urllib3/util/retry.py +5 -3
- oci/_vendor/urllib3/util/ssl_.py +14 -5
- oci/_vendor/urllib3/util/ssl_match_hostname.py +1 -1
- oci/_vendor/urllib3/util/ssltransport.py +1 -1
- oci/_vendor/urllib3/util/timeout.py +7 -4
- oci/_vendor/urllib3/util/url.py +8 -5
- oci/_vendor/urllib3/util/wait.py +1 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +13 -14
- oci/cims/models/__init__.py +4 -2
- oci/cims/models/cmos_user_group_info.py +103 -0
- oci/cims/models/create_incident.py +33 -2
- oci/cims/models/create_limit_item_details.py +2 -57
- oci/cims/models/create_user_details.py +4 -4
- oci/cims/models/incident.py +188 -0
- oci/cims/models/incident_resource_type.py +4 -4
- oci/cims/models/incident_summary.py +188 -0
- oci/cims/models/limit_item.py +2 -2
- oci/cims/models/{service_categories.py → services.py} +27 -27
- oci/cims/models/sub_categories.py +15 -15
- oci/cims/models/ticket.py +7 -3
- oci/cims/models/validation_response.py +33 -2
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +22 -22
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +44 -44
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +292 -292
- oci/data_science/data_science_client.py +92 -92
- oci/database/database_client.py +523 -398
- oci/database/database_client_composite_operations.py +88 -0
- oci/database/models/__init__.py +4 -0
- oci/database/models/autonomous_database.py +2 -2
- oci/database/models/autonomous_database_summary.py +2 -2
- oci/database/models/configure_exascale_exadata_infrastructure_details.py +72 -0
- oci/database/models/create_autonomous_database_base.py +2 -2
- oci/database/models/create_db_home_details.py +33 -2
- oci/database/models/create_db_home_from_backup_details.py +31 -0
- oci/database/models/create_db_home_from_database_details.py +31 -0
- oci/database/models/create_exascale_db_storage_vault_details.py +37 -2
- oci/database/models/create_pluggable_database_creation_type_details.py +2 -2
- oci/database/models/create_vm_cluster_details.py +37 -2
- oci/database/models/exadata_infrastructure.py +29 -2
- oci/database/models/exadata_infrastructure_summary.py +29 -2
- oci/database/models/exascale_config_details.py +103 -0
- oci/database/models/exascale_db_storage_vault.py +35 -0
- oci/database/models/exascale_db_storage_vault_summary.py +37 -2
- oci/database/models/update_autonomous_database_details.py +2 -2
- oci/database/models/vm_cluster.py +84 -2
- oci/database/models/vm_cluster_summary.py +84 -2
- oci/database_management/db_management_client.py +211 -211
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +68 -68
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +70 -70
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +153 -57
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +180 -180
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/models/connection_details.py +29 -2
- oci/psql/models/endpoint.py +1 -1
- oci/psql/models/network_details.py +33 -2
- oci/psql/models/update_network_details.py +33 -2
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +71 -71
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/METADATA +1 -1
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/RECORD +342 -338
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/THIRD_PARTY_LICENSES.txt +1 -1
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/WHEEL +0 -0
- {oci-2.138.1.dist-info → oci-2.139.0.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
# Copyright (c) 2010-2020 Benjamin Peterson
|
7
7
|
#
|
@@ -777,7 +777,6 @@ if PY3:
|
|
777
777
|
value = None
|
778
778
|
tb = None
|
779
779
|
|
780
|
-
|
781
780
|
else:
|
782
781
|
|
783
782
|
def exec_(_code_, _globs_=None, _locs_=None):
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -9,7 +9,7 @@ import collections
|
|
9
9
|
import functools
|
10
10
|
import logging
|
11
11
|
|
12
|
-
from ._collections import RecentlyUsedContainer
|
12
|
+
from ._collections import HTTPHeaderDict, RecentlyUsedContainer
|
13
13
|
from .connectionpool import HTTPConnectionPool, HTTPSConnectionPool, port_by_scheme
|
14
14
|
from .exceptions import (
|
15
15
|
LocationValueError,
|
@@ -176,7 +176,7 @@ class PoolManager(RequestMethods):
|
|
176
176
|
def __init__(self, num_pools=10, headers=None, **connection_pool_kw):
|
177
177
|
RequestMethods.__init__(self, headers)
|
178
178
|
self.connection_pool_kw = connection_pool_kw
|
179
|
-
self.pools = RecentlyUsedContainer(num_pools
|
179
|
+
self.pools = RecentlyUsedContainer(num_pools)
|
180
180
|
|
181
181
|
# Locally set the pool classes and keys so other PoolManagers can
|
182
182
|
# override them.
|
@@ -387,9 +387,12 @@ class PoolManager(RequestMethods):
|
|
387
387
|
# Support relative URLs for redirecting.
|
388
388
|
redirect_location = urljoin(url, redirect_location)
|
389
389
|
|
390
|
-
# RFC 7231, Section 6.4.4
|
391
390
|
if response.status == 303:
|
391
|
+
# Change the method according to RFC 9110, Section 15.4.4.
|
392
392
|
method = "GET"
|
393
|
+
# And lose the body not to transfer anything sensitive.
|
394
|
+
kw["body"] = None
|
395
|
+
kw["headers"] = HTTPHeaderDict(kw["headers"])._prepare_for_method_change()
|
393
396
|
|
394
397
|
retries = kw.get("retries")
|
395
398
|
if not isinstance(retries, Retry):
|
oci/_vendor/urllib3/request.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
8
|
+
import sys
|
9
|
+
|
8
10
|
from .filepost import encode_multipart_formdata
|
11
|
+
from .packages import six
|
9
12
|
from .packages.six.moves.urllib.parse import urlencode
|
10
13
|
|
11
14
|
__all__ = ["RequestMethods"]
|
@@ -173,3 +176,21 @@ class RequestMethods(object):
|
|
173
176
|
extra_kw.update(urlopen_kw)
|
174
177
|
|
175
178
|
return self.urlopen(method, url, **extra_kw)
|
179
|
+
|
180
|
+
|
181
|
+
if not six.PY2:
|
182
|
+
|
183
|
+
class RequestModule(sys.modules[__name__].__class__):
|
184
|
+
def __call__(self, *args, **kwargs):
|
185
|
+
"""
|
186
|
+
If user tries to call this module directly urllib3 v2.x style raise an error to the user
|
187
|
+
suggesting they may need urllib3 v2
|
188
|
+
"""
|
189
|
+
raise TypeError(
|
190
|
+
"'module' object is not callable\n"
|
191
|
+
"urllib3.request() method is not supported in this release, "
|
192
|
+
"upgrade to urllib3 v2 to use it\n"
|
193
|
+
"see https://urllib3.readthedocs.io/en/stable/v2-migration-guide.html"
|
194
|
+
)
|
195
|
+
|
196
|
+
sys.modules[__name__].__class__ = RequestModule
|
oci/_vendor/urllib3/response.py
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
8
8
|
import io
|
9
9
|
import logging
|
10
|
+
import sys
|
11
|
+
import warnings
|
10
12
|
import zlib
|
11
13
|
from contextlib import contextmanager
|
12
14
|
from socket import error as SocketError
|
@@ -20,6 +22,7 @@ try:
|
|
20
22
|
except ImportError:
|
21
23
|
brotli = None
|
22
24
|
|
25
|
+
from . import util
|
23
26
|
from ._collections import HTTPHeaderDict
|
24
27
|
from .connection import BaseSSLError, HTTPException
|
25
28
|
from .exceptions import (
|
@@ -486,6 +489,54 @@ class HTTPResponse(io.IOBase):
|
|
486
489
|
if self._original_response and self._original_response.isclosed():
|
487
490
|
self.release_conn()
|
488
491
|
|
492
|
+
def _fp_read(self, amt):
|
493
|
+
"""
|
494
|
+
Read a response with the thought that reading the number of bytes
|
495
|
+
larger than can fit in a 32-bit int at a time via SSL in some
|
496
|
+
known cases leads to an overflow error that has to be prevented
|
497
|
+
if `amt` or `self.length_remaining` indicate that a problem may
|
498
|
+
happen.
|
499
|
+
|
500
|
+
The known cases:
|
501
|
+
* 3.8 <= CPython < 3.9.7 because of a bug
|
502
|
+
https://github.com/urllib3/urllib3/issues/2513#issuecomment-1152559900.
|
503
|
+
* urllib3 injected with pyOpenSSL-backed SSL-support.
|
504
|
+
* CPython < 3.10 only when `amt` does not fit 32-bit int.
|
505
|
+
"""
|
506
|
+
assert self._fp
|
507
|
+
c_int_max = 2 ** 31 - 1
|
508
|
+
if (
|
509
|
+
(
|
510
|
+
(amt and amt > c_int_max)
|
511
|
+
or (self.length_remaining and self.length_remaining > c_int_max)
|
512
|
+
)
|
513
|
+
and not util.IS_SECURETRANSPORT
|
514
|
+
and (util.IS_PYOPENSSL or sys.version_info < (3, 10))
|
515
|
+
):
|
516
|
+
buffer = io.BytesIO()
|
517
|
+
# Besides `max_chunk_amt` being a maximum chunk size, it
|
518
|
+
# affects memory overhead of reading a response by this
|
519
|
+
# method in CPython.
|
520
|
+
# `c_int_max` equal to 2 GiB - 1 byte is the actual maximum
|
521
|
+
# chunk size that does not lead to an overflow error, but
|
522
|
+
# 256 MiB is a compromise.
|
523
|
+
max_chunk_amt = 2 ** 28
|
524
|
+
while amt is None or amt != 0:
|
525
|
+
if amt is not None:
|
526
|
+
chunk_amt = min(amt, max_chunk_amt)
|
527
|
+
amt -= chunk_amt
|
528
|
+
else:
|
529
|
+
chunk_amt = max_chunk_amt
|
530
|
+
data = self._fp.read(chunk_amt)
|
531
|
+
if not data:
|
532
|
+
break
|
533
|
+
buffer.write(data)
|
534
|
+
del data # to reduce peak memory usage by `max_chunk_amt`.
|
535
|
+
return buffer.getvalue()
|
536
|
+
else:
|
537
|
+
# StringIO doesn't like amt=None
|
538
|
+
return self._fp.read(amt) if amt is not None else self._fp.read()
|
539
|
+
|
489
540
|
def read(self, amt=None, decode_content=None, cache_content=False):
|
490
541
|
"""
|
491
542
|
Similar to :meth:`http.client.HTTPResponse.read`, but with two additional
|
@@ -518,13 +569,11 @@ class HTTPResponse(io.IOBase):
|
|
518
569
|
fp_closed = getattr(self._fp, "closed", False)
|
519
570
|
|
520
571
|
with self._error_catcher():
|
572
|
+
data = self._fp_read(amt) if not fp_closed else b""
|
521
573
|
if amt is None:
|
522
|
-
# cStringIO doesn't like amt=None
|
523
|
-
data = self._fp.read() if not fp_closed else b""
|
524
574
|
flush_decoder = True
|
525
575
|
else:
|
526
576
|
cache_content = False
|
527
|
-
data = self._fp.read(amt) if not fp_closed else b""
|
528
577
|
if (
|
529
578
|
amt != 0 and not data
|
530
579
|
): # Platform-specific: Buggy versions of Python.
|
@@ -620,9 +669,21 @@ class HTTPResponse(io.IOBase):
|
|
620
669
|
|
621
670
|
# Backwards-compatibility methods for http.client.HTTPResponse
|
622
671
|
def getheaders(self):
|
672
|
+
warnings.warn(
|
673
|
+
"HTTPResponse.getheaders() is deprecated and will be removed "
|
674
|
+
"in urllib3 v2.1.0. Instead access HTTPResponse.headers directly.",
|
675
|
+
category=DeprecationWarning,
|
676
|
+
stacklevel=2,
|
677
|
+
)
|
623
678
|
return self.headers
|
624
679
|
|
625
680
|
def getheader(self, name, default=None):
|
681
|
+
warnings.warn(
|
682
|
+
"HTTPResponse.getheader() is deprecated and will be removed "
|
683
|
+
"in urllib3 v2.1.0. Instead use HTTPResponse.headers.get(name, default).",
|
684
|
+
category=DeprecationWarning,
|
685
|
+
stacklevel=2,
|
686
|
+
)
|
626
687
|
return self.headers.get(name, default)
|
627
688
|
|
628
689
|
# Backwards compatibility for http.cookiejar
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from .ssl_ import create_urllib3_context, resolve_cert_reqs, resolve_ssl_version
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
import collections
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -240,7 +240,9 @@ class Retry(object):
|
|
240
240
|
RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503])
|
241
241
|
|
242
242
|
#: Default headers to be used for ``remove_headers_on_redirect``
|
243
|
-
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(
|
243
|
+
DEFAULT_REMOVE_HEADERS_ON_REDIRECT = frozenset(
|
244
|
+
["Cookie", "Authorization", "Proxy-Authorization"]
|
245
|
+
)
|
244
246
|
|
245
247
|
#: Maximum backoff time.
|
246
248
|
DEFAULT_BACKOFF_MAX = 120
|
@@ -399,7 +401,7 @@ class Retry(object):
|
|
399
401
|
def get_retry_after(self, response):
|
400
402
|
"""Get the value of Retry-After in seconds."""
|
401
403
|
|
402
|
-
retry_after = response.
|
404
|
+
retry_after = response.headers.get("Retry-After")
|
403
405
|
|
404
406
|
if retry_after is None:
|
405
407
|
return None
|
oci/_vendor/urllib3/util/ssl_.py
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
8
|
+
import hashlib
|
8
9
|
import hmac
|
9
10
|
import os
|
10
11
|
import sys
|
11
12
|
import warnings
|
12
13
|
from binascii import hexlify, unhexlify
|
13
|
-
from hashlib import md5, sha1, sha256
|
14
14
|
|
15
15
|
from ..exceptions import (
|
16
16
|
InsecurePlatformWarning,
|
@@ -29,7 +29,10 @@ IS_SECURETRANSPORT = False
|
|
29
29
|
ALPN_PROTOCOLS = ["http/1.1"]
|
30
30
|
|
31
31
|
# Maps the length of a digest to a possible hash function producing this digest
|
32
|
-
HASHFUNC_MAP = {
|
32
|
+
HASHFUNC_MAP = {
|
33
|
+
length: getattr(hashlib, algorithm, None)
|
34
|
+
for length, algorithm in ((32, "md5"), (40, "sha1"), (64, "sha256"))
|
35
|
+
}
|
33
36
|
|
34
37
|
|
35
38
|
def _const_compare_digest_backport(a, b):
|
@@ -196,9 +199,15 @@ def assert_fingerprint(cert, fingerprint):
|
|
196
199
|
|
197
200
|
fingerprint = fingerprint.replace(":", "").lower()
|
198
201
|
digest_length = len(fingerprint)
|
199
|
-
|
200
|
-
if not hashfunc:
|
202
|
+
if digest_length not in HASHFUNC_MAP:
|
201
203
|
raise SSLError("Fingerprint of invalid length: {0}".format(fingerprint))
|
204
|
+
hashfunc = HASHFUNC_MAP.get(digest_length)
|
205
|
+
if hashfunc is None:
|
206
|
+
raise SSLError(
|
207
|
+
"Hash function implementation unavailable for fingerprint length: {0}".format(
|
208
|
+
digest_length
|
209
|
+
)
|
210
|
+
)
|
202
211
|
|
203
212
|
# We need encode() here for py32; works on py2 and p33.
|
204
213
|
fingerprint_bytes = unhexlify(fingerprint.encode())
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
"""The match_hostname() function from Python 3.3.3, essential when using SSL."""
|
7
7
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
import io
|
7
7
|
import socket
|
@@ -1,15 +1,14 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
8
8
|
import time
|
9
9
|
|
10
|
-
# The default socket timeout, used by httplib to indicate that no timeout was
|
11
|
-
|
12
|
-
from socket import _GLOBAL_DEFAULT_TIMEOUT
|
10
|
+
# The default socket timeout, used by httplib to indicate that no timeout was; specified by the user
|
11
|
+
from socket import _GLOBAL_DEFAULT_TIMEOUT, getdefaulttimeout
|
13
12
|
|
14
13
|
from ..exceptions import TimeoutStateError
|
15
14
|
|
@@ -121,6 +120,10 @@ class Timeout(object):
|
|
121
120
|
# __str__ provided for backwards compatibility
|
122
121
|
__str__ = __repr__
|
123
122
|
|
123
|
+
@classmethod
|
124
|
+
def resolve_default_timeout(cls, timeout):
|
125
|
+
return getdefaulttimeout() if timeout is cls.DEFAULT_TIMEOUT else timeout
|
126
|
+
|
124
127
|
@classmethod
|
125
128
|
def _validate_timeout(cls, value, name):
|
126
129
|
"""Check that a timeout attribute is valid.
|
oci/_vendor/urllib3/util/url.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
from __future__ import absolute_import
|
7
7
|
|
@@ -55,7 +55,7 @@ _variations = [
|
|
55
55
|
"(?:(?:%(hex)s:){0,6}%(hex)s)?::",
|
56
56
|
]
|
57
57
|
|
58
|
-
UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._
|
58
|
+
UNRESERVED_PAT = r"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789._\-~"
|
59
59
|
IPV6_PAT = "(?:" + "|".join([x % _subs for x in _variations]) + ")"
|
60
60
|
ZONE_ID_PAT = "(?:%25|%)(?:[" + UNRESERVED_PAT + "]|%[a-fA-F0-9]{2})+"
|
61
61
|
IPV6_ADDRZ_PAT = r"\[" + IPV6_PAT + r"(?:" + ZONE_ID_PAT + r")?\]"
|
@@ -68,7 +68,7 @@ IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT + "$")
|
|
68
68
|
BRACELESS_IPV6_ADDRZ_RE = re.compile("^" + IPV6_ADDRZ_PAT[2:-2] + "$")
|
69
69
|
ZONE_ID_RE = re.compile("(" + ZONE_ID_PAT + r")\]$")
|
70
70
|
|
71
|
-
_HOST_PORT_PAT = ("^(%s|%s|%s)(?::([0-9]{0,
|
71
|
+
_HOST_PORT_PAT = ("^(%s|%s|%s)(?::0*?(|0|[1-9][0-9]{0,4}))?$") % (
|
72
72
|
REG_NAME_PAT,
|
73
73
|
IPV4_PAT,
|
74
74
|
IPV6_ADDRZ_PAT,
|
@@ -284,6 +284,9 @@ def _normalize_host(host, scheme):
|
|
284
284
|
if scheme in NORMALIZABLE_SCHEMES:
|
285
285
|
is_ipv6 = IPV6_ADDRZ_RE.match(host)
|
286
286
|
if is_ipv6:
|
287
|
+
# IPv6 hosts of the form 'a::b%zone' are encoded in a URL as
|
288
|
+
# such per RFC 6874: 'a::b%25zone'. Unquote the ZoneID
|
289
|
+
# separator as necessary to return a valid RFC 4007 scoped IP.
|
287
290
|
match = ZONE_ID_RE.search(host)
|
288
291
|
if match:
|
289
292
|
start, end = match.span(1)
|
@@ -305,7 +308,7 @@ def _normalize_host(host, scheme):
|
|
305
308
|
|
306
309
|
|
307
310
|
def _idna_encode(name):
|
308
|
-
if name and any(
|
311
|
+
if name and any(ord(x) >= 128 for x in name):
|
309
312
|
try:
|
310
313
|
import idna
|
311
314
|
except ImportError:
|
@@ -336,7 +339,7 @@ def parse_url(url):
|
|
336
339
|
"""
|
337
340
|
Given a url, return a parsed :class:`.Url` namedtuple. Best-effort is
|
338
341
|
performed to parse incomplete urls. Fields not provided will be None.
|
339
|
-
This parser is RFC 3986 compliant.
|
342
|
+
This parser is RFC 3986 and RFC 6874 compliant.
|
340
343
|
|
341
344
|
The parser logic and helper functions are based heavily on
|
342
345
|
work done in the ``rfc3986`` module.
|
oci/_vendor/urllib3/util/wait.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
# Modified Work: Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
3
|
# 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.
|
4
|
-
# Copyright 2008-
|
4
|
+
# Copyright (c) 2008-2020 Andrey Petrov and contributors
|
5
5
|
|
6
6
|
import errno
|
7
7
|
import select
|
@@ -47,7 +47,6 @@ if sys.version_info >= (3, 5):
|
|
47
47
|
def _retry_on_intr(fn, timeout):
|
48
48
|
return fn(timeout)
|
49
49
|
|
50
|
-
|
51
50
|
else:
|
52
51
|
# Old and broken Pythons.
|
53
52
|
def _retry_on_intr(fn, timeout):
|
@@ -160,7 +160,7 @@ class AccessGovernanceCPClient(object):
|
|
160
160
|
:rtype: :class:`~oci.response.Response`
|
161
161
|
|
162
162
|
:example:
|
163
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
163
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/change_governance_instance_compartment.py.html>`__ to see an example of how to use change_governance_instance_compartment API.
|
164
164
|
"""
|
165
165
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
166
166
|
required_arguments = ['governanceInstanceId']
|
@@ -270,7 +270,7 @@ class AccessGovernanceCPClient(object):
|
|
270
270
|
:rtype: :class:`~oci.response.Response`
|
271
271
|
|
272
272
|
:example:
|
273
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
273
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/create_governance_instance.py.html>`__ to see an example of how to use create_governance_instance API.
|
274
274
|
"""
|
275
275
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
276
276
|
required_arguments = []
|
@@ -375,7 +375,7 @@ class AccessGovernanceCPClient(object):
|
|
375
375
|
:rtype: :class:`~oci.response.Response`
|
376
376
|
|
377
377
|
:example:
|
378
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
378
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/delete_governance_instance.py.html>`__ to see an example of how to use delete_governance_instance API.
|
379
379
|
"""
|
380
380
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
381
381
|
required_arguments = ['governanceInstanceId']
|
@@ -476,7 +476,7 @@ class AccessGovernanceCPClient(object):
|
|
476
476
|
:rtype: :class:`~oci.response.Response`
|
477
477
|
|
478
478
|
:example:
|
479
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
479
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/get_governance_instance.py.html>`__ to see an example of how to use get_governance_instance API.
|
480
480
|
"""
|
481
481
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
482
482
|
required_arguments = ['governanceInstanceId']
|
@@ -574,7 +574,7 @@ class AccessGovernanceCPClient(object):
|
|
574
574
|
:rtype: :class:`~oci.response.Response`
|
575
575
|
|
576
576
|
:example:
|
577
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
577
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/get_governance_instance_configuration.py.html>`__ to see an example of how to use get_governance_instance_configuration API.
|
578
578
|
"""
|
579
579
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
580
580
|
required_arguments = ['compartmentId']
|
@@ -692,7 +692,7 @@ class AccessGovernanceCPClient(object):
|
|
692
692
|
:rtype: :class:`~oci.response.Response`
|
693
693
|
|
694
694
|
:example:
|
695
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
695
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/list_governance_instances.py.html>`__ to see an example of how to use list_governance_instances API.
|
696
696
|
"""
|
697
697
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
698
698
|
required_arguments = ['compartmentId']
|
@@ -823,7 +823,7 @@ class AccessGovernanceCPClient(object):
|
|
823
823
|
:rtype: :class:`~oci.response.Response`
|
824
824
|
|
825
825
|
:example:
|
826
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
826
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/update_governance_instance.py.html>`__ to see an example of how to use update_governance_instance API.
|
827
827
|
"""
|
828
828
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
829
829
|
required_arguments = ['governanceInstanceId']
|
@@ -935,7 +935,7 @@ class AccessGovernanceCPClient(object):
|
|
935
935
|
:rtype: :class:`~oci.response.Response`
|
936
936
|
|
937
937
|
:example:
|
938
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
938
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.139.0/accessgovernancecp/update_governance_instance_configuration.py.html>`__ to see an example of how to use update_governance_instance_configuration API.
|
939
939
|
"""
|
940
940
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
941
941
|
required_arguments = ['compartmentId']
|