oci 2.131.0__py3-none-any.whl → 2.132.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 +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +17 -17
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +142 -23
- oci/analytics/analytics_client_composite_operations.py +42 -0
- oci/analytics/models/__init__.py +2 -0
- oci/analytics/models/analytics_instance.py +123 -8
- oci/analytics/models/analytics_instance_summary.py +115 -0
- oci/analytics/models/capacity.py +8 -4
- oci/analytics/models/create_analytics_instance_details.py +121 -8
- oci/analytics/models/set_feature_bundle_details.py +96 -0
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +72 -72
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +360 -360
- oci/database/models/autonomous_database_software_image.py +33 -2
- oci/database/models/autonomous_database_software_image_summary.py +33 -2
- oci/database/models/create_maintenance_run_details.py +46 -7
- oci/database/models/maintenance_run.py +44 -5
- oci/database/models/maintenance_run_summary.py +44 -5
- oci/database_management/db_management_client.py +208 -208
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/models/__init__.py +18 -0
- oci/database_management/models/basic_database_connection_string_details.py +7 -6
- oci/database_management/models/connector_details.py +5 -5
- oci/database_management/models/database_connection_credentails_by_name.py +1 -1
- oci/database_management/models/database_connection_credentials.py +11 -3
- oci/database_management/models/database_connection_credentials_by_details.py +1 -1
- oci/database_management/models/database_connection_string_details.py +5 -5
- oci/database_management/models/database_diagnostics_and_management_feature_configuration.py +9 -7
- oci/database_management/models/database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/database_feature_configuration.py +27 -11
- oci/database_management/models/database_feature_details.py +19 -3
- oci/database_management/models/database_lifecycle_feature_configuration.py +122 -0
- oci/database_management/models/database_lifecycle_management_feature_details.py +65 -0
- oci/database_management/models/database_named_credential_connection_details.py +88 -0
- oci/database_management/models/database_sql_watch_feature_configuration.py +73 -0
- oci/database_management/models/database_sql_watch_feature_details.py +65 -0
- oci/database_management/models/database_ssl_connection_credentials.py +1 -1
- oci/database_management/models/disable_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_container_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_non_container_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_external_pluggable_database_management_feature_details.py +11 -3
- oci/database_management/models/disable_pluggable_database_management_feature_details.py +11 -3
- oci/database_management/models/external_database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/external_database_feature_details.py +19 -3
- oci/database_management/models/external_database_lifecycle_management_feature_details.py +105 -0
- oci/database_management/models/external_database_sql_watch_feature_details.py +58 -0
- oci/database_management/models/external_database_summary.py +95 -2
- oci/database_management/models/external_pluggable_database_diagnostics_and_management_feature_details.py +1 -1
- oci/database_management/models/external_pluggable_database_feature_details.py +19 -3
- oci/database_management/models/external_pluggable_database_lifecycle_management_feature_details.py +58 -0
- oci/database_management/models/external_pluggable_database_sql_watch_feature_details.py +58 -0
- oci/database_management/models/managed_database.py +64 -2
- oci/database_management/models/managed_database_summary.py +64 -2
- 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/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +29 -43
- oci/disaster_recovery/models/__init__.py +12 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_container_database_details.py +107 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +95 -3
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_details.py +19 -3
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/create_dr_protection_group_member_object_storage_bucket_details.py +128 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +1 -1
- oci/disaster_recovery/models/dr_plan_step.py +99 -3
- oci/disaster_recovery/models/dr_plan_step_execution.py +99 -3
- oci/disaster_recovery/models/dr_protection_group_member.py +19 -3
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_container_database.py +108 -0
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +96 -3
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_database.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +1 -1
- oci/disaster_recovery/models/dr_protection_group_member_object_storage_bucket.py +128 -0
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_container_database_details.py +107 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +95 -3
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_details.py +19 -3
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +1 -1
- oci/disaster_recovery/models/update_dr_protection_group_member_object_storage_bucket_details.py +128 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +1 -1
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +51 -51
- oci/fleet_apps_management/__init__.py +22 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +1077 -0
- oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +124 -0
- oci/fleet_apps_management/fleet_apps_management_client.py +4532 -0
- oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +692 -0
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +685 -0
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +157 -0
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +1730 -0
- oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +270 -0
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +683 -0
- oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +26 -0
- oci/fleet_apps_management/models/__init__.py +286 -0
- oci/fleet_apps_management/models/action_group.py +309 -0
- oci/fleet_apps_management/models/action_group_details.py +456 -0
- oci/fleet_apps_management/models/activity_resource_target.py +155 -0
- oci/fleet_apps_management/models/announcement_collection.py +72 -0
- oci/fleet_apps_management/models/announcement_summary.py +606 -0
- oci/fleet_apps_management/models/api_based_execution_details.py +82 -0
- oci/fleet_apps_management/models/associated_fleet_credential_details.py +190 -0
- oci/fleet_apps_management/models/associated_fleet_property_details.py +218 -0
- oci/fleet_apps_management/models/associated_fleet_resource_details.py +165 -0
- oci/fleet_apps_management/models/associated_local_task_details.py +281 -0
- oci/fleet_apps_management/models/associated_scheduler_definition.py +171 -0
- oci/fleet_apps_management/models/associated_shared_task_details.py +82 -0
- oci/fleet_apps_management/models/associated_task_details.py +109 -0
- oci/fleet_apps_management/models/associations.py +161 -0
- oci/fleet_apps_management/models/check_resource_tagging_details.py +134 -0
- oci/fleet_apps_management/models/compliance_report.py +189 -0
- oci/fleet_apps_management/models/compliance_report_patch_detail.py +196 -0
- oci/fleet_apps_management/models/compliance_report_product.py +103 -0
- oci/fleet_apps_management/models/compliance_report_resource.py +344 -0
- oci/fleet_apps_management/models/compliance_report_target.py +251 -0
- oci/fleet_apps_management/models/component_properties.py +154 -0
- oci/fleet_apps_management/models/condition.py +134 -0
- oci/fleet_apps_management/models/confirm_targets_details.py +72 -0
- oci/fleet_apps_management/models/content_details.py +101 -0
- oci/fleet_apps_management/models/create_fleet_credential_details.py +190 -0
- oci/fleet_apps_management/models/create_fleet_details.py +510 -0
- oci/fleet_apps_management/models/create_fleet_property_details.py +134 -0
- oci/fleet_apps_management/models/create_fleet_resource_details.py +196 -0
- oci/fleet_apps_management/models/create_maintenance_window_details.py +437 -0
- oci/fleet_apps_management/models/create_onboarding_details.py +134 -0
- oci/fleet_apps_management/models/create_property_details.py +238 -0
- oci/fleet_apps_management/models/create_scheduler_definition_details.py +328 -0
- oci/fleet_apps_management/models/credential_details.py +117 -0
- oci/fleet_apps_management/models/credential_entity_specific_details.py +101 -0
- oci/fleet_apps_management/models/details.py +224 -0
- oci/fleet_apps_management/models/discovered_target.py +196 -0
- oci/fleet_apps_management/models/entity_execution_details.py +341 -0
- oci/fleet_apps_management/models/execution.py +463 -0
- oci/fleet_apps_management/models/execution_collection.py +72 -0
- oci/fleet_apps_management/models/execution_details.py +109 -0
- oci/fleet_apps_management/models/execution_summary.py +405 -0
- oci/fleet_apps_management/models/execution_workflow_details.py +72 -0
- oci/fleet_apps_management/models/fleet.py +887 -0
- oci/fleet_apps_management/models/fleet_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_credential.py +398 -0
- oci/fleet_apps_management/models/fleet_credential_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_credential_summary.py +378 -0
- oci/fleet_apps_management/models/fleet_product_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_product_summary.py +200 -0
- oci/fleet_apps_management/models/fleet_property.py +477 -0
- oci/fleet_apps_management/models/fleet_property_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_property_summary.py +375 -0
- oci/fleet_apps_management/models/fleet_resource.py +717 -0
- oci/fleet_apps_management/models/fleet_resource_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_resource_summary.py +693 -0
- oci/fleet_apps_management/models/fleet_summary.py +456 -0
- oci/fleet_apps_management/models/fleet_target.py +399 -0
- oci/fleet_apps_management/models/fleet_target_collection.py +72 -0
- oci/fleet_apps_management/models/fleet_target_summary.py +348 -0
- oci/fleet_apps_management/models/generate_compliance_report_details.py +72 -0
- oci/fleet_apps_management/models/group.py +150 -0
- oci/fleet_apps_management/models/input_argument.py +171 -0
- oci/fleet_apps_management/models/input_parameter.py +103 -0
- oci/fleet_apps_management/models/inventory_resource_collection.py +72 -0
- oci/fleet_apps_management/models/inventory_resource_summary.py +425 -0
- oci/fleet_apps_management/models/job_activity.py +310 -0
- oci/fleet_apps_management/models/key_encryption_credential_details.py +175 -0
- oci/fleet_apps_management/models/maintenance_window.py +688 -0
- oci/fleet_apps_management/models/maintenance_window_collection.py +72 -0
- oci/fleet_apps_management/models/maintenance_window_summary.py +656 -0
- oci/fleet_apps_management/models/model_property.py +641 -0
- oci/fleet_apps_management/models/notification_preferences.py +130 -0
- oci/fleet_apps_management/models/object_storage_bucket_content_details.py +176 -0
- oci/fleet_apps_management/models/onboarding.py +393 -0
- oci/fleet_apps_management/models/onboarding_collection.py +72 -0
- oci/fleet_apps_management/models/onboarding_policy_collection.py +72 -0
- oci/fleet_apps_management/models/onboarding_policy_summary.py +198 -0
- oci/fleet_apps_management/models/onboarding_summary.py +353 -0
- oci/fleet_apps_management/models/operation_runbook.py +103 -0
- oci/fleet_apps_management/models/outcome.py +134 -0
- oci/fleet_apps_management/models/output_variable_details.py +103 -0
- oci/fleet_apps_management/models/output_variable_input_argument.py +65 -0
- oci/fleet_apps_management/models/output_variable_mapping.py +99 -0
- oci/fleet_apps_management/models/plain_text_credential_details.py +82 -0
- oci/fleet_apps_management/models/preferences.py +134 -0
- oci/fleet_apps_management/models/properties.py +103 -0
- oci/fleet_apps_management/models/property_collection.py +72 -0
- oci/fleet_apps_management/models/property_summary.py +601 -0
- oci/fleet_apps_management/models/request_resource_validation_details.py +103 -0
- oci/fleet_apps_management/models/request_target_discovery_details.py +103 -0
- oci/fleet_apps_management/models/resource_tag_check_details.py +72 -0
- oci/fleet_apps_management/models/resource_tag_enablement_info.py +103 -0
- oci/fleet_apps_management/models/rule.py +165 -0
- oci/fleet_apps_management/models/runbook.py +747 -0
- oci/fleet_apps_management/models/runbook_collection.py +72 -0
- oci/fleet_apps_management/models/runbook_summary.py +664 -0
- oci/fleet_apps_management/models/schedule.py +212 -0
- oci/fleet_apps_management/models/scheduled_fleet_collection.py +72 -0
- oci/fleet_apps_management/models/scheduled_fleet_summary.py +313 -0
- oci/fleet_apps_management/models/scheduler_definition.py +847 -0
- oci/fleet_apps_management/models/scheduler_definition_collection.py +72 -0
- oci/fleet_apps_management/models/scheduler_definition_summary.py +718 -0
- oci/fleet_apps_management/models/scheduler_job.py +767 -0
- oci/fleet_apps_management/models/scheduler_job_collection.py +72 -0
- oci/fleet_apps_management/models/scheduler_job_summary.py +685 -0
- oci/fleet_apps_management/models/script_based_execution_details.py +136 -0
- oci/fleet_apps_management/models/selection_criteria.py +119 -0
- oci/fleet_apps_management/models/string_input_argument.py +65 -0
- oci/fleet_apps_management/models/target_credential_entity_specific_details.py +113 -0
- oci/fleet_apps_management/models/target_resource.py +109 -0
- oci/fleet_apps_management/models/task.py +200 -0
- oci/fleet_apps_management/models/task_argument.py +103 -0
- oci/fleet_apps_management/models/task_record.py +568 -0
- oci/fleet_apps_management/models/task_record_collection.py +72 -0
- oci/fleet_apps_management/models/task_record_summary.py +516 -0
- oci/fleet_apps_management/models/task_variable.py +103 -0
- oci/fleet_apps_management/models/update_fleet_credential_details.py +159 -0
- oci/fleet_apps_management/models/update_fleet_details.py +262 -0
- oci/fleet_apps_management/models/update_fleet_property_details.py +72 -0
- oci/fleet_apps_management/models/update_fleet_resource_details.py +103 -0
- oci/fleet_apps_management/models/update_maintenance_window_details.py +406 -0
- oci/fleet_apps_management/models/update_property_details.py +207 -0
- oci/fleet_apps_management/models/update_scheduler_definition_details.py +297 -0
- oci/fleet_apps_management/models/update_scheduler_job_details.py +138 -0
- oci/fleet_apps_management/models/vault_secret_credential_details.py +117 -0
- oci/fleet_apps_management/models/work_request.py +497 -0
- oci/fleet_apps_management/models/work_request_error.py +136 -0
- oci/fleet_apps_management/models/work_request_error_collection.py +72 -0
- oci/fleet_apps_management/models/work_request_log_entry.py +103 -0
- oci/fleet_apps_management/models/work_request_log_entry_collection.py +72 -0
- oci/fleet_apps_management/models/work_request_resource.py +234 -0
- oci/fleet_apps_management/models/work_request_summary.py +497 -0
- oci/fleet_apps_management/models/work_request_summary_collection.py +72 -0
- oci/fleet_apps_management/models/workflow_component.py +109 -0
- oci/fleet_apps_management/models/workflow_group.py +150 -0
- oci/fleet_apps_management/models/workflow_group_component.py +115 -0
- oci/fleet_apps_management/models/workflow_task_component.py +82 -0
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +307 -307
- oci/integration/integration_instance_client.py +138 -17
- oci/integration/integration_instance_client_composite_operations.py +42 -0
- oci/integration/models/__init__.py +2 -0
- oci/integration/models/create_integration_instance_details.py +7 -3
- oci/integration/models/extend_data_retention_details.py +92 -0
- oci/integration/models/integration_instance.py +100 -8
- oci/integration/models/integration_instance_summary.py +100 -8
- oci/integration/models/update_integration_instance_details.py +7 -3
- oci/integration/models/work_request.py +7 -3
- oci/integration/models/work_request_summary.py +7 -3
- oci/jms/java_management_service_client.py +150 -150
- oci/jms_java_downloads/java_download_client.py +50 -50
- 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 +33 -12
- oci/limits/models/limit_definition_summary.py +64 -2
- oci/limits/models/service_summary.py +33 -2
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/models/__init__.py +4 -0
- oci/mysql/models/create_db_system_details.py +27 -0
- oci/mysql/models/data_storage.py +232 -0
- oci/mysql/models/data_storage_details.py +123 -0
- oci/mysql/models/db_system.py +31 -2
- oci/mysql/models/db_system_snapshot.py +31 -2
- oci/mysql/models/update_db_system_details.py +27 -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/models/backend.py +3 -3
- oci/network_load_balancer/models/backend_details.py +2 -2
- oci/network_load_balancer/models/backend_set.py +7 -3
- oci/network_load_balancer/models/backend_set_details.py +5 -1
- oci/network_load_balancer/models/backend_set_summary.py +5 -7
- oci/network_load_balancer/models/backend_summary.py +3 -3
- oci/network_load_balancer/models/create_backend_details.py +3 -3
- oci/network_load_balancer/models/create_backend_set_details.py +1 -1
- oci/network_load_balancer/models/create_listener_details.py +71 -5
- oci/network_load_balancer/models/create_network_load_balancer_details.py +3 -3
- oci/network_load_balancer/models/health_checker.py +1 -1
- oci/network_load_balancer/models/health_checker_details.py +1 -1
- oci/network_load_balancer/models/listener.py +70 -4
- oci/network_load_balancer/models/listener_details.py +70 -4
- oci/network_load_balancer/models/listener_summary.py +70 -4
- oci/network_load_balancer/models/network_load_balancer.py +5 -5
- oci/network_load_balancer/models/network_load_balancer_summary.py +4 -4
- oci/network_load_balancer/models/update_backend_details.py +4 -4
- oci/network_load_balancer/models/update_backend_set_details.py +1 -1
- oci/network_load_balancer/models/update_listener_details.py +69 -3
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +177 -177
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +25 -25
- oci/redis/models/__init__.py +4 -0
- oci/redis/models/change_redis_cluster_compartment_details.py +2 -2
- oci/redis/models/create_redis_cluster_details.py +78 -16
- oci/redis/models/node.py +3 -3
- oci/redis/models/node_collection.py +1 -1
- oci/redis/models/node_summary.py +196 -0
- oci/redis/models/redis_cluster.py +110 -32
- oci/redis/models/redis_cluster_collection.py +4 -4
- oci/redis/models/redis_cluster_summary.py +94 -32
- oci/redis/models/redis_node_collection.py +72 -0
- oci/redis/models/update_redis_cluster_details.py +40 -9
- oci/redis/redis_cluster_client.py +190 -41
- oci/redis/redis_cluster_client_composite_operations.py +4 -4
- oci/regions_definitions.py +6 -3
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/METADATA +3 -2
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/RECORD +539 -369
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/WHEEL +0 -0
- {oci-2.131.0.dist-info → oci-2.132.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,270 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230831
|
6
|
+
|
7
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class FleetAppsManagementOperationsClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient` and offers convenience methods
|
14
|
+
for operations that would otherwise need to be chained together. For example, instead of performing an action
|
15
|
+
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
16
|
+
to enter a given state, you can call a single method in this class to accomplish the same functionality
|
17
|
+
"""
|
18
|
+
|
19
|
+
def __init__(self, client, **kwargs):
|
20
|
+
"""
|
21
|
+
Creates a new FleetAppsManagementOperationsClientCompositeOperations object
|
22
|
+
|
23
|
+
:param FleetAppsManagementOperationsClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def create_scheduler_definition_and_wait_for_state(self, create_scheduler_definition_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.create_scheduler_definition` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param oci.fleet_apps_management.models.CreateSchedulerDefinitionDetails create_scheduler_definition_details: (required)
|
34
|
+
Details for the new SchedulerDefinition.
|
35
|
+
|
36
|
+
:param list[str] wait_for_states:
|
37
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
38
|
+
|
39
|
+
:param dict operation_kwargs:
|
40
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.create_scheduler_definition`
|
41
|
+
|
42
|
+
:param dict waiter_kwargs:
|
43
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
44
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
45
|
+
"""
|
46
|
+
operation_result = self.client.create_scheduler_definition(create_scheduler_definition_details, **operation_kwargs)
|
47
|
+
if not wait_for_states:
|
48
|
+
return operation_result
|
49
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
50
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
51
|
+
return operation_result
|
52
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
53
|
+
|
54
|
+
try:
|
55
|
+
waiter_result = oci.wait_until(
|
56
|
+
self.client,
|
57
|
+
self.client.get_work_request(wait_for_resource_id),
|
58
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
59
|
+
**waiter_kwargs
|
60
|
+
)
|
61
|
+
result_to_return = waiter_result
|
62
|
+
|
63
|
+
return result_to_return
|
64
|
+
except Exception as e:
|
65
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
66
|
+
|
67
|
+
def delete_scheduler_definition_and_wait_for_state(self, scheduler_definition_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
68
|
+
"""
|
69
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.delete_scheduler_definition` and waits for the :py:class:`~oci.fleet_apps_management.models.SchedulerDefinition` acted upon
|
70
|
+
to enter the given state(s).
|
71
|
+
|
72
|
+
:param str scheduler_definition_id: (required)
|
73
|
+
unique SchedulerDefinition identifier
|
74
|
+
|
75
|
+
:param list[str] wait_for_states:
|
76
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.SchedulerDefinition.lifecycle_state`
|
77
|
+
|
78
|
+
:param dict operation_kwargs:
|
79
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.delete_scheduler_definition`
|
80
|
+
|
81
|
+
:param dict waiter_kwargs:
|
82
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
83
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
84
|
+
"""
|
85
|
+
initial_get_result = self.client.get_scheduler_definition(scheduler_definition_id)
|
86
|
+
operation_result = None
|
87
|
+
try:
|
88
|
+
operation_result = self.client.delete_scheduler_definition(scheduler_definition_id, **operation_kwargs)
|
89
|
+
except oci.exceptions.ServiceError as e:
|
90
|
+
if e.status == 404:
|
91
|
+
return WAIT_RESOURCE_NOT_FOUND
|
92
|
+
else:
|
93
|
+
raise e
|
94
|
+
|
95
|
+
if not wait_for_states:
|
96
|
+
return operation_result
|
97
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
98
|
+
|
99
|
+
try:
|
100
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
101
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_scheduler_definition, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
102
|
+
else:
|
103
|
+
"""
|
104
|
+
If the user does not send in this value, we set it to True by default.
|
105
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
106
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
107
|
+
"""
|
108
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
109
|
+
waiter_result = oci.wait_until(
|
110
|
+
self.client,
|
111
|
+
initial_get_result, # noqa: F821
|
112
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
113
|
+
**waiter_kwargs
|
114
|
+
)
|
115
|
+
result_to_return = waiter_result
|
116
|
+
|
117
|
+
return result_to_return
|
118
|
+
except (NameError, TypeError) as e:
|
119
|
+
if not e.args:
|
120
|
+
e.args = ('',)
|
121
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
122
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
123
|
+
except Exception as e:
|
124
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
125
|
+
|
126
|
+
def delete_scheduler_job_and_wait_for_state(self, scheduler_job_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
127
|
+
"""
|
128
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.delete_scheduler_job` and waits for the :py:class:`~oci.fleet_apps_management.models.SchedulerJob` acted upon
|
129
|
+
to enter the given state(s).
|
130
|
+
|
131
|
+
:param str scheduler_job_id: (required)
|
132
|
+
unique SchedulerJob identifier
|
133
|
+
|
134
|
+
:param list[str] wait_for_states:
|
135
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.SchedulerJob.lifecycle_state`
|
136
|
+
|
137
|
+
:param dict operation_kwargs:
|
138
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.delete_scheduler_job`
|
139
|
+
|
140
|
+
:param dict waiter_kwargs:
|
141
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
142
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
143
|
+
"""
|
144
|
+
initial_get_result = self.client.get_scheduler_job(scheduler_job_id)
|
145
|
+
operation_result = None
|
146
|
+
try:
|
147
|
+
operation_result = self.client.delete_scheduler_job(scheduler_job_id, **operation_kwargs)
|
148
|
+
except oci.exceptions.ServiceError as e:
|
149
|
+
if e.status == 404:
|
150
|
+
return WAIT_RESOURCE_NOT_FOUND
|
151
|
+
else:
|
152
|
+
raise e
|
153
|
+
|
154
|
+
if not wait_for_states:
|
155
|
+
return operation_result
|
156
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
157
|
+
|
158
|
+
try:
|
159
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
160
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_scheduler_job, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
161
|
+
else:
|
162
|
+
"""
|
163
|
+
If the user does not send in this value, we set it to True by default.
|
164
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
165
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
166
|
+
"""
|
167
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
168
|
+
waiter_result = oci.wait_until(
|
169
|
+
self.client,
|
170
|
+
initial_get_result, # noqa: F821
|
171
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
172
|
+
**waiter_kwargs
|
173
|
+
)
|
174
|
+
result_to_return = waiter_result
|
175
|
+
|
176
|
+
return result_to_return
|
177
|
+
except (NameError, TypeError) as e:
|
178
|
+
if not e.args:
|
179
|
+
e.args = ('',)
|
180
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
181
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
182
|
+
except Exception as e:
|
183
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
184
|
+
|
185
|
+
def update_scheduler_definition_and_wait_for_state(self, scheduler_definition_id, update_scheduler_definition_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
186
|
+
"""
|
187
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.update_scheduler_definition` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
188
|
+
to enter the given state(s).
|
189
|
+
|
190
|
+
:param str scheduler_definition_id: (required)
|
191
|
+
unique SchedulerDefinition identifier
|
192
|
+
|
193
|
+
:param oci.fleet_apps_management.models.UpdateSchedulerDefinitionDetails update_scheduler_definition_details: (required)
|
194
|
+
The information to be updated.
|
195
|
+
|
196
|
+
:param list[str] wait_for_states:
|
197
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
198
|
+
|
199
|
+
:param dict operation_kwargs:
|
200
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.update_scheduler_definition`
|
201
|
+
|
202
|
+
:param dict waiter_kwargs:
|
203
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
204
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
205
|
+
"""
|
206
|
+
operation_result = self.client.update_scheduler_definition(scheduler_definition_id, update_scheduler_definition_details, **operation_kwargs)
|
207
|
+
if not wait_for_states:
|
208
|
+
return operation_result
|
209
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
210
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
211
|
+
return operation_result
|
212
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
213
|
+
|
214
|
+
try:
|
215
|
+
waiter_result = oci.wait_until(
|
216
|
+
self.client,
|
217
|
+
self.client.get_work_request(wait_for_resource_id),
|
218
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
219
|
+
**waiter_kwargs
|
220
|
+
)
|
221
|
+
result_to_return = waiter_result
|
222
|
+
|
223
|
+
return result_to_return
|
224
|
+
except Exception as e:
|
225
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
226
|
+
|
227
|
+
def update_scheduler_job_and_wait_for_state(self, scheduler_job_id, update_scheduler_job_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
228
|
+
"""
|
229
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.update_scheduler_job` and waits for the :py:class:`~oci.fleet_apps_management.models.SchedulerJob` acted upon
|
230
|
+
to enter the given state(s).
|
231
|
+
|
232
|
+
:param str scheduler_job_id: (required)
|
233
|
+
unique SchedulerJob identifier
|
234
|
+
|
235
|
+
:param oci.fleet_apps_management.models.UpdateSchedulerJobDetails update_scheduler_job_details: (required)
|
236
|
+
The information to be updated.
|
237
|
+
|
238
|
+
:param list[str] wait_for_states:
|
239
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.SchedulerJob.lifecycle_state`
|
240
|
+
|
241
|
+
:param dict operation_kwargs:
|
242
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementOperationsClient.update_scheduler_job`
|
243
|
+
|
244
|
+
:param dict waiter_kwargs:
|
245
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
246
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
247
|
+
"""
|
248
|
+
operation_result = self.client.update_scheduler_job(scheduler_job_id, update_scheduler_job_details, **operation_kwargs)
|
249
|
+
if not wait_for_states:
|
250
|
+
return operation_result
|
251
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
252
|
+
scheduler_job_id = operation_result.data.id
|
253
|
+
|
254
|
+
try:
|
255
|
+
waiter_result = oci.wait_until(
|
256
|
+
self.client,
|
257
|
+
self.client.get_scheduler_job(scheduler_job_id), # noqa: F821
|
258
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
259
|
+
**waiter_kwargs
|
260
|
+
)
|
261
|
+
result_to_return = waiter_result
|
262
|
+
|
263
|
+
return result_to_return
|
264
|
+
except (NameError, TypeError) as e:
|
265
|
+
if not e.args:
|
266
|
+
e.args = ('',)
|
267
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
268
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
269
|
+
except Exception as e:
|
270
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|