oci 2.125.2__py3-none-any.whl → 2.126.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 +134 -43
- oci/ai_language/models/__init__.py +24 -0
- oci/ai_language/models/assertion_details.py +165 -0
- oci/ai_language/models/batch_detect_health_entity_details.py +223 -0
- oci/ai_language/models/batch_detect_health_entity_result.py +103 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +29 -2
- oci/ai_language/models/health_entity.py +351 -0
- oci/ai_language/models/health_entity_document_result.py +200 -0
- oci/ai_language/models/input_location.py +2 -1
- oci/ai_language/models/mel_concept.py +103 -0
- oci/ai_language/models/mel_concept_details.py +165 -0
- oci/ai_language/models/model_details.py +11 -3
- oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pii_entity.py +118 -7
- oci/ai_language/models/pii_model_details.py +91 -0
- oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
- oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
- oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
- oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
- oci/ai_language/models/pre_trained_summarization.py +1 -1
- oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
- oci/ai_language/models/pre_trained_universal_model.py +1 -1
- oci/ai_language/models/profile.py +134 -0
- oci/ai_language/models/relation_entity.py +196 -0
- oci/ai_language/models/resolved_entities.py +72 -0
- oci/ai_language/models/resolved_entity.py +227 -0
- oci/ai_language/models/text_classification_model_details.py +1 -1
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- 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 +8 -8
- 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 +51 -51
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- 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 +5496 -2653
- oci/cloud_guard/cloud_guard_client_composite_operations.py +307 -60
- oci/cloud_guard/models/__init__.py +74 -0
- oci/cloud_guard/models/absolute_time_start_policy.py +3 -3
- oci/cloud_guard/models/activity_problem_aggregation.py +4 -4
- oci/cloud_guard/models/activity_problem_aggregation_collection.py +3 -3
- oci/cloud_guard/models/add_compartment_details.py +1 -1
- oci/cloud_guard/models/adhoc_query.py +532 -0
- oci/cloud_guard/models/adhoc_query_collection.py +103 -0
- oci/cloud_guard/models/adhoc_query_details.py +103 -0
- oci/cloud_guard/models/adhoc_query_regional_details.py +294 -0
- oci/cloud_guard/models/adhoc_query_resource.py +134 -0
- oci/cloud_guard/models/adhoc_query_result_collection.py +72 -0
- oci/cloud_guard/models/adhoc_query_result_summary.py +407 -0
- oci/cloud_guard/models/adhoc_query_summary.py +532 -0
- oci/cloud_guard/models/all_targets_selected.py +1 -1
- oci/cloud_guard/models/attach_target_detector_recipe_details.py +5 -3
- oci/cloud_guard/models/attach_target_responder_recipe_details.py +5 -3
- oci/cloud_guard/models/candidate_responder_rule.py +7 -7
- oci/cloud_guard/models/change_data_source_compartment_details.py +3 -3
- oci/cloud_guard/models/change_detector_recipe_compartment_details.py +3 -3
- oci/cloud_guard/models/change_managed_list_compartment_details.py +3 -3
- oci/cloud_guard/models/change_responder_recipe_compartment_details.py +3 -3
- oci/cloud_guard/models/change_saved_query_compartment_details.py +72 -0
- oci/cloud_guard/models/change_security_policy_compartment_details.py +1 -1
- oci/cloud_guard/models/change_security_recipe_compartment_details.py +1 -1
- oci/cloud_guard/models/change_security_zone_compartment_details.py +1 -1
- oci/cloud_guard/models/composite_condition.py +5 -1
- oci/cloud_guard/models/condition.py +3 -3
- oci/cloud_guard/models/condition_group.py +3 -3
- oci/cloud_guard/models/condition_metadata_type.py +37 -6
- oci/cloud_guard/models/condition_metadata_type_collection.py +36 -5
- oci/cloud_guard/models/condition_metadata_type_summary.py +38 -7
- oci/cloud_guard/models/condition_operator.py +5 -5
- oci/cloud_guard/models/config_value.py +7 -7
- oci/cloud_guard/models/configuration.py +37 -6
- oci/cloud_guard/models/continuous_query_start_policy.py +3 -3
- oci/cloud_guard/models/create_adhoc_query_details.py +169 -0
- oci/cloud_guard/models/create_data_mask_rule_details.py +15 -15
- oci/cloud_guard/models/create_data_source_details.py +16 -12
- oci/cloud_guard/models/create_detector_recipe_details.py +16 -12
- oci/cloud_guard/models/create_detector_recipe_detector_rule_details.py +1 -1
- oci/cloud_guard/models/create_detector_rule_details.py +17 -17
- oci/cloud_guard/models/create_managed_list_details.py +11 -11
- oci/cloud_guard/models/create_responder_recipe_details.py +7 -7
- oci/cloud_guard/models/create_saved_query_details.py +235 -0
- oci/cloud_guard/models/create_security_policy_details.py +11 -11
- oci/cloud_guard/models/create_security_recipe_details.py +11 -7
- oci/cloud_guard/models/create_security_zone_details.py +5 -5
- oci/cloud_guard/models/create_target_details.py +13 -13
- oci/cloud_guard/models/create_target_detector_recipe_details.py +5 -5
- oci/cloud_guard/models/create_target_responder_recipe_details.py +6 -5
- oci/cloud_guard/models/create_wlp_agent_details.py +238 -0
- oci/cloud_guard/models/data_mask_rule.py +50 -19
- oci/cloud_guard/models/data_mask_rule_collection.py +36 -5
- oci/cloud_guard/models/data_mask_rule_summary.py +19 -19
- oci/cloud_guard/models/data_source.py +51 -16
- oci/cloud_guard/models/data_source_collection.py +36 -5
- oci/cloud_guard/models/data_source_details.py +13 -5
- oci/cloud_guard/models/data_source_event_collection.py +36 -5
- oci/cloud_guard/models/data_source_event_info.py +12 -6
- oci/cloud_guard/models/data_source_event_summary.py +7 -7
- oci/cloud_guard/models/data_source_mapping_info.py +5 -5
- oci/cloud_guard/models/data_source_summary.py +20 -16
- oci/cloud_guard/models/data_source_summary_details.py +14 -6
- oci/cloud_guard/models/detector.py +6 -6
- oci/cloud_guard/models/detector_collection.py +3 -3
- oci/cloud_guard/models/detector_configuration.py +73 -11
- oci/cloud_guard/models/detector_details.py +139 -15
- oci/cloud_guard/models/detector_recipe.py +81 -22
- oci/cloud_guard/models/detector_recipe_collection.py +36 -5
- oci/cloud_guard/models/detector_recipe_detector_rule.py +65 -30
- oci/cloud_guard/models/detector_recipe_detector_rule_collection.py +36 -5
- oci/cloud_guard/models/detector_recipe_detector_rule_summary.py +32 -28
- oci/cloud_guard/models/detector_recipe_summary.py +79 -20
- oci/cloud_guard/models/detector_rule.py +60 -25
- oci/cloud_guard/models/detector_rule_collection.py +3 -3
- oci/cloud_guard/models/detector_rule_summary.py +30 -26
- oci/cloud_guard/models/detector_summary.py +40 -9
- oci/cloud_guard/models/entities_mapping.py +5 -5
- oci/cloud_guard/models/entity_details.py +1 -1
- oci/cloud_guard/models/execute_responder_execution_details.py +3 -3
- oci/cloud_guard/models/geographical_location.py +5 -5
- oci/cloud_guard/models/impacted_resource_collection.py +36 -5
- oci/cloud_guard/models/impacted_resource_summary.py +17 -17
- oci/cloud_guard/models/insight_type_logging_query_details.py +1 -1
- oci/cloud_guard/models/instance_security_service_configuration.py +99 -0
- oci/cloud_guard/models/logging_event_info.py +18 -2
- oci/cloud_guard/models/logging_query_data_source_details.py +14 -14
- oci/cloud_guard/models/logging_query_data_source_summary_details.py +8 -8
- oci/cloud_guard/models/logging_query_details.py +3 -3
- oci/cloud_guard/models/managed_list.py +25 -25
- oci/cloud_guard/models/managed_list_collection.py +36 -5
- oci/cloud_guard/models/managed_list_summary.py +25 -25
- oci/cloud_guard/models/managed_list_type_collection.py +36 -5
- oci/cloud_guard/models/managed_list_type_summary.py +39 -8
- oci/cloud_guard/models/no_delay_start_policy.py +1 -1
- oci/cloud_guard/models/operator_summary.py +13 -13
- oci/cloud_guard/models/package_detail.py +227 -0
- oci/cloud_guard/models/policy_collection.py +34 -3
- oci/cloud_guard/models/political_location.py +7 -7
- oci/cloud_guard/models/problem.py +79 -44
- oci/cloud_guard/models/problem_aggregation.py +4 -4
- oci/cloud_guard/models/problem_aggregation_collection.py +3 -3
- oci/cloud_guard/models/problem_collection.py +36 -5
- oci/cloud_guard/models/problem_endpoint_collection.py +36 -5
- oci/cloud_guard/models/problem_endpoint_summary.py +18 -18
- oci/cloud_guard/models/problem_entity_collection.py +35 -4
- oci/cloud_guard/models/problem_entity_summary.py +7 -7
- oci/cloud_guard/models/problem_history_collection.py +36 -5
- oci/cloud_guard/models/problem_history_summary.py +48 -17
- oci/cloud_guard/models/problem_summary.py +69 -34
- oci/cloud_guard/models/problem_trend_aggregation.py +6 -6
- oci/cloud_guard/models/problem_trend_aggregation_collection.py +3 -3
- oci/cloud_guard/models/property_tuple.py +103 -0
- oci/cloud_guard/models/recommendation_summary.py +23 -23
- oci/cloud_guard/models/recommendation_summary_collection.py +36 -5
- oci/cloud_guard/models/region_status_detail.py +5 -5
- oci/cloud_guard/models/remove_compartment_details.py +1 -1
- oci/cloud_guard/models/request_summarized_trend_resource_risk_scores_details.py +5 -5
- oci/cloud_guard/models/resource.py +616 -0
- oci/cloud_guard/models/resource_additional_details.py +72 -0
- oci/cloud_guard/models/resource_collection.py +72 -0
- oci/cloud_guard/models/resource_lock.py +185 -0
- oci/cloud_guard/models/resource_port_collection.py +72 -0
- oci/cloud_guard/models/resource_port_summary.py +247 -0
- oci/cloud_guard/models/resource_profile.py +60 -29
- oci/cloud_guard/models/resource_profile_collection.py +36 -5
- oci/cloud_guard/models/resource_profile_endpoint_collection.py +3 -3
- oci/cloud_guard/models/resource_profile_endpoint_summary.py +29 -29
- oci/cloud_guard/models/resource_profile_impacted_resource_collection.py +35 -4
- oci/cloud_guard/models/resource_profile_impacted_resource_summary.py +19 -19
- oci/cloud_guard/models/resource_profile_risk_score_aggregation_summary.py +5 -5
- oci/cloud_guard/models/resource_profile_risk_score_aggregation_summary_collection.py +3 -3
- oci/cloud_guard/models/resource_profile_summary.py +15 -15
- oci/cloud_guard/models/resource_risk_score_aggregation.py +6 -6
- oci/cloud_guard/models/resource_risk_score_aggregation_collection.py +9 -9
- oci/cloud_guard/models/resource_summary.py +527 -0
- oci/cloud_guard/models/resource_type_collection.py +36 -5
- oci/cloud_guard/models/resource_type_summary.py +38 -7
- oci/cloud_guard/models/resource_vulnerability.py +496 -0
- oci/cloud_guard/models/resource_vulnerability_collection.py +72 -0
- oci/cloud_guard/models/resource_vulnerability_summary.py +279 -0
- oci/cloud_guard/models/responder_activity_collection.py +3 -3
- oci/cloud_guard/models/responder_activity_summary.py +19 -19
- oci/cloud_guard/models/responder_configuration.py +7 -7
- oci/cloud_guard/models/responder_execution.py +58 -27
- oci/cloud_guard/models/responder_execution_aggregation.py +2 -2
- oci/cloud_guard/models/responder_execution_aggregation_collection.py +3 -3
- oci/cloud_guard/models/responder_execution_collection.py +37 -5
- oci/cloud_guard/models/responder_execution_summary.py +17 -17
- oci/cloud_guard/models/responder_execution_trend_aggregation.py +6 -6
- oci/cloud_guard/models/responder_execution_trend_aggregation_collection.py +3 -3
- oci/cloud_guard/models/responder_recipe.py +34 -19
- oci/cloud_guard/models/responder_recipe_collection.py +36 -5
- oci/cloud_guard/models/responder_recipe_responder_rule.py +70 -21
- oci/cloud_guard/models/responder_recipe_responder_rule_collection.py +3 -3
- oci/cloud_guard/models/responder_recipe_responder_rule_summary.py +19 -19
- oci/cloud_guard/models/responder_recipe_summary.py +19 -19
- oci/cloud_guard/models/responder_rule.py +58 -19
- oci/cloud_guard/models/responder_rule_collection.py +36 -5
- oci/cloud_guard/models/responder_rule_details.py +7 -7
- oci/cloud_guard/models/responder_rule_execution_details.py +3 -3
- oci/cloud_guard/models/responder_rule_summary.py +17 -17
- oci/cloud_guard/models/risk_score_aggregation.py +2 -2
- oci/cloud_guard/models/risk_score_aggregation_collection.py +3 -3
- oci/cloud_guard/models/rule_summary.py +7 -7
- oci/cloud_guard/models/saved_query.py +438 -0
- oci/cloud_guard/models/saved_query_collection.py +103 -0
- oci/cloud_guard/models/saved_query_summary.py +500 -0
- oci/cloud_guard/models/scheduled_query_data_source_obj_details.py +175 -0
- oci/cloud_guard/models/scheduled_query_data_source_summary_obj_details.py +175 -0
- oci/cloud_guard/models/scheduled_query_scope_detail.py +134 -0
- oci/cloud_guard/models/security_policy.py +45 -11
- oci/cloud_guard/models/security_policy_collection.py +36 -5
- oci/cloud_guard/models/security_policy_summary.py +16 -15
- oci/cloud_guard/models/security_recipe.py +13 -11
- oci/cloud_guard/models/security_recipe_collection.py +150 -5
- oci/cloud_guard/models/security_recipe_summary.py +9 -9
- oci/cloud_guard/models/security_score_aggregation.py +6 -6
- oci/cloud_guard/models/security_score_aggregation_collection.py +3 -3
- oci/cloud_guard/models/security_score_trend_aggregation.py +4 -4
- oci/cloud_guard/models/security_score_trend_aggregation_collection.py +3 -3
- oci/cloud_guard/models/security_zone.py +11 -9
- oci/cloud_guard/models/security_zone_collection.py +36 -5
- oci/cloud_guard/models/security_zone_summary.py +10 -9
- oci/cloud_guard/models/security_zone_target_details.py +7 -7
- oci/cloud_guard/models/service_configuration.py +101 -0
- oci/cloud_guard/models/service_type_summary.py +5 -5
- oci/cloud_guard/models/sighting.py +55 -24
- oci/cloud_guard/models/sighting_collection.py +36 -5
- oci/cloud_guard/models/sighting_endpoint_collection.py +3 -3
- oci/cloud_guard/models/sighting_endpoint_summary.py +25 -25
- oci/cloud_guard/models/sighting_impacted_resource_collection.py +36 -5
- oci/cloud_guard/models/sighting_impacted_resource_summary.py +13 -13
- oci/cloud_guard/models/sighting_summary.py +27 -27
- oci/cloud_guard/models/sighting_type.py +11 -11
- oci/cloud_guard/models/simple_condition.py +9 -9
- oci/cloud_guard/models/skip_bulk_responder_execution_details.py +3 -3
- oci/cloud_guard/models/tactic_collection.py +36 -5
- oci/cloud_guard/models/tactic_summary.py +3 -3
- oci/cloud_guard/models/target.py +23 -21
- oci/cloud_guard/models/target_collection.py +36 -5
- oci/cloud_guard/models/target_details.py +2 -2
- oci/cloud_guard/models/target_detector_details.py +13 -13
- oci/cloud_guard/models/target_detector_recipe.py +124 -22
- oci/cloud_guard/models/target_detector_recipe_collection.py +36 -5
- oci/cloud_guard/models/target_detector_recipe_detector_rule.py +92 -30
- oci/cloud_guard/models/target_detector_recipe_detector_rule_collection.py +36 -5
- oci/cloud_guard/models/target_detector_recipe_detector_rule_summary.py +63 -28
- oci/cloud_guard/models/target_detector_recipe_summary.py +110 -20
- oci/cloud_guard/models/target_ids_selected.py +3 -3
- oci/cloud_guard/models/target_resource_types_selected.py +3 -3
- oci/cloud_guard/models/target_responder_recipe.py +63 -19
- oci/cloud_guard/models/target_responder_recipe_collection.py +36 -5
- oci/cloud_guard/models/target_responder_recipe_responder_rule.py +32 -19
- oci/cloud_guard/models/target_responder_recipe_responder_rule_collection.py +3 -3
- oci/cloud_guard/models/target_responder_recipe_responder_rule_summary.py +19 -19
- oci/cloud_guard/models/target_responder_recipe_summary.py +50 -19
- oci/cloud_guard/models/target_selected.py +3 -3
- oci/cloud_guard/models/target_summary.py +15 -15
- oci/cloud_guard/models/technique_collection.py +36 -5
- oci/cloud_guard/models/technique_summary.py +3 -3
- oci/cloud_guard/models/trigger_responder_details.py +5 -5
- oci/cloud_guard/models/update_bulk_problem_status_details.py +5 -5
- oci/cloud_guard/models/update_configuration_details.py +36 -5
- oci/cloud_guard/models/update_data_mask_rule_details.py +11 -11
- oci/cloud_guard/models/update_data_source_details.py +5 -5
- oci/cloud_guard/models/update_detector_recipe_details.py +7 -5
- oci/cloud_guard/models/update_detector_recipe_detector_rule.py +3 -3
- oci/cloud_guard/models/update_detector_recipe_detector_rule_details.py +1 -1
- oci/cloud_guard/models/update_detector_rule_details.py +17 -17
- oci/cloud_guard/models/update_managed_list_details.py +3 -3
- oci/cloud_guard/models/update_problem_status_details.py +3 -3
- oci/cloud_guard/models/update_responder_recipe_details.py +7 -7
- oci/cloud_guard/models/update_responder_recipe_responder_rule.py +3 -3
- oci/cloud_guard/models/update_responder_recipe_responder_rule_details.py +1 -1
- oci/cloud_guard/models/update_responder_rule_details.py +3 -3
- oci/cloud_guard/models/update_saved_query_details.py +204 -0
- oci/cloud_guard/models/update_security_policy_details.py +3 -3
- oci/cloud_guard/models/update_security_recipe_details.py +5 -5
- oci/cloud_guard/models/update_security_zone_details.py +5 -5
- oci/cloud_guard/models/update_target_details.py +7 -7
- oci/cloud_guard/models/update_target_detector_recipe.py +5 -5
- oci/cloud_guard/models/update_target_detector_recipe_details.py +7 -7
- oci/cloud_guard/models/update_target_detector_recipe_detector_rule_details.py +1 -1
- oci/cloud_guard/models/update_target_detector_rule_details.py +1 -1
- oci/cloud_guard/models/update_target_recipe_detector_rule_details.py +3 -3
- oci/cloud_guard/models/update_target_recipe_responder_rule_details.py +3 -3
- oci/cloud_guard/models/update_target_responder_recipe.py +5 -5
- oci/cloud_guard/models/update_target_responder_recipe_details.py +7 -3
- oci/cloud_guard/models/update_target_responder_recipe_responder_rule_details.py +1 -1
- oci/cloud_guard/models/update_target_responder_rule_details.py +8 -5
- oci/cloud_guard/models/update_wlp_agent_details.py +143 -0
- oci/cloud_guard/models/wlp_agent.py +469 -0
- oci/cloud_guard/models/wlp_agent_collection.py +103 -0
- oci/cloud_guard/models/wlp_agent_summary.py +406 -0
- oci/cloud_guard/models/work_request.py +54 -23
- oci/cloud_guard/models/work_request_error.py +8 -7
- oci/cloud_guard/models/work_request_error_collection.py +5 -3
- oci/cloud_guard/models/work_request_log_entry.py +4 -4
- oci/cloud_guard/models/work_request_log_entry_collection.py +38 -5
- oci/cloud_guard/models/work_request_resource.py +7 -7
- oci/cloud_guard/models/work_request_summary.py +15 -15
- oci/cloud_guard/models/work_request_summary_collection.py +36 -5
- oci/cloud_migrations/migration_client.py +43 -43
- oci/{application_migration → cluster_placement_groups}/__init__.py +4 -4
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +1705 -0
- oci/cluster_placement_groups/cluster_placement_groups_cp_client_composite_operations.py +238 -0
- oci/cluster_placement_groups/models/__init__.py +46 -0
- oci/cluster_placement_groups/models/capabilities_collection.py +72 -0
- oci/cluster_placement_groups/models/capability_details.py +103 -0
- oci/{application_migration/models/change_compartment_details.py → cluster_placement_groups/models/change_cluster_placement_group_compartment_details.py} +11 -11
- oci/cluster_placement_groups/models/cluster_placement_group.py +568 -0
- oci/cluster_placement_groups/models/cluster_placement_group_collection.py +72 -0
- oci/cluster_placement_groups/models/cluster_placement_group_summary.py +447 -0
- oci/cluster_placement_groups/models/create_cluster_placement_group_details.py +332 -0
- oci/cluster_placement_groups/models/placement_instruction_details.py +115 -0
- oci/cluster_placement_groups/models/update_cluster_placement_group_details.py +138 -0
- oci/{application_migration → cluster_placement_groups}/models/work_request.py +100 -67
- oci/{application_migration → cluster_placement_groups}/models/work_request_error.py +14 -8
- oci/cluster_placement_groups/models/work_request_error_collection.py +72 -0
- oci/{application_migration → cluster_placement_groups}/models/work_request_log_entry.py +10 -6
- oci/cluster_placement_groups/models/work_request_log_entry_collection.py +72 -0
- oci/{application_migration → cluster_placement_groups}/models/work_request_resource.py +87 -50
- oci/{application_migration → cluster_placement_groups}/models/work_request_summary.py +128 -70
- oci/cluster_placement_groups/models/work_request_summary_collection.py +72 -0
- 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 +65 -60
- oci/core/compute_client.py +101 -103
- oci/core/compute_client_composite_operations.py +1 -2
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +6 -0
- oci/core/models/boot_volume.py +31 -0
- oci/core/models/boot_volume_attachment.py +39 -0
- oci/core/models/capacity_reservation_instance_summary.py +31 -0
- oci/core/models/compute_cluster.py +1 -2
- oci/core/models/create_boot_volume_details.py +31 -0
- oci/core/models/create_compute_cluster_details.py +1 -2
- oci/core/models/create_drg_route_distribution_details.py +2 -2
- oci/core/models/create_image_details.py +2 -2
- oci/core/models/create_vnic_details.py +18 -18
- oci/core/models/create_volume_details.py +31 -0
- oci/core/models/create_volume_group_details.py +33 -2
- oci/core/models/instance.py +31 -0
- oci/core/models/instance_configuration_create_volume_details.py +31 -0
- oci/core/models/instance_configuration_launch_instance_details.py +31 -0
- oci/core/models/instance_reservation_config.py +33 -2
- oci/core/models/instance_reservation_config_details.py +33 -2
- oci/core/models/launch_instance_details.py +31 -0
- oci/core/models/network_security_group.py +7 -7
- oci/core/models/private_ip.py +1 -1
- oci/core/models/update_instance_details.py +27 -0
- oci/core/models/update_instance_source_details.py +128 -0
- oci/core/models/update_instance_source_via_boot_volume_details.py +88 -0
- oci/core/models/update_instance_source_via_image_details.py +150 -0
- oci/core/models/update_vnic_details.py +2 -2
- oci/core/models/volume.py +31 -0
- oci/core/virtual_network_client.py +258 -258
- oci/core/virtual_network_client_composite_operations.py +13 -13
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +148 -148
- 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 +272 -272
- oci/data_science/data_science_client.py +91 -91
- oci/data_science/models/instance_configuration.py +37 -2
- oci/database/database_client.py +1224 -537
- oci/database/database_client_composite_operations.py +204 -0
- oci/database/models/__init__.py +12 -0
- oci/database/models/autonomous_container_database.py +31 -0
- oci/database/models/autonomous_container_database_summary.py +31 -0
- oci/database/models/autonomous_database_software_image.py +489 -0
- oci/database/models/autonomous_database_software_image_collection.py +72 -0
- oci/database/models/autonomous_database_software_image_summary.py +437 -0
- oci/database/models/change_autonomous_database_software_image_compartment_details.py +76 -0
- oci/database/models/create_autonomous_container_database_details.py +35 -0
- oci/database/models/create_autonomous_database_software_image_details.py +267 -0
- oci/database/models/maintenance_window.py +33 -2
- oci/database/models/update_autonomous_database_software_image_details.py +119 -0
- oci/database_management/db_management_client.py +194 -194
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_migration/models/aws_s3_data_transfer_medium_details.py +29 -2
- oci/database_migration/models/data_transfer_medium_details_v2.py +1 -1
- oci/database_migration/models/nfs_data_transfer_medium_details.py +29 -2
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +26 -26
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- 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 +39 -39
- 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 +24 -24
- oci/generative_ai/models/dataset.py +1 -1
- oci/generative_ai/models/dedicated_ai_cluster.py +34 -3
- oci/generative_ai/models/endpoint.py +27 -0
- oci/generative_ai/models/model.py +34 -3
- oci/generative_ai/models/model_summary.py +7 -3
- oci/generative_ai_inference/generative_ai_inference_client.py +101 -3
- oci/generative_ai_inference/models/__init__.py +30 -0
- oci/generative_ai_inference/models/base_chat_request.py +109 -0
- oci/generative_ai_inference/models/base_chat_response.py +109 -0
- oci/generative_ai_inference/models/chat_choice.py +161 -0
- oci/generative_ai_inference/models/chat_content.py +101 -0
- oci/generative_ai_inference/models/chat_details.py +126 -0
- oci/generative_ai_inference/models/chat_result.py +130 -0
- oci/generative_ai_inference/models/citation.py +165 -0
- oci/generative_ai_inference/models/cohere_chat_request.py +443 -0
- oci/generative_ai_inference/models/cohere_chat_response.py +272 -0
- oci/generative_ai_inference/models/cohere_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/cohere_message.py +119 -0
- oci/generative_ai_inference/models/embed_text_details.py +2 -2
- oci/generative_ai_inference/models/generic_chat_request.py +474 -0
- oci/generative_ai_inference/models/generic_chat_response.py +113 -0
- oci/generative_ai_inference/models/llama_llm_inference_request.py +2 -2
- oci/generative_ai_inference/models/llama_llm_inference_response.py +1 -1
- oci/generative_ai_inference/models/llm_inference_response.py +11 -3
- oci/generative_ai_inference/models/message.py +103 -0
- oci/generative_ai_inference/models/search_query.py +72 -0
- oci/generative_ai_inference/models/text_content.py +82 -0
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- 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 +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +191 -46
- oci/lockbox/models/__init__.py +2 -0
- oci/lockbox/models/access_request_ext.py +671 -0
- oci/lockbox/models/access_request_summary.py +101 -2
- oci/lockbox/models/approver_info.py +33 -2
- 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_publisher/marketplace_publisher_client.py +71 -71
- 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 +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- 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/models/opa_instance.py +7 -3
- oci/opa/models/work_request.py +11 -3
- oci/opa/models/work_request_summary.py +11 -3
- oci/opa/opa_instance_client.py +223 -13
- oci/opa/opa_instance_client_composite_operations.py +78 -0
- 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 +175 -175
- 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/__init__.py +3 -1
- oci/os_management_hub/event_client.py +1115 -0
- oci/os_management_hub/event_client_composite_operations.py +163 -0
- oci/os_management_hub/lifecycle_environment_client.py +258 -46
- oci/os_management_hub/lifecycle_environment_client_composite_operations.py +16 -6
- oci/os_management_hub/managed_instance_client.py +1643 -380
- oci/os_management_hub/managed_instance_client_composite_operations.py +171 -13
- oci/os_management_hub/managed_instance_group_client.py +549 -165
- oci/os_management_hub/managed_instance_group_client_composite_operations.py +182 -22
- oci/os_management_hub/management_station_client.py +284 -30
- oci/os_management_hub/management_station_client_composite_operations.py +55 -6
- oci/os_management_hub/models/__init__.py +106 -0
- oci/os_management_hub/models/add_packages_to_software_source_details.py +72 -0
- oci/os_management_hub/models/agent_event.py +184 -0
- oci/os_management_hub/models/agent_event_data.py +166 -0
- oci/os_management_hub/models/attach_managed_instances_to_managed_instance_group_details.py +8 -4
- oci/os_management_hub/models/attach_profile_to_managed_instance_details.py +76 -0
- oci/os_management_hub/models/attach_software_sources_to_managed_instance_details.py +1 -1
- oci/os_management_hub/models/attach_software_sources_to_managed_instance_group_details.py +8 -4
- oci/os_management_hub/models/autonomous_settings.py +107 -0
- oci/os_management_hub/models/available_package_collection.py +1 -1
- oci/os_management_hub/models/available_package_summary.py +1 -1
- oci/os_management_hub/models/available_software_source_collection.py +2 -1
- oci/os_management_hub/models/available_software_source_summary.py +17 -7
- oci/os_management_hub/models/available_windows_update_collection.py +72 -0
- oci/os_management_hub/models/available_windows_update_summary.py +222 -0
- oci/os_management_hub/models/change_availability_of_software_sources_details.py +4 -4
- oci/os_management_hub/models/change_event_compartment_details.py +76 -0
- oci/os_management_hub/models/change_lifecycle_environment_compartment_details.py +76 -0
- oci/os_management_hub/models/change_managed_instance_group_compartment_details.py +78 -0
- oci/os_management_hub/models/change_management_station_compartment_details.py +76 -0
- oci/os_management_hub/models/change_profile_compartment_details.py +76 -0
- oci/os_management_hub/models/change_scheduled_job_compartment_details.py +76 -0
- oci/os_management_hub/models/change_software_source_compartment_details.py +76 -0
- oci/os_management_hub/models/create_custom_software_source_details.py +98 -5
- oci/os_management_hub/models/create_entitlement_details.py +9 -5
- oci/os_management_hub/models/create_group_profile_details.py +22 -4
- oci/os_management_hub/models/create_lifecycle_environment_details.py +108 -23
- oci/os_management_hub/models/create_lifecycle_profile_details.py +22 -4
- oci/os_management_hub/models/create_lifecycle_stage_details.py +5 -7
- oci/os_management_hub/models/create_managed_instance_group_details.py +181 -24
- oci/os_management_hub/models/create_management_station_details.py +13 -9
- oci/os_management_hub/models/create_mirror_configuration_details.py +9 -9
- oci/os_management_hub/models/create_profile_details.py +86 -12
- oci/os_management_hub/models/create_proxy_configuration_details.py +9 -9
- oci/os_management_hub/models/create_scheduled_job_details.py +192 -35
- oci/os_management_hub/models/create_software_source_details.py +18 -10
- oci/os_management_hub/models/create_software_source_profile_details.py +55 -13
- oci/os_management_hub/models/create_station_profile_details.py +48 -10
- oci/os_management_hub/models/create_vendor_software_source_details.py +121 -0
- oci/os_management_hub/models/create_versioned_custom_software_source_details.py +96 -3
- oci/os_management_hub/models/custom_software_source.py +120 -10
- oci/os_management_hub/models/custom_software_source_filter.py +1 -1
- oci/os_management_hub/models/custom_software_source_summary.py +20 -5
- oci/os_management_hub/models/detach_managed_instances_from_managed_instance_group_details.py +8 -4
- oci/os_management_hub/models/detach_software_sources_from_managed_instance_details.py +1 -1
- oci/os_management_hub/models/detach_software_sources_from_managed_instance_group_details.py +8 -4
- oci/os_management_hub/models/disable_module_stream_on_managed_instance_details.py +1 -1
- oci/os_management_hub/models/disable_module_stream_on_managed_instance_group_details.py +39 -4
- oci/os_management_hub/models/enable_module_stream_on_managed_instance_details.py +1 -1
- oci/os_management_hub/models/enable_module_stream_on_managed_instance_group_details.py +39 -4
- oci/os_management_hub/models/entitlement_collection.py +3 -3
- oci/os_management_hub/models/entitlement_summary.py +9 -5
- oci/os_management_hub/models/erratum.py +60 -13
- oci/os_management_hub/models/erratum_collection.py +3 -3
- oci/os_management_hub/models/erratum_summary.py +60 -13
- oci/os_management_hub/models/event.py +714 -0
- oci/os_management_hub/models/event_collection.py +72 -0
- oci/os_management_hub/models/event_content.py +113 -0
- oci/os_management_hub/models/event_summary.py +573 -0
- oci/os_management_hub/models/exploit_attempt_additional_details.py +72 -0
- oci/os_management_hub/models/exploit_attempt_event.py +184 -0
- oci/os_management_hub/models/exploit_attempt_event_content.py +113 -0
- oci/os_management_hub/models/exploit_attempt_event_data.py +126 -0
- oci/os_management_hub/models/group_profile.py +26 -4
- oci/os_management_hub/models/id.py +9 -5
- oci/os_management_hub/models/install_all_windows_updates_on_managed_instances_in_compartment_details.py +165 -0
- oci/os_management_hub/models/install_module_stream_profile_on_managed_instance_details.py +1 -1
- oci/os_management_hub/models/install_module_stream_profile_on_managed_instance_group_details.py +39 -4
- oci/os_management_hub/models/install_packages_on_managed_instance_details.py +1 -1
- oci/os_management_hub/models/install_packages_on_managed_instance_group_details.py +1 -1
- oci/os_management_hub/models/install_windows_updates_on_managed_instance_details.py +165 -0
- oci/os_management_hub/models/install_windows_updates_on_managed_instance_group_details.py +130 -0
- oci/os_management_hub/models/installed_package_collection.py +1 -1
- oci/os_management_hub/models/installed_package_summary.py +3 -5
- oci/os_management_hub/models/installed_windows_update_collection.py +72 -0
- oci/os_management_hub/models/installed_windows_update_summary.py +160 -0
- oci/os_management_hub/models/kernel_crash_event.py +184 -0
- oci/os_management_hub/models/kernel_event_additional_details.py +68 -0
- oci/os_management_hub/models/kernel_event_content.py +183 -0
- oci/os_management_hub/models/kernel_event_data.py +219 -0
- oci/os_management_hub/models/kernel_oops_event.py +184 -0
- oci/os_management_hub/models/ksplice_update_event.py +184 -0
- oci/os_management_hub/models/ksplice_update_event_data.py +162 -0
- oci/os_management_hub/models/lifecycle_environment.py +132 -29
- oci/os_management_hub/models/lifecycle_environment_collection.py +1 -1
- oci/os_management_hub/models/lifecycle_environment_details.py +7 -3
- oci/os_management_hub/models/lifecycle_environment_summary.py +125 -26
- oci/os_management_hub/models/lifecycle_profile.py +26 -4
- oci/os_management_hub/models/lifecycle_stage.py +131 -30
- oci/os_management_hub/models/lifecycle_stage_collection.py +1 -1
- oci/os_management_hub/models/lifecycle_stage_details.py +7 -3
- oci/os_management_hub/models/lifecycle_stage_summary.py +134 -33
- oci/os_management_hub/models/manage_module_streams_on_managed_instance_details.py +16 -8
- oci/os_management_hub/models/managed_instance.py +238 -70
- oci/os_management_hub/models/managed_instance_analytic_collection.py +3 -3
- oci/os_management_hub/models/managed_instance_analytic_summary.py +19 -3
- oci/os_management_hub/models/managed_instance_collection.py +1 -1
- oci/os_management_hub/models/managed_instance_details.py +7 -3
- oci/os_management_hub/models/managed_instance_erratum_summary.py +11 -13
- oci/os_management_hub/models/managed_instance_erratum_summary_collection.py +1 -1
- oci/os_management_hub/models/managed_instance_group.py +227 -27
- oci/os_management_hub/models/managed_instance_group_available_module_collection.py +3 -3
- oci/os_management_hub/models/managed_instance_group_available_module_summary.py +9 -5
- oci/os_management_hub/models/managed_instance_group_available_package_collection.py +1 -1
- oci/os_management_hub/models/managed_instance_group_available_package_summary.py +7 -7
- oci/os_management_hub/models/managed_instance_group_collection.py +1 -1
- oci/os_management_hub/models/managed_instance_group_details.py +9 -5
- oci/os_management_hub/models/managed_instance_group_installed_package_collection.py +1 -1
- oci/os_management_hub/models/managed_instance_group_installed_package_summary.py +1 -1
- oci/os_management_hub/models/managed_instance_group_module_collection.py +1 -2
- oci/os_management_hub/models/managed_instance_group_module_summary.py +11 -7
- oci/os_management_hub/models/managed_instance_group_summary.py +210 -22
- oci/os_management_hub/models/managed_instance_module_collection.py +1 -2
- oci/os_management_hub/models/managed_instance_module_summary.py +7 -3
- oci/os_management_hub/models/managed_instance_summary.py +169 -32
- oci/os_management_hub/models/management_station.py +74 -27
- oci/os_management_hub/models/management_station_collection.py +3 -3
- oci/os_management_hub/models/management_station_details.py +13 -5
- oci/os_management_hub/models/management_station_event.py +184 -0
- oci/os_management_hub/models/management_station_event_data.py +166 -0
- oci/os_management_hub/models/management_station_summary.py +97 -26
- oci/os_management_hub/models/mirror_configuration.py +9 -9
- oci/os_management_hub/models/mirror_summary.py +23 -3
- oci/os_management_hub/models/mirror_sync_status.py +11 -11
- oci/os_management_hub/models/module_collection.py +3 -3
- oci/os_management_hub/models/module_stream.py +7 -3
- oci/os_management_hub/models/module_stream_collection.py +3 -3
- oci/os_management_hub/models/module_stream_details.py +38 -3
- oci/os_management_hub/models/module_stream_details_body.py +1 -1
- oci/os_management_hub/models/module_stream_profile.py +1 -1
- oci/os_management_hub/models/module_stream_profile_collection.py +3 -3
- oci/os_management_hub/models/module_stream_profile_details.py +38 -3
- oci/os_management_hub/models/module_stream_profile_details_body.py +1 -1
- oci/os_management_hub/models/module_stream_profile_filter.py +3 -3
- oci/os_management_hub/models/module_stream_profile_summary.py +3 -3
- oci/os_management_hub/models/module_stream_summary.py +7 -3
- oci/os_management_hub/models/module_summary.py +7 -3
- oci/os_management_hub/models/package_filter.py +3 -3
- oci/os_management_hub/models/package_group.py +9 -9
- oci/os_management_hub/models/package_group_collection.py +1 -1
- oci/os_management_hub/models/package_group_filter.py +3 -3
- oci/os_management_hub/models/package_group_summary.py +7 -7
- oci/os_management_hub/models/package_name_summary.py +7 -7
- oci/os_management_hub/models/package_summary.py +5 -5
- oci/os_management_hub/models/profile.py +189 -24
- oci/os_management_hub/models/profile_summary.py +157 -24
- oci/os_management_hub/models/promote_software_source_to_lifecycle_stage_details.py +1 -22
- oci/os_management_hub/models/proxy_configuration.py +9 -9
- oci/os_management_hub/models/remove_module_stream_profile_from_managed_instance_details.py +1 -1
- oci/os_management_hub/models/remove_module_stream_profile_from_managed_instance_group_details.py +39 -4
- oci/os_management_hub/models/remove_packages_from_managed_instance_details.py +1 -1
- oci/os_management_hub/models/remove_packages_from_managed_instance_group_details.py +1 -1
- oci/os_management_hub/models/scheduled_job.py +216 -39
- oci/os_management_hub/models/scheduled_job_collection.py +1 -1
- oci/os_management_hub/models/scheduled_job_operation.py +73 -8
- oci/os_management_hub/models/scheduled_job_summary.py +223 -48
- oci/os_management_hub/models/search_software_source_module_streams_details.py +7 -3
- oci/os_management_hub/models/search_software_source_modules_details.py +9 -5
- oci/os_management_hub/models/search_software_source_package_groups_details.py +9 -5
- oci/os_management_hub/models/software_package.py +80 -9
- oci/os_management_hub/models/software_package_collection.py +1 -1
- oci/os_management_hub/models/software_package_dependency.py +1 -1
- oci/os_management_hub/models/software_package_file.py +2 -4
- oci/os_management_hub/models/software_package_summary.py +74 -7
- oci/os_management_hub/models/software_packages_details.py +1 -1
- oci/os_management_hub/models/software_source.py +154 -32
- oci/os_management_hub/models/software_source_availability.py +76 -11
- oci/os_management_hub/models/software_source_collection.py +3 -3
- oci/os_management_hub/models/software_source_details.py +40 -5
- oci/os_management_hub/models/software_source_event.py +184 -0
- oci/os_management_hub/models/software_source_event_data.py +190 -0
- oci/os_management_hub/models/software_source_profile.py +26 -4
- oci/os_management_hub/models/software_source_summary.py +149 -33
- oci/os_management_hub/models/software_source_vendor_collection.py +3 -3
- oci/os_management_hub/models/software_source_vendor_summary.py +35 -11
- oci/os_management_hub/models/software_update_event.py +184 -0
- oci/os_management_hub/models/software_update_event_data.py +186 -0
- oci/os_management_hub/models/station_health.py +119 -0
- oci/os_management_hub/models/station_profile.py +26 -4
- oci/os_management_hub/models/switch_module_stream_on_managed_instance_details.py +38 -3
- oci/os_management_hub/models/switch_module_stream_on_managed_instance_group_details.py +165 -0
- oci/os_management_hub/models/system_details.py +326 -0
- oci/os_management_hub/models/updatable_autonomous_settings.py +72 -0
- oci/os_management_hub/models/updatable_package_collection.py +1 -1
- oci/os_management_hub/models/updatable_package_summary.py +7 -7
- oci/os_management_hub/models/update_all_packages_on_managed_instance_group_details.py +1 -1
- oci/os_management_hub/models/update_all_packages_on_managed_instances_in_compartment_details.py +9 -5
- oci/os_management_hub/models/update_custom_software_source_details.py +38 -7
- oci/os_management_hub/models/update_event_details.py +119 -0
- oci/os_management_hub/models/update_lifecycle_environment_details.py +5 -5
- oci/os_management_hub/models/update_lifecycle_stage_details.py +9 -5
- oci/os_management_hub/models/update_managed_instance_details.py +108 -7
- oci/os_management_hub/models/update_managed_instance_group_details.py +67 -5
- oci/os_management_hub/models/update_management_station_details.py +7 -7
- oci/os_management_hub/models/update_mirror_configuration_details.py +9 -9
- oci/os_management_hub/models/update_packages_on_managed_instance_details.py +3 -3
- oci/os_management_hub/models/update_profile_details.py +35 -4
- oci/os_management_hub/models/update_proxy_configuration_details.py +9 -9
- oci/os_management_hub/models/update_scheduled_job_details.py +74 -15
- oci/os_management_hub/models/update_software_source_details.py +15 -7
- oci/os_management_hub/models/update_vendor_software_source_details.py +1 -1
- oci/os_management_hub/models/update_versioned_custom_software_source_details.py +86 -0
- oci/os_management_hub/models/update_work_request_details.py +1 -1
- oci/os_management_hub/models/vendor_software_source.py +97 -9
- oci/os_management_hub/models/vendor_software_source_summary.py +59 -8
- oci/os_management_hub/models/versioned_custom_software_source.py +116 -8
- oci/os_management_hub/models/versioned_custom_software_source_summary.py +20 -5
- oci/os_management_hub/models/vmcore_details.py +103 -0
- oci/os_management_hub/models/windows_standalone_profile.py +168 -0
- oci/os_management_hub/models/windows_update.py +362 -0
- oci/os_management_hub/models/windows_update_collection.py +73 -0
- oci/os_management_hub/models/windows_update_summary.py +222 -0
- oci/os_management_hub/models/work_request.py +348 -40
- oci/os_management_hub/models/work_request_details.py +5 -5
- oci/os_management_hub/models/work_request_error.py +6 -2
- oci/os_management_hub/models/work_request_event_data_additional_details.py +111 -0
- oci/os_management_hub/models/work_request_log_entry.py +6 -2
- oci/os_management_hub/models/work_request_management_station_details.py +2 -2
- oci/os_management_hub/models/work_request_summary.py +147 -19
- oci/os_management_hub/models/work_request_summary_collection.py +2 -2
- oci/os_management_hub/onboarding_client.py +171 -25
- oci/os_management_hub/onboarding_client_composite_operations.py +7 -3
- oci/os_management_hub/reporting_managed_instance_client.py +217 -60
- oci/os_management_hub/scheduled_job_client.py +214 -38
- oci/os_management_hub/scheduled_job_client_composite_operations.py +8 -4
- oci/os_management_hub/software_source_client.py +971 -89
- oci/os_management_hub/software_source_client_composite_operations.py +50 -2
- oci/os_management_hub/work_request_client.py +61 -18
- 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 +23 -23
- oci/redis/models/create_redis_cluster_details.py +31 -0
- oci/redis/models/redis_cluster.py +31 -0
- oci/redis/models/redis_cluster_summary.py +31 -0
- oci/redis/models/update_redis_cluster_details.py +31 -0
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- 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/models/__init__.py +12 -0
- oci/usage_api/models/create_email_recipients_group_details.py +103 -0
- oci/usage_api/models/email_recipient.py +181 -0
- oci/usage_api/models/email_recipients_group.py +181 -0
- oci/usage_api/models/email_recipients_group_collection.py +72 -0
- oci/usage_api/models/email_recipients_group_summary.py +272 -0
- oci/usage_api/models/update_email_recipients_group_details.py +72 -0
- oci/usage_api/usageapi_client.py +656 -34
- oci/usage_api/usageapi_client_composite_operations.py +96 -0
- 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.125.2.dist-info → oci-2.126.0.dist-info}/METADATA +1 -1
- {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/RECORD +880 -764
- oci/application_migration/application_migration_client.py +0 -2489
- oci/application_migration/application_migration_client_composite_operations.py +0 -419
- oci/application_migration/models/__init__.py +0 -84
- oci/application_migration/models/authorization_details.py +0 -130
- oci/application_migration/models/configuration_field.py +0 -291
- oci/application_migration/models/create_migration_details.py +0 -464
- oci/application_migration/models/create_source_details.py +0 -272
- oci/application_migration/models/discovery_details.py +0 -141
- oci/application_migration/models/ics_discovery_details.py +0 -114
- oci/application_migration/models/import_manifest.py +0 -227
- oci/application_migration/models/import_source_details.py +0 -171
- oci/application_migration/models/internal_authorization_details.py +0 -113
- oci/application_migration/models/internal_source_details.py +0 -82
- oci/application_migration/models/jcs_discovery_details.py +0 -115
- oci/application_migration/models/migration.py +0 -731
- oci/application_migration/models/migration_summary.py +0 -572
- oci/application_migration/models/oac_discovery_details.py +0 -113
- oci/application_migration/models/occ_authorization_details.py +0 -113
- oci/application_migration/models/occ_source_details.py +0 -86
- oci/application_migration/models/ocic_authorization_details.py +0 -113
- oci/application_migration/models/ocic_authorization_token_details.py +0 -113
- oci/application_migration/models/ocic_source_details.py +0 -121
- oci/application_migration/models/oic_discovery_details.py +0 -114
- oci/application_migration/models/pcs_discovery_details.py +0 -114
- oci/application_migration/models/resource_field.py +0 -165
- oci/application_migration/models/soacs_discovery_details.py +0 -115
- oci/application_migration/models/source.py +0 -407
- oci/application_migration/models/source_application.py +0 -232
- oci/application_migration/models/source_application_summary.py +0 -233
- oci/application_migration/models/source_details.py +0 -137
- oci/application_migration/models/source_summary.py +0 -431
- oci/application_migration/models/update_migration_details.py +0 -309
- oci/application_migration/models/update_source_details.py +0 -232
- {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/WHEEL +0 -0
- {oci-2.125.2.dist-info → oci-2.126.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1115 @@
|
|
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: 20220901
|
6
|
+
|
7
|
+
from __future__ import absolute_import
|
8
|
+
|
9
|
+
from oci._vendor import requests # noqa: F401
|
10
|
+
from oci._vendor import six
|
11
|
+
|
12
|
+
from oci import retry, circuit_breaker # noqa: F401
|
13
|
+
from oci.base_client import BaseClient
|
14
|
+
from oci.config import get_config_value_or_default, validate_config
|
15
|
+
from oci.signer import Signer
|
16
|
+
from oci.util import Sentinel, get_signer_from_authentication_type, AUTHENTICATION_TYPE_FIELD_NAME
|
17
|
+
from oci.exceptions import InvalidAlloyConfig
|
18
|
+
from oci.alloy import OCI_SDK_ENABLED_SERVICES_SET
|
19
|
+
from .models import os_management_hub_type_mapping
|
20
|
+
missing = Sentinel("Missing")
|
21
|
+
|
22
|
+
|
23
|
+
class EventClient(object):
|
24
|
+
"""
|
25
|
+
Use the OS Management Hub API to manage and monitor updates and patches for instances in OCI, your private data center, or 3rd-party clouds.
|
26
|
+
For more information, see [Overview of OS Management Hub](https://docs.cloud.oracle.com/iaas/osmh/doc/overview.htm).
|
27
|
+
"""
|
28
|
+
|
29
|
+
def __init__(self, config, **kwargs):
|
30
|
+
"""
|
31
|
+
Creates a new service client
|
32
|
+
|
33
|
+
:param dict config:
|
34
|
+
Configuration keys and values as per `SDK and Tool Configuration <https://docs.cloud.oracle.com/Content/API/Concepts/sdkconfig.htm>`__.
|
35
|
+
The :py:meth:`~oci.config.from_file` method can be used to load configuration from a file. Alternatively, a ``dict`` can be passed. You can validate_config
|
36
|
+
the dict using :py:meth:`~oci.config.validate_config`
|
37
|
+
|
38
|
+
:param str service_endpoint: (optional)
|
39
|
+
The endpoint of the service to call using this client. For example ``https://iaas.us-ashburn-1.oraclecloud.com``. If this keyword argument is
|
40
|
+
not provided then it will be derived using the region in the config parameter. You should only provide this keyword argument if you have an explicit
|
41
|
+
need to specify a service endpoint.
|
42
|
+
|
43
|
+
:param timeout: (optional)
|
44
|
+
The connection and read timeouts for the client. The default values are connection timeout 10 seconds and read timeout 60 seconds. This keyword argument can be provided
|
45
|
+
as a single float, in which case the value provided is used for both the read and connection timeouts, or as a tuple of two floats. If
|
46
|
+
a tuple is provided then the first value is used as the connection timeout and the second value as the read timeout.
|
47
|
+
:type timeout: float or tuple(float, float)
|
48
|
+
|
49
|
+
:param signer: (optional)
|
50
|
+
The signer to use when signing requests made by the service client. The default is to use a :py:class:`~oci.signer.Signer` based on the values
|
51
|
+
provided in the config parameter.
|
52
|
+
|
53
|
+
One use case for this parameter is for `Instance Principals authentication <https://docs.cloud.oracle.com/Content/Identity/Tasks/callingservicesfrominstances.htm>`__
|
54
|
+
by passing an instance of :py:class:`~oci.auth.signers.InstancePrincipalsSecurityTokenSigner` as the value for this keyword argument
|
55
|
+
:type signer: :py:class:`~oci.signer.AbstractBaseSigner`
|
56
|
+
|
57
|
+
:param obj retry_strategy: (optional)
|
58
|
+
A retry strategy to apply to all calls made by this service client (i.e. at the client level). There is no retry strategy applied by default.
|
59
|
+
Retry strategies can also be applied at the operation level by passing a ``retry_strategy`` keyword argument as part of calling the operation.
|
60
|
+
Any value provided at the operation level will override whatever is specified at the client level.
|
61
|
+
|
62
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. A convenience :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY`
|
63
|
+
is also available. The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
64
|
+
|
65
|
+
:param obj circuit_breaker_strategy: (optional)
|
66
|
+
A circuit breaker strategy to apply to all calls made by this service client (i.e. at the client level).
|
67
|
+
This client uses :py:data:`~oci.circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY` as default if no circuit breaker strategy is provided.
|
68
|
+
The specifics of circuit breaker strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/circuit_breakers.html>`__.
|
69
|
+
|
70
|
+
:param function circuit_breaker_callback: (optional)
|
71
|
+
Callback function to receive any exceptions triggerred by the circuit breaker.
|
72
|
+
|
73
|
+
:param bool client_level_realm_specific_endpoint_template_enabled: (optional)
|
74
|
+
A boolean flag to indicate whether or not this client should be created with realm specific endpoint template enabled or disable. By default, this will be set as None.
|
75
|
+
|
76
|
+
:param allow_control_chars: (optional)
|
77
|
+
allow_control_chars is a boolean to indicate whether or not this client should allow control characters in the response object. By default, the client will not
|
78
|
+
allow control characters to be in the response object.
|
79
|
+
"""
|
80
|
+
if not OCI_SDK_ENABLED_SERVICES_SET.is_service_enabled("os_management_hub"):
|
81
|
+
raise InvalidAlloyConfig("The Alloy configuration has disabled this service, this behavior is controlled by OCI_SDK_ENABLED_SERVICES_SET variable. Please check if your local alloy-config file configured the service you're targeting or contact the cloud provider on the availability of this service")
|
82
|
+
|
83
|
+
validate_config(config, signer=kwargs.get('signer'))
|
84
|
+
if 'signer' in kwargs:
|
85
|
+
signer = kwargs['signer']
|
86
|
+
|
87
|
+
elif AUTHENTICATION_TYPE_FIELD_NAME in config:
|
88
|
+
signer = get_signer_from_authentication_type(config)
|
89
|
+
|
90
|
+
else:
|
91
|
+
signer = Signer(
|
92
|
+
tenancy=config["tenancy"],
|
93
|
+
user=config["user"],
|
94
|
+
fingerprint=config["fingerprint"],
|
95
|
+
private_key_file_location=config.get("key_file"),
|
96
|
+
pass_phrase=get_config_value_or_default(config, "pass_phrase"),
|
97
|
+
private_key_content=config.get("key_content")
|
98
|
+
)
|
99
|
+
|
100
|
+
base_client_init_kwargs = {
|
101
|
+
'regional_client': True,
|
102
|
+
'service_endpoint': kwargs.get('service_endpoint'),
|
103
|
+
'base_path': '/20220901',
|
104
|
+
'service_endpoint_template': 'https://osmh.{region}.oci.{secondLevelDomain}',
|
105
|
+
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
106
|
+
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
107
|
+
'circuit_breaker_strategy': kwargs.get('circuit_breaker_strategy', circuit_breaker.GLOBAL_CIRCUIT_BREAKER_STRATEGY),
|
108
|
+
'client_level_realm_specific_endpoint_template_enabled': kwargs.get('client_level_realm_specific_endpoint_template_enabled')
|
109
|
+
}
|
110
|
+
if 'timeout' in kwargs:
|
111
|
+
base_client_init_kwargs['timeout'] = kwargs.get('timeout')
|
112
|
+
if base_client_init_kwargs.get('circuit_breaker_strategy') is None:
|
113
|
+
base_client_init_kwargs['circuit_breaker_strategy'] = circuit_breaker.DEFAULT_CIRCUIT_BREAKER_STRATEGY
|
114
|
+
if 'allow_control_chars' in kwargs:
|
115
|
+
base_client_init_kwargs['allow_control_chars'] = kwargs.get('allow_control_chars')
|
116
|
+
self.base_client = BaseClient("event", config, signer, os_management_hub_type_mapping, **base_client_init_kwargs)
|
117
|
+
self.retry_strategy = kwargs.get('retry_strategy')
|
118
|
+
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
119
|
+
|
120
|
+
def change_event_compartment(self, change_event_compartment_details, event_id, **kwargs):
|
121
|
+
"""
|
122
|
+
Moves an event into a different compartment within the same tenancy. For information about moving resources between
|
123
|
+
compartments, see `Moving Resources to a Different Compartment`__.
|
124
|
+
|
125
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
|
126
|
+
|
127
|
+
|
128
|
+
:param oci.os_management_hub.models.ChangeEventCompartmentDetails change_event_compartment_details: (required)
|
129
|
+
Specifies the compartment to move the event to.
|
130
|
+
|
131
|
+
:param str event_id: (required)
|
132
|
+
The `OCID`__ of the event.
|
133
|
+
|
134
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
135
|
+
|
136
|
+
:param str if_match: (optional)
|
137
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
138
|
+
for a resource, set the `if-match` parameter to the value of the
|
139
|
+
etag from a previous GET or POST response for that resource.
|
140
|
+
The resource will be updated or deleted only if the etag you
|
141
|
+
provide matches the resource's current etag value.
|
142
|
+
|
143
|
+
:param str opc_request_id: (optional)
|
144
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
145
|
+
|
146
|
+
:param str opc_retry_token: (optional)
|
147
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
148
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
149
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
150
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
151
|
+
might be rejected.
|
152
|
+
|
153
|
+
:param obj retry_strategy: (optional)
|
154
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
155
|
+
|
156
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
157
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
158
|
+
|
159
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
160
|
+
|
161
|
+
:param bool allow_control_chars: (optional)
|
162
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
163
|
+
By default, the response will not allow control characters in strings
|
164
|
+
|
165
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
166
|
+
:rtype: :class:`~oci.response.Response`
|
167
|
+
|
168
|
+
:example:
|
169
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/change_event_compartment.py.html>`__ to see an example of how to use change_event_compartment API.
|
170
|
+
"""
|
171
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
172
|
+
required_arguments = ['eventId']
|
173
|
+
resource_path = "/events/{eventId}/actions/changeCompartment"
|
174
|
+
method = "POST"
|
175
|
+
operation_name = "change_event_compartment"
|
176
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/ChangeEventCompartment"
|
177
|
+
|
178
|
+
# Don't accept unknown kwargs
|
179
|
+
expected_kwargs = [
|
180
|
+
"allow_control_chars",
|
181
|
+
"retry_strategy",
|
182
|
+
"if_match",
|
183
|
+
"opc_request_id",
|
184
|
+
"opc_retry_token"
|
185
|
+
]
|
186
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
187
|
+
if extra_kwargs:
|
188
|
+
raise ValueError(
|
189
|
+
f"change_event_compartment got unknown kwargs: {extra_kwargs!r}")
|
190
|
+
|
191
|
+
path_params = {
|
192
|
+
"eventId": event_id
|
193
|
+
}
|
194
|
+
|
195
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
196
|
+
|
197
|
+
for (k, v) in six.iteritems(path_params):
|
198
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
199
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
200
|
+
|
201
|
+
header_params = {
|
202
|
+
"accept": "application/json",
|
203
|
+
"content-type": "application/json",
|
204
|
+
"if-match": kwargs.get("if_match", missing),
|
205
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
206
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
207
|
+
}
|
208
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
209
|
+
|
210
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
211
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
212
|
+
client_retry_strategy=self.retry_strategy
|
213
|
+
)
|
214
|
+
if retry_strategy is None:
|
215
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
216
|
+
|
217
|
+
if retry_strategy:
|
218
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
219
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
220
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
221
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
222
|
+
return retry_strategy.make_retrying_call(
|
223
|
+
self.base_client.call_api,
|
224
|
+
resource_path=resource_path,
|
225
|
+
method=method,
|
226
|
+
path_params=path_params,
|
227
|
+
header_params=header_params,
|
228
|
+
body=change_event_compartment_details,
|
229
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
230
|
+
operation_name=operation_name,
|
231
|
+
api_reference_link=api_reference_link,
|
232
|
+
required_arguments=required_arguments)
|
233
|
+
else:
|
234
|
+
return self.base_client.call_api(
|
235
|
+
resource_path=resource_path,
|
236
|
+
method=method,
|
237
|
+
path_params=path_params,
|
238
|
+
header_params=header_params,
|
239
|
+
body=change_event_compartment_details,
|
240
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
241
|
+
operation_name=operation_name,
|
242
|
+
api_reference_link=api_reference_link,
|
243
|
+
required_arguments=required_arguments)
|
244
|
+
|
245
|
+
def delete_event(self, event_id, **kwargs):
|
246
|
+
"""
|
247
|
+
Deletes the specified event.
|
248
|
+
|
249
|
+
|
250
|
+
:param str event_id: (required)
|
251
|
+
The `OCID`__ of the event.
|
252
|
+
|
253
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
254
|
+
|
255
|
+
:param str if_match: (optional)
|
256
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
257
|
+
for a resource, set the `if-match` parameter to the value of the
|
258
|
+
etag from a previous GET or POST response for that resource.
|
259
|
+
The resource will be updated or deleted only if the etag you
|
260
|
+
provide matches the resource's current etag value.
|
261
|
+
|
262
|
+
:param str opc_request_id: (optional)
|
263
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
264
|
+
|
265
|
+
:param obj retry_strategy: (optional)
|
266
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
267
|
+
|
268
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
269
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
270
|
+
|
271
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
272
|
+
|
273
|
+
:param bool allow_control_chars: (optional)
|
274
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
275
|
+
By default, the response will not allow control characters in strings
|
276
|
+
|
277
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
278
|
+
:rtype: :class:`~oci.response.Response`
|
279
|
+
|
280
|
+
:example:
|
281
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/delete_event.py.html>`__ to see an example of how to use delete_event API.
|
282
|
+
"""
|
283
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
284
|
+
required_arguments = ['eventId']
|
285
|
+
resource_path = "/events/{eventId}"
|
286
|
+
method = "DELETE"
|
287
|
+
operation_name = "delete_event"
|
288
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/DeleteEvent"
|
289
|
+
|
290
|
+
# Don't accept unknown kwargs
|
291
|
+
expected_kwargs = [
|
292
|
+
"allow_control_chars",
|
293
|
+
"retry_strategy",
|
294
|
+
"if_match",
|
295
|
+
"opc_request_id"
|
296
|
+
]
|
297
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
298
|
+
if extra_kwargs:
|
299
|
+
raise ValueError(
|
300
|
+
f"delete_event got unknown kwargs: {extra_kwargs!r}")
|
301
|
+
|
302
|
+
path_params = {
|
303
|
+
"eventId": event_id
|
304
|
+
}
|
305
|
+
|
306
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
307
|
+
|
308
|
+
for (k, v) in six.iteritems(path_params):
|
309
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
310
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
311
|
+
|
312
|
+
header_params = {
|
313
|
+
"accept": "application/json",
|
314
|
+
"content-type": "application/json",
|
315
|
+
"if-match": kwargs.get("if_match", missing),
|
316
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
317
|
+
}
|
318
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
319
|
+
|
320
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
321
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
322
|
+
client_retry_strategy=self.retry_strategy
|
323
|
+
)
|
324
|
+
if retry_strategy is None:
|
325
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
326
|
+
|
327
|
+
if retry_strategy:
|
328
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
329
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
330
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
331
|
+
return retry_strategy.make_retrying_call(
|
332
|
+
self.base_client.call_api,
|
333
|
+
resource_path=resource_path,
|
334
|
+
method=method,
|
335
|
+
path_params=path_params,
|
336
|
+
header_params=header_params,
|
337
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
338
|
+
operation_name=operation_name,
|
339
|
+
api_reference_link=api_reference_link,
|
340
|
+
required_arguments=required_arguments)
|
341
|
+
else:
|
342
|
+
return self.base_client.call_api(
|
343
|
+
resource_path=resource_path,
|
344
|
+
method=method,
|
345
|
+
path_params=path_params,
|
346
|
+
header_params=header_params,
|
347
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
348
|
+
operation_name=operation_name,
|
349
|
+
api_reference_link=api_reference_link,
|
350
|
+
required_arguments=required_arguments)
|
351
|
+
|
352
|
+
def delete_event_content(self, event_id, **kwargs):
|
353
|
+
"""
|
354
|
+
Deletes an event content ZIP archive from the service.
|
355
|
+
|
356
|
+
|
357
|
+
:param str event_id: (required)
|
358
|
+
The `OCID`__ of the event.
|
359
|
+
|
360
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
361
|
+
|
362
|
+
:param str opc_request_id: (optional)
|
363
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
364
|
+
|
365
|
+
:param str if_match: (optional)
|
366
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
367
|
+
for a resource, set the `if-match` parameter to the value of the
|
368
|
+
etag from a previous GET or POST response for that resource.
|
369
|
+
The resource will be updated or deleted only if the etag you
|
370
|
+
provide matches the resource's current etag value.
|
371
|
+
|
372
|
+
:param str opc_retry_token: (optional)
|
373
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
374
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
375
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
376
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
377
|
+
might be rejected.
|
378
|
+
|
379
|
+
:param obj retry_strategy: (optional)
|
380
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
381
|
+
|
382
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
383
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
384
|
+
|
385
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
386
|
+
|
387
|
+
:param bool allow_control_chars: (optional)
|
388
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
389
|
+
By default, the response will not allow control characters in strings
|
390
|
+
|
391
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
392
|
+
:rtype: :class:`~oci.response.Response`
|
393
|
+
|
394
|
+
:example:
|
395
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/delete_event_content.py.html>`__ to see an example of how to use delete_event_content API.
|
396
|
+
"""
|
397
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
398
|
+
required_arguments = ['eventId']
|
399
|
+
resource_path = "/events/{eventId}/content"
|
400
|
+
method = "DELETE"
|
401
|
+
operation_name = "delete_event_content"
|
402
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/DeleteEventContent"
|
403
|
+
|
404
|
+
# Don't accept unknown kwargs
|
405
|
+
expected_kwargs = [
|
406
|
+
"allow_control_chars",
|
407
|
+
"retry_strategy",
|
408
|
+
"opc_request_id",
|
409
|
+
"if_match",
|
410
|
+
"opc_retry_token"
|
411
|
+
]
|
412
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
413
|
+
if extra_kwargs:
|
414
|
+
raise ValueError(
|
415
|
+
f"delete_event_content got unknown kwargs: {extra_kwargs!r}")
|
416
|
+
|
417
|
+
path_params = {
|
418
|
+
"eventId": event_id
|
419
|
+
}
|
420
|
+
|
421
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
422
|
+
|
423
|
+
for (k, v) in six.iteritems(path_params):
|
424
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
425
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
426
|
+
|
427
|
+
header_params = {
|
428
|
+
"accept": "application/json",
|
429
|
+
"content-type": "application/json",
|
430
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
431
|
+
"if-match": kwargs.get("if_match", missing),
|
432
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
433
|
+
}
|
434
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
435
|
+
|
436
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
437
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
438
|
+
client_retry_strategy=self.retry_strategy
|
439
|
+
)
|
440
|
+
if retry_strategy is None:
|
441
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
442
|
+
|
443
|
+
if retry_strategy:
|
444
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
445
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
446
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
447
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
448
|
+
return retry_strategy.make_retrying_call(
|
449
|
+
self.base_client.call_api,
|
450
|
+
resource_path=resource_path,
|
451
|
+
method=method,
|
452
|
+
path_params=path_params,
|
453
|
+
header_params=header_params,
|
454
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
455
|
+
operation_name=operation_name,
|
456
|
+
api_reference_link=api_reference_link,
|
457
|
+
required_arguments=required_arguments)
|
458
|
+
else:
|
459
|
+
return self.base_client.call_api(
|
460
|
+
resource_path=resource_path,
|
461
|
+
method=method,
|
462
|
+
path_params=path_params,
|
463
|
+
header_params=header_params,
|
464
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
465
|
+
operation_name=operation_name,
|
466
|
+
api_reference_link=api_reference_link,
|
467
|
+
required_arguments=required_arguments)
|
468
|
+
|
469
|
+
def get_event(self, event_id, **kwargs):
|
470
|
+
"""
|
471
|
+
Returns information about the specified event.
|
472
|
+
|
473
|
+
|
474
|
+
:param str event_id: (required)
|
475
|
+
The `OCID`__ of the event.
|
476
|
+
|
477
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
478
|
+
|
479
|
+
:param str opc_request_id: (optional)
|
480
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
481
|
+
|
482
|
+
:param obj retry_strategy: (optional)
|
483
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
484
|
+
|
485
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
486
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
487
|
+
|
488
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
489
|
+
|
490
|
+
:param bool allow_control_chars: (optional)
|
491
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
492
|
+
By default, the response will not allow control characters in strings
|
493
|
+
|
494
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.Event`
|
495
|
+
:rtype: :class:`~oci.response.Response`
|
496
|
+
|
497
|
+
:example:
|
498
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/get_event.py.html>`__ to see an example of how to use get_event API.
|
499
|
+
"""
|
500
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
501
|
+
required_arguments = ['eventId']
|
502
|
+
resource_path = "/events/{eventId}"
|
503
|
+
method = "GET"
|
504
|
+
operation_name = "get_event"
|
505
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/GetEvent"
|
506
|
+
|
507
|
+
# Don't accept unknown kwargs
|
508
|
+
expected_kwargs = [
|
509
|
+
"allow_control_chars",
|
510
|
+
"retry_strategy",
|
511
|
+
"opc_request_id"
|
512
|
+
]
|
513
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
514
|
+
if extra_kwargs:
|
515
|
+
raise ValueError(
|
516
|
+
f"get_event got unknown kwargs: {extra_kwargs!r}")
|
517
|
+
|
518
|
+
path_params = {
|
519
|
+
"eventId": event_id
|
520
|
+
}
|
521
|
+
|
522
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
523
|
+
|
524
|
+
for (k, v) in six.iteritems(path_params):
|
525
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
526
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
527
|
+
|
528
|
+
header_params = {
|
529
|
+
"accept": "application/json",
|
530
|
+
"content-type": "application/json",
|
531
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
532
|
+
}
|
533
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
534
|
+
|
535
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
536
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
537
|
+
client_retry_strategy=self.retry_strategy
|
538
|
+
)
|
539
|
+
if retry_strategy is None:
|
540
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
541
|
+
|
542
|
+
if retry_strategy:
|
543
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
544
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
545
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
546
|
+
return retry_strategy.make_retrying_call(
|
547
|
+
self.base_client.call_api,
|
548
|
+
resource_path=resource_path,
|
549
|
+
method=method,
|
550
|
+
path_params=path_params,
|
551
|
+
header_params=header_params,
|
552
|
+
response_type="Event",
|
553
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
554
|
+
operation_name=operation_name,
|
555
|
+
api_reference_link=api_reference_link,
|
556
|
+
required_arguments=required_arguments)
|
557
|
+
else:
|
558
|
+
return self.base_client.call_api(
|
559
|
+
resource_path=resource_path,
|
560
|
+
method=method,
|
561
|
+
path_params=path_params,
|
562
|
+
header_params=header_params,
|
563
|
+
response_type="Event",
|
564
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
565
|
+
operation_name=operation_name,
|
566
|
+
api_reference_link=api_reference_link,
|
567
|
+
required_arguments=required_arguments)
|
568
|
+
|
569
|
+
def get_event_content(self, event_id, **kwargs):
|
570
|
+
"""
|
571
|
+
Returns a ZIP archive with additional information about an event. The archive content depends on the event type.
|
572
|
+
|
573
|
+
|
574
|
+
:param str event_id: (required)
|
575
|
+
The `OCID`__ of the event.
|
576
|
+
|
577
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
578
|
+
|
579
|
+
:param str opc_request_id: (optional)
|
580
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
581
|
+
|
582
|
+
:param obj retry_strategy: (optional)
|
583
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
584
|
+
|
585
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
586
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
587
|
+
|
588
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
589
|
+
|
590
|
+
:param bool allow_control_chars: (optional)
|
591
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
592
|
+
By default, the response will not allow control characters in strings
|
593
|
+
|
594
|
+
:return: A :class:`~oci.response.Response` object with data of type stream
|
595
|
+
:rtype: :class:`~oci.response.Response`
|
596
|
+
|
597
|
+
:example:
|
598
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/get_event_content.py.html>`__ to see an example of how to use get_event_content API.
|
599
|
+
"""
|
600
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
601
|
+
required_arguments = ['eventId']
|
602
|
+
resource_path = "/events/{eventId}/content"
|
603
|
+
method = "GET"
|
604
|
+
operation_name = "get_event_content"
|
605
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/GetEventContent"
|
606
|
+
|
607
|
+
# Don't accept unknown kwargs
|
608
|
+
expected_kwargs = [
|
609
|
+
"allow_control_chars",
|
610
|
+
"retry_strategy",
|
611
|
+
"opc_request_id"
|
612
|
+
]
|
613
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
614
|
+
if extra_kwargs:
|
615
|
+
raise ValueError(
|
616
|
+
f"get_event_content got unknown kwargs: {extra_kwargs!r}")
|
617
|
+
|
618
|
+
path_params = {
|
619
|
+
"eventId": event_id
|
620
|
+
}
|
621
|
+
|
622
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
623
|
+
|
624
|
+
for (k, v) in six.iteritems(path_params):
|
625
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
626
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
627
|
+
|
628
|
+
header_params = {
|
629
|
+
"accept": "application/octet-stream",
|
630
|
+
"content-type": "application/json",
|
631
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
632
|
+
}
|
633
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
634
|
+
|
635
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
636
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
637
|
+
client_retry_strategy=self.retry_strategy
|
638
|
+
)
|
639
|
+
if retry_strategy is None:
|
640
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
641
|
+
|
642
|
+
if retry_strategy:
|
643
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
644
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
645
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
646
|
+
return retry_strategy.make_retrying_call(
|
647
|
+
self.base_client.call_api,
|
648
|
+
resource_path=resource_path,
|
649
|
+
method=method,
|
650
|
+
path_params=path_params,
|
651
|
+
header_params=header_params,
|
652
|
+
response_type="stream",
|
653
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
654
|
+
operation_name=operation_name,
|
655
|
+
api_reference_link=api_reference_link,
|
656
|
+
required_arguments=required_arguments)
|
657
|
+
else:
|
658
|
+
return self.base_client.call_api(
|
659
|
+
resource_path=resource_path,
|
660
|
+
method=method,
|
661
|
+
path_params=path_params,
|
662
|
+
header_params=header_params,
|
663
|
+
response_type="stream",
|
664
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
665
|
+
operation_name=operation_name,
|
666
|
+
api_reference_link=api_reference_link,
|
667
|
+
required_arguments=required_arguments)
|
668
|
+
|
669
|
+
def import_event_content(self, event_id, **kwargs):
|
670
|
+
"""
|
671
|
+
Uploads an event content ZIP archive from an instance to the service.
|
672
|
+
|
673
|
+
|
674
|
+
:param str event_id: (required)
|
675
|
+
The `OCID`__ of the event.
|
676
|
+
|
677
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
678
|
+
|
679
|
+
:param str opc_request_id: (optional)
|
680
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
681
|
+
|
682
|
+
:param str if_match: (optional)
|
683
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
684
|
+
for a resource, set the `if-match` parameter to the value of the
|
685
|
+
etag from a previous GET or POST response for that resource.
|
686
|
+
The resource will be updated or deleted only if the etag you
|
687
|
+
provide matches the resource's current etag value.
|
688
|
+
|
689
|
+
:param str opc_retry_token: (optional)
|
690
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
691
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
692
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
693
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
694
|
+
might be rejected.
|
695
|
+
|
696
|
+
:param obj retry_strategy: (optional)
|
697
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
698
|
+
|
699
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
700
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
701
|
+
|
702
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
703
|
+
|
704
|
+
:param bool allow_control_chars: (optional)
|
705
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
706
|
+
By default, the response will not allow control characters in strings
|
707
|
+
|
708
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
709
|
+
:rtype: :class:`~oci.response.Response`
|
710
|
+
|
711
|
+
:example:
|
712
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/import_event_content.py.html>`__ to see an example of how to use import_event_content API.
|
713
|
+
"""
|
714
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
715
|
+
required_arguments = ['eventId']
|
716
|
+
resource_path = "/events/{eventId}/actions/importContent"
|
717
|
+
method = "POST"
|
718
|
+
operation_name = "import_event_content"
|
719
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/ImportEventContent"
|
720
|
+
|
721
|
+
# Don't accept unknown kwargs
|
722
|
+
expected_kwargs = [
|
723
|
+
"allow_control_chars",
|
724
|
+
"retry_strategy",
|
725
|
+
"opc_request_id",
|
726
|
+
"if_match",
|
727
|
+
"opc_retry_token"
|
728
|
+
]
|
729
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
730
|
+
if extra_kwargs:
|
731
|
+
raise ValueError(
|
732
|
+
f"import_event_content got unknown kwargs: {extra_kwargs!r}")
|
733
|
+
|
734
|
+
path_params = {
|
735
|
+
"eventId": event_id
|
736
|
+
}
|
737
|
+
|
738
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
739
|
+
|
740
|
+
for (k, v) in six.iteritems(path_params):
|
741
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
742
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
743
|
+
|
744
|
+
header_params = {
|
745
|
+
"accept": "application/json",
|
746
|
+
"content-type": "application/json",
|
747
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
748
|
+
"if-match": kwargs.get("if_match", missing),
|
749
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
750
|
+
}
|
751
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
752
|
+
|
753
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
754
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
755
|
+
client_retry_strategy=self.retry_strategy
|
756
|
+
)
|
757
|
+
if retry_strategy is None:
|
758
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
759
|
+
|
760
|
+
if retry_strategy:
|
761
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
762
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
763
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
764
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
765
|
+
return retry_strategy.make_retrying_call(
|
766
|
+
self.base_client.call_api,
|
767
|
+
resource_path=resource_path,
|
768
|
+
method=method,
|
769
|
+
path_params=path_params,
|
770
|
+
header_params=header_params,
|
771
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
772
|
+
operation_name=operation_name,
|
773
|
+
api_reference_link=api_reference_link,
|
774
|
+
required_arguments=required_arguments)
|
775
|
+
else:
|
776
|
+
return self.base_client.call_api(
|
777
|
+
resource_path=resource_path,
|
778
|
+
method=method,
|
779
|
+
path_params=path_params,
|
780
|
+
header_params=header_params,
|
781
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
782
|
+
operation_name=operation_name,
|
783
|
+
api_reference_link=api_reference_link,
|
784
|
+
required_arguments=required_arguments)
|
785
|
+
|
786
|
+
def list_events(self, **kwargs):
|
787
|
+
"""
|
788
|
+
Lists events that match the specified criteria, such as compartment, state, and event type.
|
789
|
+
|
790
|
+
|
791
|
+
:param str event_summary: (optional)
|
792
|
+
A filter to return only events whose summary matches the given value.
|
793
|
+
|
794
|
+
:param str event_summary_contains: (optional)
|
795
|
+
A filter to return only events with a summary that contains the value provided.
|
796
|
+
|
797
|
+
:param str id: (optional)
|
798
|
+
The `OCID`__ of the event.
|
799
|
+
|
800
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
801
|
+
|
802
|
+
:param str event_fingerprint: (optional)
|
803
|
+
The eventFingerprint of the KernelEventData.
|
804
|
+
|
805
|
+
:param str compartment_id: (optional)
|
806
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
807
|
+
|
808
|
+
:param str lifecycle_state: (optional)
|
809
|
+
A filter to return only events that match the state provided. The state value is case-insensitive.
|
810
|
+
|
811
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
|
812
|
+
|
813
|
+
:param str resource_id: (optional)
|
814
|
+
The `OCID`__ of the resource. This filter returns resources associated with the specified resource.
|
815
|
+
|
816
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
817
|
+
|
818
|
+
:param list[str] type: (optional)
|
819
|
+
A filter to return only resources whose type matches the given value.
|
820
|
+
|
821
|
+
Allowed values are: "KERNEL_OOPS", "KERNEL_CRASH", "EXPLOIT_ATTEMPT", "SOFTWARE_UPDATE", "KSPLICE_UPDATE", "SOFTWARE_SOURCE", "AGENT", "MANAGEMENT_STATION"
|
822
|
+
|
823
|
+
:param int limit: (optional)
|
824
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
825
|
+
For important details about how pagination works, see `List Pagination`__.
|
826
|
+
|
827
|
+
Example: `50`
|
828
|
+
|
829
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
830
|
+
|
831
|
+
:param str page: (optional)
|
832
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
833
|
+
For important details about how pagination works, see `List Pagination`__.
|
834
|
+
|
835
|
+
Example: `3`
|
836
|
+
|
837
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
838
|
+
|
839
|
+
:param datetime time_created_less_than: (optional)
|
840
|
+
A filter that returns events that occurred on or before the date provided.
|
841
|
+
Example: `2016-08-25T21:10:29.600Z`
|
842
|
+
|
843
|
+
:param datetime time_created_greater_than_or_equal_to: (optional)
|
844
|
+
A filter that returns events that occurred on or after the date provided.
|
845
|
+
Example: `2016-08-25T21:10:29.600Z`
|
846
|
+
|
847
|
+
:param str sort_order: (optional)
|
848
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
849
|
+
|
850
|
+
Allowed values are: "ASC", "DESC"
|
851
|
+
|
852
|
+
:param str sort_by: (optional)
|
853
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated, timeOccurredAt and timeUpdated is descending. Default order for eventSummary is ascending.
|
854
|
+
|
855
|
+
Allowed values are: "timeCreated", "timeOccurredAt", "timeUpdated", "eventSummary"
|
856
|
+
|
857
|
+
:param str opc_request_id: (optional)
|
858
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
859
|
+
|
860
|
+
:param bool is_managed_by_autonomous_linux: (optional)
|
861
|
+
Indicates whether to list only resources managed by the Autonomous Linux service.
|
862
|
+
|
863
|
+
:param obj retry_strategy: (optional)
|
864
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
865
|
+
|
866
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
867
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
868
|
+
|
869
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
870
|
+
|
871
|
+
:param bool allow_control_chars: (optional)
|
872
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
873
|
+
By default, the response will not allow control characters in strings
|
874
|
+
|
875
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.EventCollection`
|
876
|
+
:rtype: :class:`~oci.response.Response`
|
877
|
+
|
878
|
+
:example:
|
879
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_events.py.html>`__ to see an example of how to use list_events API.
|
880
|
+
"""
|
881
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
882
|
+
required_arguments = []
|
883
|
+
resource_path = "/events"
|
884
|
+
method = "GET"
|
885
|
+
operation_name = "list_events"
|
886
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/EventCollection/ListEvents"
|
887
|
+
|
888
|
+
# Don't accept unknown kwargs
|
889
|
+
expected_kwargs = [
|
890
|
+
"allow_control_chars",
|
891
|
+
"retry_strategy",
|
892
|
+
"event_summary",
|
893
|
+
"event_summary_contains",
|
894
|
+
"id",
|
895
|
+
"event_fingerprint",
|
896
|
+
"compartment_id",
|
897
|
+
"lifecycle_state",
|
898
|
+
"resource_id",
|
899
|
+
"type",
|
900
|
+
"limit",
|
901
|
+
"page",
|
902
|
+
"time_created_less_than",
|
903
|
+
"time_created_greater_than_or_equal_to",
|
904
|
+
"sort_order",
|
905
|
+
"sort_by",
|
906
|
+
"opc_request_id",
|
907
|
+
"is_managed_by_autonomous_linux"
|
908
|
+
]
|
909
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
910
|
+
if extra_kwargs:
|
911
|
+
raise ValueError(
|
912
|
+
f"list_events got unknown kwargs: {extra_kwargs!r}")
|
913
|
+
|
914
|
+
if 'lifecycle_state' in kwargs:
|
915
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
|
916
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
917
|
+
raise ValueError(
|
918
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
919
|
+
)
|
920
|
+
|
921
|
+
if 'type' in kwargs:
|
922
|
+
type_allowed_values = ["KERNEL_OOPS", "KERNEL_CRASH", "EXPLOIT_ATTEMPT", "SOFTWARE_UPDATE", "KSPLICE_UPDATE", "SOFTWARE_SOURCE", "AGENT", "MANAGEMENT_STATION"]
|
923
|
+
for type_item in kwargs['type']:
|
924
|
+
if type_item not in type_allowed_values:
|
925
|
+
raise ValueError(
|
926
|
+
f"Invalid value for `type`, must be one of { type_allowed_values }"
|
927
|
+
)
|
928
|
+
|
929
|
+
if 'sort_order' in kwargs:
|
930
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
931
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
932
|
+
raise ValueError(
|
933
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
934
|
+
)
|
935
|
+
|
936
|
+
if 'sort_by' in kwargs:
|
937
|
+
sort_by_allowed_values = ["timeCreated", "timeOccurredAt", "timeUpdated", "eventSummary"]
|
938
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
939
|
+
raise ValueError(
|
940
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
941
|
+
)
|
942
|
+
|
943
|
+
query_params = {
|
944
|
+
"eventSummary": kwargs.get("event_summary", missing),
|
945
|
+
"eventSummaryContains": kwargs.get("event_summary_contains", missing),
|
946
|
+
"id": kwargs.get("id", missing),
|
947
|
+
"eventFingerprint": kwargs.get("event_fingerprint", missing),
|
948
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
949
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
950
|
+
"resourceId": kwargs.get("resource_id", missing),
|
951
|
+
"type": self.base_client.generate_collection_format_param(kwargs.get("type", missing), 'multi'),
|
952
|
+
"limit": kwargs.get("limit", missing),
|
953
|
+
"page": kwargs.get("page", missing),
|
954
|
+
"timeCreatedLessThan": kwargs.get("time_created_less_than", missing),
|
955
|
+
"timeCreatedGreaterThanOrEqualTo": kwargs.get("time_created_greater_than_or_equal_to", missing),
|
956
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
957
|
+
"sortBy": kwargs.get("sort_by", missing),
|
958
|
+
"isManagedByAutonomousLinux": kwargs.get("is_managed_by_autonomous_linux", missing)
|
959
|
+
}
|
960
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
961
|
+
|
962
|
+
header_params = {
|
963
|
+
"accept": "application/json",
|
964
|
+
"content-type": "application/json",
|
965
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
966
|
+
}
|
967
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
968
|
+
|
969
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
970
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
971
|
+
client_retry_strategy=self.retry_strategy
|
972
|
+
)
|
973
|
+
if retry_strategy is None:
|
974
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
975
|
+
|
976
|
+
if retry_strategy:
|
977
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
978
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
979
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
980
|
+
return retry_strategy.make_retrying_call(
|
981
|
+
self.base_client.call_api,
|
982
|
+
resource_path=resource_path,
|
983
|
+
method=method,
|
984
|
+
query_params=query_params,
|
985
|
+
header_params=header_params,
|
986
|
+
response_type="EventCollection",
|
987
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
988
|
+
operation_name=operation_name,
|
989
|
+
api_reference_link=api_reference_link,
|
990
|
+
required_arguments=required_arguments)
|
991
|
+
else:
|
992
|
+
return self.base_client.call_api(
|
993
|
+
resource_path=resource_path,
|
994
|
+
method=method,
|
995
|
+
query_params=query_params,
|
996
|
+
header_params=header_params,
|
997
|
+
response_type="EventCollection",
|
998
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
999
|
+
operation_name=operation_name,
|
1000
|
+
api_reference_link=api_reference_link,
|
1001
|
+
required_arguments=required_arguments)
|
1002
|
+
|
1003
|
+
def update_event(self, event_id, update_event_details, **kwargs):
|
1004
|
+
"""
|
1005
|
+
Updates the tags for an event.
|
1006
|
+
|
1007
|
+
|
1008
|
+
:param str event_id: (required)
|
1009
|
+
The `OCID`__ of the event.
|
1010
|
+
|
1011
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1012
|
+
|
1013
|
+
:param oci.os_management_hub.models.UpdateEventDetails update_event_details: (required)
|
1014
|
+
Provides the information used to update the event tags.
|
1015
|
+
|
1016
|
+
:param str if_match: (optional)
|
1017
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1018
|
+
for a resource, set the `if-match` parameter to the value of the
|
1019
|
+
etag from a previous GET or POST response for that resource.
|
1020
|
+
The resource will be updated or deleted only if the etag you
|
1021
|
+
provide matches the resource's current etag value.
|
1022
|
+
|
1023
|
+
:param str opc_request_id: (optional)
|
1024
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1025
|
+
|
1026
|
+
:param obj retry_strategy: (optional)
|
1027
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1028
|
+
|
1029
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1030
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1031
|
+
|
1032
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1033
|
+
|
1034
|
+
:param bool allow_control_chars: (optional)
|
1035
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1036
|
+
By default, the response will not allow control characters in strings
|
1037
|
+
|
1038
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.Event`
|
1039
|
+
:rtype: :class:`~oci.response.Response`
|
1040
|
+
|
1041
|
+
:example:
|
1042
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/update_event.py.html>`__ to see an example of how to use update_event API.
|
1043
|
+
"""
|
1044
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1045
|
+
required_arguments = ['eventId']
|
1046
|
+
resource_path = "/events/{eventId}"
|
1047
|
+
method = "PUT"
|
1048
|
+
operation_name = "update_event"
|
1049
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/Event/UpdateEvent"
|
1050
|
+
|
1051
|
+
# Don't accept unknown kwargs
|
1052
|
+
expected_kwargs = [
|
1053
|
+
"allow_control_chars",
|
1054
|
+
"retry_strategy",
|
1055
|
+
"if_match",
|
1056
|
+
"opc_request_id"
|
1057
|
+
]
|
1058
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1059
|
+
if extra_kwargs:
|
1060
|
+
raise ValueError(
|
1061
|
+
f"update_event got unknown kwargs: {extra_kwargs!r}")
|
1062
|
+
|
1063
|
+
path_params = {
|
1064
|
+
"eventId": event_id
|
1065
|
+
}
|
1066
|
+
|
1067
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1068
|
+
|
1069
|
+
for (k, v) in six.iteritems(path_params):
|
1070
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1071
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1072
|
+
|
1073
|
+
header_params = {
|
1074
|
+
"accept": "application/json",
|
1075
|
+
"content-type": "application/json",
|
1076
|
+
"if-match": kwargs.get("if_match", missing),
|
1077
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1078
|
+
}
|
1079
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1080
|
+
|
1081
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1082
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1083
|
+
client_retry_strategy=self.retry_strategy
|
1084
|
+
)
|
1085
|
+
if retry_strategy is None:
|
1086
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1087
|
+
|
1088
|
+
if retry_strategy:
|
1089
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1090
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1091
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1092
|
+
return retry_strategy.make_retrying_call(
|
1093
|
+
self.base_client.call_api,
|
1094
|
+
resource_path=resource_path,
|
1095
|
+
method=method,
|
1096
|
+
path_params=path_params,
|
1097
|
+
header_params=header_params,
|
1098
|
+
body=update_event_details,
|
1099
|
+
response_type="Event",
|
1100
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1101
|
+
operation_name=operation_name,
|
1102
|
+
api_reference_link=api_reference_link,
|
1103
|
+
required_arguments=required_arguments)
|
1104
|
+
else:
|
1105
|
+
return self.base_client.call_api(
|
1106
|
+
resource_path=resource_path,
|
1107
|
+
method=method,
|
1108
|
+
path_params=path_params,
|
1109
|
+
header_params=header_params,
|
1110
|
+
body=update_event_details,
|
1111
|
+
response_type="Event",
|
1112
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1113
|
+
operation_name=operation_name,
|
1114
|
+
api_reference_link=api_reference_link,
|
1115
|
+
required_arguments=required_arguments)
|