oci 2.132.0__py3-none-any.whl → 2.133.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/__init__.py +2 -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 +626 -28
- oci/ai_document/ai_service_document_client_composite_operations.py +180 -0
- oci/ai_document/models/__init__.py +10 -0
- oci/ai_document/models/add_model_lock_details.py +150 -0
- oci/ai_document/models/add_project_lock_details.py +150 -0
- oci/ai_document/models/analyze_document_details.py +5 -5
- oci/ai_document/models/detected_document_type.py +0 -35
- oci/ai_document/models/document_classification_feature.py +2 -33
- oci/ai_document/models/document_key_value_extraction_feature.py +2 -33
- oci/ai_document/models/general_processor_config.py +5 -5
- oci/ai_document/models/model.py +33 -2
- oci/ai_document/models/model_summary.py +33 -2
- oci/ai_document/models/output_location.py +1 -1
- oci/ai_document/models/project.py +33 -2
- oci/ai_document/models/remove_model_lock_details.py +88 -0
- oci/ai_document/models/remove_project_lock_details.py +88 -0
- oci/ai_document/models/resource_lock.py +216 -0
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +17 -17
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/__init__.py +3 -1
- oci/announcements_service/announcement_client.py +103 -6
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/models/__init__.py +12 -0
- oci/announcements_service/models/announcement.py +1 -1
- oci/announcements_service/models/announcement_compartment.py +72 -0
- oci/announcements_service/models/announcement_summary.py +1 -1
- oci/announcements_service/models/base_announcement.py +7 -3
- oci/announcements_service/models/base_service.py +498 -0
- oci/announcements_service/models/notifications_summary.py +130 -0
- oci/announcements_service/models/service.py +130 -0
- oci/announcements_service/models/service_summary.py +133 -0
- oci/announcements_service/models/services_collection.py +72 -0
- oci/announcements_service/service_client.py +275 -0
- oci/announcements_service/service_client_composite_operations.py +26 -0
- 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 +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- 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 +42 -42
- 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 +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +13862 -9467
- oci/database/database_client_composite_operations.py +1868 -232
- oci/database/models/__init__.py +80 -0
- oci/database/models/action_member.py +134 -0
- oci/database/models/action_order_details.py +107 -0
- oci/database/models/action_param_values_collection.py +72 -0
- oci/database/models/action_param_values_summary.py +216 -0
- oci/database/models/autonomous_database.py +33 -6
- oci/database/models/autonomous_database_standby_summary.py +33 -2
- oci/database/models/autonomous_database_summary.py +33 -6
- oci/database/models/cancel_execution_window_details.py +134 -0
- oci/database/models/change_scheduling_plan_compartment_details.py +76 -0
- oci/database/models/change_scheduling_policy_compartment_details.py +76 -0
- oci/database/models/cloud_exadata_infrastructure.py +33 -2
- oci/database/models/cloud_exadata_infrastructure_summary.py +33 -2
- oci/database/models/create_autonomous_database_base.py +2 -6
- oci/database/models/create_data_guard_association_with_new_db_system_details.py +35 -0
- oci/database/models/create_exadb_vm_cluster_details.py +12 -2
- oci/database/models/create_execution_action_details.py +304 -0
- oci/database/models/create_execution_window_details.py +282 -0
- oci/database/models/create_pluggable_database_creation_type_details.py +0 -2
- oci/database/models/create_scheduled_action_details.py +339 -0
- oci/database/models/create_scheduling_plan_details.py +306 -0
- oci/database/models/create_scheduling_policy_details.py +267 -0
- oci/database/models/create_scheduling_window_details.py +181 -0
- oci/database/models/exadata_infrastructure.py +33 -2
- oci/database/models/exadata_infrastructure_summary.py +33 -2
- oci/database/models/exadb_vm_cluster.py +12 -2
- oci/database/models/exadb_vm_cluster_summary.py +12 -2
- oci/database/models/execution_action.py +715 -0
- oci/database/models/execution_action_member.py +216 -0
- oci/database/models/execution_action_summary.py +715 -0
- oci/database/models/execution_window.py +783 -0
- oci/database/models/execution_window_summary.py +783 -0
- oci/database/models/granular_maintenance_history_details.py +99 -0
- oci/database/models/maintenance_run.py +62 -0
- oci/database/models/maintenance_run_history.py +64 -2
- oci/database/models/maintenance_run_history_summary.py +64 -2
- oci/database/models/maintenance_run_summary.py +62 -0
- oci/database/models/move_execution_action_member_details.py +220 -0
- oci/database/models/recommended_scheduled_action_summary.py +280 -0
- oci/database/models/recommended_scheduled_actions_collection.py +72 -0
- oci/database/models/reorder_execution_action_details.py +152 -0
- oci/database/models/reorder_scheduled_actions_details.py +109 -0
- oci/database/models/scheduled_action.py +633 -0
- oci/database/models/scheduled_action_collection.py +72 -0
- oci/database/models/scheduled_action_summary.py +633 -0
- oci/database/models/scheduling_plan.py +643 -0
- oci/database/models/scheduling_plan_collection.py +72 -0
- oci/database/models/scheduling_plan_summary.py +643 -0
- oci/database/models/scheduling_policy.py +493 -0
- oci/database/models/scheduling_policy_summary.py +493 -0
- oci/database/models/scheduling_window.py +469 -0
- oci/database/models/scheduling_window_summary.py +469 -0
- oci/database/models/update_autonomous_database_details.py +2 -6
- oci/database/models/update_exadb_vm_cluster_details.py +12 -2
- oci/database/models/update_execution_action_details.py +218 -0
- oci/database/models/update_execution_window_details.py +212 -0
- oci/database/models/update_scheduled_action_details.py +140 -0
- oci/database/models/update_scheduling_policy_details.py +232 -0
- oci/database/models/update_scheduling_window_details.py +146 -0
- oci/database/models/window_preference_detail.py +231 -0
- oci/database_management/db_management_client.py +580 -208
- oci/database_management/db_management_client_composite_operations.py +132 -0
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +14 -0
- oci/database_management/models/autonomous_database_diagnostics_and_management_feature_details.py +65 -0
- oci/database_management/models/autonomous_database_feature_details.py +167 -0
- oci/database_management/models/autonomous_database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/connector_details.py +15 -3
- oci/database_management/models/create_db_management_private_endpoint_details.py +31 -0
- oci/database_management/models/db_management_private_endpoint.py +31 -0
- oci/database_management/models/direct_connector_details.py +51 -0
- oci/database_management/models/disable_autonomous_database_management_feature_details.py +92 -0
- oci/database_management/models/enable_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/external_connector_details.py +1 -1
- oci/database_management/models/macs_connector_details.py +1 -1
- oci/database_management/models/modify_autonomous_database_management_feature_details.py +68 -0
- oci/database_management/models/optimizer_statistics_collection_operation.py +7 -3
- oci/database_management/models/optimizer_statistics_collection_operation_summary.py +7 -3
- oci/database_management/models/private_end_point_connector_details.py +1 -1
- 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/__init__.py +16 -0
- oci/delegate_access_control/delegate_access_control_client.py +3324 -0
- oci/delegate_access_control/delegate_access_control_client_composite_operations.py +492 -0
- oci/delegate_access_control/models/__init__.py +96 -0
- oci/delegate_access_control/models/approve_delegated_resource_access_request_details.py +138 -0
- oci/delegate_access_control/models/change_delegation_control_compartment_details.py +72 -0
- oci/delegate_access_control/models/change_delegation_subscription_compartment_details.py +72 -0
- oci/delegate_access_control/models/create_delegation_control_details.py +548 -0
- oci/delegate_access_control/models/create_delegation_subscription_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request.py +1373 -0
- oci/delegate_access_control/models/delegated_resource_access_request_approval_details.py +263 -0
- oci/delegate_access_control/models/delegated_resource_access_request_audit_log_report.py +193 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_collection.py +72 -0
- oci/delegate_access_control/models/delegated_resource_access_request_history_summary.py +300 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary.py +981 -0
- oci/delegate_access_control/models/delegated_resource_access_request_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control.py +833 -0
- oci/delegate_access_control/models/delegation_control_resource_collection.py +72 -0
- oci/delegate_access_control/models/delegation_control_resource_summary.py +147 -0
- oci/delegate_access_control/models/delegation_control_summary.py +465 -0
- oci/delegate_access_control/models/delegation_control_summary_collection.py +72 -0
- oci/delegate_access_control/models/delegation_subscription.py +524 -0
- oci/delegate_access_control/models/delegation_subscription_summary.py +461 -0
- oci/delegate_access_control/models/delegation_subscription_summary_collection.py +72 -0
- oci/delegate_access_control/models/reject_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/revoke_delegated_resource_access_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider.py +583 -0
- oci/delegate_access_control/models/service_provider_action.py +371 -0
- oci/delegate_access_control/models/service_provider_action_properties.py +103 -0
- oci/delegate_access_control/models/service_provider_action_summary.py +323 -0
- oci/delegate_access_control/models/service_provider_action_summary_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_collection.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_request_details.py +72 -0
- oci/delegate_access_control/models/service_provider_interaction_summary.py +247 -0
- oci/delegate_access_control/models/service_provider_summary.py +508 -0
- oci/delegate_access_control/models/service_provider_summary_collection.py +72 -0
- oci/delegate_access_control/models/update_delegation_control_details.py +404 -0
- oci/delegate_access_control/models/update_delegation_subscription_details.py +154 -0
- oci/delegate_access_control/models/work_request.py +438 -0
- oci/delegate_access_control/models/work_request_error.py +136 -0
- oci/delegate_access_control/models/work_request_error_collection.py +72 -0
- oci/delegate_access_control/models/work_request_log_entry.py +103 -0
- oci/delegate_access_control/models/work_request_log_entry_collection.py +72 -0
- oci/delegate_access_control/models/work_request_resource.py +234 -0
- oci/delegate_access_control/models/work_request_summary.py +438 -0
- oci/delegate_access_control/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/work_request_client.py +660 -0
- oci/delegate_access_control/work_request_client_composite_operations.py +26 -0
- 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 +52 -52
- 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_data_lake_client.py +13 -13
- 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 +393 -59
- oci/file_storage/file_storage_client_composite_operations.py +138 -0
- oci/file_storage/models/__init__.py +4 -0
- oci/file_storage/models/create_mount_target_details.py +39 -26
- oci/file_storage/models/mount_target.py +153 -3
- oci/file_storage/models/mount_target_summary.py +155 -3
- oci/file_storage/models/schedule_downgrade_shape_mount_target_details.py +78 -0
- oci/file_storage/models/upgrade_shape_mount_target_details.py +78 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +8 -8
- 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 +13 -13
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +4 -4
- 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/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/models/fusion_environment_family.py +33 -2
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- 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 +68 -68
- 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 +307 -307
- oci/integration/integration_instance_client.py +16 -16
- 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 +25 -25
- oci/key_management/kms_hsm_cluster_client_composite_operations.py +3 -3
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/key_management/models/auto_key_rotation_details.py +10 -10
- oci/key_management/models/change_hsm_cluster_compartment_details.py +3 -3
- oci/key_management/models/create_hsm_cluster_details.py +5 -5
- oci/key_management/models/hsm_cluster.py +4 -4
- oci/key_management/models/hsm_cluster_collection.py +2 -2
- oci/key_management/models/hsm_cluster_summary.py +3 -3
- oci/key_management/models/hsm_partition.py +29 -9
- oci/key_management/models/hsm_partition_collection.py +1 -1
- oci/key_management/models/hsm_partition_summary.py +11 -7
- oci/key_management/models/port_information.py +5 -5
- oci/key_management/models/pre_co_user_credentials.py +2 -2
- oci/key_management/models/upload_partition_certificates_details.py +5 -5
- oci/key_management/models/vault.py +31 -0
- 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/load_balancer/models/backend.py +4 -0
- oci/load_balancer/models/backend_details.py +4 -0
- oci/load_balancer/models/backend_set.py +6 -2
- oci/load_balancer/models/backend_set_details.py +6 -2
- oci/load_balancer/models/create_backend_details.py +4 -0
- oci/load_balancer/models/create_backend_set_details.py +6 -2
- oci/load_balancer/models/create_load_balancer_details.py +116 -0
- oci/load_balancer/models/ip_max_connections.py +8 -2
- oci/load_balancer/models/load_balancer.py +100 -0
- oci/load_balancer/models/update_backend_details.py +4 -0
- oci/load_balancer/models/update_backend_set_details.py +6 -2
- oci/load_balancer/models/update_load_balancer_details.py +112 -0
- 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/models/__init__.py +2 -0
- oci/mysql/models/create_db_system_details.py +37 -2
- oci/mysql/models/customer_contact.py +72 -0
- oci/mysql/models/db_system.py +37 -2
- oci/mysql/models/update_db_system_details.py +37 -2
- 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/models/__init__.py +14 -0
- oci/object_storage/models/access_target_details.py +136 -0
- oci/object_storage/models/create_private_endpoint_details.py +389 -0
- oci/object_storage/models/fqdns.py +99 -0
- oci/object_storage/models/prefix_fqdns.py +134 -0
- oci/object_storage/models/private_endpoint.py +685 -0
- oci/object_storage/models/private_endpoint_summary.py +369 -0
- oci/object_storage/models/update_private_endpoint_details.py +216 -0
- oci/object_storage/models/work_request.py +15 -3
- oci/object_storage/models/work_request_summary.py +15 -3
- oci/object_storage/object_storage_client.py +686 -71
- oci/object_storage/object_storage_client_composite_operations.py +139 -0
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +8 -8
- oci/ocvp/cluster_client_composite_operations.py +2 -2
- oci/ocvp/esxi_host_client.py +9 -9
- oci/ocvp/models/cluster.py +35 -2
- oci/ocvp/models/cluster_summary.py +35 -2
- oci/ocvp/models/datastore_details.py +1 -1
- oci/ocvp/models/esxi_host.py +35 -2
- oci/ocvp/models/esxi_host_summary.py +35 -2
- oci/ocvp/models/sddc.py +35 -2
- oci/ocvp/models/sddc_summary.py +35 -2
- oci/ocvp/models/supported_host_shape_summary.py +55 -3
- oci/ocvp/models/work_request.py +55 -3
- oci/ocvp/sddc_client.py +21 -16
- 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 +177 -177
- 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/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 +135 -25
- oci/recovery/database_recovery_client_composite_operations.py +42 -0
- oci/recovery/models/__init__.py +2 -0
- oci/recovery/models/change_protected_database_subscription_details.py +103 -0
- oci/recovery/models/create_protected_database_details.py +33 -0
- oci/recovery/models/create_protection_policy_details.py +39 -0
- oci/recovery/models/protected_database.py +31 -0
- oci/recovery/models/protected_database_summary.py +31 -0
- oci/recovery/models/protection_policy.py +31 -0
- oci/recovery/models/protection_policy_summary.py +31 -0
- 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/service_catalog/service_catalog_client.py +26 -26
- oci/service_endpoints.py +1 -0
- 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 +64 -64
- 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/models/__init__.py +2 -0
- oci/waf/models/dynamic_http_response_body.py +104 -0
- oci/waf/models/http_response_body.py +11 -3
- oci/waf/models/static_text_http_response_body.py +1 -1
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/METADATA +1 -1
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/RECORD +489 -369
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/WHEEL +0 -0
- {oci-2.132.0.dist-info → oci-2.133.0.dist-info}/top_level.txt +0 -0
@@ -158,7 +158,7 @@ class ObjectStorageClient(object):
|
|
158
158
|
:rtype: :class:`~oci.response.Response`
|
159
159
|
|
160
160
|
:example:
|
161
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
161
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/abort_multipart_upload.py.html>`__ to see an example of how to use abort_multipart_upload API.
|
162
162
|
"""
|
163
163
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
164
164
|
required_arguments = ['namespaceName', 'bucketName', 'objectName', 'uploadId']
|
@@ -263,7 +263,7 @@ class ObjectStorageClient(object):
|
|
263
263
|
:rtype: :class:`~oci.response.Response`
|
264
264
|
|
265
265
|
:example:
|
266
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
266
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/cancel_work_request.py.html>`__ to see an example of how to use cancel_work_request API.
|
267
267
|
"""
|
268
268
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
269
269
|
required_arguments = ['workRequestId']
|
@@ -382,7 +382,7 @@ class ObjectStorageClient(object):
|
|
382
382
|
:rtype: :class:`~oci.response.Response`
|
383
383
|
|
384
384
|
:example:
|
385
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
385
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/commit_multipart_upload.py.html>`__ to see an example of how to use commit_multipart_upload API.
|
386
386
|
"""
|
387
387
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
388
388
|
required_arguments = ['namespaceName', 'bucketName', 'objectName', 'uploadId']
|
@@ -553,7 +553,7 @@ class ObjectStorageClient(object):
|
|
553
553
|
:rtype: :class:`~oci.response.Response`
|
554
554
|
|
555
555
|
:example:
|
556
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
556
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/copy_object.py.html>`__ to see an example of how to use copy_object API.
|
557
557
|
"""
|
558
558
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
559
559
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -670,7 +670,7 @@ class ObjectStorageClient(object):
|
|
670
670
|
:rtype: :class:`~oci.response.Response`
|
671
671
|
|
672
672
|
:example:
|
673
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
673
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_bucket.py.html>`__ to see an example of how to use create_bucket API.
|
674
674
|
"""
|
675
675
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
676
676
|
required_arguments = ['namespaceName']
|
@@ -817,7 +817,7 @@ class ObjectStorageClient(object):
|
|
817
817
|
:rtype: :class:`~oci.response.Response`
|
818
818
|
|
819
819
|
:example:
|
820
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
820
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_multipart_upload.py.html>`__ to see an example of how to use create_multipart_upload API.
|
821
821
|
"""
|
822
822
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
823
823
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -937,7 +937,7 @@ class ObjectStorageClient(object):
|
|
937
937
|
:rtype: :class:`~oci.response.Response`
|
938
938
|
|
939
939
|
:example:
|
940
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
940
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_preauthenticated_request.py.html>`__ to see an example of how to use create_preauthenticated_request API.
|
941
941
|
"""
|
942
942
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
943
943
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -1011,6 +1011,107 @@ class ObjectStorageClient(object):
|
|
1011
1011
|
api_reference_link=api_reference_link,
|
1012
1012
|
required_arguments=required_arguments)
|
1013
1013
|
|
1014
|
+
def create_private_endpoint(self, namespace_name, create_private_endpoint_details, **kwargs):
|
1015
|
+
"""
|
1016
|
+
Create a PrivateEndpoint.
|
1017
|
+
|
1018
|
+
|
1019
|
+
:param str namespace_name: (required)
|
1020
|
+
The Object Storage namespace used for the request.
|
1021
|
+
|
1022
|
+
:param oci.object_storage.models.CreatePrivateEndpointDetails create_private_endpoint_details: (required)
|
1023
|
+
Details to create a private endpoint.
|
1024
|
+
|
1025
|
+
:param str opc_client_request_id: (optional)
|
1026
|
+
The client request ID for tracing.
|
1027
|
+
|
1028
|
+
:param obj retry_strategy: (optional)
|
1029
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1030
|
+
|
1031
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1032
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1033
|
+
|
1034
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1035
|
+
|
1036
|
+
:param bool allow_control_chars: (optional)
|
1037
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1038
|
+
By default, the response will not allow control characters in strings
|
1039
|
+
|
1040
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1041
|
+
:rtype: :class:`~oci.response.Response`
|
1042
|
+
|
1043
|
+
:example:
|
1044
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_private_endpoint.py.html>`__ to see an example of how to use create_private_endpoint API.
|
1045
|
+
"""
|
1046
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1047
|
+
required_arguments = ['namespaceName']
|
1048
|
+
resource_path = "/n/{namespaceName}/pe"
|
1049
|
+
method = "POST"
|
1050
|
+
operation_name = "create_private_endpoint"
|
1051
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/CreatePrivateEndpoint"
|
1052
|
+
|
1053
|
+
# Don't accept unknown kwargs
|
1054
|
+
expected_kwargs = [
|
1055
|
+
"allow_control_chars",
|
1056
|
+
"retry_strategy",
|
1057
|
+
"opc_client_request_id"
|
1058
|
+
]
|
1059
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1060
|
+
if extra_kwargs:
|
1061
|
+
raise ValueError(
|
1062
|
+
f"create_private_endpoint got unknown kwargs: {extra_kwargs!r}")
|
1063
|
+
|
1064
|
+
path_params = {
|
1065
|
+
"namespaceName": namespace_name
|
1066
|
+
}
|
1067
|
+
|
1068
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1069
|
+
|
1070
|
+
for (k, v) in six.iteritems(path_params):
|
1071
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1072
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1073
|
+
|
1074
|
+
header_params = {
|
1075
|
+
"accept": "application/json",
|
1076
|
+
"content-type": "application/json",
|
1077
|
+
"opc-client-request-id": kwargs.get("opc_client_request_id", missing)
|
1078
|
+
}
|
1079
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1080
|
+
|
1081
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1082
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1083
|
+
client_retry_strategy=self.retry_strategy
|
1084
|
+
)
|
1085
|
+
if retry_strategy is None:
|
1086
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1087
|
+
|
1088
|
+
if retry_strategy:
|
1089
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1090
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1091
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1092
|
+
return retry_strategy.make_retrying_call(
|
1093
|
+
self.base_client.call_api,
|
1094
|
+
resource_path=resource_path,
|
1095
|
+
method=method,
|
1096
|
+
path_params=path_params,
|
1097
|
+
header_params=header_params,
|
1098
|
+
body=create_private_endpoint_details,
|
1099
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1100
|
+
operation_name=operation_name,
|
1101
|
+
api_reference_link=api_reference_link,
|
1102
|
+
required_arguments=required_arguments)
|
1103
|
+
else:
|
1104
|
+
return self.base_client.call_api(
|
1105
|
+
resource_path=resource_path,
|
1106
|
+
method=method,
|
1107
|
+
path_params=path_params,
|
1108
|
+
header_params=header_params,
|
1109
|
+
body=create_private_endpoint_details,
|
1110
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1111
|
+
operation_name=operation_name,
|
1112
|
+
api_reference_link=api_reference_link,
|
1113
|
+
required_arguments=required_arguments)
|
1114
|
+
|
1014
1115
|
def create_replication_policy(self, namespace_name, bucket_name, create_replication_policy_details, **kwargs):
|
1015
1116
|
"""
|
1016
1117
|
Creates a replication policy for the specified bucket.
|
@@ -1045,7 +1146,7 @@ class ObjectStorageClient(object):
|
|
1045
1146
|
:rtype: :class:`~oci.response.Response`
|
1046
1147
|
|
1047
1148
|
:example:
|
1048
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1149
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_replication_policy.py.html>`__ to see an example of how to use create_replication_policy API.
|
1049
1150
|
"""
|
1050
1151
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1051
1152
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -1154,7 +1255,7 @@ class ObjectStorageClient(object):
|
|
1154
1255
|
:rtype: :class:`~oci.response.Response`
|
1155
1256
|
|
1156
1257
|
:example:
|
1157
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1258
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/create_retention_rule.py.html>`__ to see an example of how to use create_retention_rule API.
|
1158
1259
|
"""
|
1159
1260
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1160
1261
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -1267,7 +1368,7 @@ class ObjectStorageClient(object):
|
|
1267
1368
|
:rtype: :class:`~oci.response.Response`
|
1268
1369
|
|
1269
1370
|
:example:
|
1270
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1371
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_bucket.py.html>`__ to see an example of how to use delete_bucket API.
|
1271
1372
|
"""
|
1272
1373
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1273
1374
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -1382,7 +1483,7 @@ class ObjectStorageClient(object):
|
|
1382
1483
|
:rtype: :class:`~oci.response.Response`
|
1383
1484
|
|
1384
1485
|
:example:
|
1385
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1486
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_object.py.html>`__ to see an example of how to use delete_object API.
|
1386
1487
|
"""
|
1387
1488
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1388
1489
|
required_arguments = ['namespaceName', 'bucketName', 'objectName']
|
@@ -1499,7 +1600,7 @@ class ObjectStorageClient(object):
|
|
1499
1600
|
:rtype: :class:`~oci.response.Response`
|
1500
1601
|
|
1501
1602
|
:example:
|
1502
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1603
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_object_lifecycle_policy.py.html>`__ to see an example of how to use delete_object_lifecycle_policy API.
|
1503
1604
|
"""
|
1504
1605
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1505
1606
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -1606,7 +1707,7 @@ class ObjectStorageClient(object):
|
|
1606
1707
|
:rtype: :class:`~oci.response.Response`
|
1607
1708
|
|
1608
1709
|
:example:
|
1609
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1710
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_preauthenticated_request.py.html>`__ to see an example of how to use delete_preauthenticated_request API.
|
1610
1711
|
"""
|
1611
1712
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1612
1713
|
required_arguments = ['namespaceName', 'bucketName', 'parId']
|
@@ -1677,6 +1778,114 @@ class ObjectStorageClient(object):
|
|
1677
1778
|
api_reference_link=api_reference_link,
|
1678
1779
|
required_arguments=required_arguments)
|
1679
1780
|
|
1781
|
+
def delete_private_endpoint(self, namespace_name, pe_name, **kwargs):
|
1782
|
+
"""
|
1783
|
+
Deletes a Private Endpoint if it exists in the given namespace.
|
1784
|
+
|
1785
|
+
|
1786
|
+
:param str namespace_name: (required)
|
1787
|
+
The Object Storage namespace used for the request.
|
1788
|
+
|
1789
|
+
:param str pe_name: (required)
|
1790
|
+
The name of the private endpoint. Avoid entering confidential information.
|
1791
|
+
Example: `my-new-pe-1`
|
1792
|
+
|
1793
|
+
:param str if_match: (optional)
|
1794
|
+
The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of
|
1795
|
+
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload
|
1796
|
+
the resource.
|
1797
|
+
|
1798
|
+
:param str opc_client_request_id: (optional)
|
1799
|
+
The client request ID for tracing.
|
1800
|
+
|
1801
|
+
:param obj retry_strategy: (optional)
|
1802
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1803
|
+
|
1804
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1805
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1806
|
+
|
1807
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1808
|
+
|
1809
|
+
:param bool allow_control_chars: (optional)
|
1810
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1811
|
+
By default, the response will not allow control characters in strings
|
1812
|
+
|
1813
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1814
|
+
:rtype: :class:`~oci.response.Response`
|
1815
|
+
|
1816
|
+
:example:
|
1817
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_private_endpoint.py.html>`__ to see an example of how to use delete_private_endpoint API.
|
1818
|
+
"""
|
1819
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1820
|
+
required_arguments = ['namespaceName', 'peName']
|
1821
|
+
resource_path = "/n/{namespaceName}/pe/{peName}"
|
1822
|
+
method = "DELETE"
|
1823
|
+
operation_name = "delete_private_endpoint"
|
1824
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/DeletePrivateEndpoint"
|
1825
|
+
|
1826
|
+
# Don't accept unknown kwargs
|
1827
|
+
expected_kwargs = [
|
1828
|
+
"allow_control_chars",
|
1829
|
+
"retry_strategy",
|
1830
|
+
"if_match",
|
1831
|
+
"opc_client_request_id"
|
1832
|
+
]
|
1833
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1834
|
+
if extra_kwargs:
|
1835
|
+
raise ValueError(
|
1836
|
+
f"delete_private_endpoint got unknown kwargs: {extra_kwargs!r}")
|
1837
|
+
|
1838
|
+
path_params = {
|
1839
|
+
"namespaceName": namespace_name,
|
1840
|
+
"peName": pe_name
|
1841
|
+
}
|
1842
|
+
|
1843
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1844
|
+
|
1845
|
+
for (k, v) in six.iteritems(path_params):
|
1846
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1847
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1848
|
+
|
1849
|
+
header_params = {
|
1850
|
+
"accept": "application/json",
|
1851
|
+
"content-type": "application/json",
|
1852
|
+
"if-match": kwargs.get("if_match", missing),
|
1853
|
+
"opc-client-request-id": kwargs.get("opc_client_request_id", missing)
|
1854
|
+
}
|
1855
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1856
|
+
|
1857
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1858
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1859
|
+
client_retry_strategy=self.retry_strategy
|
1860
|
+
)
|
1861
|
+
if retry_strategy is None:
|
1862
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1863
|
+
|
1864
|
+
if retry_strategy:
|
1865
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1866
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1867
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1868
|
+
return retry_strategy.make_retrying_call(
|
1869
|
+
self.base_client.call_api,
|
1870
|
+
resource_path=resource_path,
|
1871
|
+
method=method,
|
1872
|
+
path_params=path_params,
|
1873
|
+
header_params=header_params,
|
1874
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1875
|
+
operation_name=operation_name,
|
1876
|
+
api_reference_link=api_reference_link,
|
1877
|
+
required_arguments=required_arguments)
|
1878
|
+
else:
|
1879
|
+
return self.base_client.call_api(
|
1880
|
+
resource_path=resource_path,
|
1881
|
+
method=method,
|
1882
|
+
path_params=path_params,
|
1883
|
+
header_params=header_params,
|
1884
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1885
|
+
operation_name=operation_name,
|
1886
|
+
api_reference_link=api_reference_link,
|
1887
|
+
required_arguments=required_arguments)
|
1888
|
+
|
1680
1889
|
def delete_replication_policy(self, namespace_name, bucket_name, replication_id, **kwargs):
|
1681
1890
|
"""
|
1682
1891
|
Deletes the replication policy associated with the source bucket.
|
@@ -1711,7 +1920,7 @@ class ObjectStorageClient(object):
|
|
1711
1920
|
:rtype: :class:`~oci.response.Response`
|
1712
1921
|
|
1713
1922
|
:example:
|
1714
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1923
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_replication_policy.py.html>`__ to see an example of how to use delete_replication_policy API.
|
1715
1924
|
"""
|
1716
1925
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1717
1926
|
required_arguments = ['namespaceName', 'bucketName', 'replicationId']
|
@@ -1821,7 +2030,7 @@ class ObjectStorageClient(object):
|
|
1821
2030
|
:rtype: :class:`~oci.response.Response`
|
1822
2031
|
|
1823
2032
|
:example:
|
1824
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2033
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/delete_retention_rule.py.html>`__ to see an example of how to use delete_retention_rule API.
|
1825
2034
|
"""
|
1826
2035
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1827
2036
|
required_arguments = ['namespaceName', 'bucketName', 'retentionRuleId']
|
@@ -1943,7 +2152,7 @@ class ObjectStorageClient(object):
|
|
1943
2152
|
:rtype: :class:`~oci.response.Response`
|
1944
2153
|
|
1945
2154
|
:example:
|
1946
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2155
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_bucket.py.html>`__ to see an example of how to use get_bucket API.
|
1947
2156
|
"""
|
1948
2157
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1949
2158
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -2072,7 +2281,7 @@ class ObjectStorageClient(object):
|
|
2072
2281
|
:rtype: :class:`~oci.response.Response`
|
2073
2282
|
|
2074
2283
|
:example:
|
2075
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2284
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_namespace.py.html>`__ to see an example of how to use get_namespace API.
|
2076
2285
|
"""
|
2077
2286
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2078
2287
|
required_arguments = []
|
@@ -2174,7 +2383,7 @@ class ObjectStorageClient(object):
|
|
2174
2383
|
:rtype: :class:`~oci.response.Response`
|
2175
2384
|
|
2176
2385
|
:example:
|
2177
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2386
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_namespace_metadata.py.html>`__ to see an example of how to use get_namespace_metadata API.
|
2178
2387
|
"""
|
2179
2388
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2180
2389
|
required_arguments = ['namespaceName']
|
@@ -2337,7 +2546,7 @@ class ObjectStorageClient(object):
|
|
2337
2546
|
:rtype: :class:`~oci.response.Response`
|
2338
2547
|
|
2339
2548
|
:example:
|
2340
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2549
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_object.py.html>`__ to see an example of how to use get_object API.
|
2341
2550
|
"""
|
2342
2551
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2343
2552
|
required_arguments = ['namespaceName', 'bucketName', 'objectName']
|
@@ -2473,7 +2682,7 @@ class ObjectStorageClient(object):
|
|
2473
2682
|
:rtype: :class:`~oci.response.Response`
|
2474
2683
|
|
2475
2684
|
:example:
|
2476
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2685
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_object_lifecycle_policy.py.html>`__ to see an example of how to use get_object_lifecycle_policy API.
|
2477
2686
|
"""
|
2478
2687
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2479
2688
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -2576,34 +2785,149 @@ class ObjectStorageClient(object):
|
|
2576
2785
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2577
2786
|
By default, the response will not allow control characters in strings
|
2578
2787
|
|
2579
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.PreauthenticatedRequestSummary`
|
2788
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.PreauthenticatedRequestSummary`
|
2789
|
+
:rtype: :class:`~oci.response.Response`
|
2790
|
+
|
2791
|
+
:example:
|
2792
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_preauthenticated_request.py.html>`__ to see an example of how to use get_preauthenticated_request API.
|
2793
|
+
"""
|
2794
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2795
|
+
required_arguments = ['namespaceName', 'bucketName', 'parId']
|
2796
|
+
resource_path = "/n/{namespaceName}/b/{bucketName}/p/{parId}"
|
2797
|
+
method = "GET"
|
2798
|
+
operation_name = "get_preauthenticated_request"
|
2799
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PreauthenticatedRequest/GetPreauthenticatedRequest"
|
2800
|
+
|
2801
|
+
# Don't accept unknown kwargs
|
2802
|
+
expected_kwargs = [
|
2803
|
+
"allow_control_chars",
|
2804
|
+
"retry_strategy",
|
2805
|
+
"opc_client_request_id"
|
2806
|
+
]
|
2807
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2808
|
+
if extra_kwargs:
|
2809
|
+
raise ValueError(
|
2810
|
+
f"get_preauthenticated_request got unknown kwargs: {extra_kwargs!r}")
|
2811
|
+
|
2812
|
+
path_params = {
|
2813
|
+
"namespaceName": namespace_name,
|
2814
|
+
"bucketName": bucket_name,
|
2815
|
+
"parId": par_id
|
2816
|
+
}
|
2817
|
+
|
2818
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2819
|
+
|
2820
|
+
for (k, v) in six.iteritems(path_params):
|
2821
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2822
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2823
|
+
|
2824
|
+
header_params = {
|
2825
|
+
"accept": "application/json",
|
2826
|
+
"content-type": "application/json",
|
2827
|
+
"opc-client-request-id": kwargs.get("opc_client_request_id", missing)
|
2828
|
+
}
|
2829
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2830
|
+
|
2831
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2832
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2833
|
+
client_retry_strategy=self.retry_strategy
|
2834
|
+
)
|
2835
|
+
if retry_strategy is None:
|
2836
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2837
|
+
|
2838
|
+
if retry_strategy:
|
2839
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2840
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2841
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2842
|
+
return retry_strategy.make_retrying_call(
|
2843
|
+
self.base_client.call_api,
|
2844
|
+
resource_path=resource_path,
|
2845
|
+
method=method,
|
2846
|
+
path_params=path_params,
|
2847
|
+
header_params=header_params,
|
2848
|
+
response_type="PreauthenticatedRequestSummary",
|
2849
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2850
|
+
operation_name=operation_name,
|
2851
|
+
api_reference_link=api_reference_link,
|
2852
|
+
required_arguments=required_arguments)
|
2853
|
+
else:
|
2854
|
+
return self.base_client.call_api(
|
2855
|
+
resource_path=resource_path,
|
2856
|
+
method=method,
|
2857
|
+
path_params=path_params,
|
2858
|
+
header_params=header_params,
|
2859
|
+
response_type="PreauthenticatedRequestSummary",
|
2860
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2861
|
+
operation_name=operation_name,
|
2862
|
+
api_reference_link=api_reference_link,
|
2863
|
+
required_arguments=required_arguments)
|
2864
|
+
|
2865
|
+
def get_private_endpoint(self, namespace_name, pe_name, **kwargs):
|
2866
|
+
"""
|
2867
|
+
Gets the current representation of the given Private Endpoint in the given Object Storage namespace.
|
2868
|
+
|
2869
|
+
|
2870
|
+
:param str namespace_name: (required)
|
2871
|
+
The Object Storage namespace used for the request.
|
2872
|
+
|
2873
|
+
:param str pe_name: (required)
|
2874
|
+
The name of the private endpoint. Avoid entering confidential information.
|
2875
|
+
Example: `my-new-pe-1`
|
2876
|
+
|
2877
|
+
:param str if_match: (optional)
|
2878
|
+
The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of
|
2879
|
+
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload
|
2880
|
+
the resource.
|
2881
|
+
|
2882
|
+
:param str if_none_match: (optional)
|
2883
|
+
The entity tag (ETag) to avoid matching. Wildcards ('*') are not allowed. If the specified ETag does not
|
2884
|
+
match the ETag of the existing resource, the request returns the expected response. If the ETag matches
|
2885
|
+
the ETag of the existing resource, the request returns an HTTP 304 status without a response body.
|
2886
|
+
|
2887
|
+
:param str opc_client_request_id: (optional)
|
2888
|
+
The client request ID for tracing.
|
2889
|
+
|
2890
|
+
:param obj retry_strategy: (optional)
|
2891
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2892
|
+
|
2893
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2894
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2895
|
+
|
2896
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2897
|
+
|
2898
|
+
:param bool allow_control_chars: (optional)
|
2899
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2900
|
+
By default, the response will not allow control characters in strings
|
2901
|
+
|
2902
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.object_storage.models.PrivateEndpoint`
|
2580
2903
|
:rtype: :class:`~oci.response.Response`
|
2581
2904
|
|
2582
2905
|
:example:
|
2583
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2906
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_private_endpoint.py.html>`__ to see an example of how to use get_private_endpoint API.
|
2584
2907
|
"""
|
2585
2908
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2586
|
-
required_arguments = ['namespaceName', '
|
2587
|
-
resource_path = "/n/{namespaceName}/
|
2909
|
+
required_arguments = ['namespaceName', 'peName']
|
2910
|
+
resource_path = "/n/{namespaceName}/pe/{peName}"
|
2588
2911
|
method = "GET"
|
2589
|
-
operation_name = "
|
2590
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/
|
2912
|
+
operation_name = "get_private_endpoint"
|
2913
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/GetPrivateEndpoint"
|
2591
2914
|
|
2592
2915
|
# Don't accept unknown kwargs
|
2593
2916
|
expected_kwargs = [
|
2594
2917
|
"allow_control_chars",
|
2595
2918
|
"retry_strategy",
|
2919
|
+
"if_match",
|
2920
|
+
"if_none_match",
|
2596
2921
|
"opc_client_request_id"
|
2597
2922
|
]
|
2598
2923
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2599
2924
|
if extra_kwargs:
|
2600
2925
|
raise ValueError(
|
2601
|
-
f"
|
2926
|
+
f"get_private_endpoint got unknown kwargs: {extra_kwargs!r}")
|
2602
2927
|
|
2603
2928
|
path_params = {
|
2604
2929
|
"namespaceName": namespace_name,
|
2605
|
-
"
|
2606
|
-
"parId": par_id
|
2930
|
+
"peName": pe_name
|
2607
2931
|
}
|
2608
2932
|
|
2609
2933
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2615,6 +2939,8 @@ class ObjectStorageClient(object):
|
|
2615
2939
|
header_params = {
|
2616
2940
|
"accept": "application/json",
|
2617
2941
|
"content-type": "application/json",
|
2942
|
+
"if-match": kwargs.get("if_match", missing),
|
2943
|
+
"if-none-match": kwargs.get("if_none_match", missing),
|
2618
2944
|
"opc-client-request-id": kwargs.get("opc_client_request_id", missing)
|
2619
2945
|
}
|
2620
2946
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -2636,7 +2962,7 @@ class ObjectStorageClient(object):
|
|
2636
2962
|
method=method,
|
2637
2963
|
path_params=path_params,
|
2638
2964
|
header_params=header_params,
|
2639
|
-
response_type="
|
2965
|
+
response_type="PrivateEndpoint",
|
2640
2966
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2641
2967
|
operation_name=operation_name,
|
2642
2968
|
api_reference_link=api_reference_link,
|
@@ -2647,7 +2973,7 @@ class ObjectStorageClient(object):
|
|
2647
2973
|
method=method,
|
2648
2974
|
path_params=path_params,
|
2649
2975
|
header_params=header_params,
|
2650
|
-
response_type="
|
2976
|
+
response_type="PrivateEndpoint",
|
2651
2977
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2652
2978
|
operation_name=operation_name,
|
2653
2979
|
api_reference_link=api_reference_link,
|
@@ -2687,7 +3013,7 @@ class ObjectStorageClient(object):
|
|
2687
3013
|
:rtype: :class:`~oci.response.Response`
|
2688
3014
|
|
2689
3015
|
:example:
|
2690
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3016
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_replication_policy.py.html>`__ to see an example of how to use get_replication_policy API.
|
2691
3017
|
"""
|
2692
3018
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2693
3019
|
required_arguments = ['namespaceName', 'bucketName', 'replicationId']
|
@@ -2794,7 +3120,7 @@ class ObjectStorageClient(object):
|
|
2794
3120
|
:rtype: :class:`~oci.response.Response`
|
2795
3121
|
|
2796
3122
|
:example:
|
2797
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3123
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_retention_rule.py.html>`__ to see an example of how to use get_retention_rule API.
|
2798
3124
|
"""
|
2799
3125
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2800
3126
|
required_arguments = ['namespaceName', 'bucketName', 'retentionRuleId']
|
@@ -2894,7 +3220,7 @@ class ObjectStorageClient(object):
|
|
2894
3220
|
:rtype: :class:`~oci.response.Response`
|
2895
3221
|
|
2896
3222
|
:example:
|
2897
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3223
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
2898
3224
|
"""
|
2899
3225
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2900
3226
|
required_arguments = ['workRequestId']
|
@@ -3006,7 +3332,7 @@ class ObjectStorageClient(object):
|
|
3006
3332
|
:rtype: :class:`~oci.response.Response`
|
3007
3333
|
|
3008
3334
|
:example:
|
3009
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3335
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/head_bucket.py.html>`__ to see an example of how to use head_bucket API.
|
3010
3336
|
"""
|
3011
3337
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3012
3338
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -3148,7 +3474,7 @@ class ObjectStorageClient(object):
|
|
3148
3474
|
:rtype: :class:`~oci.response.Response`
|
3149
3475
|
|
3150
3476
|
:example:
|
3151
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3477
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/head_object.py.html>`__ to see an example of how to use head_object API.
|
3152
3478
|
"""
|
3153
3479
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3154
3480
|
required_arguments = ['namespaceName', 'bucketName', 'objectName']
|
@@ -3296,7 +3622,7 @@ class ObjectStorageClient(object):
|
|
3296
3622
|
:rtype: :class:`~oci.response.Response`
|
3297
3623
|
|
3298
3624
|
:example:
|
3299
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3625
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_buckets.py.html>`__ to see an example of how to use list_buckets API.
|
3300
3626
|
"""
|
3301
3627
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3302
3628
|
required_arguments = ['namespaceName', 'compartmentId']
|
@@ -3439,7 +3765,7 @@ class ObjectStorageClient(object):
|
|
3439
3765
|
:rtype: :class:`~oci.response.Response`
|
3440
3766
|
|
3441
3767
|
:example:
|
3442
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3768
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_multipart_upload_parts.py.html>`__ to see an example of how to use list_multipart_upload_parts API.
|
3443
3769
|
"""
|
3444
3770
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3445
3771
|
required_arguments = ['namespaceName', 'bucketName', 'objectName', 'uploadId']
|
@@ -3567,7 +3893,7 @@ class ObjectStorageClient(object):
|
|
3567
3893
|
:rtype: :class:`~oci.response.Response`
|
3568
3894
|
|
3569
3895
|
:example:
|
3570
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3896
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_multipart_uploads.py.html>`__ to see an example of how to use list_multipart_uploads API.
|
3571
3897
|
"""
|
3572
3898
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3573
3899
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -3674,10 +4000,10 @@ class ObjectStorageClient(object):
|
|
3674
4000
|
The string to use for matching against the start of object names in a list query.
|
3675
4001
|
|
3676
4002
|
:param str start: (optional)
|
3677
|
-
|
4003
|
+
Returns object names which are lexicographically greater than or equal to this parameter.
|
3678
4004
|
|
3679
4005
|
:param str end: (optional)
|
3680
|
-
|
4006
|
+
Returns object names which are lexicographically strictly less than this parameter.
|
3681
4007
|
|
3682
4008
|
:param int limit: (optional)
|
3683
4009
|
For list pagination. The maximum number of results per page, or items to return in a paginated
|
@@ -3706,7 +4032,7 @@ class ObjectStorageClient(object):
|
|
3706
4032
|
The client request ID for tracing.
|
3707
4033
|
|
3708
4034
|
:param str start_after: (optional)
|
3709
|
-
|
4035
|
+
Returns object names which are lexicographically strictly greater than this parameter.
|
3710
4036
|
|
3711
4037
|
:param str page: (optional)
|
3712
4038
|
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. For important
|
@@ -3730,7 +4056,7 @@ class ObjectStorageClient(object):
|
|
3730
4056
|
:rtype: :class:`~oci.response.Response`
|
3731
4057
|
|
3732
4058
|
:example:
|
3733
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4059
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_object_versions.py.html>`__ to see an example of how to use list_object_versions API.
|
3734
4060
|
"""
|
3735
4061
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3736
4062
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -3851,10 +4177,10 @@ class ObjectStorageClient(object):
|
|
3851
4177
|
The string to use for matching against the start of object names in a list query.
|
3852
4178
|
|
3853
4179
|
:param str start: (optional)
|
3854
|
-
|
4180
|
+
Returns object names which are lexicographically greater than or equal to this parameter.
|
3855
4181
|
|
3856
4182
|
:param str end: (optional)
|
3857
|
-
|
4183
|
+
Returns object names which are lexicographically strictly less than this parameter.
|
3858
4184
|
|
3859
4185
|
:param int limit: (optional)
|
3860
4186
|
For list pagination. The maximum number of results per page, or items to return in a paginated
|
@@ -3883,7 +4209,7 @@ class ObjectStorageClient(object):
|
|
3883
4209
|
The client request ID for tracing.
|
3884
4210
|
|
3885
4211
|
:param str start_after: (optional)
|
3886
|
-
|
4212
|
+
Returns object names which are lexicographically strictly greater than this parameter.
|
3887
4213
|
|
3888
4214
|
:param obj retry_strategy: (optional)
|
3889
4215
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -3901,7 +4227,7 @@ class ObjectStorageClient(object):
|
|
3901
4227
|
:rtype: :class:`~oci.response.Response`
|
3902
4228
|
|
3903
4229
|
:example:
|
3904
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4230
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_objects.py.html>`__ to see an example of how to use list_objects API.
|
3905
4231
|
"""
|
3906
4232
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3907
4233
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4040,7 +4366,7 @@ class ObjectStorageClient(object):
|
|
4040
4366
|
:rtype: :class:`~oci.response.Response`
|
4041
4367
|
|
4042
4368
|
:example:
|
4043
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4369
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_preauthenticated_requests.py.html>`__ to see an example of how to use list_preauthenticated_requests API.
|
4044
4370
|
"""
|
4045
4371
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4046
4372
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4124,6 +4450,168 @@ class ObjectStorageClient(object):
|
|
4124
4450
|
api_reference_link=api_reference_link,
|
4125
4451
|
required_arguments=required_arguments)
|
4126
4452
|
|
4453
|
+
def list_private_endpoints(self, namespace_name, compartment_id, **kwargs):
|
4454
|
+
"""
|
4455
|
+
Gets a list of all PrivateEndpointSummary in a compartment associated with a namespace.
|
4456
|
+
To use this and other API operations, you must be authorized in an IAM policy. If you are not authorized,
|
4457
|
+
talk to an administrator. If you are an administrator who needs to write policies to give users access, see
|
4458
|
+
`Getting Started with Policies`__.
|
4459
|
+
|
4460
|
+
__ https://docs.cloud.oracle.com/Content/Identity/Concepts/policygetstarted.htm
|
4461
|
+
|
4462
|
+
|
4463
|
+
:param str namespace_name: (required)
|
4464
|
+
The Object Storage namespace used for the request.
|
4465
|
+
|
4466
|
+
:param str compartment_id: (required)
|
4467
|
+
The ID of the compartment in which to list buckets.
|
4468
|
+
|
4469
|
+
:param int limit: (optional)
|
4470
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated
|
4471
|
+
\"List\" call. For important details about how pagination works, see
|
4472
|
+
`List Pagination`__.
|
4473
|
+
|
4474
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
4475
|
+
|
4476
|
+
:param str page: (optional)
|
4477
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call. For important
|
4478
|
+
details about how pagination works, see `List Pagination`__.
|
4479
|
+
|
4480
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
4481
|
+
|
4482
|
+
:param list[str] fields: (optional)
|
4483
|
+
PrivateEndpoint summary in list of PrivateEndpoints includes the 'namespace', 'name', 'compartmentId',
|
4484
|
+
'createdBy', 'timeCreated', 'timeModified' and 'etag' fields.
|
4485
|
+
This parameter can also include 'tags' (freeformTags and definedTags).
|
4486
|
+
The only supported value of this parameter is 'tags' for now. Example 'tags'.
|
4487
|
+
|
4488
|
+
Allowed values are: "tags"
|
4489
|
+
|
4490
|
+
:param str opc_client_request_id: (optional)
|
4491
|
+
The client request ID for tracing.
|
4492
|
+
|
4493
|
+
:param str lifecycle_state: (optional)
|
4494
|
+
The lifecycle state of the Private Endpoint
|
4495
|
+
|
4496
|
+
Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
4497
|
+
|
4498
|
+
:param obj retry_strategy: (optional)
|
4499
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4500
|
+
|
4501
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
4502
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4503
|
+
|
4504
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4505
|
+
|
4506
|
+
:param bool allow_control_chars: (optional)
|
4507
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4508
|
+
By default, the response will not allow control characters in strings
|
4509
|
+
|
4510
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.object_storage.models.PrivateEndpointSummary`
|
4511
|
+
:rtype: :class:`~oci.response.Response`
|
4512
|
+
|
4513
|
+
:example:
|
4514
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_private_endpoints.py.html>`__ to see an example of how to use list_private_endpoints API.
|
4515
|
+
"""
|
4516
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4517
|
+
required_arguments = ['namespaceName', 'compartmentId']
|
4518
|
+
resource_path = "/n/{namespaceName}/pe"
|
4519
|
+
method = "GET"
|
4520
|
+
operation_name = "list_private_endpoints"
|
4521
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpointSummary/ListPrivateEndpoints"
|
4522
|
+
|
4523
|
+
# Don't accept unknown kwargs
|
4524
|
+
expected_kwargs = [
|
4525
|
+
"allow_control_chars",
|
4526
|
+
"retry_strategy",
|
4527
|
+
"limit",
|
4528
|
+
"page",
|
4529
|
+
"fields",
|
4530
|
+
"opc_client_request_id",
|
4531
|
+
"lifecycle_state"
|
4532
|
+
]
|
4533
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4534
|
+
if extra_kwargs:
|
4535
|
+
raise ValueError(
|
4536
|
+
f"list_private_endpoints got unknown kwargs: {extra_kwargs!r}")
|
4537
|
+
|
4538
|
+
path_params = {
|
4539
|
+
"namespaceName": namespace_name
|
4540
|
+
}
|
4541
|
+
|
4542
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4543
|
+
|
4544
|
+
for (k, v) in six.iteritems(path_params):
|
4545
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4546
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4547
|
+
|
4548
|
+
if 'fields' in kwargs:
|
4549
|
+
fields_allowed_values = ["tags"]
|
4550
|
+
for fields_item in kwargs['fields']:
|
4551
|
+
if fields_item not in fields_allowed_values:
|
4552
|
+
raise ValueError(
|
4553
|
+
f"Invalid value for `fields`, must be one of { fields_allowed_values }"
|
4554
|
+
)
|
4555
|
+
|
4556
|
+
if 'lifecycle_state' in kwargs:
|
4557
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
4558
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4559
|
+
raise ValueError(
|
4560
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4561
|
+
)
|
4562
|
+
|
4563
|
+
query_params = {
|
4564
|
+
"compartmentId": compartment_id,
|
4565
|
+
"limit": kwargs.get("limit", missing),
|
4566
|
+
"page": kwargs.get("page", missing),
|
4567
|
+
"fields": self.base_client.generate_collection_format_param(kwargs.get("fields", missing), 'csv'),
|
4568
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
4569
|
+
}
|
4570
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
4571
|
+
|
4572
|
+
header_params = {
|
4573
|
+
"accept": "application/json",
|
4574
|
+
"content-type": "application/json",
|
4575
|
+
"opc-client-request-id": kwargs.get("opc_client_request_id", missing)
|
4576
|
+
}
|
4577
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4578
|
+
|
4579
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4580
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4581
|
+
client_retry_strategy=self.retry_strategy
|
4582
|
+
)
|
4583
|
+
if retry_strategy is None:
|
4584
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4585
|
+
|
4586
|
+
if retry_strategy:
|
4587
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4588
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4589
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4590
|
+
return retry_strategy.make_retrying_call(
|
4591
|
+
self.base_client.call_api,
|
4592
|
+
resource_path=resource_path,
|
4593
|
+
method=method,
|
4594
|
+
path_params=path_params,
|
4595
|
+
query_params=query_params,
|
4596
|
+
header_params=header_params,
|
4597
|
+
response_type="list[PrivateEndpointSummary]",
|
4598
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4599
|
+
operation_name=operation_name,
|
4600
|
+
api_reference_link=api_reference_link,
|
4601
|
+
required_arguments=required_arguments)
|
4602
|
+
else:
|
4603
|
+
return self.base_client.call_api(
|
4604
|
+
resource_path=resource_path,
|
4605
|
+
method=method,
|
4606
|
+
path_params=path_params,
|
4607
|
+
query_params=query_params,
|
4608
|
+
header_params=header_params,
|
4609
|
+
response_type="list[PrivateEndpointSummary]",
|
4610
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4611
|
+
operation_name=operation_name,
|
4612
|
+
api_reference_link=api_reference_link,
|
4613
|
+
required_arguments=required_arguments)
|
4614
|
+
|
4127
4615
|
def list_replication_policies(self, namespace_name, bucket_name, **kwargs):
|
4128
4616
|
"""
|
4129
4617
|
List the replication policies associated with a bucket.
|
@@ -4168,7 +4656,7 @@ class ObjectStorageClient(object):
|
|
4168
4656
|
:rtype: :class:`~oci.response.Response`
|
4169
4657
|
|
4170
4658
|
:example:
|
4171
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4659
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_replication_policies.py.html>`__ to see an example of how to use list_replication_policies API.
|
4172
4660
|
"""
|
4173
4661
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4174
4662
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4294,7 +4782,7 @@ class ObjectStorageClient(object):
|
|
4294
4782
|
:rtype: :class:`~oci.response.Response`
|
4295
4783
|
|
4296
4784
|
:example:
|
4297
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4785
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_replication_sources.py.html>`__ to see an example of how to use list_replication_sources API.
|
4298
4786
|
"""
|
4299
4787
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4300
4788
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4411,7 +4899,7 @@ class ObjectStorageClient(object):
|
|
4411
4899
|
:rtype: :class:`~oci.response.Response`
|
4412
4900
|
|
4413
4901
|
:example:
|
4414
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4902
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_retention_rules.py.html>`__ to see an example of how to use list_retention_rules API.
|
4415
4903
|
"""
|
4416
4904
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4417
4905
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4528,7 +5016,7 @@ class ObjectStorageClient(object):
|
|
4528
5016
|
:rtype: :class:`~oci.response.Response`
|
4529
5017
|
|
4530
5018
|
:example:
|
4531
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5019
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
4532
5020
|
"""
|
4533
5021
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4534
5022
|
required_arguments = ['workRequestId']
|
@@ -4649,7 +5137,7 @@ class ObjectStorageClient(object):
|
|
4649
5137
|
:rtype: :class:`~oci.response.Response`
|
4650
5138
|
|
4651
5139
|
:example:
|
4652
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5140
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
4653
5141
|
"""
|
4654
5142
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4655
5143
|
required_arguments = ['workRequestId']
|
@@ -4738,6 +5226,9 @@ class ObjectStorageClient(object):
|
|
4738
5226
|
:param str compartment_id: (required)
|
4739
5227
|
The ID of the compartment in which to list buckets.
|
4740
5228
|
|
5229
|
+
:param str private_endpoint_name: (optional)
|
5230
|
+
The name of the privateEndpoint for which to list work requests.
|
5231
|
+
|
4741
5232
|
:param str opc_client_request_id: (optional)
|
4742
5233
|
The client request ID for tracing.
|
4743
5234
|
|
@@ -4770,7 +5261,7 @@ class ObjectStorageClient(object):
|
|
4770
5261
|
:rtype: :class:`~oci.response.Response`
|
4771
5262
|
|
4772
5263
|
:example:
|
4773
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5264
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
4774
5265
|
"""
|
4775
5266
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4776
5267
|
required_arguments = ['compartmentId']
|
@@ -4783,6 +5274,7 @@ class ObjectStorageClient(object):
|
|
4783
5274
|
expected_kwargs = [
|
4784
5275
|
"allow_control_chars",
|
4785
5276
|
"retry_strategy",
|
5277
|
+
"private_endpoint_name",
|
4786
5278
|
"opc_client_request_id",
|
4787
5279
|
"page",
|
4788
5280
|
"limit"
|
@@ -4794,6 +5286,7 @@ class ObjectStorageClient(object):
|
|
4794
5286
|
|
4795
5287
|
query_params = {
|
4796
5288
|
"compartmentId": compartment_id,
|
5289
|
+
"privateEndpointName": kwargs.get("private_endpoint_name", missing),
|
4797
5290
|
"page": kwargs.get("page", missing),
|
4798
5291
|
"limit": kwargs.get("limit", missing)
|
4799
5292
|
}
|
@@ -4874,7 +5367,7 @@ class ObjectStorageClient(object):
|
|
4874
5367
|
:rtype: :class:`~oci.response.Response`
|
4875
5368
|
|
4876
5369
|
:example:
|
4877
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5370
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/make_bucket_writable.py.html>`__ to see an example of how to use make_bucket_writable API.
|
4878
5371
|
"""
|
4879
5372
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4880
5373
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -4994,7 +5487,7 @@ class ObjectStorageClient(object):
|
|
4994
5487
|
The only allowed value for this parameter is \"100-Continue\" (case-insensitive).
|
4995
5488
|
|
4996
5489
|
:param str content_md5: (optional)
|
4997
|
-
The optional
|
5490
|
+
The optional header that defines the base64-encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object
|
4998
5491
|
Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the
|
4999
5492
|
MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error
|
5000
5493
|
is returned with the message:
|
@@ -5092,7 +5585,7 @@ class ObjectStorageClient(object):
|
|
5092
5585
|
:rtype: :class:`~oci.response.Response`
|
5093
5586
|
|
5094
5587
|
:example:
|
5095
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5588
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/put_object.py.html>`__ to see an example of how to use put_object API.
|
5096
5589
|
"""
|
5097
5590
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5098
5591
|
required_arguments = ['namespaceName', 'bucketName', 'objectName']
|
@@ -5269,7 +5762,7 @@ class ObjectStorageClient(object):
|
|
5269
5762
|
:rtype: :class:`~oci.response.Response`
|
5270
5763
|
|
5271
5764
|
:example:
|
5272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5765
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/put_object_lifecycle_policy.py.html>`__ to see an example of how to use put_object_lifecycle_policy API.
|
5273
5766
|
"""
|
5274
5767
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5275
5768
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -5392,7 +5885,7 @@ class ObjectStorageClient(object):
|
|
5392
5885
|
:rtype: :class:`~oci.response.Response`
|
5393
5886
|
|
5394
5887
|
:example:
|
5395
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5888
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/reencrypt_bucket.py.html>`__ to see an example of how to use reencrypt_bucket API.
|
5396
5889
|
"""
|
5397
5890
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5398
5891
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -5511,7 +6004,7 @@ class ObjectStorageClient(object):
|
|
5511
6004
|
:rtype: :class:`~oci.response.Response`
|
5512
6005
|
|
5513
6006
|
:example:
|
5514
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6007
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/reencrypt_object.py.html>`__ to see an example of how to use reencrypt_object API.
|
5515
6008
|
"""
|
5516
6009
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5517
6010
|
required_arguments = ['namespaceName', 'bucketName', 'objectName']
|
@@ -5631,7 +6124,7 @@ class ObjectStorageClient(object):
|
|
5631
6124
|
:rtype: :class:`~oci.response.Response`
|
5632
6125
|
|
5633
6126
|
:example:
|
5634
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6127
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/rename_object.py.html>`__ to see an example of how to use rename_object API.
|
5635
6128
|
"""
|
5636
6129
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5637
6130
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -5705,8 +6198,8 @@ class ObjectStorageClient(object):
|
|
5705
6198
|
|
5706
6199
|
def restore_objects(self, namespace_name, bucket_name, restore_objects_details, **kwargs):
|
5707
6200
|
"""
|
5708
|
-
Restores
|
5709
|
-
By default
|
6201
|
+
Restores the object specified by the objectName parameter.
|
6202
|
+
By default object will be restored for 24 hours. Duration can be configured using the hours parameter.
|
5710
6203
|
|
5711
6204
|
|
5712
6205
|
:param str namespace_name: (required)
|
@@ -5717,7 +6210,7 @@ class ObjectStorageClient(object):
|
|
5717
6210
|
Example: `my-new-bucket1`
|
5718
6211
|
|
5719
6212
|
:param oci.object_storage.models.RestoreObjectsDetails restore_objects_details: (required)
|
5720
|
-
Request to restore
|
6213
|
+
Request to restore object.
|
5721
6214
|
|
5722
6215
|
:param str opc_client_request_id: (optional)
|
5723
6216
|
The client request ID for tracing.
|
@@ -5738,7 +6231,7 @@ class ObjectStorageClient(object):
|
|
5738
6231
|
:rtype: :class:`~oci.response.Response`
|
5739
6232
|
|
5740
6233
|
:example:
|
5741
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6234
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/restore_objects.py.html>`__ to see an example of how to use restore_objects API.
|
5742
6235
|
"""
|
5743
6236
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5744
6237
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -5855,7 +6348,7 @@ class ObjectStorageClient(object):
|
|
5855
6348
|
:rtype: :class:`~oci.response.Response`
|
5856
6349
|
|
5857
6350
|
:example:
|
5858
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6351
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/update_bucket.py.html>`__ to see an example of how to use update_bucket API.
|
5859
6352
|
"""
|
5860
6353
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5861
6354
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -5967,7 +6460,7 @@ class ObjectStorageClient(object):
|
|
5967
6460
|
:rtype: :class:`~oci.response.Response`
|
5968
6461
|
|
5969
6462
|
:example:
|
5970
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6463
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/update_namespace_metadata.py.html>`__ to see an example of how to use update_namespace_metadata API.
|
5971
6464
|
"""
|
5972
6465
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5973
6466
|
required_arguments = ['namespaceName']
|
@@ -6074,7 +6567,7 @@ class ObjectStorageClient(object):
|
|
6074
6567
|
:rtype: :class:`~oci.response.Response`
|
6075
6568
|
|
6076
6569
|
:example:
|
6077
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6570
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/update_object_storage_tier.py.html>`__ to see an example of how to use update_object_storage_tier API.
|
6078
6571
|
"""
|
6079
6572
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6080
6573
|
required_arguments = ['namespaceName', 'bucketName']
|
@@ -6146,6 +6639,128 @@ class ObjectStorageClient(object):
|
|
6146
6639
|
api_reference_link=api_reference_link,
|
6147
6640
|
required_arguments=required_arguments)
|
6148
6641
|
|
6642
|
+
def update_private_endpoint(self, namespace_name, pe_name, update_private_endpoint_details, **kwargs):
|
6643
|
+
"""
|
6644
|
+
Performs a partial or full update of a user-defined data associated with the Private Endpoint.
|
6645
|
+
|
6646
|
+
Use UpdatePrivateEndpoint to move a Private Endpoint from one compartment to another within the same tenancy. Supply the compartmentID
|
6647
|
+
of the compartment that you want to move the Private Endpoint to. Or use it to update the name, subnetId, endpointFqdn or privateEndpointIp or accessTargets of the Private Endpoint.
|
6648
|
+
For more information about moving resources between compartments, see `Moving Resources to a Different Compartment`__.
|
6649
|
+
|
6650
|
+
This API follows replace semantics (rather than merge semantics). That means if the body provides values for
|
6651
|
+
parameters and the resource has exisiting ones, this operation will replace those existing values.
|
6652
|
+
|
6653
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
|
6654
|
+
|
6655
|
+
|
6656
|
+
:param str namespace_name: (required)
|
6657
|
+
The Object Storage namespace used for the request.
|
6658
|
+
|
6659
|
+
:param str pe_name: (required)
|
6660
|
+
The name of the private endpoint. Avoid entering confidential information.
|
6661
|
+
Example: `my-new-pe-1`
|
6662
|
+
|
6663
|
+
:param oci.object_storage.models.UpdatePrivateEndpointDetails update_private_endpoint_details: (required)
|
6664
|
+
Request object for updating the Private Endpoint.
|
6665
|
+
|
6666
|
+
:param str opc_client_request_id: (optional)
|
6667
|
+
The client request ID for tracing.
|
6668
|
+
|
6669
|
+
:param str if_match: (optional)
|
6670
|
+
The entity tag (ETag) to match with the ETag of an existing resource. If the specified ETag matches the ETag of
|
6671
|
+
the existing resource, GET and HEAD requests will return the resource and PUT and POST requests will upload
|
6672
|
+
the resource.
|
6673
|
+
|
6674
|
+
:param obj retry_strategy: (optional)
|
6675
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6676
|
+
|
6677
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
6678
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6679
|
+
|
6680
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6681
|
+
|
6682
|
+
:param bool allow_control_chars: (optional)
|
6683
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6684
|
+
By default, the response will not allow control characters in strings
|
6685
|
+
|
6686
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
6687
|
+
:rtype: :class:`~oci.response.Response`
|
6688
|
+
|
6689
|
+
:example:
|
6690
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/update_private_endpoint.py.html>`__ to see an example of how to use update_private_endpoint API.
|
6691
|
+
"""
|
6692
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6693
|
+
required_arguments = ['namespaceName', 'peName']
|
6694
|
+
resource_path = "/n/{namespaceName}/pe/{peName}"
|
6695
|
+
method = "POST"
|
6696
|
+
operation_name = "update_private_endpoint"
|
6697
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/objectstorage/20160918/PrivateEndpoint/UpdatePrivateEndpoint"
|
6698
|
+
|
6699
|
+
# Don't accept unknown kwargs
|
6700
|
+
expected_kwargs = [
|
6701
|
+
"allow_control_chars",
|
6702
|
+
"retry_strategy",
|
6703
|
+
"opc_client_request_id",
|
6704
|
+
"if_match"
|
6705
|
+
]
|
6706
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6707
|
+
if extra_kwargs:
|
6708
|
+
raise ValueError(
|
6709
|
+
f"update_private_endpoint got unknown kwargs: {extra_kwargs!r}")
|
6710
|
+
|
6711
|
+
path_params = {
|
6712
|
+
"namespaceName": namespace_name,
|
6713
|
+
"peName": pe_name
|
6714
|
+
}
|
6715
|
+
|
6716
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6717
|
+
|
6718
|
+
for (k, v) in six.iteritems(path_params):
|
6719
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6720
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6721
|
+
|
6722
|
+
header_params = {
|
6723
|
+
"accept": "application/json",
|
6724
|
+
"content-type": "application/json",
|
6725
|
+
"opc-client-request-id": kwargs.get("opc_client_request_id", missing),
|
6726
|
+
"if-match": kwargs.get("if_match", missing)
|
6727
|
+
}
|
6728
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6729
|
+
|
6730
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6731
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6732
|
+
client_retry_strategy=self.retry_strategy
|
6733
|
+
)
|
6734
|
+
if retry_strategy is None:
|
6735
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
6736
|
+
|
6737
|
+
if retry_strategy:
|
6738
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6739
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6740
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6741
|
+
return retry_strategy.make_retrying_call(
|
6742
|
+
self.base_client.call_api,
|
6743
|
+
resource_path=resource_path,
|
6744
|
+
method=method,
|
6745
|
+
path_params=path_params,
|
6746
|
+
header_params=header_params,
|
6747
|
+
body=update_private_endpoint_details,
|
6748
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6749
|
+
operation_name=operation_name,
|
6750
|
+
api_reference_link=api_reference_link,
|
6751
|
+
required_arguments=required_arguments)
|
6752
|
+
else:
|
6753
|
+
return self.base_client.call_api(
|
6754
|
+
resource_path=resource_path,
|
6755
|
+
method=method,
|
6756
|
+
path_params=path_params,
|
6757
|
+
header_params=header_params,
|
6758
|
+
body=update_private_endpoint_details,
|
6759
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6760
|
+
operation_name=operation_name,
|
6761
|
+
api_reference_link=api_reference_link,
|
6762
|
+
required_arguments=required_arguments)
|
6763
|
+
|
6149
6764
|
def update_retention_rule(self, namespace_name, bucket_name, retention_rule_id, update_retention_rule_details, **kwargs):
|
6150
6765
|
"""
|
6151
6766
|
Updates the specified retention rule. Rule changes take effect typically within 30 seconds.
|
@@ -6188,7 +6803,7 @@ class ObjectStorageClient(object):
|
|
6188
6803
|
:rtype: :class:`~oci.response.Response`
|
6189
6804
|
|
6190
6805
|
:example:
|
6191
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6806
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/update_retention_rule.py.html>`__ to see an example of how to use update_retention_rule API.
|
6192
6807
|
"""
|
6193
6808
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6194
6809
|
required_arguments = ['namespaceName', 'bucketName', 'retentionRuleId']
|
@@ -6311,7 +6926,7 @@ class ObjectStorageClient(object):
|
|
6311
6926
|
The only allowed value for this parameter is \"100-Continue\" (case-insensitive).
|
6312
6927
|
|
6313
6928
|
:param str content_md5: (optional)
|
6314
|
-
The optional
|
6929
|
+
The optional header that defines the base64-encoded MD5 hash of the body. If the optional Content-MD5 header is present, Object
|
6315
6930
|
Storage performs an integrity check on the body of the HTTP request by computing the MD5 hash for the body and comparing it to the
|
6316
6931
|
MD5 hash supplied in the header. If the two hashes do not match, the object is rejected and an HTTP-400 Unmatched Content MD5 error
|
6317
6932
|
is returned with the message:
|
@@ -6367,7 +6982,7 @@ class ObjectStorageClient(object):
|
|
6367
6982
|
:rtype: :class:`~oci.response.Response`
|
6368
6983
|
|
6369
6984
|
:example:
|
6370
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6985
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.133.0/objectstorage/upload_part.py.html>`__ to see an example of how to use upload_part API.
|
6371
6986
|
"""
|
6372
6987
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6373
6988
|
required_arguments = ['namespaceName', 'bucketName', 'objectName', 'uploadId', 'uploadPartNum']
|