oci 2.145.0__py3-none-any.whl → 2.147.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 +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +28 -28
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/federation_client.py +19 -2
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/base_client.py +2 -1
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +84 -84
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +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_engine/models/open_id_connect_token_authentication_config.py +37 -2
- oci/container_instances/container_instance_client.py +18 -18
- oci/container_instances/models/__init__.py +0 -4
- oci/container_instances/models/container_health_check.py +3 -11
- oci/container_instances/models/container_http_health_check.py +1 -1
- oci/container_instances/models/container_tcp_health_check.py +1 -1
- oci/container_instances/models/create_container_details.py +2 -2
- oci/container_instances/models/create_container_health_check_details.py +3 -11
- oci/container_instances/models/create_container_http_health_check_details.py +1 -1
- oci/container_instances/models/create_container_tcp_health_check_details.py +1 -1
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/models/create_byoip_range_details.py +66 -0
- oci/core/models/create_ipv6_details.py +97 -3
- oci/core/models/create_private_ip_details.py +96 -2
- oci/core/models/create_vnic_details.py +18 -18
- oci/core/models/ipv6.py +107 -3
- oci/core/models/launch_attach_volume_details.py +2 -2
- oci/core/models/network_security_group.py +7 -7
- oci/core/models/private_ip.py +107 -3
- oci/core/models/update_byoip_range_details.py +68 -2
- oci/core/models/update_ipv6_details.py +61 -4
- oci/core/models/update_private_ip_details.py +59 -2
- oci/core/models/update_vnic_details.py +8 -4
- oci/core/models/vnic.py +6 -2
- oci/core/virtual_network_client.py +519 -257
- oci/core/virtual_network_client_composite_operations.py +44 -0
- 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 +45 -45
- 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 +306 -306
- oci/data_science/data_science_client.py +101 -101
- oci/data_science/models/__init__.py +8 -0
- oci/data_science/models/create_pipeline_details.py +31 -0
- oci/data_science/models/pipeline.py +31 -0
- oci/data_science/models/pipeline_container_step_details.py +32 -1
- oci/data_science/models/pipeline_container_step_run.py +1 -1
- oci/data_science/models/pipeline_container_step_update_details.py +34 -3
- oci/data_science/models/pipeline_custom_script_step_details.py +32 -1
- oci/data_science/models/pipeline_custom_script_step_run.py +1 -1
- oci/data_science/models/pipeline_custom_script_step_update_details.py +34 -3
- oci/data_science/models/pipeline_dataflow_configuration_details.py +281 -0
- oci/data_science/models/pipeline_dataflow_step_details.py +141 -0
- oci/data_science/models/pipeline_dataflow_step_run.py +122 -0
- oci/data_science/models/pipeline_dataflow_step_update_details.py +99 -0
- oci/data_science/models/pipeline_ml_job_step_details.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_run.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_update_details.py +1 -1
- oci/data_science/models/pipeline_step_details.py +11 -3
- oci/data_science/models/pipeline_step_override_details.py +29 -2
- oci/data_science/models/pipeline_step_run.py +11 -3
- oci/data_science/models/pipeline_step_update_details.py +11 -3
- oci/data_science/models/update_pipeline_details.py +31 -0
- oci/database/database_client.py +1906 -710
- oci/database/database_client_composite_operations.py +794 -22
- oci/database/models/__init__.py +14 -0
- oci/database/models/add_standby_autonomous_container_database_details.py +387 -0
- oci/database/models/autonomous_container_database.py +122 -2
- oci/database/models/autonomous_container_database_dataguard.py +674 -0
- oci/database/models/autonomous_container_database_summary.py +122 -2
- oci/database/models/backup.py +209 -3
- oci/database/models/backup_summary.py +209 -3
- oci/database/models/change_exadb_vm_cluster_subscription_details.py +107 -0
- oci/database/models/change_exascale_db_storage_vault_subscription_details.py +107 -0
- oci/database/models/convert_standby_autonomous_container_database_details.py +147 -0
- oci/database/models/create_backup_details.py +64 -2
- oci/database/models/create_exadb_vm_cluster_details.py +41 -10
- oci/database/models/create_exascale_db_storage_vault_details.py +72 -2
- oci/database/models/edit_autonomous_container_database_dataguard_details.py +158 -0
- oci/database/models/exadb_vm_cluster.py +76 -10
- oci/database/models/exadb_vm_cluster_summary.py +76 -10
- oci/database/models/exascale_db_storage_vault.py +72 -2
- oci/database/models/exascale_db_storage_vault_summary.py +72 -2
- oci/database/models/maintenance_run.py +31 -0
- oci/database/models/maintenance_run_summary.py +31 -0
- oci/database/models/update_backup_details.py +103 -0
- oci/database/models/update_exadb_vm_cluster_details.py +4 -8
- oci/database_management/db_management_client.py +228 -228
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +9 -9
- 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/dblm/__init__.py +14 -0
- oci/dblm/db_life_cycle_management_client.py +1762 -0
- oci/dblm/db_life_cycle_management_client_composite_operations.py +65 -0
- oci/dblm/models/__init__.py +70 -0
- oci/dblm/models/aggregated_vulnerability_collection.py +72 -0
- oci/dblm/models/aggregated_vulnerability_summary.py +134 -0
- oci/dblm/models/child_pdb.py +227 -0
- oci/dblm/models/create_vulnerability_scan_details.py +103 -0
- oci/dblm/models/dblm_vulnerability.py +393 -0
- oci/dblm/models/host_info.py +103 -0
- oci/dblm/models/metric_error.py +227 -0
- oci/dblm/models/notification_collection.py +72 -0
- oci/dblm/models/notification_summary.py +185 -0
- oci/dblm/models/patch_recommendation_summary.py +134 -0
- oci/dblm/models/patch_recommendations_details_summary.py +227 -0
- oci/dblm/models/resource_info.py +382 -0
- oci/dblm/models/resource_summary.py +227 -0
- oci/dblm/models/vulnerabilities_summary.py +227 -0
- oci/dblm/models/vulnerability_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_collection.py +72 -0
- oci/dblm/models/vulnerability_resource_summary.py +475 -0
- oci/dblm/models/vulnerability_scan.py +525 -0
- oci/dblm/models/vulnerability_scan_collection.py +72 -0
- oci/dblm/models/vulnerability_scan_summary.py +443 -0
- oci/dblm/models/vulnerability_summary.py +196 -0
- oci/dblm/models/work_request.py +426 -0
- oci/dblm/models/work_request_error.py +136 -0
- oci/dblm/models/work_request_error_collection.py +72 -0
- oci/dblm/models/work_request_log_entry.py +103 -0
- oci/dblm/models/work_request_log_entry_collection.py +72 -0
- oci/dblm/models/work_request_resource.py +234 -0
- oci/dblm/models/work_request_summary.py +426 -0
- oci/dblm/models/work_request_summary_collection.py +72 -0
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +31 -31
- oci/dns/dns_client.py +54 -54
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email/models/create_dkim_details.py +31 -0
- oci/email/models/dkim.py +62 -0
- oci/email/models/dkim_summary.py +62 -0
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +865 -98
- oci/file_storage/models/__init__.py +10 -0
- oci/file_storage/models/create_file_system_details.py +33 -2
- oci/file_storage/models/create_quota_rule_details.py +236 -0
- oci/file_storage/models/file_system.py +127 -2
- oci/file_storage/models/file_system_summary.py +96 -2
- oci/file_storage/models/quota_rule.py +384 -0
- oci/file_storage/models/quota_rule_summary.py +452 -0
- oci/file_storage/models/toggle_quota_rules_details.py +72 -0
- oci/file_storage/models/update_quota_rule_details.py +107 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
- oci/generative_ai_inference/generative_ai_inference_client.py +5 -5
- 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 +84 -84
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +79 -79
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/create_load_balancer_details.py +15 -15
- oci/load_balancer/models/load_balancer.py +15 -15
- oci/load_balancer/models/update_load_balancer_details.py +15 -15
- 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/backup.py +33 -0
- oci/mysql/models/backup_summary.py +33 -0
- oci/mysql/models/channel.py +35 -2
- oci/mysql/models/channel_summary.py +35 -2
- oci/mysql/models/configuration.py +35 -2
- oci/mysql/models/configuration_summary.py +35 -2
- oci/mysql/models/configuration_variables.py +4949 -1858
- oci/mysql/models/db_system.py +33 -0
- oci/mysql/models/db_system_summary.py +33 -0
- 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 +35 -35
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +55 -55
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +16 -16
- 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 +181 -181
- 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 +10 -10
- oci/os_management_hub/lifecycle_environment_client.py +138 -16
- oci/os_management_hub/lifecycle_environment_client_composite_operations.py +44 -0
- oci/os_management_hub/managed_instance_client.py +309 -35
- oci/os_management_hub/managed_instance_client_composite_operations.py +91 -0
- oci/os_management_hub/managed_instance_group_client.py +149 -27
- oci/os_management_hub/managed_instance_group_client_composite_operations.py +44 -0
- oci/os_management_hub/management_station_client.py +59 -16
- oci/os_management_hub/models/__init__.py +54 -0
- oci/os_management_hub/models/add_packages_to_software_source_details.py +35 -4
- oci/os_management_hub/models/agent_event.py +1 -1
- oci/os_management_hub/models/associate_managed_instances_with_management_station_details.py +103 -0
- oci/os_management_hub/models/attach_lifecycle_stage_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instance_group_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_managed_instances_to_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/attach_management_station_to_profile_details.py +76 -0
- oci/os_management_hub/models/attach_software_sources_to_profile_details.py +76 -0
- oci/os_management_hub/models/available_package_summary.py +1 -1
- oci/os_management_hub/models/create_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_lifecycle_environment_details.py +7 -3
- oci/os_management_hub/models/create_managed_instance_group_details.py +7 -3
- oci/os_management_hub/models/create_management_station_details.py +31 -0
- oci/os_management_hub/models/create_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/create_private_software_source_details.py +406 -0
- oci/os_management_hub/models/create_profile_details.py +12 -4
- oci/os_management_hub/models/create_scheduled_job_details.py +37 -2
- oci/os_management_hub/models/create_software_source_details.py +19 -3
- oci/os_management_hub/models/create_software_source_profile_details.py +7 -3
- oci/os_management_hub/models/create_station_profile_details.py +7 -3
- oci/os_management_hub/models/create_third_party_software_source_details.py +406 -0
- oci/os_management_hub/models/create_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/create_versioned_custom_software_source_details.py +54 -3
- oci/os_management_hub/models/create_windows_stand_alone_profile_details.py +288 -0
- oci/os_management_hub/models/custom_software_source.py +102 -9
- oci/os_management_hub/models/custom_software_source_summary.py +64 -8
- oci/os_management_hub/models/detach_managed_instances_from_lifecycle_stage_details.py +1 -1
- oci/os_management_hub/models/detach_software_sources_from_profile_details.py +76 -0
- oci/os_management_hub/models/event.py +23 -3
- oci/os_management_hub/models/event_summary.py +11 -3
- oci/os_management_hub/models/exploit_attempt_event.py +1 -1
- oci/os_management_hub/models/group_profile.py +16 -2
- oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +33 -2
- oci/os_management_hub/models/installed_package_summary.py +1 -1
- oci/os_management_hub/models/kernel_crash_event.py +1 -1
- oci/os_management_hub/models/kernel_oops_event.py +1 -1
- oci/os_management_hub/models/ksplice_update_event.py +1 -1
- oci/os_management_hub/models/lifecycle_environment.py +7 -3
- oci/os_management_hub/models/lifecycle_environment_summary.py +7 -3
- oci/os_management_hub/models/lifecycle_profile.py +16 -2
- oci/os_management_hub/models/lifecycle_stage.py +7 -3
- oci/os_management_hub/models/lifecycle_stage_summary.py +7 -3
- oci/os_management_hub/models/managed_instance.py +80 -10
- oci/os_management_hub/models/managed_instance_analytic_summary.py +11 -3
- oci/os_management_hub/models/managed_instance_group.py +7 -3
- oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_group_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_summary.py +47 -8
- oci/os_management_hub/models/management_station.py +276 -0
- oci/os_management_hub/models/management_station_event.py +1 -1
- oci/os_management_hub/models/management_station_event_data.py +58 -3
- oci/os_management_hub/models/management_station_summary.py +67 -4
- oci/os_management_hub/models/mirror_configuration.py +33 -2
- oci/os_management_hub/models/mirror_summary.py +107 -25
- oci/os_management_hub/models/mirrors_collection.py +2 -1
- oci/os_management_hub/models/module_stream.py +7 -3
- oci/os_management_hub/models/package_name_summary.py +7 -3
- oci/os_management_hub/models/package_summary.py +7 -3
- oci/os_management_hub/models/peer_management_station.py +108 -0
- oci/os_management_hub/models/private_software_source.py +330 -0
- oci/os_management_hub/models/private_software_source_summary.py +212 -0
- oci/os_management_hub/models/profile.py +84 -8
- oci/os_management_hub/models/profile_collection.py +1 -1
- oci/os_management_hub/models/profile_summary.py +17 -7
- oci/os_management_hub/models/profile_version.py +811 -0
- oci/os_management_hub/models/reboot_event.py +184 -0
- oci/os_management_hub/models/reboot_event_data.py +123 -0
- oci/os_management_hub/models/reboot_lifecycle_stage_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_details.py +101 -0
- oci/os_management_hub/models/reboot_managed_instance_group_details.py +101 -0
- oci/os_management_hub/models/remove_packages_from_software_source_details.py +72 -0
- oci/os_management_hub/models/replace_packages_in_software_source_details.py +72 -0
- oci/os_management_hub/models/rerun_work_request_details.py +103 -0
- oci/os_management_hub/models/scheduled_job.py +37 -2
- oci/os_management_hub/models/scheduled_job_operation.py +46 -5
- oci/os_management_hub/models/scheduled_job_summary.py +37 -2
- oci/os_management_hub/models/software_source.py +39 -15
- oci/os_management_hub/models/software_source_details.py +11 -3
- oci/os_management_hub/models/software_source_event.py +1 -1
- oci/os_management_hub/models/software_source_profile.py +16 -2
- oci/os_management_hub/models/software_source_summary.py +30 -10
- oci/os_management_hub/models/software_source_vendor_summary.py +7 -3
- oci/os_management_hub/models/software_update_event.py +1 -1
- oci/os_management_hub/models/station_health.py +7 -3
- oci/os_management_hub/models/station_profile.py +16 -2
- oci/os_management_hub/models/synchronize_mirrors_details.py +7 -3
- oci/os_management_hub/models/sysadmin_event.py +184 -0
- oci/os_management_hub/models/sysadmin_event_data.py +239 -0
- oci/os_management_hub/models/system_details.py +7 -3
- oci/os_management_hub/models/third_party_software_source.py +330 -0
- oci/os_management_hub/models/third_party_software_source_summary.py +212 -0
- oci/os_management_hub/models/updatable_package_summary.py +1 -1
- oci/os_management_hub/models/update_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_management_station_details.py +31 -0
- oci/os_management_hub/models/update_mirror_configuration_details.py +33 -2
- oci/os_management_hub/models/update_private_software_source_details.py +272 -0
- oci/os_management_hub/models/update_profile_details.py +1 -1
- oci/os_management_hub/models/update_scheduled_job_details.py +2 -2
- oci/os_management_hub/models/update_software_source_details.py +19 -3
- oci/os_management_hub/models/update_third_party_software_source_details.py +272 -0
- oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/update_versioned_custom_software_source_details.py +1 -1
- oci/os_management_hub/models/update_work_request_details.py +9 -5
- oci/os_management_hub/models/vendor_software_source.py +5 -5
- oci/os_management_hub/models/vendor_software_source_summary.py +2 -2
- oci/os_management_hub/models/versioned_custom_software_source.py +102 -9
- oci/os_management_hub/models/versioned_custom_software_source_summary.py +63 -7
- oci/os_management_hub/models/windows_standalone_profile.py +17 -3
- oci/os_management_hub/models/work_request.py +102 -14
- oci/os_management_hub/models/work_request_error.py +4 -4
- oci/os_management_hub/models/work_request_error_collection.py +1 -1
- oci/os_management_hub/models/work_request_log_entry_collection.py +1 -1
- oci/os_management_hub/models/work_request_summary.py +47 -8
- oci/os_management_hub/models/work_request_summary_collection.py +1 -1
- oci/os_management_hub/onboarding_client.py +991 -75
- oci/os_management_hub/reporting_managed_instance_client.py +9 -9
- oci/os_management_hub/scheduled_job_client.py +9 -9
- oci/os_management_hub/software_source_client.py +848 -47
- oci/os_management_hub/software_source_client_composite_operations.py +132 -0
- oci/os_management_hub/work_request_client.py +144 -11
- oci/os_management_hub/work_request_client_composite_operations.py +46 -0
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/models/__init__.py +8 -0
- oci/psql/models/backup.py +110 -5
- oci/psql/models/backup_copy_details.py +134 -0
- oci/psql/models/backup_copy_policy.py +134 -0
- oci/psql/models/backup_copy_status_details.py +193 -0
- oci/psql/models/backup_policy.py +29 -2
- oci/psql/models/backup_summary.py +74 -0
- oci/psql/models/configuration.py +7 -3
- oci/psql/models/daily_backup_policy.py +7 -0
- oci/psql/models/db_system_details.py +33 -2
- oci/psql/models/monthly_backup_policy.py +7 -0
- oci/psql/models/none_backup_policy.py +9 -2
- oci/psql/models/source_backup_details.py +103 -0
- oci/psql/models/weekly_backup_policy.py +7 -0
- oci/psql/postgresql_client.py +163 -33
- oci/psql/postgresql_client_composite_operations.py +42 -0
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +26 -26
- oci/redis/models/redis_cluster.py +7 -3
- oci/redis/models/update_redis_cluster_details.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/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +87 -87
- 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/models/__init__.py +2 -0
- oci/tenant_manager_control_plane/models/additional_assigned_region_collection.py +72 -0
- oci/tenant_manager_control_plane/models/classic_subscription.py +33 -2
- 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/subscription_client_composite_operations.py +10 -7
- 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 +14 -14
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- oci/zpr/zpr_client.py +15 -15
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/METADATA +1 -1
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/RECORD +526 -447
- oci/container_instances/models/container_command_health_check.py +0 -147
- oci/container_instances/models/create_container_command_health_check_details.py +0 -132
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/WHEEL +0 -0
- {oci-2.145.0.dist-info → oci-2.147.0.dist-info}/top_level.txt +0 -0
@@ -157,7 +157,7 @@ class FileStorageClient(object):
|
|
157
157
|
:rtype: :class:`~oci.response.Response`
|
158
158
|
|
159
159
|
:example:
|
160
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
160
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_export_lock.py.html>`__ to see an example of how to use add_export_lock API.
|
161
161
|
"""
|
162
162
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
163
163
|
required_arguments = ['exportId']
|
@@ -270,7 +270,7 @@ class FileStorageClient(object):
|
|
270
270
|
:rtype: :class:`~oci.response.Response`
|
271
271
|
|
272
272
|
:example:
|
273
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
273
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_file_system_lock.py.html>`__ to see an example of how to use add_file_system_lock API.
|
274
274
|
"""
|
275
275
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
276
276
|
required_arguments = ['fileSystemId']
|
@@ -383,7 +383,7 @@ class FileStorageClient(object):
|
|
383
383
|
:rtype: :class:`~oci.response.Response`
|
384
384
|
|
385
385
|
:example:
|
386
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
386
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_filesystem_snapshot_policy_lock.py.html>`__ to see an example of how to use add_filesystem_snapshot_policy_lock API.
|
387
387
|
"""
|
388
388
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
389
389
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -496,7 +496,7 @@ class FileStorageClient(object):
|
|
496
496
|
:rtype: :class:`~oci.response.Response`
|
497
497
|
|
498
498
|
:example:
|
499
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
499
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_mount_target_lock.py.html>`__ to see an example of how to use add_mount_target_lock API.
|
500
500
|
"""
|
501
501
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
502
502
|
required_arguments = ['mountTargetId']
|
@@ -609,7 +609,7 @@ class FileStorageClient(object):
|
|
609
609
|
:rtype: :class:`~oci.response.Response`
|
610
610
|
|
611
611
|
:example:
|
612
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
612
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_outbound_connector_lock.py.html>`__ to see an example of how to use add_outbound_connector_lock API.
|
613
613
|
"""
|
614
614
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
615
615
|
required_arguments = ['outboundConnectorId']
|
@@ -722,7 +722,7 @@ class FileStorageClient(object):
|
|
722
722
|
:rtype: :class:`~oci.response.Response`
|
723
723
|
|
724
724
|
:example:
|
725
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
725
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_replication_lock.py.html>`__ to see an example of how to use add_replication_lock API.
|
726
726
|
"""
|
727
727
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
728
728
|
required_arguments = ['replicationId']
|
@@ -835,7 +835,7 @@ class FileStorageClient(object):
|
|
835
835
|
:rtype: :class:`~oci.response.Response`
|
836
836
|
|
837
837
|
:example:
|
838
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
838
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/add_snapshot_lock.py.html>`__ to see an example of how to use add_snapshot_lock API.
|
839
839
|
"""
|
840
840
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
841
841
|
required_arguments = ['snapshotId']
|
@@ -945,7 +945,7 @@ class FileStorageClient(object):
|
|
945
945
|
:rtype: :class:`~oci.response.Response`
|
946
946
|
|
947
947
|
:example:
|
948
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
948
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/cancel_downgrade_shape_mount_target.py.html>`__ to see an example of how to use cancel_downgrade_shape_mount_target API.
|
949
949
|
"""
|
950
950
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
951
951
|
required_arguments = ['mountTargetId']
|
@@ -1061,7 +1061,7 @@ class FileStorageClient(object):
|
|
1061
1061
|
:rtype: :class:`~oci.response.Response`
|
1062
1062
|
|
1063
1063
|
:example:
|
1064
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1064
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/change_file_system_compartment.py.html>`__ to see an example of how to use change_file_system_compartment API.
|
1065
1065
|
"""
|
1066
1066
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1067
1067
|
required_arguments = ['fileSystemId']
|
@@ -1185,7 +1185,7 @@ class FileStorageClient(object):
|
|
1185
1185
|
:rtype: :class:`~oci.response.Response`
|
1186
1186
|
|
1187
1187
|
:example:
|
1188
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1188
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/change_filesystem_snapshot_policy_compartment.py.html>`__ to see an example of how to use change_filesystem_snapshot_policy_compartment API.
|
1189
1189
|
"""
|
1190
1190
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1191
1191
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -1309,7 +1309,7 @@ class FileStorageClient(object):
|
|
1309
1309
|
:rtype: :class:`~oci.response.Response`
|
1310
1310
|
|
1311
1311
|
:example:
|
1312
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1312
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/change_mount_target_compartment.py.html>`__ to see an example of how to use change_mount_target_compartment API.
|
1313
1313
|
"""
|
1314
1314
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1315
1315
|
required_arguments = ['mountTargetId']
|
@@ -1435,7 +1435,7 @@ class FileStorageClient(object):
|
|
1435
1435
|
:rtype: :class:`~oci.response.Response`
|
1436
1436
|
|
1437
1437
|
:example:
|
1438
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1438
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/change_outbound_connector_compartment.py.html>`__ to see an example of how to use change_outbound_connector_compartment API.
|
1439
1439
|
"""
|
1440
1440
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1441
1441
|
required_arguments = ['outboundConnectorId']
|
@@ -1560,7 +1560,7 @@ class FileStorageClient(object):
|
|
1560
1560
|
:rtype: :class:`~oci.response.Response`
|
1561
1561
|
|
1562
1562
|
:example:
|
1563
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1563
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/change_replication_compartment.py.html>`__ to see an example of how to use change_replication_compartment API.
|
1564
1564
|
"""
|
1565
1565
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1566
1566
|
required_arguments = ['replicationId']
|
@@ -1675,7 +1675,7 @@ class FileStorageClient(object):
|
|
1675
1675
|
:rtype: :class:`~oci.response.Response`
|
1676
1676
|
|
1677
1677
|
:example:
|
1678
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1678
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_export.py.html>`__ to see an example of how to use create_export API.
|
1679
1679
|
"""
|
1680
1680
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1681
1681
|
required_arguments = []
|
@@ -1805,7 +1805,7 @@ class FileStorageClient(object):
|
|
1805
1805
|
:rtype: :class:`~oci.response.Response`
|
1806
1806
|
|
1807
1807
|
:example:
|
1808
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1808
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_file_system.py.html>`__ to see an example of how to use create_file_system API.
|
1809
1809
|
"""
|
1810
1810
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1811
1811
|
required_arguments = []
|
@@ -1906,7 +1906,7 @@ class FileStorageClient(object):
|
|
1906
1906
|
:rtype: :class:`~oci.response.Response`
|
1907
1907
|
|
1908
1908
|
:example:
|
1909
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1909
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_filesystem_snapshot_policy.py.html>`__ to see an example of how to use create_filesystem_snapshot_policy API.
|
1910
1910
|
"""
|
1911
1911
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1912
1912
|
required_arguments = []
|
@@ -2041,7 +2041,7 @@ class FileStorageClient(object):
|
|
2041
2041
|
:rtype: :class:`~oci.response.Response`
|
2042
2042
|
|
2043
2043
|
:example:
|
2044
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2044
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_mount_target.py.html>`__ to see an example of how to use create_mount_target API.
|
2045
2045
|
"""
|
2046
2046
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2047
2047
|
required_arguments = []
|
@@ -2169,7 +2169,7 @@ class FileStorageClient(object):
|
|
2169
2169
|
:rtype: :class:`~oci.response.Response`
|
2170
2170
|
|
2171
2171
|
:example:
|
2172
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2172
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_outbound_connector.py.html>`__ to see an example of how to use create_outbound_connector API.
|
2173
2173
|
"""
|
2174
2174
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2175
2175
|
required_arguments = []
|
@@ -2231,6 +2231,130 @@ class FileStorageClient(object):
|
|
2231
2231
|
api_reference_link=api_reference_link,
|
2232
2232
|
required_arguments=required_arguments)
|
2233
2233
|
|
2234
|
+
def create_quota_rule(self, create_quota_rule_details, file_system_id, **kwargs):
|
2235
|
+
"""
|
2236
|
+
Create a file system, user, or group quota rule given the `fileSystemId`, `principalId`, `principalType` and
|
2237
|
+
`isHardQuota` parameters.
|
2238
|
+
|
2239
|
+
|
2240
|
+
:param oci.file_storage.models.CreateQuotaRuleDetails create_quota_rule_details: (required)
|
2241
|
+
Details for adding a new quota rule.
|
2242
|
+
|
2243
|
+
:param str file_system_id: (required)
|
2244
|
+
The `OCID`__ of the file system.
|
2245
|
+
|
2246
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2247
|
+
|
2248
|
+
:param str if_match: (optional)
|
2249
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2250
|
+
for a resource, set the `if-match` parameter to the value of the
|
2251
|
+
etag from a previous GET or POST response for that resource.
|
2252
|
+
The resource will be updated or deleted only if the etag you
|
2253
|
+
provide matches the resource's current etag value.
|
2254
|
+
|
2255
|
+
:param str opc_request_id: (optional)
|
2256
|
+
Unique identifier for the request.
|
2257
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
2258
|
+
|
2259
|
+
:param str opc_retry_token: (optional)
|
2260
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2261
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
2262
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2263
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2264
|
+
might be rejected.
|
2265
|
+
|
2266
|
+
:param obj retry_strategy: (optional)
|
2267
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2268
|
+
|
2269
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
2270
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2271
|
+
|
2272
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2273
|
+
|
2274
|
+
:param bool allow_control_chars: (optional)
|
2275
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2276
|
+
By default, the response will not allow control characters in strings
|
2277
|
+
|
2278
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.file_storage.models.QuotaRule`
|
2279
|
+
:rtype: :class:`~oci.response.Response`
|
2280
|
+
|
2281
|
+
:example:
|
2282
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_quota_rule.py.html>`__ to see an example of how to use create_quota_rule API.
|
2283
|
+
"""
|
2284
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2285
|
+
required_arguments = ['fileSystemId']
|
2286
|
+
resource_path = "/fileSystems/{fileSystemId}/quotaRules"
|
2287
|
+
method = "POST"
|
2288
|
+
operation_name = "create_quota_rule"
|
2289
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/CreateQuotaRule"
|
2290
|
+
|
2291
|
+
# Don't accept unknown kwargs
|
2292
|
+
expected_kwargs = [
|
2293
|
+
"allow_control_chars",
|
2294
|
+
"retry_strategy",
|
2295
|
+
"if_match",
|
2296
|
+
"opc_request_id",
|
2297
|
+
"opc_retry_token"
|
2298
|
+
]
|
2299
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2300
|
+
if extra_kwargs:
|
2301
|
+
raise ValueError(
|
2302
|
+
f"create_quota_rule got unknown kwargs: {extra_kwargs!r}")
|
2303
|
+
|
2304
|
+
path_params = {
|
2305
|
+
"fileSystemId": file_system_id
|
2306
|
+
}
|
2307
|
+
|
2308
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2309
|
+
|
2310
|
+
for (k, v) in six.iteritems(path_params):
|
2311
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2312
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2313
|
+
|
2314
|
+
header_params = {
|
2315
|
+
"accept": "application/json",
|
2316
|
+
"content-type": "application/json",
|
2317
|
+
"if-match": kwargs.get("if_match", missing),
|
2318
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2319
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2320
|
+
}
|
2321
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2322
|
+
|
2323
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2324
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2325
|
+
client_retry_strategy=self.retry_strategy
|
2326
|
+
)
|
2327
|
+
|
2328
|
+
if retry_strategy:
|
2329
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2330
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2331
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2332
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2333
|
+
return retry_strategy.make_retrying_call(
|
2334
|
+
self.base_client.call_api,
|
2335
|
+
resource_path=resource_path,
|
2336
|
+
method=method,
|
2337
|
+
path_params=path_params,
|
2338
|
+
header_params=header_params,
|
2339
|
+
body=create_quota_rule_details,
|
2340
|
+
response_type="QuotaRule",
|
2341
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2342
|
+
operation_name=operation_name,
|
2343
|
+
api_reference_link=api_reference_link,
|
2344
|
+
required_arguments=required_arguments)
|
2345
|
+
else:
|
2346
|
+
return self.base_client.call_api(
|
2347
|
+
resource_path=resource_path,
|
2348
|
+
method=method,
|
2349
|
+
path_params=path_params,
|
2350
|
+
header_params=header_params,
|
2351
|
+
body=create_quota_rule_details,
|
2352
|
+
response_type="QuotaRule",
|
2353
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2354
|
+
operation_name=operation_name,
|
2355
|
+
api_reference_link=api_reference_link,
|
2356
|
+
required_arguments=required_arguments)
|
2357
|
+
|
2234
2358
|
def create_replication(self, create_replication_details, **kwargs):
|
2235
2359
|
"""
|
2236
2360
|
Creates a new replication in the specified compartment.
|
@@ -2297,7 +2421,7 @@ class FileStorageClient(object):
|
|
2297
2421
|
:rtype: :class:`~oci.response.Response`
|
2298
2422
|
|
2299
2423
|
:example:
|
2300
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2424
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_replication.py.html>`__ to see an example of how to use create_replication API.
|
2301
2425
|
"""
|
2302
2426
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2303
2427
|
required_arguments = []
|
@@ -2395,7 +2519,7 @@ class FileStorageClient(object):
|
|
2395
2519
|
:rtype: :class:`~oci.response.Response`
|
2396
2520
|
|
2397
2521
|
:example:
|
2398
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2522
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/create_snapshot.py.html>`__ to see an example of how to use create_snapshot API.
|
2399
2523
|
"""
|
2400
2524
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2401
2525
|
required_arguments = []
|
@@ -2497,7 +2621,7 @@ class FileStorageClient(object):
|
|
2497
2621
|
:rtype: :class:`~oci.response.Response`
|
2498
2622
|
|
2499
2623
|
:example:
|
2500
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2624
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_export.py.html>`__ to see an example of how to use delete_export API.
|
2501
2625
|
"""
|
2502
2626
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2503
2627
|
required_arguments = ['exportId']
|
@@ -2620,7 +2744,7 @@ class FileStorageClient(object):
|
|
2620
2744
|
:rtype: :class:`~oci.response.Response`
|
2621
2745
|
|
2622
2746
|
:example:
|
2623
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2747
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_file_system.py.html>`__ to see an example of how to use delete_file_system API.
|
2624
2748
|
"""
|
2625
2749
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2626
2750
|
required_arguments = ['fileSystemId']
|
@@ -2739,7 +2863,7 @@ class FileStorageClient(object):
|
|
2739
2863
|
:rtype: :class:`~oci.response.Response`
|
2740
2864
|
|
2741
2865
|
:example:
|
2742
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2866
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_filesystem_snapshot_policy.py.html>`__ to see an example of how to use delete_filesystem_snapshot_policy API.
|
2743
2867
|
"""
|
2744
2868
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2745
2869
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -2857,7 +2981,7 @@ class FileStorageClient(object):
|
|
2857
2981
|
:rtype: :class:`~oci.response.Response`
|
2858
2982
|
|
2859
2983
|
:example:
|
2860
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2984
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_mount_target.py.html>`__ to see an example of how to use delete_mount_target API.
|
2861
2985
|
"""
|
2862
2986
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2863
2987
|
required_arguments = ['mountTargetId']
|
@@ -2974,7 +3098,7 @@ class FileStorageClient(object):
|
|
2974
3098
|
:rtype: :class:`~oci.response.Response`
|
2975
3099
|
|
2976
3100
|
:example:
|
2977
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3101
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_outbound_connector.py.html>`__ to see an example of how to use delete_outbound_connector API.
|
2978
3102
|
"""
|
2979
3103
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2980
3104
|
required_arguments = ['outboundConnectorId']
|
@@ -3051,6 +3175,116 @@ class FileStorageClient(object):
|
|
3051
3175
|
api_reference_link=api_reference_link,
|
3052
3176
|
required_arguments=required_arguments)
|
3053
3177
|
|
3178
|
+
def delete_quota_rule(self, file_system_id, quota_rule_id, **kwargs):
|
3179
|
+
"""
|
3180
|
+
Remove a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
|
3181
|
+
|
3182
|
+
|
3183
|
+
:param str file_system_id: (required)
|
3184
|
+
The `OCID`__ of the file system.
|
3185
|
+
|
3186
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
3187
|
+
|
3188
|
+
:param str quota_rule_id: (required)
|
3189
|
+
The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
|
3190
|
+
|
3191
|
+
:param str if_match: (optional)
|
3192
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
3193
|
+
for a resource, set the `if-match` parameter to the value of the
|
3194
|
+
etag from a previous GET or POST response for that resource.
|
3195
|
+
The resource will be updated or deleted only if the etag you
|
3196
|
+
provide matches the resource's current etag value.
|
3197
|
+
|
3198
|
+
:param str opc_request_id: (optional)
|
3199
|
+
Unique identifier for the request.
|
3200
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
3201
|
+
|
3202
|
+
:param obj retry_strategy: (optional)
|
3203
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3204
|
+
|
3205
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3206
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3207
|
+
|
3208
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3209
|
+
|
3210
|
+
:param bool allow_control_chars: (optional)
|
3211
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3212
|
+
By default, the response will not allow control characters in strings
|
3213
|
+
|
3214
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
3215
|
+
:rtype: :class:`~oci.response.Response`
|
3216
|
+
|
3217
|
+
:example:
|
3218
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_quota_rule.py.html>`__ to see an example of how to use delete_quota_rule API.
|
3219
|
+
"""
|
3220
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3221
|
+
required_arguments = ['fileSystemId', 'quotaRuleId']
|
3222
|
+
resource_path = "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}"
|
3223
|
+
method = "DELETE"
|
3224
|
+
operation_name = "delete_quota_rule"
|
3225
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/DeleteQuotaRule"
|
3226
|
+
|
3227
|
+
# Don't accept unknown kwargs
|
3228
|
+
expected_kwargs = [
|
3229
|
+
"allow_control_chars",
|
3230
|
+
"retry_strategy",
|
3231
|
+
"if_match",
|
3232
|
+
"opc_request_id"
|
3233
|
+
]
|
3234
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3235
|
+
if extra_kwargs:
|
3236
|
+
raise ValueError(
|
3237
|
+
f"delete_quota_rule got unknown kwargs: {extra_kwargs!r}")
|
3238
|
+
|
3239
|
+
path_params = {
|
3240
|
+
"fileSystemId": file_system_id,
|
3241
|
+
"quotaRuleId": quota_rule_id
|
3242
|
+
}
|
3243
|
+
|
3244
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3245
|
+
|
3246
|
+
for (k, v) in six.iteritems(path_params):
|
3247
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3248
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3249
|
+
|
3250
|
+
header_params = {
|
3251
|
+
"accept": "application/json",
|
3252
|
+
"content-type": "application/json",
|
3253
|
+
"if-match": kwargs.get("if_match", missing),
|
3254
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3255
|
+
}
|
3256
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3257
|
+
|
3258
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3259
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3260
|
+
client_retry_strategy=self.retry_strategy
|
3261
|
+
)
|
3262
|
+
|
3263
|
+
if retry_strategy:
|
3264
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3265
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3266
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3267
|
+
return retry_strategy.make_retrying_call(
|
3268
|
+
self.base_client.call_api,
|
3269
|
+
resource_path=resource_path,
|
3270
|
+
method=method,
|
3271
|
+
path_params=path_params,
|
3272
|
+
header_params=header_params,
|
3273
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3274
|
+
operation_name=operation_name,
|
3275
|
+
api_reference_link=api_reference_link,
|
3276
|
+
required_arguments=required_arguments)
|
3277
|
+
else:
|
3278
|
+
return self.base_client.call_api(
|
3279
|
+
resource_path=resource_path,
|
3280
|
+
method=method,
|
3281
|
+
path_params=path_params,
|
3282
|
+
header_params=header_params,
|
3283
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3284
|
+
operation_name=operation_name,
|
3285
|
+
api_reference_link=api_reference_link,
|
3286
|
+
required_arguments=required_arguments)
|
3287
|
+
|
3054
3288
|
def delete_replication(self, replication_id, **kwargs):
|
3055
3289
|
"""
|
3056
3290
|
Deletes the specified replication and the the associated replication target.
|
@@ -3099,7 +3333,7 @@ class FileStorageClient(object):
|
|
3099
3333
|
:rtype: :class:`~oci.response.Response`
|
3100
3334
|
|
3101
3335
|
:example:
|
3102
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3336
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_replication.py.html>`__ to see an example of how to use delete_replication API.
|
3103
3337
|
"""
|
3104
3338
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3105
3339
|
required_arguments = ['replicationId']
|
@@ -3228,7 +3462,7 @@ class FileStorageClient(object):
|
|
3228
3462
|
:rtype: :class:`~oci.response.Response`
|
3229
3463
|
|
3230
3464
|
:example:
|
3231
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3465
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_replication_target.py.html>`__ to see an example of how to use delete_replication_target API.
|
3232
3466
|
"""
|
3233
3467
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3234
3468
|
required_arguments = ['replicationTargetId']
|
@@ -3345,7 +3579,7 @@ class FileStorageClient(object):
|
|
3345
3579
|
:rtype: :class:`~oci.response.Response`
|
3346
3580
|
|
3347
3581
|
:example:
|
3348
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3582
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/delete_snapshot.py.html>`__ to see an example of how to use delete_snapshot API.
|
3349
3583
|
"""
|
3350
3584
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3351
3585
|
required_arguments = ['snapshotId']
|
@@ -3459,7 +3693,7 @@ class FileStorageClient(object):
|
|
3459
3693
|
:rtype: :class:`~oci.response.Response`
|
3460
3694
|
|
3461
3695
|
:example:
|
3462
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3696
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/detach_clone.py.html>`__ to see an example of how to use detach_clone API.
|
3463
3697
|
"""
|
3464
3698
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3465
3699
|
required_arguments = ['fileSystemId']
|
@@ -3568,7 +3802,7 @@ class FileStorageClient(object):
|
|
3568
3802
|
:rtype: :class:`~oci.response.Response`
|
3569
3803
|
|
3570
3804
|
:example:
|
3571
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3805
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/estimate_replication.py.html>`__ to see an example of how to use estimate_replication API.
|
3572
3806
|
"""
|
3573
3807
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3574
3808
|
required_arguments = ['fileSystemId']
|
@@ -3677,7 +3911,7 @@ class FileStorageClient(object):
|
|
3677
3911
|
:rtype: :class:`~oci.response.Response`
|
3678
3912
|
|
3679
3913
|
:example:
|
3680
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3914
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_export.py.html>`__ to see an example of how to use get_export API.
|
3681
3915
|
"""
|
3682
3916
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3683
3917
|
required_arguments = ['exportId']
|
@@ -3776,7 +4010,7 @@ class FileStorageClient(object):
|
|
3776
4010
|
:rtype: :class:`~oci.response.Response`
|
3777
4011
|
|
3778
4012
|
:example:
|
3779
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4013
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_export_set.py.html>`__ to see an example of how to use get_export_set API.
|
3780
4014
|
"""
|
3781
4015
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3782
4016
|
required_arguments = ['exportSetId']
|
@@ -3875,7 +4109,7 @@ class FileStorageClient(object):
|
|
3875
4109
|
:rtype: :class:`~oci.response.Response`
|
3876
4110
|
|
3877
4111
|
:example:
|
3878
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4112
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_file_system.py.html>`__ to see an example of how to use get_file_system API.
|
3879
4113
|
"""
|
3880
4114
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3881
4115
|
required_arguments = ['fileSystemId']
|
@@ -3974,7 +4208,7 @@ class FileStorageClient(object):
|
|
3974
4208
|
:rtype: :class:`~oci.response.Response`
|
3975
4209
|
|
3976
4210
|
:example:
|
3977
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4211
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_filesystem_snapshot_policy.py.html>`__ to see an example of how to use get_filesystem_snapshot_policy API.
|
3978
4212
|
"""
|
3979
4213
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3980
4214
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -4073,7 +4307,7 @@ class FileStorageClient(object):
|
|
4073
4307
|
:rtype: :class:`~oci.response.Response`
|
4074
4308
|
|
4075
4309
|
:example:
|
4076
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4310
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_mount_target.py.html>`__ to see an example of how to use get_mount_target API.
|
4077
4311
|
"""
|
4078
4312
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4079
4313
|
required_arguments = ['mountTargetId']
|
@@ -4172,7 +4406,7 @@ class FileStorageClient(object):
|
|
4172
4406
|
:rtype: :class:`~oci.response.Response`
|
4173
4407
|
|
4174
4408
|
:example:
|
4175
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4409
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_outbound_connector.py.html>`__ to see an example of how to use get_outbound_connector API.
|
4176
4410
|
"""
|
4177
4411
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4178
4412
|
required_arguments = ['outboundConnectorId']
|
@@ -4241,6 +4475,118 @@ class FileStorageClient(object):
|
|
4241
4475
|
api_reference_link=api_reference_link,
|
4242
4476
|
required_arguments=required_arguments)
|
4243
4477
|
|
4478
|
+
def get_quota_rule(self, file_system_id, quota_rule_id, **kwargs):
|
4479
|
+
"""
|
4480
|
+
Get a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
|
4481
|
+
|
4482
|
+
|
4483
|
+
:param str file_system_id: (required)
|
4484
|
+
The `OCID`__ of the file system.
|
4485
|
+
|
4486
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
4487
|
+
|
4488
|
+
:param str quota_rule_id: (required)
|
4489
|
+
The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
|
4490
|
+
|
4491
|
+
:param str if_match: (optional)
|
4492
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4493
|
+
for a resource, set the `if-match` parameter to the value of the
|
4494
|
+
etag from a previous GET or POST response for that resource.
|
4495
|
+
The resource will be updated or deleted only if the etag you
|
4496
|
+
provide matches the resource's current etag value.
|
4497
|
+
|
4498
|
+
:param str opc_request_id: (optional)
|
4499
|
+
Unique identifier for the request.
|
4500
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
4501
|
+
|
4502
|
+
:param obj retry_strategy: (optional)
|
4503
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4504
|
+
|
4505
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4506
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4507
|
+
|
4508
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4509
|
+
|
4510
|
+
:param bool allow_control_chars: (optional)
|
4511
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4512
|
+
By default, the response will not allow control characters in strings
|
4513
|
+
|
4514
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.file_storage.models.QuotaRule`
|
4515
|
+
:rtype: :class:`~oci.response.Response`
|
4516
|
+
|
4517
|
+
:example:
|
4518
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_quota_rule.py.html>`__ to see an example of how to use get_quota_rule API.
|
4519
|
+
"""
|
4520
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4521
|
+
required_arguments = ['fileSystemId', 'quotaRuleId']
|
4522
|
+
resource_path = "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}"
|
4523
|
+
method = "GET"
|
4524
|
+
operation_name = "get_quota_rule"
|
4525
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/GetQuotaRule"
|
4526
|
+
|
4527
|
+
# Don't accept unknown kwargs
|
4528
|
+
expected_kwargs = [
|
4529
|
+
"allow_control_chars",
|
4530
|
+
"retry_strategy",
|
4531
|
+
"if_match",
|
4532
|
+
"opc_request_id"
|
4533
|
+
]
|
4534
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4535
|
+
if extra_kwargs:
|
4536
|
+
raise ValueError(
|
4537
|
+
f"get_quota_rule got unknown kwargs: {extra_kwargs!r}")
|
4538
|
+
|
4539
|
+
path_params = {
|
4540
|
+
"fileSystemId": file_system_id,
|
4541
|
+
"quotaRuleId": quota_rule_id
|
4542
|
+
}
|
4543
|
+
|
4544
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4545
|
+
|
4546
|
+
for (k, v) in six.iteritems(path_params):
|
4547
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4548
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4549
|
+
|
4550
|
+
header_params = {
|
4551
|
+
"accept": "application/json",
|
4552
|
+
"content-type": "application/json",
|
4553
|
+
"if-match": kwargs.get("if_match", missing),
|
4554
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4555
|
+
}
|
4556
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4557
|
+
|
4558
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4559
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4560
|
+
client_retry_strategy=self.retry_strategy
|
4561
|
+
)
|
4562
|
+
|
4563
|
+
if retry_strategy:
|
4564
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4565
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4566
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4567
|
+
return retry_strategy.make_retrying_call(
|
4568
|
+
self.base_client.call_api,
|
4569
|
+
resource_path=resource_path,
|
4570
|
+
method=method,
|
4571
|
+
path_params=path_params,
|
4572
|
+
header_params=header_params,
|
4573
|
+
response_type="QuotaRule",
|
4574
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4575
|
+
operation_name=operation_name,
|
4576
|
+
api_reference_link=api_reference_link,
|
4577
|
+
required_arguments=required_arguments)
|
4578
|
+
else:
|
4579
|
+
return self.base_client.call_api(
|
4580
|
+
resource_path=resource_path,
|
4581
|
+
method=method,
|
4582
|
+
path_params=path_params,
|
4583
|
+
header_params=header_params,
|
4584
|
+
response_type="QuotaRule",
|
4585
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4586
|
+
operation_name=operation_name,
|
4587
|
+
api_reference_link=api_reference_link,
|
4588
|
+
required_arguments=required_arguments)
|
4589
|
+
|
4244
4590
|
def get_replication(self, replication_id, **kwargs):
|
4245
4591
|
"""
|
4246
4592
|
Gets the specified replication's information.
|
@@ -4271,7 +4617,7 @@ class FileStorageClient(object):
|
|
4271
4617
|
:rtype: :class:`~oci.response.Response`
|
4272
4618
|
|
4273
4619
|
:example:
|
4274
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4620
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_replication.py.html>`__ to see an example of how to use get_replication API.
|
4275
4621
|
"""
|
4276
4622
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4277
4623
|
required_arguments = ['replicationId']
|
@@ -4370,7 +4716,7 @@ class FileStorageClient(object):
|
|
4370
4716
|
:rtype: :class:`~oci.response.Response`
|
4371
4717
|
|
4372
4718
|
:example:
|
4373
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4719
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_replication_target.py.html>`__ to see an example of how to use get_replication_target API.
|
4374
4720
|
"""
|
4375
4721
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4376
4722
|
required_arguments = ['replicationTargetId']
|
@@ -4469,7 +4815,7 @@ class FileStorageClient(object):
|
|
4469
4815
|
:rtype: :class:`~oci.response.Response`
|
4470
4816
|
|
4471
4817
|
:example:
|
4472
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4818
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/get_snapshot.py.html>`__ to see an example of how to use get_snapshot API.
|
4473
4819
|
"""
|
4474
4820
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4475
4821
|
required_arguments = ['snapshotId']
|
@@ -4626,7 +4972,7 @@ class FileStorageClient(object):
|
|
4626
4972
|
:rtype: :class:`~oci.response.Response`
|
4627
4973
|
|
4628
4974
|
:example:
|
4629
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4975
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_export_sets.py.html>`__ to see an example of how to use list_export_sets API.
|
4630
4976
|
"""
|
4631
4977
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4632
4978
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -4816,7 +5162,7 @@ class FileStorageClient(object):
|
|
4816
5162
|
:rtype: :class:`~oci.response.Response`
|
4817
5163
|
|
4818
5164
|
:example:
|
4819
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5165
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_exports.py.html>`__ to see an example of how to use list_exports API.
|
4820
5166
|
"""
|
4821
5167
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4822
5168
|
required_arguments = []
|
@@ -5025,7 +5371,7 @@ class FileStorageClient(object):
|
|
5025
5371
|
:rtype: :class:`~oci.response.Response`
|
5026
5372
|
|
5027
5373
|
:example:
|
5028
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5374
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_file_systems.py.html>`__ to see an example of how to use list_file_systems API.
|
5029
5375
|
"""
|
5030
5376
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5031
5377
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -5219,7 +5565,7 @@ class FileStorageClient(object):
|
|
5219
5565
|
:rtype: :class:`~oci.response.Response`
|
5220
5566
|
|
5221
5567
|
:example:
|
5222
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5568
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_filesystem_snapshot_policies.py.html>`__ to see an example of how to use list_filesystem_snapshot_policies API.
|
5223
5569
|
"""
|
5224
5570
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5225
5571
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -5412,7 +5758,7 @@ class FileStorageClient(object):
|
|
5412
5758
|
:rtype: :class:`~oci.response.Response`
|
5413
5759
|
|
5414
5760
|
:example:
|
5415
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5761
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_mount_targets.py.html>`__ to see an example of how to use list_mount_targets API.
|
5416
5762
|
"""
|
5417
5763
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5418
5764
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -5598,18 +5944,198 @@ class FileStorageClient(object):
|
|
5598
5944
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
5599
5945
|
By default, the response will not allow control characters in strings
|
5600
5946
|
|
5601
|
-
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.file_storage.models.OutboundConnectorSummary`
|
5947
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.file_storage.models.OutboundConnectorSummary`
|
5948
|
+
:rtype: :class:`~oci.response.Response`
|
5949
|
+
|
5950
|
+
:example:
|
5951
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_outbound_connectors.py.html>`__ to see an example of how to use list_outbound_connectors API.
|
5952
|
+
"""
|
5953
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5954
|
+
required_arguments = ['compartmentId', 'availabilityDomain']
|
5955
|
+
resource_path = "/outboundConnectors"
|
5956
|
+
method = "GET"
|
5957
|
+
operation_name = "list_outbound_connectors"
|
5958
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/OutboundConnectorSummary/ListOutboundConnectors"
|
5959
|
+
|
5960
|
+
# Don't accept unknown kwargs
|
5961
|
+
expected_kwargs = [
|
5962
|
+
"allow_control_chars",
|
5963
|
+
"retry_strategy",
|
5964
|
+
"limit",
|
5965
|
+
"page",
|
5966
|
+
"lifecycle_state",
|
5967
|
+
"display_name",
|
5968
|
+
"id",
|
5969
|
+
"sort_by",
|
5970
|
+
"sort_order",
|
5971
|
+
"opc_request_id"
|
5972
|
+
]
|
5973
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
5974
|
+
if extra_kwargs:
|
5975
|
+
raise ValueError(
|
5976
|
+
f"list_outbound_connectors got unknown kwargs: {extra_kwargs!r}")
|
5977
|
+
|
5978
|
+
if 'lifecycle_state' in kwargs:
|
5979
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
5980
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
5981
|
+
raise ValueError(
|
5982
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
5983
|
+
)
|
5984
|
+
|
5985
|
+
if 'sort_by' in kwargs:
|
5986
|
+
sort_by_allowed_values = ["TIMECREATED", "DISPLAYNAME"]
|
5987
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
5988
|
+
raise ValueError(
|
5989
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
5990
|
+
)
|
5991
|
+
|
5992
|
+
if 'sort_order' in kwargs:
|
5993
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
5994
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
5995
|
+
raise ValueError(
|
5996
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
5997
|
+
)
|
5998
|
+
|
5999
|
+
query_params = {
|
6000
|
+
"compartmentId": compartment_id,
|
6001
|
+
"availabilityDomain": availability_domain,
|
6002
|
+
"limit": kwargs.get("limit", missing),
|
6003
|
+
"page": kwargs.get("page", missing),
|
6004
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
6005
|
+
"displayName": kwargs.get("display_name", missing),
|
6006
|
+
"id": kwargs.get("id", missing),
|
6007
|
+
"sortBy": kwargs.get("sort_by", missing),
|
6008
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
6009
|
+
}
|
6010
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6011
|
+
|
6012
|
+
header_params = {
|
6013
|
+
"accept": "application/json",
|
6014
|
+
"content-type": "application/json",
|
6015
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
6016
|
+
}
|
6017
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6018
|
+
|
6019
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6020
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6021
|
+
client_retry_strategy=self.retry_strategy
|
6022
|
+
)
|
6023
|
+
|
6024
|
+
if retry_strategy:
|
6025
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6026
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6027
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6028
|
+
return retry_strategy.make_retrying_call(
|
6029
|
+
self.base_client.call_api,
|
6030
|
+
resource_path=resource_path,
|
6031
|
+
method=method,
|
6032
|
+
query_params=query_params,
|
6033
|
+
header_params=header_params,
|
6034
|
+
response_type="list[OutboundConnectorSummary]",
|
6035
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6036
|
+
operation_name=operation_name,
|
6037
|
+
api_reference_link=api_reference_link,
|
6038
|
+
required_arguments=required_arguments)
|
6039
|
+
else:
|
6040
|
+
return self.base_client.call_api(
|
6041
|
+
resource_path=resource_path,
|
6042
|
+
method=method,
|
6043
|
+
query_params=query_params,
|
6044
|
+
header_params=header_params,
|
6045
|
+
response_type="list[OutboundConnectorSummary]",
|
6046
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6047
|
+
operation_name=operation_name,
|
6048
|
+
api_reference_link=api_reference_link,
|
6049
|
+
required_arguments=required_arguments)
|
6050
|
+
|
6051
|
+
def list_quota_rules(self, file_system_id, principal_type, **kwargs):
|
6052
|
+
"""
|
6053
|
+
List user or group usages and their quota rules by certain principal type.
|
6054
|
+
|
6055
|
+
|
6056
|
+
:param str file_system_id: (required)
|
6057
|
+
The `OCID`__ of the file system.
|
6058
|
+
|
6059
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
6060
|
+
|
6061
|
+
:param str principal_type: (required)
|
6062
|
+
The type of the owner of this quota rule and usage.
|
6063
|
+
|
6064
|
+
Allowed values are: "FILE_SYSTEM_LEVEL", "DEFAULT_GROUP", "DEFAULT_USER", "INDIVIDUAL_GROUP", "INDIVIDUAL_USER"
|
6065
|
+
|
6066
|
+
:param int limit: (optional)
|
6067
|
+
For list pagination. The maximum number of results per page,
|
6068
|
+
or items to return in a paginated \"List\" call.
|
6069
|
+
1 is the minimum, 4096 is the maximum.
|
6070
|
+
|
6071
|
+
For important details about how pagination works,
|
6072
|
+
see `List Pagination`__.
|
6073
|
+
|
6074
|
+
Example: `500`
|
6075
|
+
|
6076
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6077
|
+
|
6078
|
+
:param str page: (optional)
|
6079
|
+
For list pagination. The value of the `opc-next-page` response
|
6080
|
+
header from the previous \"List\" call.
|
6081
|
+
|
6082
|
+
For important details about how pagination works,
|
6083
|
+
see `List Pagination`__.
|
6084
|
+
|
6085
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
6086
|
+
|
6087
|
+
:param int principal_id: (optional)
|
6088
|
+
An identifier for the user or the group associated with quota rule and usage. UNIX-like operating systems use this integer value to
|
6089
|
+
identify a user or group to manage access control.
|
6090
|
+
|
6091
|
+
:param bool are_violators_only: (optional)
|
6092
|
+
An option to display only the users or groups that violate their quota rules.
|
6093
|
+
If `areViolatorsOnly` is false, results report all the quota and usage.
|
6094
|
+
If `areViolatorsOnly` is true, results only report the quota and usage for
|
6095
|
+
the users or groups that violate their quota rules.
|
6096
|
+
|
6097
|
+
:param str sort_order: (optional)
|
6098
|
+
The sort order to use, either 'asc' or 'desc', where 'asc' is
|
6099
|
+
ascending and 'desc' is descending. The default order is 'desc'
|
6100
|
+
except for numeric values.
|
6101
|
+
|
6102
|
+
Allowed values are: "ASC", "DESC"
|
6103
|
+
|
6104
|
+
:param str if_match: (optional)
|
6105
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
6106
|
+
for a resource, set the `if-match` parameter to the value of the
|
6107
|
+
etag from a previous GET or POST response for that resource.
|
6108
|
+
The resource will be updated or deleted only if the etag you
|
6109
|
+
provide matches the resource's current etag value.
|
6110
|
+
|
6111
|
+
:param str opc_request_id: (optional)
|
6112
|
+
Unique identifier for the request.
|
6113
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
6114
|
+
|
6115
|
+
:param obj retry_strategy: (optional)
|
6116
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6117
|
+
|
6118
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
6119
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6120
|
+
|
6121
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6122
|
+
|
6123
|
+
:param bool allow_control_chars: (optional)
|
6124
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6125
|
+
By default, the response will not allow control characters in strings
|
6126
|
+
|
6127
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.file_storage.models.QuotaRuleSummary`
|
5602
6128
|
:rtype: :class:`~oci.response.Response`
|
5603
6129
|
|
5604
6130
|
:example:
|
5605
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6131
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_quota_rules.py.html>`__ to see an example of how to use list_quota_rules API.
|
5606
6132
|
"""
|
5607
6133
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5608
|
-
required_arguments = ['
|
5609
|
-
resource_path = "/
|
6134
|
+
required_arguments = ['fileSystemId', 'principalType']
|
6135
|
+
resource_path = "/fileSystems/{fileSystemId}/quotaRules"
|
5610
6136
|
method = "GET"
|
5611
|
-
operation_name = "
|
5612
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/
|
6137
|
+
operation_name = "list_quota_rules"
|
6138
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ListQuotaRules"
|
5613
6139
|
|
5614
6140
|
# Don't accept unknown kwargs
|
5615
6141
|
expected_kwargs = [
|
@@ -5617,31 +6143,32 @@ class FileStorageClient(object):
|
|
5617
6143
|
"retry_strategy",
|
5618
6144
|
"limit",
|
5619
6145
|
"page",
|
5620
|
-
"
|
5621
|
-
"
|
5622
|
-
"id",
|
5623
|
-
"sort_by",
|
6146
|
+
"principal_id",
|
6147
|
+
"are_violators_only",
|
5624
6148
|
"sort_order",
|
6149
|
+
"if_match",
|
5625
6150
|
"opc_request_id"
|
5626
6151
|
]
|
5627
6152
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
5628
6153
|
if extra_kwargs:
|
5629
6154
|
raise ValueError(
|
5630
|
-
f"
|
6155
|
+
f"list_quota_rules got unknown kwargs: {extra_kwargs!r}")
|
5631
6156
|
|
5632
|
-
|
5633
|
-
|
5634
|
-
|
5635
|
-
raise ValueError(
|
5636
|
-
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
5637
|
-
)
|
6157
|
+
path_params = {
|
6158
|
+
"fileSystemId": file_system_id
|
6159
|
+
}
|
5638
6160
|
|
5639
|
-
|
5640
|
-
|
5641
|
-
|
5642
|
-
|
5643
|
-
|
5644
|
-
|
6161
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6162
|
+
|
6163
|
+
for (k, v) in six.iteritems(path_params):
|
6164
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6165
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6166
|
+
|
6167
|
+
principal_type_allowed_values = ["FILE_SYSTEM_LEVEL", "DEFAULT_GROUP", "DEFAULT_USER", "INDIVIDUAL_GROUP", "INDIVIDUAL_USER"]
|
6168
|
+
if principal_type not in principal_type_allowed_values:
|
6169
|
+
raise ValueError(
|
6170
|
+
f"Invalid value for `principal_type`, must be one of { principal_type_allowed_values }"
|
6171
|
+
)
|
5645
6172
|
|
5646
6173
|
if 'sort_order' in kwargs:
|
5647
6174
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -5651,14 +6178,11 @@ class FileStorageClient(object):
|
|
5651
6178
|
)
|
5652
6179
|
|
5653
6180
|
query_params = {
|
5654
|
-
"compartmentId": compartment_id,
|
5655
|
-
"availabilityDomain": availability_domain,
|
5656
6181
|
"limit": kwargs.get("limit", missing),
|
5657
6182
|
"page": kwargs.get("page", missing),
|
5658
|
-
"
|
5659
|
-
"
|
5660
|
-
"
|
5661
|
-
"sortBy": kwargs.get("sort_by", missing),
|
6183
|
+
"principalType": principal_type,
|
6184
|
+
"principalId": kwargs.get("principal_id", missing),
|
6185
|
+
"areViolatorsOnly": kwargs.get("are_violators_only", missing),
|
5662
6186
|
"sortOrder": kwargs.get("sort_order", missing)
|
5663
6187
|
}
|
5664
6188
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
@@ -5666,6 +6190,7 @@ class FileStorageClient(object):
|
|
5666
6190
|
header_params = {
|
5667
6191
|
"accept": "application/json",
|
5668
6192
|
"content-type": "application/json",
|
6193
|
+
"if-match": kwargs.get("if_match", missing),
|
5669
6194
|
"opc-request-id": kwargs.get("opc_request_id", missing)
|
5670
6195
|
}
|
5671
6196
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -5683,9 +6208,10 @@ class FileStorageClient(object):
|
|
5683
6208
|
self.base_client.call_api,
|
5684
6209
|
resource_path=resource_path,
|
5685
6210
|
method=method,
|
6211
|
+
path_params=path_params,
|
5686
6212
|
query_params=query_params,
|
5687
6213
|
header_params=header_params,
|
5688
|
-
response_type="list[
|
6214
|
+
response_type="list[QuotaRuleSummary]",
|
5689
6215
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5690
6216
|
operation_name=operation_name,
|
5691
6217
|
api_reference_link=api_reference_link,
|
@@ -5694,9 +6220,10 @@ class FileStorageClient(object):
|
|
5694
6220
|
return self.base_client.call_api(
|
5695
6221
|
resource_path=resource_path,
|
5696
6222
|
method=method,
|
6223
|
+
path_params=path_params,
|
5697
6224
|
query_params=query_params,
|
5698
6225
|
header_params=header_params,
|
5699
|
-
response_type="list[
|
6226
|
+
response_type="list[QuotaRuleSummary]",
|
5700
6227
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5701
6228
|
operation_name=operation_name,
|
5702
6229
|
api_reference_link=api_reference_link,
|
@@ -5790,7 +6317,7 @@ class FileStorageClient(object):
|
|
5790
6317
|
:rtype: :class:`~oci.response.Response`
|
5791
6318
|
|
5792
6319
|
:example:
|
5793
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6320
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_replication_targets.py.html>`__ to see an example of how to use list_replication_targets API.
|
5794
6321
|
"""
|
5795
6322
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5796
6323
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -5983,7 +6510,7 @@ class FileStorageClient(object):
|
|
5983
6510
|
:rtype: :class:`~oci.response.Response`
|
5984
6511
|
|
5985
6512
|
:example:
|
5986
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6513
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_replications.py.html>`__ to see an example of how to use list_replications API.
|
5987
6514
|
"""
|
5988
6515
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5989
6516
|
required_arguments = ['compartmentId', 'availabilityDomain']
|
@@ -6172,7 +6699,7 @@ class FileStorageClient(object):
|
|
6172
6699
|
:rtype: :class:`~oci.response.Response`
|
6173
6700
|
|
6174
6701
|
:example:
|
6175
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6702
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/list_snapshots.py.html>`__ to see an example of how to use list_snapshots API.
|
6176
6703
|
"""
|
6177
6704
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6178
6705
|
required_arguments = []
|
@@ -6310,7 +6837,7 @@ class FileStorageClient(object):
|
|
6310
6837
|
:rtype: :class:`~oci.response.Response`
|
6311
6838
|
|
6312
6839
|
:example:
|
6313
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6840
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/pause_filesystem_snapshot_policy.py.html>`__ to see an example of how to use pause_filesystem_snapshot_policy API.
|
6314
6841
|
"""
|
6315
6842
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6316
6843
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -6429,7 +6956,7 @@ class FileStorageClient(object):
|
|
6429
6956
|
:rtype: :class:`~oci.response.Response`
|
6430
6957
|
|
6431
6958
|
:example:
|
6432
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6959
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_export_lock.py.html>`__ to see an example of how to use remove_export_lock API.
|
6433
6960
|
"""
|
6434
6961
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6435
6962
|
required_arguments = ['exportId']
|
@@ -6542,7 +7069,7 @@ class FileStorageClient(object):
|
|
6542
7069
|
:rtype: :class:`~oci.response.Response`
|
6543
7070
|
|
6544
7071
|
:example:
|
6545
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7072
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_file_system_lock.py.html>`__ to see an example of how to use remove_file_system_lock API.
|
6546
7073
|
"""
|
6547
7074
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6548
7075
|
required_arguments = ['fileSystemId']
|
@@ -6655,7 +7182,7 @@ class FileStorageClient(object):
|
|
6655
7182
|
:rtype: :class:`~oci.response.Response`
|
6656
7183
|
|
6657
7184
|
:example:
|
6658
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7185
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_filesystem_snapshot_policy_lock.py.html>`__ to see an example of how to use remove_filesystem_snapshot_policy_lock API.
|
6659
7186
|
"""
|
6660
7187
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6661
7188
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -6768,7 +7295,7 @@ class FileStorageClient(object):
|
|
6768
7295
|
:rtype: :class:`~oci.response.Response`
|
6769
7296
|
|
6770
7297
|
:example:
|
6771
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7298
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_mount_target_lock.py.html>`__ to see an example of how to use remove_mount_target_lock API.
|
6772
7299
|
"""
|
6773
7300
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6774
7301
|
required_arguments = ['mountTargetId']
|
@@ -6881,7 +7408,7 @@ class FileStorageClient(object):
|
|
6881
7408
|
:rtype: :class:`~oci.response.Response`
|
6882
7409
|
|
6883
7410
|
:example:
|
6884
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7411
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_outbound_connector_lock.py.html>`__ to see an example of how to use remove_outbound_connector_lock API.
|
6885
7412
|
"""
|
6886
7413
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6887
7414
|
required_arguments = ['outboundConnectorId']
|
@@ -6994,7 +7521,7 @@ class FileStorageClient(object):
|
|
6994
7521
|
:rtype: :class:`~oci.response.Response`
|
6995
7522
|
|
6996
7523
|
:example:
|
6997
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7524
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_replication_lock.py.html>`__ to see an example of how to use remove_replication_lock API.
|
6998
7525
|
"""
|
6999
7526
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7000
7527
|
required_arguments = ['replicationId']
|
@@ -7107,7 +7634,7 @@ class FileStorageClient(object):
|
|
7107
7634
|
:rtype: :class:`~oci.response.Response`
|
7108
7635
|
|
7109
7636
|
:example:
|
7110
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7637
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/remove_snapshot_lock.py.html>`__ to see an example of how to use remove_snapshot_lock API.
|
7111
7638
|
"""
|
7112
7639
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7113
7640
|
required_arguments = ['snapshotId']
|
@@ -7220,7 +7747,7 @@ class FileStorageClient(object):
|
|
7220
7747
|
:rtype: :class:`~oci.response.Response`
|
7221
7748
|
|
7222
7749
|
:example:
|
7223
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7750
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/schedule_downgrade_shape_mount_target.py.html>`__ to see an example of how to use schedule_downgrade_shape_mount_target API.
|
7224
7751
|
"""
|
7225
7752
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7226
7753
|
required_arguments = ['mountTargetId']
|
@@ -7293,6 +7820,129 @@ class FileStorageClient(object):
|
|
7293
7820
|
api_reference_link=api_reference_link,
|
7294
7821
|
required_arguments=required_arguments)
|
7295
7822
|
|
7823
|
+
def toggle_quota_rules(self, file_system_id, toggle_quota_rules_details, **kwargs):
|
7824
|
+
"""
|
7825
|
+
Enable or disable quota enforcement for the file system.
|
7826
|
+
If `areQuotaRulesEnabled` = `true`, then the quota enforcement will be enabled.
|
7827
|
+
If `areQuotaRulesEnabled` = `false`, then the quota enforcement will be disabled.
|
7828
|
+
|
7829
|
+
|
7830
|
+
:param str file_system_id: (required)
|
7831
|
+
The `OCID`__ of the file system.
|
7832
|
+
|
7833
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7834
|
+
|
7835
|
+
:param oci.file_storage.models.ToggleQuotaRulesDetails toggle_quota_rules_details: (required)
|
7836
|
+
Details for toggling quota enforcement in the file system.
|
7837
|
+
|
7838
|
+
:param str if_match: (optional)
|
7839
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
7840
|
+
for a resource, set the `if-match` parameter to the value of the
|
7841
|
+
etag from a previous GET or POST response for that resource.
|
7842
|
+
The resource will be updated or deleted only if the etag you
|
7843
|
+
provide matches the resource's current etag value.
|
7844
|
+
|
7845
|
+
:param str opc_retry_token: (optional)
|
7846
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
7847
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
7848
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
7849
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
7850
|
+
might be rejected.
|
7851
|
+
|
7852
|
+
:param str opc_request_id: (optional)
|
7853
|
+
Unique identifier for the request.
|
7854
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
7855
|
+
|
7856
|
+
:param obj retry_strategy: (optional)
|
7857
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7858
|
+
|
7859
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
7860
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7861
|
+
|
7862
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7863
|
+
|
7864
|
+
:param bool allow_control_chars: (optional)
|
7865
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7866
|
+
By default, the response will not allow control characters in strings
|
7867
|
+
|
7868
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7869
|
+
:rtype: :class:`~oci.response.Response`
|
7870
|
+
|
7871
|
+
:example:
|
7872
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/toggle_quota_rules.py.html>`__ to see an example of how to use toggle_quota_rules API.
|
7873
|
+
"""
|
7874
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7875
|
+
required_arguments = ['fileSystemId']
|
7876
|
+
resource_path = "/fileSystems/{fileSystemId}/actions/toggleQuotaRules"
|
7877
|
+
method = "POST"
|
7878
|
+
operation_name = "toggle_quota_rules"
|
7879
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/ToggleQuotaRules"
|
7880
|
+
|
7881
|
+
# Don't accept unknown kwargs
|
7882
|
+
expected_kwargs = [
|
7883
|
+
"allow_control_chars",
|
7884
|
+
"retry_strategy",
|
7885
|
+
"if_match",
|
7886
|
+
"opc_retry_token",
|
7887
|
+
"opc_request_id"
|
7888
|
+
]
|
7889
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7890
|
+
if extra_kwargs:
|
7891
|
+
raise ValueError(
|
7892
|
+
f"toggle_quota_rules got unknown kwargs: {extra_kwargs!r}")
|
7893
|
+
|
7894
|
+
path_params = {
|
7895
|
+
"fileSystemId": file_system_id
|
7896
|
+
}
|
7897
|
+
|
7898
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7899
|
+
|
7900
|
+
for (k, v) in six.iteritems(path_params):
|
7901
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7902
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7903
|
+
|
7904
|
+
header_params = {
|
7905
|
+
"accept": "application/json",
|
7906
|
+
"content-type": "application/json",
|
7907
|
+
"if-match": kwargs.get("if_match", missing),
|
7908
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
7909
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7910
|
+
}
|
7911
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7912
|
+
|
7913
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7914
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7915
|
+
client_retry_strategy=self.retry_strategy
|
7916
|
+
)
|
7917
|
+
|
7918
|
+
if retry_strategy:
|
7919
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7920
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
7921
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7922
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7923
|
+
return retry_strategy.make_retrying_call(
|
7924
|
+
self.base_client.call_api,
|
7925
|
+
resource_path=resource_path,
|
7926
|
+
method=method,
|
7927
|
+
path_params=path_params,
|
7928
|
+
header_params=header_params,
|
7929
|
+
body=toggle_quota_rules_details,
|
7930
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7931
|
+
operation_name=operation_name,
|
7932
|
+
api_reference_link=api_reference_link,
|
7933
|
+
required_arguments=required_arguments)
|
7934
|
+
else:
|
7935
|
+
return self.base_client.call_api(
|
7936
|
+
resource_path=resource_path,
|
7937
|
+
method=method,
|
7938
|
+
path_params=path_params,
|
7939
|
+
header_params=header_params,
|
7940
|
+
body=toggle_quota_rules_details,
|
7941
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7942
|
+
operation_name=operation_name,
|
7943
|
+
api_reference_link=api_reference_link,
|
7944
|
+
required_arguments=required_arguments)
|
7945
|
+
|
7296
7946
|
def unpause_filesystem_snapshot_policy(self, filesystem_snapshot_policy_id, **kwargs):
|
7297
7947
|
"""
|
7298
7948
|
This operation unpauses a paused file system snapshot policy and updates the lifecycle state of the file system snapshot policy from
|
@@ -7337,7 +7987,7 @@ class FileStorageClient(object):
|
|
7337
7987
|
:rtype: :class:`~oci.response.Response`
|
7338
7988
|
|
7339
7989
|
:example:
|
7340
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7990
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/unpause_filesystem_snapshot_policy.py.html>`__ to see an example of how to use unpause_filesystem_snapshot_policy API.
|
7341
7991
|
"""
|
7342
7992
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7343
7993
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -7459,7 +8109,7 @@ class FileStorageClient(object):
|
|
7459
8109
|
:rtype: :class:`~oci.response.Response`
|
7460
8110
|
|
7461
8111
|
:example:
|
7462
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8112
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_export.py.html>`__ to see an example of how to use update_export API.
|
7463
8113
|
"""
|
7464
8114
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7465
8115
|
required_arguments = ['exportId']
|
@@ -7580,7 +8230,7 @@ class FileStorageClient(object):
|
|
7580
8230
|
:rtype: :class:`~oci.response.Response`
|
7581
8231
|
|
7582
8232
|
:example:
|
7583
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8233
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_export_set.py.html>`__ to see an example of how to use update_export_set API.
|
7584
8234
|
"""
|
7585
8235
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7586
8236
|
required_arguments = ['exportSetId']
|
@@ -7697,7 +8347,7 @@ class FileStorageClient(object):
|
|
7697
8347
|
:rtype: :class:`~oci.response.Response`
|
7698
8348
|
|
7699
8349
|
:example:
|
7700
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8350
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_file_system.py.html>`__ to see an example of how to use update_file_system API.
|
7701
8351
|
"""
|
7702
8352
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7703
8353
|
required_arguments = ['fileSystemId']
|
@@ -7821,7 +8471,7 @@ class FileStorageClient(object):
|
|
7821
8471
|
:rtype: :class:`~oci.response.Response`
|
7822
8472
|
|
7823
8473
|
:example:
|
7824
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8474
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_filesystem_snapshot_policy.py.html>`__ to see an example of how to use update_filesystem_snapshot_policy API.
|
7825
8475
|
"""
|
7826
8476
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7827
8477
|
required_arguments = ['filesystemSnapshotPolicyId']
|
@@ -7945,7 +8595,7 @@ class FileStorageClient(object):
|
|
7945
8595
|
:rtype: :class:`~oci.response.Response`
|
7946
8596
|
|
7947
8597
|
:example:
|
7948
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8598
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_mount_target.py.html>`__ to see an example of how to use update_mount_target API.
|
7949
8599
|
"""
|
7950
8600
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7951
8601
|
required_arguments = ['mountTargetId']
|
@@ -8069,7 +8719,7 @@ class FileStorageClient(object):
|
|
8069
8719
|
:rtype: :class:`~oci.response.Response`
|
8070
8720
|
|
8071
8721
|
:example:
|
8072
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8722
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_outbound_connector.py.html>`__ to see an example of how to use update_outbound_connector API.
|
8073
8723
|
"""
|
8074
8724
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8075
8725
|
required_arguments = ['outboundConnectorId']
|
@@ -8150,6 +8800,123 @@ class FileStorageClient(object):
|
|
8150
8800
|
api_reference_link=api_reference_link,
|
8151
8801
|
required_arguments=required_arguments)
|
8152
8802
|
|
8803
|
+
def update_quota_rule(self, update_quota_rule_details, file_system_id, quota_rule_id, **kwargs):
|
8804
|
+
"""
|
8805
|
+
Edit a file system, user, or group quota rule given the `fileSystemId` and `quotaRuleId` parameters.
|
8806
|
+
|
8807
|
+
|
8808
|
+
:param oci.file_storage.models.UpdateQuotaRuleDetails update_quota_rule_details: (required)
|
8809
|
+
Details for editing a quota rule.
|
8810
|
+
|
8811
|
+
:param str file_system_id: (required)
|
8812
|
+
The `OCID`__ of the file system.
|
8813
|
+
|
8814
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
8815
|
+
|
8816
|
+
:param str quota_rule_id: (required)
|
8817
|
+
The identifier of the quota rule. It is the base64 encoded string of the tuple <principalId, principalType, isHardQuota>.
|
8818
|
+
|
8819
|
+
:param str if_match: (optional)
|
8820
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
8821
|
+
for a resource, set the `if-match` parameter to the value of the
|
8822
|
+
etag from a previous GET or POST response for that resource.
|
8823
|
+
The resource will be updated or deleted only if the etag you
|
8824
|
+
provide matches the resource's current etag value.
|
8825
|
+
|
8826
|
+
:param str opc_request_id: (optional)
|
8827
|
+
Unique identifier for the request.
|
8828
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
8829
|
+
|
8830
|
+
:param obj retry_strategy: (optional)
|
8831
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
8832
|
+
|
8833
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
8834
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
8835
|
+
|
8836
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
8837
|
+
|
8838
|
+
:param bool allow_control_chars: (optional)
|
8839
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
8840
|
+
By default, the response will not allow control characters in strings
|
8841
|
+
|
8842
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.file_storage.models.QuotaRule`
|
8843
|
+
:rtype: :class:`~oci.response.Response`
|
8844
|
+
|
8845
|
+
:example:
|
8846
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_quota_rule.py.html>`__ to see an example of how to use update_quota_rule API.
|
8847
|
+
"""
|
8848
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8849
|
+
required_arguments = ['fileSystemId', 'quotaRuleId']
|
8850
|
+
resource_path = "/fileSystems/{fileSystemId}/quotaRules/{quotaRuleId}"
|
8851
|
+
method = "PUT"
|
8852
|
+
operation_name = "update_quota_rule"
|
8853
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/filestorage/20171215/FileSystem/UpdateQuotaRule"
|
8854
|
+
|
8855
|
+
# Don't accept unknown kwargs
|
8856
|
+
expected_kwargs = [
|
8857
|
+
"allow_control_chars",
|
8858
|
+
"retry_strategy",
|
8859
|
+
"if_match",
|
8860
|
+
"opc_request_id"
|
8861
|
+
]
|
8862
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8863
|
+
if extra_kwargs:
|
8864
|
+
raise ValueError(
|
8865
|
+
f"update_quota_rule got unknown kwargs: {extra_kwargs!r}")
|
8866
|
+
|
8867
|
+
path_params = {
|
8868
|
+
"fileSystemId": file_system_id,
|
8869
|
+
"quotaRuleId": quota_rule_id
|
8870
|
+
}
|
8871
|
+
|
8872
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
8873
|
+
|
8874
|
+
for (k, v) in six.iteritems(path_params):
|
8875
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
8876
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
8877
|
+
|
8878
|
+
header_params = {
|
8879
|
+
"accept": "application/json",
|
8880
|
+
"content-type": "application/json",
|
8881
|
+
"if-match": kwargs.get("if_match", missing),
|
8882
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
8883
|
+
}
|
8884
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8885
|
+
|
8886
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8887
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8888
|
+
client_retry_strategy=self.retry_strategy
|
8889
|
+
)
|
8890
|
+
|
8891
|
+
if retry_strategy:
|
8892
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8893
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8894
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8895
|
+
return retry_strategy.make_retrying_call(
|
8896
|
+
self.base_client.call_api,
|
8897
|
+
resource_path=resource_path,
|
8898
|
+
method=method,
|
8899
|
+
path_params=path_params,
|
8900
|
+
header_params=header_params,
|
8901
|
+
body=update_quota_rule_details,
|
8902
|
+
response_type="QuotaRule",
|
8903
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8904
|
+
operation_name=operation_name,
|
8905
|
+
api_reference_link=api_reference_link,
|
8906
|
+
required_arguments=required_arguments)
|
8907
|
+
else:
|
8908
|
+
return self.base_client.call_api(
|
8909
|
+
resource_path=resource_path,
|
8910
|
+
method=method,
|
8911
|
+
path_params=path_params,
|
8912
|
+
header_params=header_params,
|
8913
|
+
body=update_quota_rule_details,
|
8914
|
+
response_type="QuotaRule",
|
8915
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8916
|
+
operation_name=operation_name,
|
8917
|
+
api_reference_link=api_reference_link,
|
8918
|
+
required_arguments=required_arguments)
|
8919
|
+
|
8153
8920
|
def update_replication(self, replication_id, update_replication_details, **kwargs):
|
8154
8921
|
"""
|
8155
8922
|
Updates the information for the specified replication and its associated replication target.
|
@@ -8193,7 +8960,7 @@ class FileStorageClient(object):
|
|
8193
8960
|
:rtype: :class:`~oci.response.Response`
|
8194
8961
|
|
8195
8962
|
:example:
|
8196
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8963
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_replication.py.html>`__ to see an example of how to use update_replication API.
|
8197
8964
|
"""
|
8198
8965
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8199
8966
|
required_arguments = ['replicationId']
|
@@ -8317,7 +9084,7 @@ class FileStorageClient(object):
|
|
8317
9084
|
:rtype: :class:`~oci.response.Response`
|
8318
9085
|
|
8319
9086
|
:example:
|
8320
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9087
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/update_snapshot.py.html>`__ to see an example of how to use update_snapshot API.
|
8321
9088
|
"""
|
8322
9089
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8323
9090
|
required_arguments = ['snapshotId']
|
@@ -8438,7 +9205,7 @@ class FileStorageClient(object):
|
|
8438
9205
|
:rtype: :class:`~oci.response.Response`
|
8439
9206
|
|
8440
9207
|
:example:
|
8441
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9208
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/upgrade_shape_mount_target.py.html>`__ to see an example of how to use upgrade_shape_mount_target API.
|
8442
9209
|
"""
|
8443
9210
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8444
9211
|
required_arguments = ['mountTargetId']
|
@@ -8541,7 +9308,7 @@ class FileStorageClient(object):
|
|
8541
9308
|
:rtype: :class:`~oci.response.Response`
|
8542
9309
|
|
8543
9310
|
:example:
|
8544
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9311
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.147.0/filestorage/validate_key_tabs.py.html>`__ to see an example of how to use validate_key_tabs API.
|
8545
9312
|
"""
|
8546
9313
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8547
9314
|
required_arguments = []
|