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,692 @@
|
|
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 FleetAppsManagementClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.fleet_apps_management.FleetAppsManagementClient` 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 FleetAppsManagementClientCompositeOperations object
|
22
|
+
|
23
|
+
:param FleetAppsManagementClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def confirm_targets_and_wait_for_state(self, confirm_targets_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.confirm_targets` 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.ConfirmTargetsDetails confirm_targets_details: (required)
|
34
|
+
Details for confirming Targets.
|
35
|
+
|
36
|
+
:param str fleet_id: (required)
|
37
|
+
unique Fleet identifier
|
38
|
+
|
39
|
+
:param list[str] wait_for_states:
|
40
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
41
|
+
|
42
|
+
:param dict operation_kwargs:
|
43
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.confirm_targets`
|
44
|
+
|
45
|
+
:param dict waiter_kwargs:
|
46
|
+
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``
|
47
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
48
|
+
"""
|
49
|
+
operation_result = self.client.confirm_targets(confirm_targets_details, fleet_id, **operation_kwargs)
|
50
|
+
if not wait_for_states:
|
51
|
+
return operation_result
|
52
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
53
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
54
|
+
return operation_result
|
55
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
56
|
+
|
57
|
+
try:
|
58
|
+
waiter_result = oci.wait_until(
|
59
|
+
self.client,
|
60
|
+
self.client.get_work_request(wait_for_resource_id),
|
61
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
62
|
+
**waiter_kwargs
|
63
|
+
)
|
64
|
+
result_to_return = waiter_result
|
65
|
+
|
66
|
+
return result_to_return
|
67
|
+
except Exception as e:
|
68
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
69
|
+
|
70
|
+
def create_fleet_and_wait_for_state(self, create_fleet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
71
|
+
"""
|
72
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
73
|
+
to enter the given state(s).
|
74
|
+
|
75
|
+
:param oci.fleet_apps_management.models.CreateFleetDetails create_fleet_details: (required)
|
76
|
+
Details for the new Fleet.
|
77
|
+
|
78
|
+
:param list[str] wait_for_states:
|
79
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
80
|
+
|
81
|
+
:param dict operation_kwargs:
|
82
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet`
|
83
|
+
|
84
|
+
:param dict waiter_kwargs:
|
85
|
+
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``
|
86
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
87
|
+
"""
|
88
|
+
operation_result = self.client.create_fleet(create_fleet_details, **operation_kwargs)
|
89
|
+
if not wait_for_states:
|
90
|
+
return operation_result
|
91
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
92
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
93
|
+
return operation_result
|
94
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
95
|
+
|
96
|
+
try:
|
97
|
+
waiter_result = oci.wait_until(
|
98
|
+
self.client,
|
99
|
+
self.client.get_work_request(wait_for_resource_id),
|
100
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
101
|
+
**waiter_kwargs
|
102
|
+
)
|
103
|
+
result_to_return = waiter_result
|
104
|
+
|
105
|
+
return result_to_return
|
106
|
+
except Exception as e:
|
107
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
108
|
+
|
109
|
+
def create_fleet_credential_and_wait_for_state(self, create_fleet_credential_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
110
|
+
"""
|
111
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
112
|
+
to enter the given state(s).
|
113
|
+
|
114
|
+
:param oci.fleet_apps_management.models.CreateFleetCredentialDetails create_fleet_credential_details: (required)
|
115
|
+
Details for the new FleetCredential.
|
116
|
+
|
117
|
+
:param str fleet_id: (required)
|
118
|
+
unique Fleet identifier
|
119
|
+
|
120
|
+
:param list[str] wait_for_states:
|
121
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
122
|
+
|
123
|
+
:param dict operation_kwargs:
|
124
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_credential`
|
125
|
+
|
126
|
+
:param dict waiter_kwargs:
|
127
|
+
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``
|
128
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
129
|
+
"""
|
130
|
+
operation_result = self.client.create_fleet_credential(create_fleet_credential_details, fleet_id, **operation_kwargs)
|
131
|
+
if not wait_for_states:
|
132
|
+
return operation_result
|
133
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
134
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
135
|
+
return operation_result
|
136
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
137
|
+
|
138
|
+
try:
|
139
|
+
waiter_result = oci.wait_until(
|
140
|
+
self.client,
|
141
|
+
self.client.get_work_request(wait_for_resource_id),
|
142
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
143
|
+
**waiter_kwargs
|
144
|
+
)
|
145
|
+
result_to_return = waiter_result
|
146
|
+
|
147
|
+
return result_to_return
|
148
|
+
except Exception as e:
|
149
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
150
|
+
|
151
|
+
def create_fleet_property_and_wait_for_state(self, create_fleet_property_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
152
|
+
"""
|
153
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_property` and waits for the :py:class:`~oci.fleet_apps_management.models.FleetProperty` acted upon
|
154
|
+
to enter the given state(s).
|
155
|
+
|
156
|
+
:param oci.fleet_apps_management.models.CreateFleetPropertyDetails create_fleet_property_details: (required)
|
157
|
+
Details for the new FleetProperty.
|
158
|
+
|
159
|
+
:param str fleet_id: (required)
|
160
|
+
unique Fleet identifier
|
161
|
+
|
162
|
+
:param list[str] wait_for_states:
|
163
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.FleetProperty.lifecycle_state`
|
164
|
+
|
165
|
+
:param dict operation_kwargs:
|
166
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_property`
|
167
|
+
|
168
|
+
:param dict waiter_kwargs:
|
169
|
+
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``
|
170
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
171
|
+
"""
|
172
|
+
operation_result = self.client.create_fleet_property(create_fleet_property_details, fleet_id, **operation_kwargs)
|
173
|
+
if not wait_for_states:
|
174
|
+
return operation_result
|
175
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
176
|
+
fleet_property_id = operation_result.data.id
|
177
|
+
|
178
|
+
try:
|
179
|
+
waiter_result = oci.wait_until(
|
180
|
+
self.client,
|
181
|
+
self.client.get_fleet_property(fleet_property_id, fleet_id), # noqa: F821
|
182
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
183
|
+
**waiter_kwargs
|
184
|
+
)
|
185
|
+
result_to_return = waiter_result
|
186
|
+
|
187
|
+
return result_to_return
|
188
|
+
except (NameError, TypeError) as e:
|
189
|
+
if not e.args:
|
190
|
+
e.args = ('',)
|
191
|
+
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"', )
|
192
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
193
|
+
except Exception as e:
|
194
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
195
|
+
|
196
|
+
def create_fleet_resource_and_wait_for_state(self, create_fleet_resource_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
197
|
+
"""
|
198
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
199
|
+
to enter the given state(s).
|
200
|
+
|
201
|
+
:param oci.fleet_apps_management.models.CreateFleetResourceDetails create_fleet_resource_details: (required)
|
202
|
+
Details for the new FleetResource.
|
203
|
+
|
204
|
+
:param str fleet_id: (required)
|
205
|
+
unique Fleet identifier
|
206
|
+
|
207
|
+
:param list[str] wait_for_states:
|
208
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
209
|
+
|
210
|
+
:param dict operation_kwargs:
|
211
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.create_fleet_resource`
|
212
|
+
|
213
|
+
:param dict waiter_kwargs:
|
214
|
+
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``
|
215
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
216
|
+
"""
|
217
|
+
operation_result = self.client.create_fleet_resource(create_fleet_resource_details, fleet_id, **operation_kwargs)
|
218
|
+
if not wait_for_states:
|
219
|
+
return operation_result
|
220
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
221
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
222
|
+
return operation_result
|
223
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
224
|
+
|
225
|
+
try:
|
226
|
+
waiter_result = oci.wait_until(
|
227
|
+
self.client,
|
228
|
+
self.client.get_work_request(wait_for_resource_id),
|
229
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
230
|
+
**waiter_kwargs
|
231
|
+
)
|
232
|
+
result_to_return = waiter_result
|
233
|
+
|
234
|
+
return result_to_return
|
235
|
+
except Exception as e:
|
236
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
237
|
+
|
238
|
+
def delete_fleet_and_wait_for_state(self, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
239
|
+
"""
|
240
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
241
|
+
to enter the given state(s).
|
242
|
+
|
243
|
+
:param str fleet_id: (required)
|
244
|
+
unique Fleet identifier
|
245
|
+
|
246
|
+
:param list[str] wait_for_states:
|
247
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
248
|
+
|
249
|
+
:param dict operation_kwargs:
|
250
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet`
|
251
|
+
|
252
|
+
:param dict waiter_kwargs:
|
253
|
+
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``
|
254
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
255
|
+
"""
|
256
|
+
operation_result = None
|
257
|
+
try:
|
258
|
+
operation_result = self.client.delete_fleet(fleet_id, **operation_kwargs)
|
259
|
+
except oci.exceptions.ServiceError as e:
|
260
|
+
if e.status == 404:
|
261
|
+
return WAIT_RESOURCE_NOT_FOUND
|
262
|
+
else:
|
263
|
+
raise e
|
264
|
+
|
265
|
+
if not wait_for_states:
|
266
|
+
return operation_result
|
267
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
268
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
269
|
+
return operation_result
|
270
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
271
|
+
|
272
|
+
try:
|
273
|
+
waiter_result = oci.wait_until(
|
274
|
+
self.client,
|
275
|
+
self.client.get_work_request(wait_for_resource_id),
|
276
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
277
|
+
**waiter_kwargs
|
278
|
+
)
|
279
|
+
result_to_return = waiter_result
|
280
|
+
|
281
|
+
return result_to_return
|
282
|
+
except Exception as e:
|
283
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
284
|
+
|
285
|
+
def delete_fleet_credential_and_wait_for_state(self, fleet_credential_id, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
286
|
+
"""
|
287
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
288
|
+
to enter the given state(s).
|
289
|
+
|
290
|
+
:param str fleet_credential_id: (required)
|
291
|
+
unique FleetCredential identifier
|
292
|
+
|
293
|
+
:param str fleet_id: (required)
|
294
|
+
unique Fleet identifier
|
295
|
+
|
296
|
+
:param list[str] wait_for_states:
|
297
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
298
|
+
|
299
|
+
:param dict operation_kwargs:
|
300
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_credential`
|
301
|
+
|
302
|
+
:param dict waiter_kwargs:
|
303
|
+
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``
|
304
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
305
|
+
"""
|
306
|
+
operation_result = None
|
307
|
+
try:
|
308
|
+
operation_result = self.client.delete_fleet_credential(fleet_credential_id, fleet_id, **operation_kwargs)
|
309
|
+
except oci.exceptions.ServiceError as e:
|
310
|
+
if e.status == 404:
|
311
|
+
return WAIT_RESOURCE_NOT_FOUND
|
312
|
+
else:
|
313
|
+
raise e
|
314
|
+
|
315
|
+
if not wait_for_states:
|
316
|
+
return operation_result
|
317
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
318
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
319
|
+
return operation_result
|
320
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
321
|
+
|
322
|
+
try:
|
323
|
+
waiter_result = oci.wait_until(
|
324
|
+
self.client,
|
325
|
+
self.client.get_work_request(wait_for_resource_id),
|
326
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
327
|
+
**waiter_kwargs
|
328
|
+
)
|
329
|
+
result_to_return = waiter_result
|
330
|
+
|
331
|
+
return result_to_return
|
332
|
+
except Exception as e:
|
333
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
334
|
+
|
335
|
+
def delete_fleet_resource_and_wait_for_state(self, fleet_resource_id, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
336
|
+
"""
|
337
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
338
|
+
to enter the given state(s).
|
339
|
+
|
340
|
+
:param str fleet_resource_id: (required)
|
341
|
+
unique FleetResource identifier
|
342
|
+
|
343
|
+
:param str fleet_id: (required)
|
344
|
+
unique Fleet identifier
|
345
|
+
|
346
|
+
:param list[str] wait_for_states:
|
347
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
348
|
+
|
349
|
+
:param dict operation_kwargs:
|
350
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.delete_fleet_resource`
|
351
|
+
|
352
|
+
:param dict waiter_kwargs:
|
353
|
+
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``
|
354
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
355
|
+
"""
|
356
|
+
operation_result = None
|
357
|
+
try:
|
358
|
+
operation_result = self.client.delete_fleet_resource(fleet_resource_id, fleet_id, **operation_kwargs)
|
359
|
+
except oci.exceptions.ServiceError as e:
|
360
|
+
if e.status == 404:
|
361
|
+
return WAIT_RESOURCE_NOT_FOUND
|
362
|
+
else:
|
363
|
+
raise e
|
364
|
+
|
365
|
+
if not wait_for_states:
|
366
|
+
return operation_result
|
367
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
368
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
369
|
+
return operation_result
|
370
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
371
|
+
|
372
|
+
try:
|
373
|
+
waiter_result = oci.wait_until(
|
374
|
+
self.client,
|
375
|
+
self.client.get_work_request(wait_for_resource_id),
|
376
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
377
|
+
**waiter_kwargs
|
378
|
+
)
|
379
|
+
result_to_return = waiter_result
|
380
|
+
|
381
|
+
return result_to_return
|
382
|
+
except Exception as e:
|
383
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
384
|
+
|
385
|
+
def generate_compliance_report_and_wait_for_state(self, generate_compliance_report_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
386
|
+
"""
|
387
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.generate_compliance_report` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
388
|
+
to enter the given state(s).
|
389
|
+
|
390
|
+
:param oci.fleet_apps_management.models.GenerateComplianceReportDetails generate_compliance_report_details: (required)
|
391
|
+
Details for generating Compliance Report fort the Fleet.
|
392
|
+
|
393
|
+
:param str fleet_id: (required)
|
394
|
+
unique Fleet identifier
|
395
|
+
|
396
|
+
:param list[str] wait_for_states:
|
397
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
398
|
+
|
399
|
+
:param dict operation_kwargs:
|
400
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.generate_compliance_report`
|
401
|
+
|
402
|
+
:param dict waiter_kwargs:
|
403
|
+
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``
|
404
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
405
|
+
"""
|
406
|
+
operation_result = self.client.generate_compliance_report(generate_compliance_report_details, fleet_id, **operation_kwargs)
|
407
|
+
if not wait_for_states:
|
408
|
+
return operation_result
|
409
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
410
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
411
|
+
return operation_result
|
412
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
413
|
+
|
414
|
+
try:
|
415
|
+
waiter_result = oci.wait_until(
|
416
|
+
self.client,
|
417
|
+
self.client.get_work_request(wait_for_resource_id),
|
418
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
419
|
+
**waiter_kwargs
|
420
|
+
)
|
421
|
+
result_to_return = waiter_result
|
422
|
+
|
423
|
+
return result_to_return
|
424
|
+
except Exception as e:
|
425
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
426
|
+
|
427
|
+
def request_resource_validation_and_wait_for_state(self, request_resource_validation_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
428
|
+
"""
|
429
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_resource_validation` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
430
|
+
to enter the given state(s).
|
431
|
+
|
432
|
+
:param oci.fleet_apps_management.models.RequestResourceValidationDetails request_resource_validation_details: (required)
|
433
|
+
Details for requesting resource validation
|
434
|
+
|
435
|
+
:param str fleet_id: (required)
|
436
|
+
unique Fleet identifier
|
437
|
+
|
438
|
+
:param list[str] wait_for_states:
|
439
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
440
|
+
|
441
|
+
:param dict operation_kwargs:
|
442
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_resource_validation`
|
443
|
+
|
444
|
+
:param dict waiter_kwargs:
|
445
|
+
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``
|
446
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
447
|
+
"""
|
448
|
+
operation_result = self.client.request_resource_validation(request_resource_validation_details, fleet_id, **operation_kwargs)
|
449
|
+
if not wait_for_states:
|
450
|
+
return operation_result
|
451
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
452
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
453
|
+
return operation_result
|
454
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
455
|
+
|
456
|
+
try:
|
457
|
+
waiter_result = oci.wait_until(
|
458
|
+
self.client,
|
459
|
+
self.client.get_work_request(wait_for_resource_id),
|
460
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
461
|
+
**waiter_kwargs
|
462
|
+
)
|
463
|
+
result_to_return = waiter_result
|
464
|
+
|
465
|
+
return result_to_return
|
466
|
+
except Exception as e:
|
467
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
468
|
+
|
469
|
+
def request_target_discovery_and_wait_for_state(self, request_target_discovery_details, fleet_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
470
|
+
"""
|
471
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_target_discovery` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
472
|
+
to enter the given state(s).
|
473
|
+
|
474
|
+
:param oci.fleet_apps_management.models.RequestTargetDiscoveryDetails request_target_discovery_details: (required)
|
475
|
+
Details for requesting target discovery
|
476
|
+
|
477
|
+
:param str fleet_id: (required)
|
478
|
+
unique Fleet identifier
|
479
|
+
|
480
|
+
:param list[str] wait_for_states:
|
481
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
482
|
+
|
483
|
+
:param dict operation_kwargs:
|
484
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.request_target_discovery`
|
485
|
+
|
486
|
+
:param dict waiter_kwargs:
|
487
|
+
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``
|
488
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
489
|
+
"""
|
490
|
+
operation_result = self.client.request_target_discovery(request_target_discovery_details, fleet_id, **operation_kwargs)
|
491
|
+
if not wait_for_states:
|
492
|
+
return operation_result
|
493
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
494
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
495
|
+
return operation_result
|
496
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
497
|
+
|
498
|
+
try:
|
499
|
+
waiter_result = oci.wait_until(
|
500
|
+
self.client,
|
501
|
+
self.client.get_work_request(wait_for_resource_id),
|
502
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
503
|
+
**waiter_kwargs
|
504
|
+
)
|
505
|
+
result_to_return = waiter_result
|
506
|
+
|
507
|
+
return result_to_return
|
508
|
+
except Exception as e:
|
509
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
510
|
+
|
511
|
+
def update_fleet_and_wait_for_state(self, fleet_id, update_fleet_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
512
|
+
"""
|
513
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet` and waits for the :py:class:`~oci.fleet_apps_management.models.Fleet` acted upon
|
514
|
+
to enter the given state(s).
|
515
|
+
|
516
|
+
:param str fleet_id: (required)
|
517
|
+
unique Fleet identifier
|
518
|
+
|
519
|
+
:param oci.fleet_apps_management.models.UpdateFleetDetails update_fleet_details: (required)
|
520
|
+
The information to be updated.
|
521
|
+
|
522
|
+
:param list[str] wait_for_states:
|
523
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.Fleet.lifecycle_state`
|
524
|
+
|
525
|
+
:param dict operation_kwargs:
|
526
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet`
|
527
|
+
|
528
|
+
:param dict waiter_kwargs:
|
529
|
+
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``
|
530
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
531
|
+
"""
|
532
|
+
operation_result = self.client.update_fleet(fleet_id, update_fleet_details, **operation_kwargs)
|
533
|
+
if not wait_for_states:
|
534
|
+
return operation_result
|
535
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
536
|
+
fleet_id = operation_result.data.id
|
537
|
+
|
538
|
+
try:
|
539
|
+
waiter_result = oci.wait_until(
|
540
|
+
self.client,
|
541
|
+
self.client.get_fleet(fleet_id), # noqa: F821
|
542
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
543
|
+
**waiter_kwargs
|
544
|
+
)
|
545
|
+
result_to_return = waiter_result
|
546
|
+
|
547
|
+
return result_to_return
|
548
|
+
except (NameError, TypeError) as e:
|
549
|
+
if not e.args:
|
550
|
+
e.args = ('',)
|
551
|
+
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"', )
|
552
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
553
|
+
except Exception as e:
|
554
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
555
|
+
|
556
|
+
def update_fleet_credential_and_wait_for_state(self, fleet_credential_id, fleet_id, update_fleet_credential_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
557
|
+
"""
|
558
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_credential` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
559
|
+
to enter the given state(s).
|
560
|
+
|
561
|
+
:param str fleet_credential_id: (required)
|
562
|
+
unique FleetCredential identifier
|
563
|
+
|
564
|
+
:param str fleet_id: (required)
|
565
|
+
unique Fleet identifier
|
566
|
+
|
567
|
+
:param oci.fleet_apps_management.models.UpdateFleetCredentialDetails update_fleet_credential_details: (required)
|
568
|
+
The information to be updated.
|
569
|
+
|
570
|
+
:param list[str] wait_for_states:
|
571
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
572
|
+
|
573
|
+
:param dict operation_kwargs:
|
574
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_credential`
|
575
|
+
|
576
|
+
:param dict waiter_kwargs:
|
577
|
+
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``
|
578
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
579
|
+
"""
|
580
|
+
operation_result = self.client.update_fleet_credential(fleet_credential_id, fleet_id, update_fleet_credential_details, **operation_kwargs)
|
581
|
+
if not wait_for_states:
|
582
|
+
return operation_result
|
583
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
584
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
585
|
+
return operation_result
|
586
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
587
|
+
|
588
|
+
try:
|
589
|
+
waiter_result = oci.wait_until(
|
590
|
+
self.client,
|
591
|
+
self.client.get_work_request(wait_for_resource_id),
|
592
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
593
|
+
**waiter_kwargs
|
594
|
+
)
|
595
|
+
result_to_return = waiter_result
|
596
|
+
|
597
|
+
return result_to_return
|
598
|
+
except Exception as e:
|
599
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
600
|
+
|
601
|
+
def update_fleet_property_and_wait_for_state(self, fleet_property_id, fleet_id, update_fleet_property_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
602
|
+
"""
|
603
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_property` and waits for the :py:class:`~oci.fleet_apps_management.models.FleetProperty` acted upon
|
604
|
+
to enter the given state(s).
|
605
|
+
|
606
|
+
:param str fleet_property_id: (required)
|
607
|
+
unique FleetProperty identifier
|
608
|
+
|
609
|
+
:param str fleet_id: (required)
|
610
|
+
unique Fleet identifier
|
611
|
+
|
612
|
+
:param oci.fleet_apps_management.models.UpdateFleetPropertyDetails update_fleet_property_details: (required)
|
613
|
+
The information to be updated.
|
614
|
+
|
615
|
+
:param list[str] wait_for_states:
|
616
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.FleetProperty.lifecycle_state`
|
617
|
+
|
618
|
+
:param dict operation_kwargs:
|
619
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_property`
|
620
|
+
|
621
|
+
:param dict waiter_kwargs:
|
622
|
+
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``
|
623
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
624
|
+
"""
|
625
|
+
operation_result = self.client.update_fleet_property(fleet_property_id, fleet_id, update_fleet_property_details, **operation_kwargs)
|
626
|
+
if not wait_for_states:
|
627
|
+
return operation_result
|
628
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
629
|
+
fleet_property_id = operation_result.data.id
|
630
|
+
|
631
|
+
try:
|
632
|
+
waiter_result = oci.wait_until(
|
633
|
+
self.client,
|
634
|
+
self.client.get_fleet_property(fleet_property_id, fleet_id), # noqa: F821
|
635
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
636
|
+
**waiter_kwargs
|
637
|
+
)
|
638
|
+
result_to_return = waiter_result
|
639
|
+
|
640
|
+
return result_to_return
|
641
|
+
except (NameError, TypeError) as e:
|
642
|
+
if not e.args:
|
643
|
+
e.args = ('',)
|
644
|
+
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"', )
|
645
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
646
|
+
except Exception as e:
|
647
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
648
|
+
|
649
|
+
def update_fleet_resource_and_wait_for_state(self, fleet_resource_id, fleet_id, update_fleet_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
650
|
+
"""
|
651
|
+
Calls :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_resource` and waits for the :py:class:`~oci.fleet_apps_management.models.WorkRequest`
|
652
|
+
to enter the given state(s).
|
653
|
+
|
654
|
+
:param str fleet_resource_id: (required)
|
655
|
+
unique FleetResource identifier
|
656
|
+
|
657
|
+
:param str fleet_id: (required)
|
658
|
+
unique Fleet identifier
|
659
|
+
|
660
|
+
:param oci.fleet_apps_management.models.UpdateFleetResourceDetails update_fleet_resource_details: (required)
|
661
|
+
The information to be updated.
|
662
|
+
|
663
|
+
:param list[str] wait_for_states:
|
664
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.fleet_apps_management.models.WorkRequest.status`
|
665
|
+
|
666
|
+
:param dict operation_kwargs:
|
667
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.fleet_apps_management.FleetAppsManagementClient.update_fleet_resource`
|
668
|
+
|
669
|
+
:param dict waiter_kwargs:
|
670
|
+
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``
|
671
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
672
|
+
"""
|
673
|
+
operation_result = self.client.update_fleet_resource(fleet_resource_id, fleet_id, update_fleet_resource_details, **operation_kwargs)
|
674
|
+
if not wait_for_states:
|
675
|
+
return operation_result
|
676
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
677
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
678
|
+
return operation_result
|
679
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
680
|
+
|
681
|
+
try:
|
682
|
+
waiter_result = oci.wait_until(
|
683
|
+
self.client,
|
684
|
+
self.client.get_work_request(wait_for_resource_id),
|
685
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
686
|
+
**waiter_kwargs
|
687
|
+
)
|
688
|
+
result_to_return = waiter_result
|
689
|
+
|
690
|
+
return result_to_return
|
691
|
+
except Exception as e:
|
692
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|