oci 2.125.3__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 +44 -44
- 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/database/database_client.py +333 -333
- 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_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 +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +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/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +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/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/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.125.3.dist-info → oci-2.126.0.dist-info}/METADATA +1 -1
- {oci-2.125.3.dist-info → oci-2.126.0.dist-info}/RECORD +794 -717
- 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.3.dist-info → oci-2.126.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.125.3.dist-info → oci-2.126.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.125.3.dist-info → oci-2.126.0.dist-info}/WHEEL +0 -0
- {oci-2.125.3.dist-info → oci-2.126.0.dist-info}/top_level.txt +0 -0
@@ -22,7 +22,8 @@ missing = Sentinel("Missing")
|
|
22
22
|
|
23
23
|
class ManagedInstanceClient(object):
|
24
24
|
"""
|
25
|
-
Use the OS Management Hub API to manage and monitor updates and patches for
|
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).
|
26
27
|
"""
|
27
28
|
|
28
29
|
def __init__(self, config, **kwargs):
|
@@ -116,17 +117,19 @@ class ManagedInstanceClient(object):
|
|
116
117
|
self.retry_strategy = kwargs.get('retry_strategy')
|
117
118
|
self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
|
118
119
|
|
119
|
-
def
|
120
|
+
def attach_profile_to_managed_instance(self, managed_instance_id, attach_profile_to_managed_instance_details, **kwargs):
|
120
121
|
"""
|
121
|
-
Adds
|
122
|
-
|
122
|
+
Adds profile to a managed instance. After the profile has been added,
|
123
|
+
the instance can be registered as a managed instance.
|
123
124
|
|
124
125
|
|
125
126
|
:param str managed_instance_id: (required)
|
126
|
-
The OCID of the managed instance.
|
127
|
+
The `OCID`__ of the managed instance.
|
127
128
|
|
128
|
-
|
129
|
-
|
129
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
130
|
+
|
131
|
+
:param oci.os_management_hub.models.AttachProfileToManagedInstanceDetails attach_profile_to_managed_instance_details: (required)
|
132
|
+
Details of the registration profile to be attached to a managed instance.
|
130
133
|
|
131
134
|
:param str if_match: (optional)
|
132
135
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -161,14 +164,14 @@ class ManagedInstanceClient(object):
|
|
161
164
|
:rtype: :class:`~oci.response.Response`
|
162
165
|
|
163
166
|
:example:
|
164
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
167
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/attach_profile_to_managed_instance.py.html>`__ to see an example of how to use attach_profile_to_managed_instance API.
|
165
168
|
"""
|
166
169
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
167
170
|
required_arguments = ['managedInstanceId']
|
168
|
-
resource_path = "/managedInstances/{managedInstanceId}/actions/
|
171
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/attachProfile"
|
169
172
|
method = "POST"
|
170
|
-
operation_name = "
|
171
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
173
|
+
operation_name = "attach_profile_to_managed_instance"
|
174
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/AttachProfileToManagedInstance"
|
172
175
|
|
173
176
|
# Don't accept unknown kwargs
|
174
177
|
expected_kwargs = [
|
@@ -181,7 +184,7 @@ class ManagedInstanceClient(object):
|
|
181
184
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
182
185
|
if extra_kwargs:
|
183
186
|
raise ValueError(
|
184
|
-
f"
|
187
|
+
f"attach_profile_to_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
185
188
|
|
186
189
|
path_params = {
|
187
190
|
"managedInstanceId": managed_instance_id
|
@@ -220,7 +223,7 @@ class ManagedInstanceClient(object):
|
|
220
223
|
method=method,
|
221
224
|
path_params=path_params,
|
222
225
|
header_params=header_params,
|
223
|
-
body=
|
226
|
+
body=attach_profile_to_managed_instance_details,
|
224
227
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
225
228
|
operation_name=operation_name,
|
226
229
|
api_reference_link=api_reference_link,
|
@@ -231,23 +234,25 @@ class ManagedInstanceClient(object):
|
|
231
234
|
method=method,
|
232
235
|
path_params=path_params,
|
233
236
|
header_params=header_params,
|
234
|
-
body=
|
237
|
+
body=attach_profile_to_managed_instance_details,
|
235
238
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
236
239
|
operation_name=operation_name,
|
237
240
|
api_reference_link=api_reference_link,
|
238
241
|
required_arguments=required_arguments)
|
239
242
|
|
240
|
-
def
|
243
|
+
def attach_software_sources_to_managed_instance(self, managed_instance_id, attach_software_sources_to_managed_instance_details, **kwargs):
|
241
244
|
"""
|
242
|
-
|
243
|
-
|
245
|
+
Adds software sources to a managed instance. After the software source has been added,
|
246
|
+
then packages from that software source can be installed on the managed instance.
|
244
247
|
|
245
248
|
|
246
249
|
:param str managed_instance_id: (required)
|
247
|
-
The OCID of the managed instance.
|
250
|
+
The `OCID`__ of the managed instance.
|
248
251
|
|
249
|
-
|
250
|
-
|
252
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
253
|
+
|
254
|
+
:param oci.os_management_hub.models.AttachSoftwareSourcesToManagedInstanceDetails attach_software_sources_to_managed_instance_details: (required)
|
255
|
+
Details of software sources to be attached to a managed instance.
|
251
256
|
|
252
257
|
:param str if_match: (optional)
|
253
258
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -282,14 +287,14 @@ class ManagedInstanceClient(object):
|
|
282
287
|
:rtype: :class:`~oci.response.Response`
|
283
288
|
|
284
289
|
:example:
|
285
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
290
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/attach_software_sources_to_managed_instance.py.html>`__ to see an example of how to use attach_software_sources_to_managed_instance API.
|
286
291
|
"""
|
287
292
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
288
293
|
required_arguments = ['managedInstanceId']
|
289
|
-
resource_path = "/managedInstances/{managedInstanceId}/actions/
|
294
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/attachSoftwareSources"
|
290
295
|
method = "POST"
|
291
|
-
operation_name = "
|
292
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
296
|
+
operation_name = "attach_software_sources_to_managed_instance"
|
297
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/AttachSoftwareSourcesToManagedInstance"
|
293
298
|
|
294
299
|
# Don't accept unknown kwargs
|
295
300
|
expected_kwargs = [
|
@@ -302,7 +307,7 @@ class ManagedInstanceClient(object):
|
|
302
307
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
303
308
|
if extra_kwargs:
|
304
309
|
raise ValueError(
|
305
|
-
f"
|
310
|
+
f"attach_software_sources_to_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
306
311
|
|
307
312
|
path_params = {
|
308
313
|
"managedInstanceId": managed_instance_id
|
@@ -341,7 +346,7 @@ class ManagedInstanceClient(object):
|
|
341
346
|
method=method,
|
342
347
|
path_params=path_params,
|
343
348
|
header_params=header_params,
|
344
|
-
body=
|
349
|
+
body=attach_software_sources_to_managed_instance_details,
|
345
350
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
346
351
|
operation_name=operation_name,
|
347
352
|
api_reference_link=api_reference_link,
|
@@ -352,25 +357,22 @@ class ManagedInstanceClient(object):
|
|
352
357
|
method=method,
|
353
358
|
path_params=path_params,
|
354
359
|
header_params=header_params,
|
355
|
-
body=
|
360
|
+
body=attach_software_sources_to_managed_instance_details,
|
356
361
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
357
362
|
operation_name=operation_name,
|
358
363
|
api_reference_link=api_reference_link,
|
359
364
|
required_arguments=required_arguments)
|
360
365
|
|
361
|
-
def
|
366
|
+
def delete_managed_instance(self, managed_instance_id, **kwargs):
|
362
367
|
"""
|
363
|
-
|
364
|
-
|
365
|
-
contained by the stream. All installed profiles must be removed prior
|
366
|
-
to disabling a module stream.
|
368
|
+
Unregisters the specified managed instance from the service. Once unregistered, the service will no longer manage the instance.
|
369
|
+
For Linux instances, yum or DNF repository files will be restored to their state prior to registration.
|
367
370
|
|
368
371
|
|
369
372
|
:param str managed_instance_id: (required)
|
370
|
-
The OCID of the managed instance.
|
373
|
+
The `OCID`__ of the managed instance.
|
371
374
|
|
372
|
-
|
373
|
-
The details of the module stream to be disabled on a managed instance.
|
375
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
374
376
|
|
375
377
|
:param str if_match: (optional)
|
376
378
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -382,13 +384,6 @@ class ManagedInstanceClient(object):
|
|
382
384
|
:param str opc_request_id: (optional)
|
383
385
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
384
386
|
|
385
|
-
:param str opc_retry_token: (optional)
|
386
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
387
|
-
server error without risk of executing that same action again. Retry tokens expire after 24
|
388
|
-
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
389
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
390
|
-
might be rejected.
|
391
|
-
|
392
387
|
:param obj retry_strategy: (optional)
|
393
388
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
394
389
|
|
@@ -405,27 +400,26 @@ class ManagedInstanceClient(object):
|
|
405
400
|
:rtype: :class:`~oci.response.Response`
|
406
401
|
|
407
402
|
:example:
|
408
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
403
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/delete_managed_instance.py.html>`__ to see an example of how to use delete_managed_instance API.
|
409
404
|
"""
|
410
405
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
411
406
|
required_arguments = ['managedInstanceId']
|
412
|
-
resource_path = "/managedInstances/{managedInstanceId}
|
413
|
-
method = "
|
414
|
-
operation_name = "
|
415
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
407
|
+
resource_path = "/managedInstances/{managedInstanceId}"
|
408
|
+
method = "DELETE"
|
409
|
+
operation_name = "delete_managed_instance"
|
410
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/DeleteManagedInstance"
|
416
411
|
|
417
412
|
# Don't accept unknown kwargs
|
418
413
|
expected_kwargs = [
|
419
414
|
"allow_control_chars",
|
420
415
|
"retry_strategy",
|
421
416
|
"if_match",
|
422
|
-
"opc_request_id"
|
423
|
-
"opc_retry_token"
|
417
|
+
"opc_request_id"
|
424
418
|
]
|
425
419
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
426
420
|
if extra_kwargs:
|
427
421
|
raise ValueError(
|
428
|
-
f"
|
422
|
+
f"delete_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
429
423
|
|
430
424
|
path_params = {
|
431
425
|
"managedInstanceId": managed_instance_id
|
@@ -441,8 +435,7 @@ class ManagedInstanceClient(object):
|
|
441
435
|
"accept": "application/json",
|
442
436
|
"content-type": "application/json",
|
443
437
|
"if-match": kwargs.get("if_match", missing),
|
444
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
445
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
438
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
446
439
|
}
|
447
440
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
448
441
|
|
@@ -455,7 +448,6 @@ class ManagedInstanceClient(object):
|
|
455
448
|
|
456
449
|
if retry_strategy:
|
457
450
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
458
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
459
451
|
self.base_client.add_opc_client_retries_header(header_params)
|
460
452
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
461
453
|
return retry_strategy.make_retrying_call(
|
@@ -464,7 +456,6 @@ class ManagedInstanceClient(object):
|
|
464
456
|
method=method,
|
465
457
|
path_params=path_params,
|
466
458
|
header_params=header_params,
|
467
|
-
body=disable_module_stream_on_managed_instance_details,
|
468
459
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
469
460
|
operation_name=operation_name,
|
470
461
|
api_reference_link=api_reference_link,
|
@@ -475,26 +466,21 @@ class ManagedInstanceClient(object):
|
|
475
466
|
method=method,
|
476
467
|
path_params=path_params,
|
477
468
|
header_params=header_params,
|
478
|
-
body=disable_module_stream_on_managed_instance_details,
|
479
469
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
480
470
|
operation_name=operation_name,
|
481
471
|
api_reference_link=api_reference_link,
|
482
472
|
required_arguments=required_arguments)
|
483
473
|
|
484
|
-
def
|
474
|
+
def detach_profile_from_managed_instance(self, managed_instance_id, **kwargs):
|
485
475
|
"""
|
486
|
-
|
487
|
-
|
488
|
-
by the stream. Enabling a stream that is already enabled will
|
489
|
-
succeed. Attempting to enable a different stream for a module that
|
490
|
-
already has a stream enabled results in an error.
|
476
|
+
Detaches profile from a managed instance. After the profile has been removed,
|
477
|
+
the instance cannot be registered as a managed instance.
|
491
478
|
|
492
479
|
|
493
480
|
:param str managed_instance_id: (required)
|
494
|
-
The OCID of the managed instance.
|
481
|
+
The `OCID`__ of the managed instance.
|
495
482
|
|
496
|
-
|
497
|
-
The details of the module stream to be enabled on a managed instance.
|
483
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
498
484
|
|
499
485
|
:param str if_match: (optional)
|
500
486
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -529,14 +515,14 @@ class ManagedInstanceClient(object):
|
|
529
515
|
:rtype: :class:`~oci.response.Response`
|
530
516
|
|
531
517
|
:example:
|
532
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
518
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/detach_profile_from_managed_instance.py.html>`__ to see an example of how to use detach_profile_from_managed_instance API.
|
533
519
|
"""
|
534
520
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
535
521
|
required_arguments = ['managedInstanceId']
|
536
|
-
resource_path = "/managedInstances/{managedInstanceId}/actions/
|
522
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/detachProfile"
|
537
523
|
method = "POST"
|
538
|
-
operation_name = "
|
539
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
524
|
+
operation_name = "detach_profile_from_managed_instance"
|
525
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/DetachProfileFromManagedInstance"
|
540
526
|
|
541
527
|
# Don't accept unknown kwargs
|
542
528
|
expected_kwargs = [
|
@@ -549,7 +535,7 @@ class ManagedInstanceClient(object):
|
|
549
535
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
550
536
|
if extra_kwargs:
|
551
537
|
raise ValueError(
|
552
|
-
f"
|
538
|
+
f"detach_profile_from_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
553
539
|
|
554
540
|
path_params = {
|
555
541
|
"managedInstanceId": managed_instance_id
|
@@ -588,7 +574,6 @@ class ManagedInstanceClient(object):
|
|
588
574
|
method=method,
|
589
575
|
path_params=path_params,
|
590
576
|
header_params=header_params,
|
591
|
-
body=enable_module_stream_on_managed_instance_details,
|
592
577
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
593
578
|
operation_name=operation_name,
|
594
579
|
api_reference_link=api_reference_link,
|
@@ -599,23 +584,42 @@ class ManagedInstanceClient(object):
|
|
599
584
|
method=method,
|
600
585
|
path_params=path_params,
|
601
586
|
header_params=header_params,
|
602
|
-
body=enable_module_stream_on_managed_instance_details,
|
603
587
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
604
588
|
operation_name=operation_name,
|
605
589
|
api_reference_link=api_reference_link,
|
606
590
|
required_arguments=required_arguments)
|
607
591
|
|
608
|
-
def
|
592
|
+
def detach_software_sources_from_managed_instance(self, managed_instance_id, detach_software_sources_from_managed_instance_details, **kwargs):
|
609
593
|
"""
|
610
|
-
|
594
|
+
Removes software sources from a managed instance.
|
595
|
+
Packages will no longer be able to be installed from these software sources.
|
611
596
|
|
612
597
|
|
613
598
|
:param str managed_instance_id: (required)
|
614
|
-
The OCID of the managed instance.
|
599
|
+
The `OCID`__ of the managed instance.
|
600
|
+
|
601
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
602
|
+
|
603
|
+
:param oci.os_management_hub.models.DetachSoftwareSourcesFromManagedInstanceDetails detach_software_sources_from_managed_instance_details: (required)
|
604
|
+
Details of software sources to be detached from a managed instance.
|
605
|
+
|
606
|
+
:param str if_match: (optional)
|
607
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
608
|
+
for a resource, set the `if-match` parameter to the value of the
|
609
|
+
etag from a previous GET or POST response for that resource.
|
610
|
+
The resource will be updated or deleted only if the etag you
|
611
|
+
provide matches the resource's current etag value.
|
615
612
|
|
616
613
|
:param str opc_request_id: (optional)
|
617
614
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
618
615
|
|
616
|
+
:param str opc_retry_token: (optional)
|
617
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
618
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
619
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
620
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
621
|
+
might be rejected.
|
622
|
+
|
619
623
|
:param obj retry_strategy: (optional)
|
620
624
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
621
625
|
|
@@ -628,29 +632,31 @@ class ManagedInstanceClient(object):
|
|
628
632
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
629
633
|
By default, the response will not allow control characters in strings
|
630
634
|
|
631
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
635
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
632
636
|
:rtype: :class:`~oci.response.Response`
|
633
637
|
|
634
638
|
:example:
|
635
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
639
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/detach_software_sources_from_managed_instance.py.html>`__ to see an example of how to use detach_software_sources_from_managed_instance API.
|
636
640
|
"""
|
637
641
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
638
642
|
required_arguments = ['managedInstanceId']
|
639
|
-
resource_path = "/managedInstances/{managedInstanceId}"
|
640
|
-
method = "
|
641
|
-
operation_name = "
|
642
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
643
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/detachSoftwareSources"
|
644
|
+
method = "POST"
|
645
|
+
operation_name = "detach_software_sources_from_managed_instance"
|
646
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/DetachSoftwareSourcesFromManagedInstance"
|
643
647
|
|
644
648
|
# Don't accept unknown kwargs
|
645
649
|
expected_kwargs = [
|
646
650
|
"allow_control_chars",
|
647
651
|
"retry_strategy",
|
648
|
-
"
|
652
|
+
"if_match",
|
653
|
+
"opc_request_id",
|
654
|
+
"opc_retry_token"
|
649
655
|
]
|
650
656
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
651
657
|
if extra_kwargs:
|
652
658
|
raise ValueError(
|
653
|
-
f"
|
659
|
+
f"detach_software_sources_from_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
654
660
|
|
655
661
|
path_params = {
|
656
662
|
"managedInstanceId": managed_instance_id
|
@@ -665,7 +671,9 @@ class ManagedInstanceClient(object):
|
|
665
671
|
header_params = {
|
666
672
|
"accept": "application/json",
|
667
673
|
"content-type": "application/json",
|
668
|
-
"
|
674
|
+
"if-match": kwargs.get("if_match", missing),
|
675
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
676
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
669
677
|
}
|
670
678
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
671
679
|
|
@@ -678,6 +686,7 @@ class ManagedInstanceClient(object):
|
|
678
686
|
|
679
687
|
if retry_strategy:
|
680
688
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
689
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
681
690
|
self.base_client.add_opc_client_retries_header(header_params)
|
682
691
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
683
692
|
return retry_strategy.make_retrying_call(
|
@@ -686,7 +695,7 @@ class ManagedInstanceClient(object):
|
|
686
695
|
method=method,
|
687
696
|
path_params=path_params,
|
688
697
|
header_params=header_params,
|
689
|
-
|
698
|
+
body=detach_software_sources_from_managed_instance_details,
|
690
699
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
691
700
|
operation_name=operation_name,
|
692
701
|
api_reference_link=api_reference_link,
|
@@ -697,24 +706,27 @@ class ManagedInstanceClient(object):
|
|
697
706
|
method=method,
|
698
707
|
path_params=path_params,
|
699
708
|
header_params=header_params,
|
700
|
-
|
709
|
+
body=detach_software_sources_from_managed_instance_details,
|
701
710
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
702
711
|
operation_name=operation_name,
|
703
712
|
api_reference_link=api_reference_link,
|
704
713
|
required_arguments=required_arguments)
|
705
714
|
|
706
|
-
def
|
715
|
+
def disable_module_stream_on_managed_instance(self, managed_instance_id, disable_module_stream_on_managed_instance_details, **kwargs):
|
707
716
|
"""
|
708
|
-
|
709
|
-
|
710
|
-
|
717
|
+
Disables a module stream on a managed instance. After the stream is
|
718
|
+
disabled, it is no longer possible to install the profiles that are
|
719
|
+
contained by the stream. All installed profiles must be removed prior
|
720
|
+
to disabling a module stream.
|
711
721
|
|
712
722
|
|
713
723
|
:param str managed_instance_id: (required)
|
714
|
-
The OCID of the managed instance.
|
724
|
+
The `OCID`__ of the managed instance.
|
715
725
|
|
716
|
-
|
717
|
-
|
726
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
727
|
+
|
728
|
+
:param oci.os_management_hub.models.DisableModuleStreamOnManagedInstanceDetails disable_module_stream_on_managed_instance_details: (required)
|
729
|
+
The details of the module stream to be disabled on a managed instance.
|
718
730
|
|
719
731
|
:param str if_match: (optional)
|
720
732
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -749,14 +761,14 @@ class ManagedInstanceClient(object):
|
|
749
761
|
:rtype: :class:`~oci.response.Response`
|
750
762
|
|
751
763
|
:example:
|
752
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
764
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/disable_module_stream_on_managed_instance.py.html>`__ to see an example of how to use disable_module_stream_on_managed_instance API.
|
753
765
|
"""
|
754
766
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
755
767
|
required_arguments = ['managedInstanceId']
|
756
|
-
resource_path = "/managedInstances/{managedInstanceId}/actions/
|
768
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/disableModuleStreams"
|
757
769
|
method = "POST"
|
758
|
-
operation_name = "
|
759
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
770
|
+
operation_name = "disable_module_stream_on_managed_instance"
|
771
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/DisableModuleStreamOnManagedInstance"
|
760
772
|
|
761
773
|
# Don't accept unknown kwargs
|
762
774
|
expected_kwargs = [
|
@@ -769,7 +781,7 @@ class ManagedInstanceClient(object):
|
|
769
781
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
770
782
|
if extra_kwargs:
|
771
783
|
raise ValueError(
|
772
|
-
f"
|
784
|
+
f"disable_module_stream_on_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
773
785
|
|
774
786
|
path_params = {
|
775
787
|
"managedInstanceId": managed_instance_id
|
@@ -808,7 +820,7 @@ class ManagedInstanceClient(object):
|
|
808
820
|
method=method,
|
809
821
|
path_params=path_params,
|
810
822
|
header_params=header_params,
|
811
|
-
body=
|
823
|
+
body=disable_module_stream_on_managed_instance_details,
|
812
824
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
813
825
|
operation_name=operation_name,
|
814
826
|
api_reference_link=api_reference_link,
|
@@ -819,22 +831,28 @@ class ManagedInstanceClient(object):
|
|
819
831
|
method=method,
|
820
832
|
path_params=path_params,
|
821
833
|
header_params=header_params,
|
822
|
-
body=
|
834
|
+
body=disable_module_stream_on_managed_instance_details,
|
823
835
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
824
836
|
operation_name=operation_name,
|
825
837
|
api_reference_link=api_reference_link,
|
826
838
|
required_arguments=required_arguments)
|
827
839
|
|
828
|
-
def
|
840
|
+
def enable_module_stream_on_managed_instance(self, managed_instance_id, enable_module_stream_on_managed_instance_details, **kwargs):
|
829
841
|
"""
|
830
|
-
|
842
|
+
Enables a module stream on a managed instance. After the stream is
|
843
|
+
enabled, it is possible to install the profiles that are contained
|
844
|
+
by the stream. Enabling a stream that is already enabled will
|
845
|
+
succeed. Attempting to enable a different stream for a module that
|
846
|
+
already has a stream enabled results in an error.
|
831
847
|
|
832
848
|
|
833
849
|
:param str managed_instance_id: (required)
|
834
|
-
The OCID of the managed instance.
|
850
|
+
The `OCID`__ of the managed instance.
|
835
851
|
|
836
|
-
|
837
|
-
|
852
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
853
|
+
|
854
|
+
:param oci.os_management_hub.models.EnableModuleStreamOnManagedInstanceDetails enable_module_stream_on_managed_instance_details: (required)
|
855
|
+
The details of the module stream to be enabled on a managed instance.
|
838
856
|
|
839
857
|
:param str if_match: (optional)
|
840
858
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -869,14 +887,14 @@ class ManagedInstanceClient(object):
|
|
869
887
|
:rtype: :class:`~oci.response.Response`
|
870
888
|
|
871
889
|
:example:
|
872
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
890
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/enable_module_stream_on_managed_instance.py.html>`__ to see an example of how to use enable_module_stream_on_managed_instance API.
|
873
891
|
"""
|
874
892
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
875
893
|
required_arguments = ['managedInstanceId']
|
876
|
-
resource_path = "/managedInstances/{managedInstanceId}/actions/
|
894
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/enableModuleStreams"
|
877
895
|
method = "POST"
|
878
|
-
operation_name = "
|
879
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
896
|
+
operation_name = "enable_module_stream_on_managed_instance"
|
897
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/EnableModuleStreamOnManagedInstance"
|
880
898
|
|
881
899
|
# Don't accept unknown kwargs
|
882
900
|
expected_kwargs = [
|
@@ -889,7 +907,7 @@ class ManagedInstanceClient(object):
|
|
889
907
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
890
908
|
if extra_kwargs:
|
891
909
|
raise ValueError(
|
892
|
-
f"
|
910
|
+
f"enable_module_stream_on_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
893
911
|
|
894
912
|
path_params = {
|
895
913
|
"managedInstanceId": managed_instance_id
|
@@ -928,7 +946,7 @@ class ManagedInstanceClient(object):
|
|
928
946
|
method=method,
|
929
947
|
path_params=path_params,
|
930
948
|
header_params=header_params,
|
931
|
-
body=
|
949
|
+
body=enable_module_stream_on_managed_instance_details,
|
932
950
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
933
951
|
operation_name=operation_name,
|
934
952
|
api_reference_link=api_reference_link,
|
@@ -939,54 +957,21 @@ class ManagedInstanceClient(object):
|
|
939
957
|
method=method,
|
940
958
|
path_params=path_params,
|
941
959
|
header_params=header_params,
|
942
|
-
body=
|
960
|
+
body=enable_module_stream_on_managed_instance_details,
|
943
961
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
944
962
|
operation_name=operation_name,
|
945
963
|
api_reference_link=api_reference_link,
|
946
964
|
required_arguments=required_arguments)
|
947
965
|
|
948
|
-
def
|
966
|
+
def get_managed_instance(self, managed_instance_id, **kwargs):
|
949
967
|
"""
|
950
|
-
|
968
|
+
Gets information about the specified managed instance.
|
951
969
|
|
952
970
|
|
953
971
|
:param str managed_instance_id: (required)
|
954
|
-
The OCID of the managed instance.
|
955
|
-
|
956
|
-
:param list[str] display_name: (optional)
|
957
|
-
A filter to return resources that match the given display names.
|
958
|
-
|
959
|
-
:param str display_name_contains: (optional)
|
960
|
-
A filter to return resources that may partially match the given display name.
|
961
|
-
|
962
|
-
:param str compartment_id: (optional)
|
963
|
-
The OCID of the compartment that contains the resources to list.
|
964
|
-
|
965
|
-
:param int limit: (optional)
|
966
|
-
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
967
|
-
For important details about how pagination works, see `List Pagination`__.
|
972
|
+
The `OCID`__ of the managed instance.
|
968
973
|
|
969
|
-
|
970
|
-
|
971
|
-
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
972
|
-
|
973
|
-
:param str page: (optional)
|
974
|
-
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
975
|
-
For important details about how pagination works, see `List Pagination`__.
|
976
|
-
|
977
|
-
Example: `3`
|
978
|
-
|
979
|
-
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
980
|
-
|
981
|
-
:param str sort_order: (optional)
|
982
|
-
The sort order to use, either 'ASC' or 'DESC'.
|
983
|
-
|
984
|
-
Allowed values are: "ASC", "DESC"
|
985
|
-
|
986
|
-
:param str sort_by: (optional)
|
987
|
-
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
988
|
-
|
989
|
-
Allowed values are: "timeCreated", "displayName"
|
974
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
990
975
|
|
991
976
|
:param str opc_request_id: (optional)
|
992
977
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -1003,36 +988,29 @@ class ManagedInstanceClient(object):
|
|
1003
988
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1004
989
|
By default, the response will not allow control characters in strings
|
1005
990
|
|
1006
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.
|
991
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.ManagedInstance`
|
1007
992
|
:rtype: :class:`~oci.response.Response`
|
1008
993
|
|
1009
994
|
:example:
|
1010
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
995
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/get_managed_instance.py.html>`__ to see an example of how to use get_managed_instance API.
|
1011
996
|
"""
|
1012
997
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1013
998
|
required_arguments = ['managedInstanceId']
|
1014
|
-
resource_path = "/managedInstances/{managedInstanceId}
|
999
|
+
resource_path = "/managedInstances/{managedInstanceId}"
|
1015
1000
|
method = "GET"
|
1016
|
-
operation_name = "
|
1017
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
1001
|
+
operation_name = "get_managed_instance"
|
1002
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/GetManagedInstance"
|
1018
1003
|
|
1019
1004
|
# Don't accept unknown kwargs
|
1020
1005
|
expected_kwargs = [
|
1021
1006
|
"allow_control_chars",
|
1022
1007
|
"retry_strategy",
|
1023
|
-
"display_name",
|
1024
|
-
"display_name_contains",
|
1025
|
-
"compartment_id",
|
1026
|
-
"limit",
|
1027
|
-
"page",
|
1028
|
-
"sort_order",
|
1029
|
-
"sort_by",
|
1030
1008
|
"opc_request_id"
|
1031
1009
|
]
|
1032
1010
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1033
1011
|
if extra_kwargs:
|
1034
1012
|
raise ValueError(
|
1035
|
-
f"
|
1013
|
+
f"get_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
1036
1014
|
|
1037
1015
|
path_params = {
|
1038
1016
|
"managedInstanceId": managed_instance_id
|
@@ -1044,31 +1022,6 @@ class ManagedInstanceClient(object):
|
|
1044
1022
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1045
1023
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1046
1024
|
|
1047
|
-
if 'sort_order' in kwargs:
|
1048
|
-
sort_order_allowed_values = ["ASC", "DESC"]
|
1049
|
-
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1050
|
-
raise ValueError(
|
1051
|
-
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1052
|
-
)
|
1053
|
-
|
1054
|
-
if 'sort_by' in kwargs:
|
1055
|
-
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1056
|
-
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1057
|
-
raise ValueError(
|
1058
|
-
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1059
|
-
)
|
1060
|
-
|
1061
|
-
query_params = {
|
1062
|
-
"displayName": self.base_client.generate_collection_format_param(kwargs.get("display_name", missing), 'multi'),
|
1063
|
-
"displayNameContains": kwargs.get("display_name_contains", missing),
|
1064
|
-
"compartmentId": kwargs.get("compartment_id", missing),
|
1065
|
-
"limit": kwargs.get("limit", missing),
|
1066
|
-
"page": kwargs.get("page", missing),
|
1067
|
-
"sortOrder": kwargs.get("sort_order", missing),
|
1068
|
-
"sortBy": kwargs.get("sort_by", missing)
|
1069
|
-
}
|
1070
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1071
|
-
|
1072
1025
|
header_params = {
|
1073
1026
|
"accept": "application/json",
|
1074
1027
|
"content-type": "application/json",
|
@@ -1092,13 +1045,921 @@ class ManagedInstanceClient(object):
|
|
1092
1045
|
resource_path=resource_path,
|
1093
1046
|
method=method,
|
1094
1047
|
path_params=path_params,
|
1095
|
-
|
1048
|
+
header_params=header_params,
|
1049
|
+
response_type="ManagedInstance",
|
1050
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1051
|
+
operation_name=operation_name,
|
1052
|
+
api_reference_link=api_reference_link,
|
1053
|
+
required_arguments=required_arguments)
|
1054
|
+
else:
|
1055
|
+
return self.base_client.call_api(
|
1056
|
+
resource_path=resource_path,
|
1057
|
+
method=method,
|
1058
|
+
path_params=path_params,
|
1059
|
+
header_params=header_params,
|
1060
|
+
response_type="ManagedInstance",
|
1061
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1062
|
+
operation_name=operation_name,
|
1063
|
+
api_reference_link=api_reference_link,
|
1064
|
+
required_arguments=required_arguments)
|
1065
|
+
|
1066
|
+
def get_windows_update(self, windows_update_id, **kwargs):
|
1067
|
+
"""
|
1068
|
+
Returns a Windows Update object.
|
1069
|
+
|
1070
|
+
|
1071
|
+
:param str windows_update_id: (required)
|
1072
|
+
The unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft.
|
1073
|
+
Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
|
1074
|
+
|
1075
|
+
:param str opc_request_id: (optional)
|
1076
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1077
|
+
|
1078
|
+
:param obj retry_strategy: (optional)
|
1079
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1080
|
+
|
1081
|
+
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.
|
1082
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1083
|
+
|
1084
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1085
|
+
|
1086
|
+
:param bool allow_control_chars: (optional)
|
1087
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1088
|
+
By default, the response will not allow control characters in strings
|
1089
|
+
|
1090
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.WindowsUpdate`
|
1091
|
+
:rtype: :class:`~oci.response.Response`
|
1092
|
+
|
1093
|
+
:example:
|
1094
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/get_windows_update.py.html>`__ to see an example of how to use get_windows_update API.
|
1095
|
+
"""
|
1096
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1097
|
+
required_arguments = ['windowsUpdateId']
|
1098
|
+
resource_path = "/windowsUpdates/{windowsUpdateId}"
|
1099
|
+
method = "GET"
|
1100
|
+
operation_name = "get_windows_update"
|
1101
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/WindowsUpdate/GetWindowsUpdate"
|
1102
|
+
|
1103
|
+
# Don't accept unknown kwargs
|
1104
|
+
expected_kwargs = [
|
1105
|
+
"allow_control_chars",
|
1106
|
+
"retry_strategy",
|
1107
|
+
"opc_request_id"
|
1108
|
+
]
|
1109
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1110
|
+
if extra_kwargs:
|
1111
|
+
raise ValueError(
|
1112
|
+
f"get_windows_update got unknown kwargs: {extra_kwargs!r}")
|
1113
|
+
|
1114
|
+
path_params = {
|
1115
|
+
"windowsUpdateId": windows_update_id
|
1116
|
+
}
|
1117
|
+
|
1118
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1119
|
+
|
1120
|
+
for (k, v) in six.iteritems(path_params):
|
1121
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1122
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1123
|
+
|
1124
|
+
header_params = {
|
1125
|
+
"accept": "application/json",
|
1126
|
+
"content-type": "application/json",
|
1127
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1128
|
+
}
|
1129
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1130
|
+
|
1131
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1132
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1133
|
+
client_retry_strategy=self.retry_strategy
|
1134
|
+
)
|
1135
|
+
if retry_strategy is None:
|
1136
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1137
|
+
|
1138
|
+
if retry_strategy:
|
1139
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1140
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1141
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1142
|
+
return retry_strategy.make_retrying_call(
|
1143
|
+
self.base_client.call_api,
|
1144
|
+
resource_path=resource_path,
|
1145
|
+
method=method,
|
1146
|
+
path_params=path_params,
|
1147
|
+
header_params=header_params,
|
1148
|
+
response_type="WindowsUpdate",
|
1149
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1150
|
+
operation_name=operation_name,
|
1151
|
+
api_reference_link=api_reference_link,
|
1152
|
+
required_arguments=required_arguments)
|
1153
|
+
else:
|
1154
|
+
return self.base_client.call_api(
|
1155
|
+
resource_path=resource_path,
|
1156
|
+
method=method,
|
1157
|
+
path_params=path_params,
|
1158
|
+
header_params=header_params,
|
1159
|
+
response_type="WindowsUpdate",
|
1160
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1161
|
+
operation_name=operation_name,
|
1162
|
+
api_reference_link=api_reference_link,
|
1163
|
+
required_arguments=required_arguments)
|
1164
|
+
|
1165
|
+
def install_all_windows_updates_on_managed_instances_in_compartment(self, install_all_windows_updates_on_managed_instances_in_compartment_details, **kwargs):
|
1166
|
+
"""
|
1167
|
+
Installs all of the available Windows updates for managed instances in a compartment. This applies only to standalone Windows instances. This will not update instances that belong to a group.
|
1168
|
+
|
1169
|
+
|
1170
|
+
:param oci.os_management_hub.models.InstallAllWindowsUpdatesOnManagedInstancesInCompartmentDetails install_all_windows_updates_on_managed_instances_in_compartment_details: (required)
|
1171
|
+
The details about Windows update types to be installed on all managed instances in a compartment.
|
1172
|
+
|
1173
|
+
:param str opc_request_id: (optional)
|
1174
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1175
|
+
|
1176
|
+
:param str opc_retry_token: (optional)
|
1177
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1178
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1179
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1180
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1181
|
+
might be rejected.
|
1182
|
+
|
1183
|
+
:param str if_match: (optional)
|
1184
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1185
|
+
for a resource, set the `if-match` parameter to the value of the
|
1186
|
+
etag from a previous GET or POST response for that resource.
|
1187
|
+
The resource will be updated or deleted only if the etag you
|
1188
|
+
provide matches the resource's current etag value.
|
1189
|
+
|
1190
|
+
:param obj retry_strategy: (optional)
|
1191
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1192
|
+
|
1193
|
+
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.
|
1194
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1195
|
+
|
1196
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1197
|
+
|
1198
|
+
:param bool allow_control_chars: (optional)
|
1199
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1200
|
+
By default, the response will not allow control characters in strings
|
1201
|
+
|
1202
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1203
|
+
:rtype: :class:`~oci.response.Response`
|
1204
|
+
|
1205
|
+
:example:
|
1206
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/install_all_windows_updates_on_managed_instances_in_compartment.py.html>`__ to see an example of how to use install_all_windows_updates_on_managed_instances_in_compartment API.
|
1207
|
+
"""
|
1208
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1209
|
+
required_arguments = []
|
1210
|
+
resource_path = "/managedInstances/actions/installWindowsUpdates"
|
1211
|
+
method = "POST"
|
1212
|
+
operation_name = "install_all_windows_updates_on_managed_instances_in_compartment"
|
1213
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallAllWindowsUpdatesOnManagedInstancesInCompartment"
|
1214
|
+
|
1215
|
+
# Don't accept unknown kwargs
|
1216
|
+
expected_kwargs = [
|
1217
|
+
"allow_control_chars",
|
1218
|
+
"retry_strategy",
|
1219
|
+
"opc_request_id",
|
1220
|
+
"opc_retry_token",
|
1221
|
+
"if_match"
|
1222
|
+
]
|
1223
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1224
|
+
if extra_kwargs:
|
1225
|
+
raise ValueError(
|
1226
|
+
f"install_all_windows_updates_on_managed_instances_in_compartment got unknown kwargs: {extra_kwargs!r}")
|
1227
|
+
|
1228
|
+
header_params = {
|
1229
|
+
"accept": "application/json",
|
1230
|
+
"content-type": "application/json",
|
1231
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1232
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
1233
|
+
"if-match": kwargs.get("if_match", missing)
|
1234
|
+
}
|
1235
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1236
|
+
|
1237
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1238
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1239
|
+
client_retry_strategy=self.retry_strategy
|
1240
|
+
)
|
1241
|
+
if retry_strategy is None:
|
1242
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1243
|
+
|
1244
|
+
if retry_strategy:
|
1245
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1246
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1247
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1248
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1249
|
+
return retry_strategy.make_retrying_call(
|
1250
|
+
self.base_client.call_api,
|
1251
|
+
resource_path=resource_path,
|
1252
|
+
method=method,
|
1253
|
+
header_params=header_params,
|
1254
|
+
body=install_all_windows_updates_on_managed_instances_in_compartment_details,
|
1255
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1256
|
+
operation_name=operation_name,
|
1257
|
+
api_reference_link=api_reference_link,
|
1258
|
+
required_arguments=required_arguments)
|
1259
|
+
else:
|
1260
|
+
return self.base_client.call_api(
|
1261
|
+
resource_path=resource_path,
|
1262
|
+
method=method,
|
1263
|
+
header_params=header_params,
|
1264
|
+
body=install_all_windows_updates_on_managed_instances_in_compartment_details,
|
1265
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1266
|
+
operation_name=operation_name,
|
1267
|
+
api_reference_link=api_reference_link,
|
1268
|
+
required_arguments=required_arguments)
|
1269
|
+
|
1270
|
+
def install_module_stream_profile_on_managed_instance(self, managed_instance_id, install_module_stream_profile_on_managed_instance_details, **kwargs):
|
1271
|
+
"""
|
1272
|
+
Installs a profile for an module stream. The stream must be
|
1273
|
+
enabled before a profile can be installed. If a module stream
|
1274
|
+
defines multiple profiles, each one can be installed independently.
|
1275
|
+
|
1276
|
+
|
1277
|
+
:param str managed_instance_id: (required)
|
1278
|
+
The `OCID`__ of the managed instance.
|
1279
|
+
|
1280
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1281
|
+
|
1282
|
+
:param oci.os_management_hub.models.InstallModuleStreamProfileOnManagedInstanceDetails install_module_stream_profile_on_managed_instance_details: (required)
|
1283
|
+
The details of the module stream profile to be installed on a managed instance.
|
1284
|
+
|
1285
|
+
:param str if_match: (optional)
|
1286
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1287
|
+
for a resource, set the `if-match` parameter to the value of the
|
1288
|
+
etag from a previous GET or POST response for that resource.
|
1289
|
+
The resource will be updated or deleted only if the etag you
|
1290
|
+
provide matches the resource's current etag value.
|
1291
|
+
|
1292
|
+
:param str opc_request_id: (optional)
|
1293
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1294
|
+
|
1295
|
+
:param str opc_retry_token: (optional)
|
1296
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1297
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1298
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1299
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1300
|
+
might be rejected.
|
1301
|
+
|
1302
|
+
:param obj retry_strategy: (optional)
|
1303
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1304
|
+
|
1305
|
+
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.
|
1306
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1307
|
+
|
1308
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1309
|
+
|
1310
|
+
:param bool allow_control_chars: (optional)
|
1311
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1312
|
+
By default, the response will not allow control characters in strings
|
1313
|
+
|
1314
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1315
|
+
:rtype: :class:`~oci.response.Response`
|
1316
|
+
|
1317
|
+
:example:
|
1318
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/install_module_stream_profile_on_managed_instance.py.html>`__ to see an example of how to use install_module_stream_profile_on_managed_instance API.
|
1319
|
+
"""
|
1320
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1321
|
+
required_arguments = ['managedInstanceId']
|
1322
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/installStreamProfiles"
|
1323
|
+
method = "POST"
|
1324
|
+
operation_name = "install_module_stream_profile_on_managed_instance"
|
1325
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallModuleStreamProfileOnManagedInstance"
|
1326
|
+
|
1327
|
+
# Don't accept unknown kwargs
|
1328
|
+
expected_kwargs = [
|
1329
|
+
"allow_control_chars",
|
1330
|
+
"retry_strategy",
|
1331
|
+
"if_match",
|
1332
|
+
"opc_request_id",
|
1333
|
+
"opc_retry_token"
|
1334
|
+
]
|
1335
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1336
|
+
if extra_kwargs:
|
1337
|
+
raise ValueError(
|
1338
|
+
f"install_module_stream_profile_on_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
1339
|
+
|
1340
|
+
path_params = {
|
1341
|
+
"managedInstanceId": managed_instance_id
|
1342
|
+
}
|
1343
|
+
|
1344
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1345
|
+
|
1346
|
+
for (k, v) in six.iteritems(path_params):
|
1347
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1348
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1349
|
+
|
1350
|
+
header_params = {
|
1351
|
+
"accept": "application/json",
|
1352
|
+
"content-type": "application/json",
|
1353
|
+
"if-match": kwargs.get("if_match", missing),
|
1354
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1355
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1356
|
+
}
|
1357
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1358
|
+
|
1359
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1360
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1361
|
+
client_retry_strategy=self.retry_strategy
|
1362
|
+
)
|
1363
|
+
if retry_strategy is None:
|
1364
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1365
|
+
|
1366
|
+
if retry_strategy:
|
1367
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1368
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1369
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1370
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1371
|
+
return retry_strategy.make_retrying_call(
|
1372
|
+
self.base_client.call_api,
|
1373
|
+
resource_path=resource_path,
|
1374
|
+
method=method,
|
1375
|
+
path_params=path_params,
|
1376
|
+
header_params=header_params,
|
1377
|
+
body=install_module_stream_profile_on_managed_instance_details,
|
1378
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1379
|
+
operation_name=operation_name,
|
1380
|
+
api_reference_link=api_reference_link,
|
1381
|
+
required_arguments=required_arguments)
|
1382
|
+
else:
|
1383
|
+
return self.base_client.call_api(
|
1384
|
+
resource_path=resource_path,
|
1385
|
+
method=method,
|
1386
|
+
path_params=path_params,
|
1387
|
+
header_params=header_params,
|
1388
|
+
body=install_module_stream_profile_on_managed_instance_details,
|
1389
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1390
|
+
operation_name=operation_name,
|
1391
|
+
api_reference_link=api_reference_link,
|
1392
|
+
required_arguments=required_arguments)
|
1393
|
+
|
1394
|
+
def install_packages_on_managed_instance(self, managed_instance_id, install_packages_on_managed_instance_details, **kwargs):
|
1395
|
+
"""
|
1396
|
+
Installs packages on a managed instance.
|
1397
|
+
|
1398
|
+
|
1399
|
+
:param str managed_instance_id: (required)
|
1400
|
+
The `OCID`__ of the managed instance.
|
1401
|
+
|
1402
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1403
|
+
|
1404
|
+
:param oci.os_management_hub.models.InstallPackagesOnManagedInstanceDetails install_packages_on_managed_instance_details: (required)
|
1405
|
+
Details about packages to be installed on a managed instance.
|
1406
|
+
|
1407
|
+
:param str if_match: (optional)
|
1408
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1409
|
+
for a resource, set the `if-match` parameter to the value of the
|
1410
|
+
etag from a previous GET or POST response for that resource.
|
1411
|
+
The resource will be updated or deleted only if the etag you
|
1412
|
+
provide matches the resource's current etag value.
|
1413
|
+
|
1414
|
+
:param str opc_request_id: (optional)
|
1415
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1416
|
+
|
1417
|
+
:param str opc_retry_token: (optional)
|
1418
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1419
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1420
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1421
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1422
|
+
might be rejected.
|
1423
|
+
|
1424
|
+
:param obj retry_strategy: (optional)
|
1425
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1426
|
+
|
1427
|
+
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.
|
1428
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1429
|
+
|
1430
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1431
|
+
|
1432
|
+
:param bool allow_control_chars: (optional)
|
1433
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1434
|
+
By default, the response will not allow control characters in strings
|
1435
|
+
|
1436
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1437
|
+
:rtype: :class:`~oci.response.Response`
|
1438
|
+
|
1439
|
+
:example:
|
1440
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/install_packages_on_managed_instance.py.html>`__ to see an example of how to use install_packages_on_managed_instance API.
|
1441
|
+
"""
|
1442
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1443
|
+
required_arguments = ['managedInstanceId']
|
1444
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/installPackages"
|
1445
|
+
method = "POST"
|
1446
|
+
operation_name = "install_packages_on_managed_instance"
|
1447
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallPackagesOnManagedInstance"
|
1448
|
+
|
1449
|
+
# Don't accept unknown kwargs
|
1450
|
+
expected_kwargs = [
|
1451
|
+
"allow_control_chars",
|
1452
|
+
"retry_strategy",
|
1453
|
+
"if_match",
|
1454
|
+
"opc_request_id",
|
1455
|
+
"opc_retry_token"
|
1456
|
+
]
|
1457
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1458
|
+
if extra_kwargs:
|
1459
|
+
raise ValueError(
|
1460
|
+
f"install_packages_on_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
1461
|
+
|
1462
|
+
path_params = {
|
1463
|
+
"managedInstanceId": managed_instance_id
|
1464
|
+
}
|
1465
|
+
|
1466
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1467
|
+
|
1468
|
+
for (k, v) in six.iteritems(path_params):
|
1469
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1470
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1471
|
+
|
1472
|
+
header_params = {
|
1473
|
+
"accept": "application/json",
|
1474
|
+
"content-type": "application/json",
|
1475
|
+
"if-match": kwargs.get("if_match", missing),
|
1476
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1477
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1478
|
+
}
|
1479
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1480
|
+
|
1481
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1482
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1483
|
+
client_retry_strategy=self.retry_strategy
|
1484
|
+
)
|
1485
|
+
if retry_strategy is None:
|
1486
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1487
|
+
|
1488
|
+
if retry_strategy:
|
1489
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1490
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1491
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1492
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1493
|
+
return retry_strategy.make_retrying_call(
|
1494
|
+
self.base_client.call_api,
|
1495
|
+
resource_path=resource_path,
|
1496
|
+
method=method,
|
1497
|
+
path_params=path_params,
|
1498
|
+
header_params=header_params,
|
1499
|
+
body=install_packages_on_managed_instance_details,
|
1500
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1501
|
+
operation_name=operation_name,
|
1502
|
+
api_reference_link=api_reference_link,
|
1503
|
+
required_arguments=required_arguments)
|
1504
|
+
else:
|
1505
|
+
return self.base_client.call_api(
|
1506
|
+
resource_path=resource_path,
|
1507
|
+
method=method,
|
1508
|
+
path_params=path_params,
|
1509
|
+
header_params=header_params,
|
1510
|
+
body=install_packages_on_managed_instance_details,
|
1511
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1512
|
+
operation_name=operation_name,
|
1513
|
+
api_reference_link=api_reference_link,
|
1514
|
+
required_arguments=required_arguments)
|
1515
|
+
|
1516
|
+
def install_windows_updates_on_managed_instance(self, managed_instance_id, install_windows_updates_on_managed_instance_details, **kwargs):
|
1517
|
+
"""
|
1518
|
+
Installs Windows updates on the specified managed instance.
|
1519
|
+
|
1520
|
+
|
1521
|
+
:param str managed_instance_id: (required)
|
1522
|
+
The `OCID`__ of the managed instance.
|
1523
|
+
|
1524
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1525
|
+
|
1526
|
+
:param oci.os_management_hub.models.InstallWindowsUpdatesOnManagedInstanceDetails install_windows_updates_on_managed_instance_details: (required)
|
1527
|
+
Details about Windows updates to be installed on a managed instance.
|
1528
|
+
|
1529
|
+
:param str if_match: (optional)
|
1530
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1531
|
+
for a resource, set the `if-match` parameter to the value of the
|
1532
|
+
etag from a previous GET or POST response for that resource.
|
1533
|
+
The resource will be updated or deleted only if the etag you
|
1534
|
+
provide matches the resource's current etag value.
|
1535
|
+
|
1536
|
+
:param str opc_request_id: (optional)
|
1537
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1538
|
+
|
1539
|
+
:param str opc_retry_token: (optional)
|
1540
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1541
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
1542
|
+
hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1543
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1544
|
+
might be rejected.
|
1545
|
+
|
1546
|
+
:param obj retry_strategy: (optional)
|
1547
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1548
|
+
|
1549
|
+
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.
|
1550
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1551
|
+
|
1552
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1553
|
+
|
1554
|
+
:param bool allow_control_chars: (optional)
|
1555
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1556
|
+
By default, the response will not allow control characters in strings
|
1557
|
+
|
1558
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1559
|
+
:rtype: :class:`~oci.response.Response`
|
1560
|
+
|
1561
|
+
:example:
|
1562
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/install_windows_updates_on_managed_instance.py.html>`__ to see an example of how to use install_windows_updates_on_managed_instance API.
|
1563
|
+
"""
|
1564
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1565
|
+
required_arguments = ['managedInstanceId']
|
1566
|
+
resource_path = "/managedInstances/{managedInstanceId}/actions/installWindowsUpdates"
|
1567
|
+
method = "POST"
|
1568
|
+
operation_name = "install_windows_updates_on_managed_instance"
|
1569
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/InstallWindowsUpdatesOnManagedInstance"
|
1570
|
+
|
1571
|
+
# Don't accept unknown kwargs
|
1572
|
+
expected_kwargs = [
|
1573
|
+
"allow_control_chars",
|
1574
|
+
"retry_strategy",
|
1575
|
+
"if_match",
|
1576
|
+
"opc_request_id",
|
1577
|
+
"opc_retry_token"
|
1578
|
+
]
|
1579
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1580
|
+
if extra_kwargs:
|
1581
|
+
raise ValueError(
|
1582
|
+
f"install_windows_updates_on_managed_instance got unknown kwargs: {extra_kwargs!r}")
|
1583
|
+
|
1584
|
+
path_params = {
|
1585
|
+
"managedInstanceId": managed_instance_id
|
1586
|
+
}
|
1587
|
+
|
1588
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1589
|
+
|
1590
|
+
for (k, v) in six.iteritems(path_params):
|
1591
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1592
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1593
|
+
|
1594
|
+
header_params = {
|
1595
|
+
"accept": "application/json",
|
1596
|
+
"content-type": "application/json",
|
1597
|
+
"if-match": kwargs.get("if_match", missing),
|
1598
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1599
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1600
|
+
}
|
1601
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1602
|
+
|
1603
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1604
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1605
|
+
client_retry_strategy=self.retry_strategy
|
1606
|
+
)
|
1607
|
+
if retry_strategy is None:
|
1608
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1609
|
+
|
1610
|
+
if retry_strategy:
|
1611
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1612
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1613
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1614
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1615
|
+
return retry_strategy.make_retrying_call(
|
1616
|
+
self.base_client.call_api,
|
1617
|
+
resource_path=resource_path,
|
1618
|
+
method=method,
|
1619
|
+
path_params=path_params,
|
1620
|
+
header_params=header_params,
|
1621
|
+
body=install_windows_updates_on_managed_instance_details,
|
1622
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1623
|
+
operation_name=operation_name,
|
1624
|
+
api_reference_link=api_reference_link,
|
1625
|
+
required_arguments=required_arguments)
|
1626
|
+
else:
|
1627
|
+
return self.base_client.call_api(
|
1628
|
+
resource_path=resource_path,
|
1629
|
+
method=method,
|
1630
|
+
path_params=path_params,
|
1631
|
+
header_params=header_params,
|
1632
|
+
body=install_windows_updates_on_managed_instance_details,
|
1633
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1634
|
+
operation_name=operation_name,
|
1635
|
+
api_reference_link=api_reference_link,
|
1636
|
+
required_arguments=required_arguments)
|
1637
|
+
|
1638
|
+
def list_managed_instance_available_packages(self, managed_instance_id, **kwargs):
|
1639
|
+
"""
|
1640
|
+
Returns a list of packages that are available for installation on a managed instance.
|
1641
|
+
|
1642
|
+
|
1643
|
+
:param str managed_instance_id: (required)
|
1644
|
+
The `OCID`__ of the managed instance.
|
1645
|
+
|
1646
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1647
|
+
|
1648
|
+
:param list[str] display_name: (optional)
|
1649
|
+
A filter to return resources that match the given display names.
|
1650
|
+
|
1651
|
+
:param str display_name_contains: (optional)
|
1652
|
+
A filter to return resources that may partially match the given display name.
|
1653
|
+
|
1654
|
+
:param str compartment_id: (optional)
|
1655
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1656
|
+
|
1657
|
+
:param int limit: (optional)
|
1658
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
1659
|
+
For important details about how pagination works, see `List Pagination`__.
|
1660
|
+
|
1661
|
+
Example: `50`
|
1662
|
+
|
1663
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1664
|
+
|
1665
|
+
:param str page: (optional)
|
1666
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
1667
|
+
For important details about how pagination works, see `List Pagination`__.
|
1668
|
+
|
1669
|
+
Example: `3`
|
1670
|
+
|
1671
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1672
|
+
|
1673
|
+
:param str sort_order: (optional)
|
1674
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1675
|
+
|
1676
|
+
Allowed values are: "ASC", "DESC"
|
1677
|
+
|
1678
|
+
:param str sort_by: (optional)
|
1679
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1680
|
+
|
1681
|
+
Allowed values are: "timeCreated", "displayName"
|
1682
|
+
|
1683
|
+
:param str opc_request_id: (optional)
|
1684
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1685
|
+
|
1686
|
+
:param obj retry_strategy: (optional)
|
1687
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1688
|
+
|
1689
|
+
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.
|
1690
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1691
|
+
|
1692
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1693
|
+
|
1694
|
+
:param bool allow_control_chars: (optional)
|
1695
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1696
|
+
By default, the response will not allow control characters in strings
|
1697
|
+
|
1698
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.AvailablePackageCollection`
|
1699
|
+
:rtype: :class:`~oci.response.Response`
|
1700
|
+
|
1701
|
+
:example:
|
1702
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_available_packages.py.html>`__ to see an example of how to use list_managed_instance_available_packages API.
|
1703
|
+
"""
|
1704
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1705
|
+
required_arguments = ['managedInstanceId']
|
1706
|
+
resource_path = "/managedInstances/{managedInstanceId}/availablePackages"
|
1707
|
+
method = "GET"
|
1708
|
+
operation_name = "list_managed_instance_available_packages"
|
1709
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceAvailablePackages"
|
1710
|
+
|
1711
|
+
# Don't accept unknown kwargs
|
1712
|
+
expected_kwargs = [
|
1713
|
+
"allow_control_chars",
|
1714
|
+
"retry_strategy",
|
1715
|
+
"display_name",
|
1716
|
+
"display_name_contains",
|
1717
|
+
"compartment_id",
|
1718
|
+
"limit",
|
1719
|
+
"page",
|
1720
|
+
"sort_order",
|
1721
|
+
"sort_by",
|
1722
|
+
"opc_request_id"
|
1723
|
+
]
|
1724
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1725
|
+
if extra_kwargs:
|
1726
|
+
raise ValueError(
|
1727
|
+
f"list_managed_instance_available_packages got unknown kwargs: {extra_kwargs!r}")
|
1728
|
+
|
1729
|
+
path_params = {
|
1730
|
+
"managedInstanceId": managed_instance_id
|
1731
|
+
}
|
1732
|
+
|
1733
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1734
|
+
|
1735
|
+
for (k, v) in six.iteritems(path_params):
|
1736
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1737
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1738
|
+
|
1739
|
+
if 'sort_order' in kwargs:
|
1740
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1741
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1742
|
+
raise ValueError(
|
1743
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1744
|
+
)
|
1745
|
+
|
1746
|
+
if 'sort_by' in kwargs:
|
1747
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1748
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1749
|
+
raise ValueError(
|
1750
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1751
|
+
)
|
1752
|
+
|
1753
|
+
query_params = {
|
1754
|
+
"displayName": self.base_client.generate_collection_format_param(kwargs.get("display_name", missing), 'multi'),
|
1755
|
+
"displayNameContains": kwargs.get("display_name_contains", missing),
|
1756
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1757
|
+
"limit": kwargs.get("limit", missing),
|
1758
|
+
"page": kwargs.get("page", missing),
|
1759
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1760
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1761
|
+
}
|
1762
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1763
|
+
|
1764
|
+
header_params = {
|
1765
|
+
"accept": "application/json",
|
1766
|
+
"content-type": "application/json",
|
1767
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1768
|
+
}
|
1769
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1770
|
+
|
1771
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1772
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1773
|
+
client_retry_strategy=self.retry_strategy
|
1774
|
+
)
|
1775
|
+
if retry_strategy is None:
|
1776
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1777
|
+
|
1778
|
+
if retry_strategy:
|
1779
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1780
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1781
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1782
|
+
return retry_strategy.make_retrying_call(
|
1783
|
+
self.base_client.call_api,
|
1784
|
+
resource_path=resource_path,
|
1785
|
+
method=method,
|
1786
|
+
path_params=path_params,
|
1787
|
+
query_params=query_params,
|
1788
|
+
header_params=header_params,
|
1789
|
+
response_type="AvailablePackageCollection",
|
1790
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1791
|
+
operation_name=operation_name,
|
1792
|
+
api_reference_link=api_reference_link,
|
1793
|
+
required_arguments=required_arguments)
|
1794
|
+
else:
|
1795
|
+
return self.base_client.call_api(
|
1796
|
+
resource_path=resource_path,
|
1797
|
+
method=method,
|
1798
|
+
path_params=path_params,
|
1799
|
+
query_params=query_params,
|
1096
1800
|
header_params=header_params,
|
1097
1801
|
response_type="AvailablePackageCollection",
|
1098
1802
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1099
1803
|
operation_name=operation_name,
|
1100
1804
|
api_reference_link=api_reference_link,
|
1101
1805
|
required_arguments=required_arguments)
|
1806
|
+
|
1807
|
+
def list_managed_instance_available_software_sources(self, managed_instance_id, **kwargs):
|
1808
|
+
"""
|
1809
|
+
Returns a list of software sources that can be attached to the specified managed instance. Any software sources already attached to the instance are not included in the list.
|
1810
|
+
|
1811
|
+
|
1812
|
+
:param str managed_instance_id: (required)
|
1813
|
+
The `OCID`__ of the managed instance.
|
1814
|
+
|
1815
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1816
|
+
|
1817
|
+
:param list[str] display_name: (optional)
|
1818
|
+
A filter to return resources that match the given display names.
|
1819
|
+
|
1820
|
+
:param str display_name_contains: (optional)
|
1821
|
+
A filter to return resources that may partially match the given display name.
|
1822
|
+
|
1823
|
+
:param str compartment_id: (optional)
|
1824
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1825
|
+
|
1826
|
+
:param int limit: (optional)
|
1827
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
1828
|
+
For important details about how pagination works, see `List Pagination`__.
|
1829
|
+
|
1830
|
+
Example: `50`
|
1831
|
+
|
1832
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1833
|
+
|
1834
|
+
:param str page: (optional)
|
1835
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
1836
|
+
For important details about how pagination works, see `List Pagination`__.
|
1837
|
+
|
1838
|
+
Example: `3`
|
1839
|
+
|
1840
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
1841
|
+
|
1842
|
+
:param str sort_order: (optional)
|
1843
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
1844
|
+
|
1845
|
+
Allowed values are: "ASC", "DESC"
|
1846
|
+
|
1847
|
+
:param str sort_by: (optional)
|
1848
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
|
1849
|
+
|
1850
|
+
Allowed values are: "timeCreated", "displayName"
|
1851
|
+
|
1852
|
+
:param str opc_request_id: (optional)
|
1853
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
1854
|
+
|
1855
|
+
:param obj retry_strategy: (optional)
|
1856
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1857
|
+
|
1858
|
+
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.
|
1859
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1860
|
+
|
1861
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1862
|
+
|
1863
|
+
:param bool allow_control_chars: (optional)
|
1864
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1865
|
+
By default, the response will not allow control characters in strings
|
1866
|
+
|
1867
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.AvailableSoftwareSourceCollection`
|
1868
|
+
:rtype: :class:`~oci.response.Response`
|
1869
|
+
|
1870
|
+
:example:
|
1871
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_available_software_sources.py.html>`__ to see an example of how to use list_managed_instance_available_software_sources API.
|
1872
|
+
"""
|
1873
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1874
|
+
required_arguments = ['managedInstanceId']
|
1875
|
+
resource_path = "/managedInstances/{managedInstanceId}/availableSoftwareSources"
|
1876
|
+
method = "GET"
|
1877
|
+
operation_name = "list_managed_instance_available_software_sources"
|
1878
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceAvailableSoftwareSources"
|
1879
|
+
|
1880
|
+
# Don't accept unknown kwargs
|
1881
|
+
expected_kwargs = [
|
1882
|
+
"allow_control_chars",
|
1883
|
+
"retry_strategy",
|
1884
|
+
"display_name",
|
1885
|
+
"display_name_contains",
|
1886
|
+
"compartment_id",
|
1887
|
+
"limit",
|
1888
|
+
"page",
|
1889
|
+
"sort_order",
|
1890
|
+
"sort_by",
|
1891
|
+
"opc_request_id"
|
1892
|
+
]
|
1893
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1894
|
+
if extra_kwargs:
|
1895
|
+
raise ValueError(
|
1896
|
+
f"list_managed_instance_available_software_sources got unknown kwargs: {extra_kwargs!r}")
|
1897
|
+
|
1898
|
+
path_params = {
|
1899
|
+
"managedInstanceId": managed_instance_id
|
1900
|
+
}
|
1901
|
+
|
1902
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1903
|
+
|
1904
|
+
for (k, v) in six.iteritems(path_params):
|
1905
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1906
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1907
|
+
|
1908
|
+
if 'sort_order' in kwargs:
|
1909
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
1910
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
1911
|
+
raise ValueError(
|
1912
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
1913
|
+
)
|
1914
|
+
|
1915
|
+
if 'sort_by' in kwargs:
|
1916
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
1917
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1918
|
+
raise ValueError(
|
1919
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1920
|
+
)
|
1921
|
+
|
1922
|
+
query_params = {
|
1923
|
+
"displayName": self.base_client.generate_collection_format_param(kwargs.get("display_name", missing), 'multi'),
|
1924
|
+
"displayNameContains": kwargs.get("display_name_contains", missing),
|
1925
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
1926
|
+
"limit": kwargs.get("limit", missing),
|
1927
|
+
"page": kwargs.get("page", missing),
|
1928
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
1929
|
+
"sortBy": kwargs.get("sort_by", missing)
|
1930
|
+
}
|
1931
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1932
|
+
|
1933
|
+
header_params = {
|
1934
|
+
"accept": "application/json",
|
1935
|
+
"content-type": "application/json",
|
1936
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
1937
|
+
}
|
1938
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1939
|
+
|
1940
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1941
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1942
|
+
client_retry_strategy=self.retry_strategy
|
1943
|
+
)
|
1944
|
+
if retry_strategy is None:
|
1945
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1946
|
+
|
1947
|
+
if retry_strategy:
|
1948
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1949
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1950
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1951
|
+
return retry_strategy.make_retrying_call(
|
1952
|
+
self.base_client.call_api,
|
1953
|
+
resource_path=resource_path,
|
1954
|
+
method=method,
|
1955
|
+
path_params=path_params,
|
1956
|
+
query_params=query_params,
|
1957
|
+
header_params=header_params,
|
1958
|
+
response_type="AvailableSoftwareSourceCollection",
|
1959
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1960
|
+
operation_name=operation_name,
|
1961
|
+
api_reference_link=api_reference_link,
|
1962
|
+
required_arguments=required_arguments)
|
1102
1963
|
else:
|
1103
1964
|
return self.base_client.call_api(
|
1104
1965
|
resource_path=resource_path,
|
@@ -1106,28 +1967,44 @@ class ManagedInstanceClient(object):
|
|
1106
1967
|
path_params=path_params,
|
1107
1968
|
query_params=query_params,
|
1108
1969
|
header_params=header_params,
|
1109
|
-
response_type="
|
1970
|
+
response_type="AvailableSoftwareSourceCollection",
|
1110
1971
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1111
1972
|
operation_name=operation_name,
|
1112
1973
|
api_reference_link=api_reference_link,
|
1113
1974
|
required_arguments=required_arguments)
|
1114
1975
|
|
1115
|
-
def
|
1976
|
+
def list_managed_instance_available_windows_updates(self, managed_instance_id, **kwargs):
|
1116
1977
|
"""
|
1117
|
-
Returns a list of
|
1978
|
+
Returns a list of Windows updates that can be installed on the specified managed instance.
|
1118
1979
|
|
1119
1980
|
|
1120
1981
|
:param str managed_instance_id: (required)
|
1121
|
-
The OCID of the managed instance.
|
1982
|
+
The `OCID`__ of the managed instance.
|
1122
1983
|
|
1123
|
-
|
1124
|
-
|
1984
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1985
|
+
|
1986
|
+
:param list[str] classification_type: (optional)
|
1987
|
+
A filter to return only packages that match the given update classification type.
|
1988
|
+
|
1989
|
+
Allowed values are: "SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"
|
1990
|
+
|
1991
|
+
:param list[str] name: (optional)
|
1992
|
+
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft.
|
1993
|
+
Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
|
1994
|
+
|
1995
|
+
:param str display_name: (optional)
|
1996
|
+
A filter to return resources that match the given user-friendly name.
|
1125
1997
|
|
1126
1998
|
:param str display_name_contains: (optional)
|
1127
1999
|
A filter to return resources that may partially match the given display name.
|
1128
2000
|
|
2001
|
+
:param str is_installable: (optional)
|
2002
|
+
Indicates if the update can be installed by the OS Management Hub service.
|
2003
|
+
|
2004
|
+
Allowed values are: "INSTALLABLE", "NOT_INSTALLABLE"
|
2005
|
+
|
1129
2006
|
:param str compartment_id: (optional)
|
1130
|
-
The OCID of the compartment that contains the resources to list.
|
2007
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1131
2008
|
|
1132
2009
|
:param int limit: (optional)
|
1133
2010
|
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
@@ -1151,9 +2028,9 @@ class ManagedInstanceClient(object):
|
|
1151
2028
|
Allowed values are: "ASC", "DESC"
|
1152
2029
|
|
1153
2030
|
:param str sort_by: (optional)
|
1154
|
-
The field to sort by. Only one sort order may be provided. Default order for
|
2031
|
+
The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for name or displayName is ascending.
|
1155
2032
|
|
1156
|
-
Allowed values are: "timeCreated", "displayName"
|
2033
|
+
Allowed values are: "timeCreated", "name", "displayName"
|
1157
2034
|
|
1158
2035
|
:param str opc_request_id: (optional)
|
1159
2036
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -1170,25 +2047,28 @@ class ManagedInstanceClient(object):
|
|
1170
2047
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1171
2048
|
By default, the response will not allow control characters in strings
|
1172
2049
|
|
1173
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.
|
2050
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.AvailableWindowsUpdateCollection`
|
1174
2051
|
:rtype: :class:`~oci.response.Response`
|
1175
2052
|
|
1176
2053
|
:example:
|
1177
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2054
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_available_windows_updates.py.html>`__ to see an example of how to use list_managed_instance_available_windows_updates API.
|
1178
2055
|
"""
|
1179
2056
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1180
2057
|
required_arguments = ['managedInstanceId']
|
1181
|
-
resource_path = "/managedInstances/{managedInstanceId}/
|
2058
|
+
resource_path = "/managedInstances/{managedInstanceId}/availableWindowsUpdates"
|
1182
2059
|
method = "GET"
|
1183
|
-
operation_name = "
|
1184
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
2060
|
+
operation_name = "list_managed_instance_available_windows_updates"
|
2061
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceAvailableWindowsUpdates"
|
1185
2062
|
|
1186
2063
|
# Don't accept unknown kwargs
|
1187
2064
|
expected_kwargs = [
|
1188
2065
|
"allow_control_chars",
|
1189
2066
|
"retry_strategy",
|
2067
|
+
"classification_type",
|
2068
|
+
"name",
|
1190
2069
|
"display_name",
|
1191
2070
|
"display_name_contains",
|
2071
|
+
"is_installable",
|
1192
2072
|
"compartment_id",
|
1193
2073
|
"limit",
|
1194
2074
|
"page",
|
@@ -1199,7 +2079,7 @@ class ManagedInstanceClient(object):
|
|
1199
2079
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1200
2080
|
if extra_kwargs:
|
1201
2081
|
raise ValueError(
|
1202
|
-
f"
|
2082
|
+
f"list_managed_instance_available_windows_updates got unknown kwargs: {extra_kwargs!r}")
|
1203
2083
|
|
1204
2084
|
path_params = {
|
1205
2085
|
"managedInstanceId": managed_instance_id
|
@@ -1211,6 +2091,21 @@ class ManagedInstanceClient(object):
|
|
1211
2091
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1212
2092
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1213
2093
|
|
2094
|
+
if 'classification_type' in kwargs:
|
2095
|
+
classification_type_allowed_values = ["SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"]
|
2096
|
+
for classification_type_item in kwargs['classification_type']:
|
2097
|
+
if classification_type_item not in classification_type_allowed_values:
|
2098
|
+
raise ValueError(
|
2099
|
+
f"Invalid value for `classification_type`, must be one of { classification_type_allowed_values }"
|
2100
|
+
)
|
2101
|
+
|
2102
|
+
if 'is_installable' in kwargs:
|
2103
|
+
is_installable_allowed_values = ["INSTALLABLE", "NOT_INSTALLABLE"]
|
2104
|
+
if kwargs['is_installable'] not in is_installable_allowed_values:
|
2105
|
+
raise ValueError(
|
2106
|
+
f"Invalid value for `is_installable`, must be one of { is_installable_allowed_values }"
|
2107
|
+
)
|
2108
|
+
|
1214
2109
|
if 'sort_order' in kwargs:
|
1215
2110
|
sort_order_allowed_values = ["ASC", "DESC"]
|
1216
2111
|
if kwargs['sort_order'] not in sort_order_allowed_values:
|
@@ -1219,15 +2114,18 @@ class ManagedInstanceClient(object):
|
|
1219
2114
|
)
|
1220
2115
|
|
1221
2116
|
if 'sort_by' in kwargs:
|
1222
|
-
sort_by_allowed_values = ["timeCreated", "displayName"]
|
2117
|
+
sort_by_allowed_values = ["timeCreated", "name", "displayName"]
|
1223
2118
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1224
2119
|
raise ValueError(
|
1225
2120
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1226
2121
|
)
|
1227
2122
|
|
1228
2123
|
query_params = {
|
1229
|
-
"
|
2124
|
+
"classificationType": self.base_client.generate_collection_format_param(kwargs.get("classification_type", missing), 'multi'),
|
2125
|
+
"name": self.base_client.generate_collection_format_param(kwargs.get("name", missing), 'multi'),
|
2126
|
+
"displayName": kwargs.get("display_name", missing),
|
1230
2127
|
"displayNameContains": kwargs.get("display_name_contains", missing),
|
2128
|
+
"isInstallable": kwargs.get("is_installable", missing),
|
1231
2129
|
"compartmentId": kwargs.get("compartment_id", missing),
|
1232
2130
|
"limit": kwargs.get("limit", missing),
|
1233
2131
|
"page": kwargs.get("page", missing),
|
@@ -1261,7 +2159,7 @@ class ManagedInstanceClient(object):
|
|
1261
2159
|
path_params=path_params,
|
1262
2160
|
query_params=query_params,
|
1263
2161
|
header_params=header_params,
|
1264
|
-
response_type="
|
2162
|
+
response_type="AvailableWindowsUpdateCollection",
|
1265
2163
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1266
2164
|
operation_name=operation_name,
|
1267
2165
|
api_reference_link=api_reference_link,
|
@@ -1273,7 +2171,7 @@ class ManagedInstanceClient(object):
|
|
1273
2171
|
path_params=path_params,
|
1274
2172
|
query_params=query_params,
|
1275
2173
|
header_params=header_params,
|
1276
|
-
response_type="
|
2174
|
+
response_type="AvailableWindowsUpdateCollection",
|
1277
2175
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1278
2176
|
operation_name=operation_name,
|
1279
2177
|
api_reference_link=api_reference_link,
|
@@ -1285,23 +2183,214 @@ class ManagedInstanceClient(object):
|
|
1285
2183
|
|
1286
2184
|
|
1287
2185
|
:param str managed_instance_id: (required)
|
1288
|
-
The OCID of the managed instance.
|
2186
|
+
The `OCID`__ of the managed instance.
|
2187
|
+
|
2188
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2189
|
+
|
2190
|
+
:param list[str] classification_type: (optional)
|
2191
|
+
A filter to return only packages that match the given update classification type.
|
2192
|
+
|
2193
|
+
Allowed values are: "SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"
|
2194
|
+
|
2195
|
+
:param list[str] name: (optional)
|
2196
|
+
The assigned erratum name. It's unique and not changeable.
|
2197
|
+
|
2198
|
+
Example: `ELSA-2020-5804`
|
2199
|
+
|
2200
|
+
:param str name_contains: (optional)
|
2201
|
+
A filter to return resources that may partially match the erratum name given.
|
2202
|
+
|
2203
|
+
:param str compartment_id: (optional)
|
2204
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
2205
|
+
|
2206
|
+
:param int limit: (optional)
|
2207
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
2208
|
+
For important details about how pagination works, see `List Pagination`__.
|
2209
|
+
|
2210
|
+
Example: `50`
|
2211
|
+
|
2212
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
2213
|
+
|
2214
|
+
:param str page: (optional)
|
2215
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
2216
|
+
For important details about how pagination works, see `List Pagination`__.
|
2217
|
+
|
2218
|
+
Example: `3`
|
2219
|
+
|
2220
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
2221
|
+
|
2222
|
+
:param str sort_order: (optional)
|
2223
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
2224
|
+
|
2225
|
+
Allowed values are: "ASC", "DESC"
|
2226
|
+
|
2227
|
+
:param str sort_by: (optional)
|
2228
|
+
The field to sort errata by. Only one sort order may be provided. Default order for timeIssued is descending. Default order for name is ascending. If no value is specified timeIssued is default.
|
2229
|
+
|
2230
|
+
Allowed values are: "timeIssued", "name"
|
2231
|
+
|
2232
|
+
:param str opc_request_id: (optional)
|
2233
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
2234
|
+
|
2235
|
+
:param obj retry_strategy: (optional)
|
2236
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2237
|
+
|
2238
|
+
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.
|
2239
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2240
|
+
|
2241
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2242
|
+
|
2243
|
+
:param bool allow_control_chars: (optional)
|
2244
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2245
|
+
By default, the response will not allow control characters in strings
|
2246
|
+
|
2247
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.ManagedInstanceErratumSummaryCollection`
|
2248
|
+
:rtype: :class:`~oci.response.Response`
|
2249
|
+
|
2250
|
+
:example:
|
2251
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_errata.py.html>`__ to see an example of how to use list_managed_instance_errata API.
|
2252
|
+
"""
|
2253
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2254
|
+
required_arguments = ['managedInstanceId']
|
2255
|
+
resource_path = "/managedInstances/{managedInstanceId}/errata"
|
2256
|
+
method = "GET"
|
2257
|
+
operation_name = "list_managed_instance_errata"
|
2258
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceErrata"
|
2259
|
+
|
2260
|
+
# Don't accept unknown kwargs
|
2261
|
+
expected_kwargs = [
|
2262
|
+
"allow_control_chars",
|
2263
|
+
"retry_strategy",
|
2264
|
+
"classification_type",
|
2265
|
+
"name",
|
2266
|
+
"name_contains",
|
2267
|
+
"compartment_id",
|
2268
|
+
"limit",
|
2269
|
+
"page",
|
2270
|
+
"sort_order",
|
2271
|
+
"sort_by",
|
2272
|
+
"opc_request_id"
|
2273
|
+
]
|
2274
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2275
|
+
if extra_kwargs:
|
2276
|
+
raise ValueError(
|
2277
|
+
f"list_managed_instance_errata got unknown kwargs: {extra_kwargs!r}")
|
2278
|
+
|
2279
|
+
path_params = {
|
2280
|
+
"managedInstanceId": managed_instance_id
|
2281
|
+
}
|
2282
|
+
|
2283
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
2284
|
+
|
2285
|
+
for (k, v) in six.iteritems(path_params):
|
2286
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2287
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2288
|
+
|
2289
|
+
if 'classification_type' in kwargs:
|
2290
|
+
classification_type_allowed_values = ["SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"]
|
2291
|
+
for classification_type_item in kwargs['classification_type']:
|
2292
|
+
if classification_type_item not in classification_type_allowed_values:
|
2293
|
+
raise ValueError(
|
2294
|
+
f"Invalid value for `classification_type`, must be one of { classification_type_allowed_values }"
|
2295
|
+
)
|
2296
|
+
|
2297
|
+
if 'sort_order' in kwargs:
|
2298
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
2299
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
2300
|
+
raise ValueError(
|
2301
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
2302
|
+
)
|
2303
|
+
|
2304
|
+
if 'sort_by' in kwargs:
|
2305
|
+
sort_by_allowed_values = ["timeIssued", "name"]
|
2306
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
2307
|
+
raise ValueError(
|
2308
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
2309
|
+
)
|
2310
|
+
|
2311
|
+
query_params = {
|
2312
|
+
"classificationType": self.base_client.generate_collection_format_param(kwargs.get("classification_type", missing), 'multi'),
|
2313
|
+
"name": self.base_client.generate_collection_format_param(kwargs.get("name", missing), 'multi'),
|
2314
|
+
"nameContains": kwargs.get("name_contains", missing),
|
2315
|
+
"compartmentId": kwargs.get("compartment_id", missing),
|
2316
|
+
"limit": kwargs.get("limit", missing),
|
2317
|
+
"page": kwargs.get("page", missing),
|
2318
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
2319
|
+
"sortBy": kwargs.get("sort_by", missing)
|
2320
|
+
}
|
2321
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2322
|
+
|
2323
|
+
header_params = {
|
2324
|
+
"accept": "application/json",
|
2325
|
+
"content-type": "application/json",
|
2326
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2327
|
+
}
|
2328
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2329
|
+
|
2330
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2331
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2332
|
+
client_retry_strategy=self.retry_strategy
|
2333
|
+
)
|
2334
|
+
if retry_strategy is None:
|
2335
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2336
|
+
|
2337
|
+
if retry_strategy:
|
2338
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2339
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2340
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2341
|
+
return retry_strategy.make_retrying_call(
|
2342
|
+
self.base_client.call_api,
|
2343
|
+
resource_path=resource_path,
|
2344
|
+
method=method,
|
2345
|
+
path_params=path_params,
|
2346
|
+
query_params=query_params,
|
2347
|
+
header_params=header_params,
|
2348
|
+
response_type="ManagedInstanceErratumSummaryCollection",
|
2349
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2350
|
+
operation_name=operation_name,
|
2351
|
+
api_reference_link=api_reference_link,
|
2352
|
+
required_arguments=required_arguments)
|
2353
|
+
else:
|
2354
|
+
return self.base_client.call_api(
|
2355
|
+
resource_path=resource_path,
|
2356
|
+
method=method,
|
2357
|
+
path_params=path_params,
|
2358
|
+
query_params=query_params,
|
2359
|
+
header_params=header_params,
|
2360
|
+
response_type="ManagedInstanceErratumSummaryCollection",
|
2361
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2362
|
+
operation_name=operation_name,
|
2363
|
+
api_reference_link=api_reference_link,
|
2364
|
+
required_arguments=required_arguments)
|
2365
|
+
|
2366
|
+
def list_managed_instance_installed_packages(self, managed_instance_id, **kwargs):
|
2367
|
+
"""
|
2368
|
+
Lists the packages that are installed on the managed instance.
|
2369
|
+
|
2370
|
+
|
2371
|
+
:param str managed_instance_id: (required)
|
2372
|
+
The `OCID`__ of the managed instance.
|
2373
|
+
|
2374
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2375
|
+
|
2376
|
+
:param list[str] display_name: (optional)
|
2377
|
+
A filter to return resources that match the given display names.
|
1289
2378
|
|
1290
|
-
:param
|
1291
|
-
A filter to return
|
2379
|
+
:param str display_name_contains: (optional)
|
2380
|
+
A filter to return resources that may partially match the given display name.
|
1292
2381
|
|
1293
|
-
|
2382
|
+
:param datetime time_install_date_start: (optional)
|
2383
|
+
The install date after which to list all packages, in ISO 8601 format
|
1294
2384
|
|
1295
|
-
|
1296
|
-
The assigned erratum name. It's unique and not changeable.
|
2385
|
+
Example: 2017-07-14T02:40:00.000Z
|
1297
2386
|
|
1298
|
-
|
2387
|
+
:param datetime time_install_date_end: (optional)
|
2388
|
+
A filter to return only packages that were installed on or before the date provided, in ISO 8601 format.
|
1299
2389
|
|
1300
|
-
|
1301
|
-
A filter to return resources that may partially match the erratum name given.
|
2390
|
+
Example: 2017-07-14T02:40:00.000Z
|
1302
2391
|
|
1303
2392
|
:param str compartment_id: (optional)
|
1304
|
-
The OCID of the compartment that contains the resources to list.
|
2393
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1305
2394
|
|
1306
2395
|
:param int limit: (optional)
|
1307
2396
|
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
@@ -1325,9 +2414,9 @@ class ManagedInstanceClient(object):
|
|
1325
2414
|
Allowed values are: "ASC", "DESC"
|
1326
2415
|
|
1327
2416
|
:param str sort_by: (optional)
|
1328
|
-
The field to sort
|
2417
|
+
The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending.
|
1329
2418
|
|
1330
|
-
Allowed values are: "
|
2419
|
+
Allowed values are: "timeInstalled", "timeCreated", "displayName"
|
1331
2420
|
|
1332
2421
|
:param str opc_request_id: (optional)
|
1333
2422
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -1344,26 +2433,27 @@ class ManagedInstanceClient(object):
|
|
1344
2433
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1345
2434
|
By default, the response will not allow control characters in strings
|
1346
2435
|
|
1347
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.
|
2436
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.InstalledPackageCollection`
|
1348
2437
|
:rtype: :class:`~oci.response.Response`
|
1349
2438
|
|
1350
2439
|
:example:
|
1351
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2440
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_installed_packages.py.html>`__ to see an example of how to use list_managed_instance_installed_packages API.
|
1352
2441
|
"""
|
1353
2442
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1354
2443
|
required_arguments = ['managedInstanceId']
|
1355
|
-
resource_path = "/managedInstances/{managedInstanceId}/
|
2444
|
+
resource_path = "/managedInstances/{managedInstanceId}/installedPackages"
|
1356
2445
|
method = "GET"
|
1357
|
-
operation_name = "
|
1358
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
2446
|
+
operation_name = "list_managed_instance_installed_packages"
|
2447
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceInstalledPackages"
|
1359
2448
|
|
1360
2449
|
# Don't accept unknown kwargs
|
1361
2450
|
expected_kwargs = [
|
1362
2451
|
"allow_control_chars",
|
1363
2452
|
"retry_strategy",
|
1364
|
-
"
|
1365
|
-
"
|
1366
|
-
"
|
2453
|
+
"display_name",
|
2454
|
+
"display_name_contains",
|
2455
|
+
"time_install_date_start",
|
2456
|
+
"time_install_date_end",
|
1367
2457
|
"compartment_id",
|
1368
2458
|
"limit",
|
1369
2459
|
"page",
|
@@ -1374,7 +2464,7 @@ class ManagedInstanceClient(object):
|
|
1374
2464
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1375
2465
|
if extra_kwargs:
|
1376
2466
|
raise ValueError(
|
1377
|
-
f"
|
2467
|
+
f"list_managed_instance_installed_packages got unknown kwargs: {extra_kwargs!r}")
|
1378
2468
|
|
1379
2469
|
path_params = {
|
1380
2470
|
"managedInstanceId": managed_instance_id
|
@@ -1386,14 +2476,6 @@ class ManagedInstanceClient(object):
|
|
1386
2476
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1387
2477
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1388
2478
|
|
1389
|
-
if 'advisory_type' in kwargs:
|
1390
|
-
advisory_type_allowed_values = ["SECURITY", "BUGFIX", "ENHANCEMENT"]
|
1391
|
-
for advisory_type_item in kwargs['advisory_type']:
|
1392
|
-
if advisory_type_item not in advisory_type_allowed_values:
|
1393
|
-
raise ValueError(
|
1394
|
-
f"Invalid value for `advisory_type`, must be one of { advisory_type_allowed_values }"
|
1395
|
-
)
|
1396
|
-
|
1397
2479
|
if 'sort_order' in kwargs:
|
1398
2480
|
sort_order_allowed_values = ["ASC", "DESC"]
|
1399
2481
|
if kwargs['sort_order'] not in sort_order_allowed_values:
|
@@ -1402,16 +2484,17 @@ class ManagedInstanceClient(object):
|
|
1402
2484
|
)
|
1403
2485
|
|
1404
2486
|
if 'sort_by' in kwargs:
|
1405
|
-
sort_by_allowed_values = ["
|
2487
|
+
sort_by_allowed_values = ["timeInstalled", "timeCreated", "displayName"]
|
1406
2488
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1407
2489
|
raise ValueError(
|
1408
2490
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1409
2491
|
)
|
1410
2492
|
|
1411
2493
|
query_params = {
|
1412
|
-
"
|
1413
|
-
"
|
1414
|
-
"
|
2494
|
+
"displayName": self.base_client.generate_collection_format_param(kwargs.get("display_name", missing), 'multi'),
|
2495
|
+
"displayNameContains": kwargs.get("display_name_contains", missing),
|
2496
|
+
"timeInstallDateStart": kwargs.get("time_install_date_start", missing),
|
2497
|
+
"timeInstallDateEnd": kwargs.get("time_install_date_end", missing),
|
1415
2498
|
"compartmentId": kwargs.get("compartment_id", missing),
|
1416
2499
|
"limit": kwargs.get("limit", missing),
|
1417
2500
|
"page": kwargs.get("page", missing),
|
@@ -1445,7 +2528,7 @@ class ManagedInstanceClient(object):
|
|
1445
2528
|
path_params=path_params,
|
1446
2529
|
query_params=query_params,
|
1447
2530
|
header_params=header_params,
|
1448
|
-
response_type="
|
2531
|
+
response_type="InstalledPackageCollection",
|
1449
2532
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1450
2533
|
operation_name=operation_name,
|
1451
2534
|
api_reference_link=api_reference_link,
|
@@ -1457,38 +2540,34 @@ class ManagedInstanceClient(object):
|
|
1457
2540
|
path_params=path_params,
|
1458
2541
|
query_params=query_params,
|
1459
2542
|
header_params=header_params,
|
1460
|
-
response_type="
|
2543
|
+
response_type="InstalledPackageCollection",
|
1461
2544
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1462
2545
|
operation_name=operation_name,
|
1463
2546
|
api_reference_link=api_reference_link,
|
1464
2547
|
required_arguments=required_arguments)
|
1465
2548
|
|
1466
|
-
def
|
2549
|
+
def list_managed_instance_installed_windows_updates(self, managed_instance_id, **kwargs):
|
1467
2550
|
"""
|
1468
|
-
|
2551
|
+
Returns a list of Windows updates that have been installed on the specified managed instance.
|
1469
2552
|
|
1470
2553
|
|
1471
2554
|
:param str managed_instance_id: (required)
|
1472
|
-
The OCID of the managed instance.
|
1473
|
-
|
1474
|
-
:param list[str] display_name: (optional)
|
1475
|
-
A filter to return resources that match the given display names.
|
1476
|
-
|
1477
|
-
:param str display_name_contains: (optional)
|
1478
|
-
A filter to return resources that may partially match the given display name.
|
2555
|
+
The `OCID`__ of the managed instance.
|
1479
2556
|
|
1480
|
-
|
1481
|
-
The install date after which to list all packages, in ISO 8601 format
|
2557
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1482
2558
|
|
1483
|
-
|
2559
|
+
:param list[str] name: (optional)
|
2560
|
+
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft.
|
2561
|
+
Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
|
1484
2562
|
|
1485
|
-
:param
|
1486
|
-
|
2563
|
+
:param str display_name: (optional)
|
2564
|
+
A filter to return resources that match the given user-friendly name.
|
1487
2565
|
|
1488
|
-
|
2566
|
+
:param str display_name_contains: (optional)
|
2567
|
+
A filter to return resources that may partially match the given display name.
|
1489
2568
|
|
1490
2569
|
:param str compartment_id: (optional)
|
1491
|
-
The OCID of the compartment that contains the resources to list.
|
2570
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1492
2571
|
|
1493
2572
|
:param int limit: (optional)
|
1494
2573
|
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
@@ -1512,9 +2591,9 @@ class ManagedInstanceClient(object):
|
|
1512
2591
|
Allowed values are: "ASC", "DESC"
|
1513
2592
|
|
1514
2593
|
:param str sort_by: (optional)
|
1515
|
-
The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for displayName is ascending.
|
2594
|
+
The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for name or displayName is ascending.
|
1516
2595
|
|
1517
|
-
Allowed values are: "
|
2596
|
+
Allowed values are: "timeCreated", "name", "displayName"
|
1518
2597
|
|
1519
2598
|
:param str opc_request_id: (optional)
|
1520
2599
|
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
@@ -1531,27 +2610,26 @@ class ManagedInstanceClient(object):
|
|
1531
2610
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1532
2611
|
By default, the response will not allow control characters in strings
|
1533
2612
|
|
1534
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.
|
2613
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.InstalledWindowsUpdateCollection`
|
1535
2614
|
:rtype: :class:`~oci.response.Response`
|
1536
2615
|
|
1537
2616
|
:example:
|
1538
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2617
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_installed_windows_updates.py.html>`__ to see an example of how to use list_managed_instance_installed_windows_updates API.
|
1539
2618
|
"""
|
1540
2619
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1541
2620
|
required_arguments = ['managedInstanceId']
|
1542
|
-
resource_path = "/managedInstances/{managedInstanceId}/
|
2621
|
+
resource_path = "/managedInstances/{managedInstanceId}/installedWindowsUpdates"
|
1543
2622
|
method = "GET"
|
1544
|
-
operation_name = "
|
1545
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/
|
2623
|
+
operation_name = "list_managed_instance_installed_windows_updates"
|
2624
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/ManagedInstance/ListManagedInstanceInstalledWindowsUpdates"
|
1546
2625
|
|
1547
2626
|
# Don't accept unknown kwargs
|
1548
2627
|
expected_kwargs = [
|
1549
2628
|
"allow_control_chars",
|
1550
2629
|
"retry_strategy",
|
2630
|
+
"name",
|
1551
2631
|
"display_name",
|
1552
2632
|
"display_name_contains",
|
1553
|
-
"time_install_date_start",
|
1554
|
-
"time_install_date_end",
|
1555
2633
|
"compartment_id",
|
1556
2634
|
"limit",
|
1557
2635
|
"page",
|
@@ -1562,7 +2640,7 @@ class ManagedInstanceClient(object):
|
|
1562
2640
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1563
2641
|
if extra_kwargs:
|
1564
2642
|
raise ValueError(
|
1565
|
-
f"
|
2643
|
+
f"list_managed_instance_installed_windows_updates got unknown kwargs: {extra_kwargs!r}")
|
1566
2644
|
|
1567
2645
|
path_params = {
|
1568
2646
|
"managedInstanceId": managed_instance_id
|
@@ -1582,17 +2660,16 @@ class ManagedInstanceClient(object):
|
|
1582
2660
|
)
|
1583
2661
|
|
1584
2662
|
if 'sort_by' in kwargs:
|
1585
|
-
sort_by_allowed_values = ["
|
2663
|
+
sort_by_allowed_values = ["timeCreated", "name", "displayName"]
|
1586
2664
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
1587
2665
|
raise ValueError(
|
1588
2666
|
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
1589
2667
|
)
|
1590
2668
|
|
1591
2669
|
query_params = {
|
1592
|
-
"
|
2670
|
+
"name": self.base_client.generate_collection_format_param(kwargs.get("name", missing), 'multi'),
|
2671
|
+
"displayName": kwargs.get("display_name", missing),
|
1593
2672
|
"displayNameContains": kwargs.get("display_name_contains", missing),
|
1594
|
-
"timeInstallDateStart": kwargs.get("time_install_date_start", missing),
|
1595
|
-
"timeInstallDateEnd": kwargs.get("time_install_date_end", missing),
|
1596
2673
|
"compartmentId": kwargs.get("compartment_id", missing),
|
1597
2674
|
"limit": kwargs.get("limit", missing),
|
1598
2675
|
"page": kwargs.get("page", missing),
|
@@ -1626,7 +2703,7 @@ class ManagedInstanceClient(object):
|
|
1626
2703
|
path_params=path_params,
|
1627
2704
|
query_params=query_params,
|
1628
2705
|
header_params=header_params,
|
1629
|
-
response_type="
|
2706
|
+
response_type="InstalledWindowsUpdateCollection",
|
1630
2707
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1631
2708
|
operation_name=operation_name,
|
1632
2709
|
api_reference_link=api_reference_link,
|
@@ -1638,7 +2715,7 @@ class ManagedInstanceClient(object):
|
|
1638
2715
|
path_params=path_params,
|
1639
2716
|
query_params=query_params,
|
1640
2717
|
header_params=header_params,
|
1641
|
-
response_type="
|
2718
|
+
response_type="InstalledWindowsUpdateCollection",
|
1642
2719
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1643
2720
|
operation_name=operation_name,
|
1644
2721
|
api_reference_link=api_reference_link,
|
@@ -1646,25 +2723,16 @@ class ManagedInstanceClient(object):
|
|
1646
2723
|
|
1647
2724
|
def list_managed_instance_modules(self, managed_instance_id, **kwargs):
|
1648
2725
|
"""
|
1649
|
-
|
1650
|
-
from a managed instance. Filters may be applied to select
|
1651
|
-
a subset of modules based on the filter criteria.
|
1652
|
-
|
1653
|
-
The 'name' attribute filters against the name of a module.
|
1654
|
-
It accepts strings of the format \"<string>\".
|
1655
|
-
|
1656
|
-
The 'nameContains' attribute filters against the name of a module
|
1657
|
-
based on partial match. It accepts strings of the format \"<string>\".
|
1658
|
-
If this attribute is defined, only matching modules are included
|
1659
|
-
in the result set. If it is not defined, the request is not subject
|
1660
|
-
to this filter.
|
2726
|
+
Retrieves a list of modules, along with streams of the modules, from a managed instance. Filters may be applied to select a subset of modules based on the filter criteria.
|
1661
2727
|
|
1662
2728
|
|
1663
2729
|
:param str managed_instance_id: (required)
|
1664
|
-
The OCID of the managed instance.
|
2730
|
+
The `OCID`__ of the managed instance.
|
2731
|
+
|
2732
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1665
2733
|
|
1666
2734
|
:param str compartment_id: (optional)
|
1667
|
-
The OCID of the compartment that contains the resources to list.
|
2735
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1668
2736
|
|
1669
2737
|
:param str name: (optional)
|
1670
2738
|
The resource name.
|
@@ -1717,7 +2785,7 @@ class ManagedInstanceClient(object):
|
|
1717
2785
|
:rtype: :class:`~oci.response.Response`
|
1718
2786
|
|
1719
2787
|
:example:
|
1720
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2788
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_modules.py.html>`__ to see an example of how to use list_managed_instance_modules API.
|
1721
2789
|
"""
|
1722
2790
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1723
2791
|
required_arguments = ['managedInstanceId']
|
@@ -1828,7 +2896,9 @@ class ManagedInstanceClient(object):
|
|
1828
2896
|
|
1829
2897
|
|
1830
2898
|
:param str managed_instance_id: (required)
|
1831
|
-
The OCID of the managed instance.
|
2899
|
+
The `OCID`__ of the managed instance.
|
2900
|
+
|
2901
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
1832
2902
|
|
1833
2903
|
:param list[str] classification_type: (optional)
|
1834
2904
|
A filter to return only packages that match the given update classification type.
|
@@ -1847,7 +2917,7 @@ class ManagedInstanceClient(object):
|
|
1847
2917
|
Example: `ELSA-2020-5804`
|
1848
2918
|
|
1849
2919
|
:param str compartment_id: (optional)
|
1850
|
-
The OCID of the compartment that contains the resources to list.
|
2920
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
1851
2921
|
|
1852
2922
|
:param int limit: (optional)
|
1853
2923
|
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
@@ -1894,7 +2964,7 @@ class ManagedInstanceClient(object):
|
|
1894
2964
|
:rtype: :class:`~oci.response.Response`
|
1895
2965
|
|
1896
2966
|
:example:
|
1897
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2967
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instance_updatable_packages.py.html>`__ to see an example of how to use list_managed_instance_updatable_packages API.
|
1898
2968
|
"""
|
1899
2969
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1900
2970
|
required_arguments = ['managedInstanceId']
|
@@ -2017,7 +3087,7 @@ class ManagedInstanceClient(object):
|
|
2017
3087
|
|
2018
3088
|
|
2019
3089
|
:param str compartment_id: (optional)
|
2020
|
-
The OCID of the compartment that contains the resources to list.
|
3090
|
+
The OCID of the compartment that contains the resources to list. This filter returns only resources contained within the specified compartment.
|
2021
3091
|
|
2022
3092
|
:param list[str] display_name: (optional)
|
2023
3093
|
A filter to return resources that match the given display names.
|
@@ -2026,12 +3096,14 @@ class ManagedInstanceClient(object):
|
|
2026
3096
|
A filter to return resources that may partially match the given display name.
|
2027
3097
|
|
2028
3098
|
:param str managed_instance_id: (optional)
|
2029
|
-
The OCID of the managed instance
|
3099
|
+
The `OCID`__ of the managed instance. This filter returns resources associated with this managed instance.
|
3100
|
+
|
3101
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2030
3102
|
|
2031
3103
|
:param list[str] status: (optional)
|
2032
|
-
A filter to return only instances whose
|
3104
|
+
A filter to return only managed instances whose status matches the status provided.
|
2033
3105
|
|
2034
|
-
Allowed values are: "NORMAL", "UNREACHABLE", "ERROR", "WARNING", "REGISTRATION_ERROR"
|
3106
|
+
Allowed values are: "NORMAL", "UNREACHABLE", "ERROR", "WARNING", "REGISTRATION_ERROR", "DELETING", "ONBOARDING"
|
2035
3107
|
|
2036
3108
|
:param list[str] arch_type: (optional)
|
2037
3109
|
A filter to return only instances whose architecture type matches the given architecture.
|
@@ -2039,12 +3111,12 @@ class ManagedInstanceClient(object):
|
|
2039
3111
|
Allowed values are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC"
|
2040
3112
|
|
2041
3113
|
:param list[str] os_family: (optional)
|
2042
|
-
A filter to return only
|
3114
|
+
A filter to return only resources that match the given operating system family.
|
2043
3115
|
|
2044
|
-
Allowed values are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7"
|
3116
|
+
Allowed values are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL"
|
2045
3117
|
|
2046
3118
|
:param bool is_management_station: (optional)
|
2047
|
-
A filter to return only managed instances acting as management stations.
|
3119
|
+
A filter to return only managed instances that are acting as management stations.
|
2048
3120
|
|
2049
3121
|
:param str group: (optional)
|
2050
3122
|
A filter to return only managed instances that are attached to the specified group.
|
@@ -2062,13 +3134,45 @@ class ManagedInstanceClient(object):
|
|
2062
3134
|
A filter to return only managed instances that are attached to the specified group or lifecycle environment.
|
2063
3135
|
|
2064
3136
|
:param str software_source_id: (optional)
|
2065
|
-
The OCID
|
3137
|
+
The `OCID`__ of the software source. This filter returns resources associated with this software source.
|
3138
|
+
|
3139
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2066
3140
|
|
2067
3141
|
:param list[str] advisory_name: (optional)
|
2068
3142
|
The assigned erratum name. It's unique and not changeable.
|
2069
3143
|
|
2070
3144
|
Example: `ELSA-2020-5804`
|
2071
3145
|
|
3146
|
+
:param str lifecycle_environment: (optional)
|
3147
|
+
A filter to return only managed instances in a specific lifecycle environment.
|
3148
|
+
|
3149
|
+
:param str lifecycle_environment_not_equal_to: (optional)
|
3150
|
+
A filter to return only managed instances that aren't in a specific lifecycle environment.
|
3151
|
+
|
3152
|
+
:param list[str] location: (optional)
|
3153
|
+
A filter to return only resources whose location matches the given value.
|
3154
|
+
|
3155
|
+
Allowed values are: "ON_PREMISE", "OCI_COMPUTE", "AZURE", "EC2", "GCP"
|
3156
|
+
|
3157
|
+
:param list[str] location_not_equal_to: (optional)
|
3158
|
+
A filter to return only resources whose location does not match the given value.
|
3159
|
+
|
3160
|
+
Allowed values are: "ON_PREMISE", "OCI_COMPUTE", "AZURE", "EC2", "GCP"
|
3161
|
+
|
3162
|
+
:param list[str] profile: (optional)
|
3163
|
+
A multi filter to return only managed instances that match the given profile ids.
|
3164
|
+
|
3165
|
+
:param list[str] profile_not_equal_to: (optional)
|
3166
|
+
A multi filter to return only managed instances that don't contain the given profile `OCIDs`__.
|
3167
|
+
|
3168
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3169
|
+
|
3170
|
+
:param bool is_profile_attached: (optional)
|
3171
|
+
A filter to return only managed instances with a registration profile attached.
|
3172
|
+
|
3173
|
+
:param bool is_managed_by_autonomous_linux: (optional)
|
3174
|
+
Indicates whether to list only resources managed by the Autonomous Linux service.
|
3175
|
+
|
2072
3176
|
:param int limit: (optional)
|
2073
3177
|
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
2074
3178
|
For important details about how pagination works, see `List Pagination`__.
|
@@ -2114,7 +3218,7 @@ class ManagedInstanceClient(object):
|
|
2114
3218
|
:rtype: :class:`~oci.response.Response`
|
2115
3219
|
|
2116
3220
|
:example:
|
2117
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3221
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_managed_instances.py.html>`__ to see an example of how to use list_managed_instances API.
|
2118
3222
|
"""
|
2119
3223
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2120
3224
|
required_arguments = []
|
@@ -2142,6 +3246,14 @@ class ManagedInstanceClient(object):
|
|
2142
3246
|
"is_attached_to_group_or_lifecycle_stage",
|
2143
3247
|
"software_source_id",
|
2144
3248
|
"advisory_name",
|
3249
|
+
"lifecycle_environment",
|
3250
|
+
"lifecycle_environment_not_equal_to",
|
3251
|
+
"location",
|
3252
|
+
"location_not_equal_to",
|
3253
|
+
"profile",
|
3254
|
+
"profile_not_equal_to",
|
3255
|
+
"is_profile_attached",
|
3256
|
+
"is_managed_by_autonomous_linux",
|
2145
3257
|
"limit",
|
2146
3258
|
"page",
|
2147
3259
|
"sort_order",
|
@@ -2154,7 +3266,7 @@ class ManagedInstanceClient(object):
|
|
2154
3266
|
f"list_managed_instances got unknown kwargs: {extra_kwargs!r}")
|
2155
3267
|
|
2156
3268
|
if 'status' in kwargs:
|
2157
|
-
status_allowed_values = ["NORMAL", "UNREACHABLE", "ERROR", "WARNING", "REGISTRATION_ERROR"]
|
3269
|
+
status_allowed_values = ["NORMAL", "UNREACHABLE", "ERROR", "WARNING", "REGISTRATION_ERROR", "DELETING", "ONBOARDING"]
|
2158
3270
|
for status_item in kwargs['status']:
|
2159
3271
|
if status_item not in status_allowed_values:
|
2160
3272
|
raise ValueError(
|
@@ -2170,13 +3282,29 @@ class ManagedInstanceClient(object):
|
|
2170
3282
|
)
|
2171
3283
|
|
2172
3284
|
if 'os_family' in kwargs:
|
2173
|
-
os_family_allowed_values = ["ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7"]
|
3285
|
+
os_family_allowed_values = ["ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL"]
|
2174
3286
|
for os_family_item in kwargs['os_family']:
|
2175
3287
|
if os_family_item not in os_family_allowed_values:
|
2176
3288
|
raise ValueError(
|
2177
3289
|
f"Invalid value for `os_family`, must be one of { os_family_allowed_values }"
|
2178
3290
|
)
|
2179
3291
|
|
3292
|
+
if 'location' in kwargs:
|
3293
|
+
location_allowed_values = ["ON_PREMISE", "OCI_COMPUTE", "AZURE", "EC2", "GCP"]
|
3294
|
+
for location_item in kwargs['location']:
|
3295
|
+
if location_item not in location_allowed_values:
|
3296
|
+
raise ValueError(
|
3297
|
+
f"Invalid value for `location`, must be one of { location_allowed_values }"
|
3298
|
+
)
|
3299
|
+
|
3300
|
+
if 'location_not_equal_to' in kwargs:
|
3301
|
+
location_not_equal_to_allowed_values = ["ON_PREMISE", "OCI_COMPUTE", "AZURE", "EC2", "GCP"]
|
3302
|
+
for location_not_equal_to_item in kwargs['location_not_equal_to']:
|
3303
|
+
if location_not_equal_to_item not in location_not_equal_to_allowed_values:
|
3304
|
+
raise ValueError(
|
3305
|
+
f"Invalid value for `location_not_equal_to`, must be one of { location_not_equal_to_allowed_values }"
|
3306
|
+
)
|
3307
|
+
|
2180
3308
|
if 'sort_order' in kwargs:
|
2181
3309
|
sort_order_allowed_values = ["ASC", "DESC"]
|
2182
3310
|
if kwargs['sort_order'] not in sort_order_allowed_values:
|
@@ -2207,6 +3335,14 @@ class ManagedInstanceClient(object):
|
|
2207
3335
|
"isAttachedToGroupOrLifecycleStage": kwargs.get("is_attached_to_group_or_lifecycle_stage", missing),
|
2208
3336
|
"softwareSourceId": kwargs.get("software_source_id", missing),
|
2209
3337
|
"advisoryName": self.base_client.generate_collection_format_param(kwargs.get("advisory_name", missing), 'multi'),
|
3338
|
+
"lifecycleEnvironment": kwargs.get("lifecycle_environment", missing),
|
3339
|
+
"lifecycleEnvironmentNotEqualTo": kwargs.get("lifecycle_environment_not_equal_to", missing),
|
3340
|
+
"location": self.base_client.generate_collection_format_param(kwargs.get("location", missing), 'multi'),
|
3341
|
+
"locationNotEqualTo": self.base_client.generate_collection_format_param(kwargs.get("location_not_equal_to", missing), 'multi'),
|
3342
|
+
"profile": self.base_client.generate_collection_format_param(kwargs.get("profile", missing), 'multi'),
|
3343
|
+
"profileNotEqualTo": self.base_client.generate_collection_format_param(kwargs.get("profile_not_equal_to", missing), 'multi'),
|
3344
|
+
"isProfileAttached": kwargs.get("is_profile_attached", missing),
|
3345
|
+
"isManagedByAutonomousLinux": kwargs.get("is_managed_by_autonomous_linux", missing),
|
2210
3346
|
"limit": kwargs.get("limit", missing),
|
2211
3347
|
"page": kwargs.get("page", missing),
|
2212
3348
|
"sortOrder": kwargs.get("sort_order", missing),
|
@@ -2255,72 +3391,187 @@ class ManagedInstanceClient(object):
|
|
2255
3391
|
api_reference_link=api_reference_link,
|
2256
3392
|
required_arguments=required_arguments)
|
2257
3393
|
|
3394
|
+
def list_windows_updates(self, compartment_id, **kwargs):
|
3395
|
+
"""
|
3396
|
+
Lists Windows updates that have been reported to the service.
|
3397
|
+
|
3398
|
+
|
3399
|
+
:param str compartment_id: (required)
|
3400
|
+
The `OCID`__ of the compartment. This parameter is required and returns only resources contained within the specified compartment.
|
3401
|
+
|
3402
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3403
|
+
|
3404
|
+
:param list[str] classification_type: (optional)
|
3405
|
+
A filter to return only packages that match the given update classification type.
|
3406
|
+
|
3407
|
+
Allowed values are: "SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"
|
3408
|
+
|
3409
|
+
:param list[str] name: (optional)
|
3410
|
+
A filter based on the unique identifier for the Windows update. Note that this is not an OCID, but is a unique identifier assigned by Microsoft.
|
3411
|
+
Example: '6981d463-cd91-4a26-b7c4-ea4ded9183ed'
|
3412
|
+
|
3413
|
+
:param str display_name_contains: (optional)
|
3414
|
+
A filter to return resources that may partially match the given display name.
|
3415
|
+
|
3416
|
+
:param int limit: (optional)
|
3417
|
+
For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call.
|
3418
|
+
For important details about how pagination works, see `List Pagination`__.
|
3419
|
+
|
3420
|
+
Example: `50`
|
3421
|
+
|
3422
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
3423
|
+
|
3424
|
+
:param str page: (optional)
|
3425
|
+
For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
|
3426
|
+
For important details about how pagination works, see `List Pagination`__.
|
3427
|
+
|
3428
|
+
Example: `3`
|
3429
|
+
|
3430
|
+
__ https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine
|
3431
|
+
|
3432
|
+
:param str sort_order: (optional)
|
3433
|
+
The sort order to use, either 'ASC' or 'DESC'.
|
3434
|
+
|
3435
|
+
Allowed values are: "ASC", "DESC"
|
3436
|
+
|
3437
|
+
:param str sort_by: (optional)
|
3438
|
+
The field to sort by. Only one sort order may be provided. Default order for timeInstalled is descending. Default order for name or displayName is ascending.
|
3439
|
+
|
3440
|
+
Allowed values are: "timeCreated", "name", "displayName"
|
3441
|
+
|
3442
|
+
:param str opc_request_id: (optional)
|
3443
|
+
Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
|
3444
|
+
|
3445
|
+
:param obj retry_strategy: (optional)
|
3446
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3447
|
+
|
3448
|
+
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.
|
3449
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3450
|
+
|
3451
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3452
|
+
|
3453
|
+
:param bool allow_control_chars: (optional)
|
3454
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3455
|
+
By default, the response will not allow control characters in strings
|
3456
|
+
|
3457
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.os_management_hub.models.WindowsUpdateCollection`
|
3458
|
+
:rtype: :class:`~oci.response.Response`
|
3459
|
+
|
3460
|
+
:example:
|
3461
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/list_windows_updates.py.html>`__ to see an example of how to use list_windows_updates API.
|
3462
|
+
"""
|
3463
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3464
|
+
required_arguments = ['compartmentId']
|
3465
|
+
resource_path = "/windowsUpdates"
|
3466
|
+
method = "GET"
|
3467
|
+
operation_name = "list_windows_updates"
|
3468
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/osmh/20220901/WindowsUpdateCollection/ListWindowsUpdates"
|
3469
|
+
|
3470
|
+
# Don't accept unknown kwargs
|
3471
|
+
expected_kwargs = [
|
3472
|
+
"allow_control_chars",
|
3473
|
+
"retry_strategy",
|
3474
|
+
"classification_type",
|
3475
|
+
"name",
|
3476
|
+
"display_name_contains",
|
3477
|
+
"limit",
|
3478
|
+
"page",
|
3479
|
+
"sort_order",
|
3480
|
+
"sort_by",
|
3481
|
+
"opc_request_id"
|
3482
|
+
]
|
3483
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3484
|
+
if extra_kwargs:
|
3485
|
+
raise ValueError(
|
3486
|
+
f"list_windows_updates got unknown kwargs: {extra_kwargs!r}")
|
3487
|
+
|
3488
|
+
if 'classification_type' in kwargs:
|
3489
|
+
classification_type_allowed_values = ["SECURITY", "BUGFIX", "ENHANCEMENT", "OTHER"]
|
3490
|
+
for classification_type_item in kwargs['classification_type']:
|
3491
|
+
if classification_type_item not in classification_type_allowed_values:
|
3492
|
+
raise ValueError(
|
3493
|
+
f"Invalid value for `classification_type`, must be one of { classification_type_allowed_values }"
|
3494
|
+
)
|
3495
|
+
|
3496
|
+
if 'sort_order' in kwargs:
|
3497
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
3498
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
3499
|
+
raise ValueError(
|
3500
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3501
|
+
)
|
3502
|
+
|
3503
|
+
if 'sort_by' in kwargs:
|
3504
|
+
sort_by_allowed_values = ["timeCreated", "name", "displayName"]
|
3505
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
3506
|
+
raise ValueError(
|
3507
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
3508
|
+
)
|
3509
|
+
|
3510
|
+
query_params = {
|
3511
|
+
"classificationType": self.base_client.generate_collection_format_param(kwargs.get("classification_type", missing), 'multi'),
|
3512
|
+
"name": self.base_client.generate_collection_format_param(kwargs.get("name", missing), 'multi'),
|
3513
|
+
"displayNameContains": kwargs.get("display_name_contains", missing),
|
3514
|
+
"compartmentId": compartment_id,
|
3515
|
+
"limit": kwargs.get("limit", missing),
|
3516
|
+
"page": kwargs.get("page", missing),
|
3517
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
3518
|
+
"sortBy": kwargs.get("sort_by", missing)
|
3519
|
+
}
|
3520
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3521
|
+
|
3522
|
+
header_params = {
|
3523
|
+
"accept": "application/json",
|
3524
|
+
"content-type": "application/json",
|
3525
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3526
|
+
}
|
3527
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3528
|
+
|
3529
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3530
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3531
|
+
client_retry_strategy=self.retry_strategy
|
3532
|
+
)
|
3533
|
+
if retry_strategy is None:
|
3534
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3535
|
+
|
3536
|
+
if retry_strategy:
|
3537
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3538
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3539
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3540
|
+
return retry_strategy.make_retrying_call(
|
3541
|
+
self.base_client.call_api,
|
3542
|
+
resource_path=resource_path,
|
3543
|
+
method=method,
|
3544
|
+
query_params=query_params,
|
3545
|
+
header_params=header_params,
|
3546
|
+
response_type="WindowsUpdateCollection",
|
3547
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3548
|
+
operation_name=operation_name,
|
3549
|
+
api_reference_link=api_reference_link,
|
3550
|
+
required_arguments=required_arguments)
|
3551
|
+
else:
|
3552
|
+
return self.base_client.call_api(
|
3553
|
+
resource_path=resource_path,
|
3554
|
+
method=method,
|
3555
|
+
query_params=query_params,
|
3556
|
+
header_params=header_params,
|
3557
|
+
response_type="WindowsUpdateCollection",
|
3558
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3559
|
+
operation_name=operation_name,
|
3560
|
+
api_reference_link=api_reference_link,
|
3561
|
+
required_arguments=required_arguments)
|
3562
|
+
|
2258
3563
|
def manage_module_streams_on_managed_instance(self, managed_instance_id, manage_module_streams_on_managed_instance_details, **kwargs):
|
2259
3564
|
"""
|
2260
|
-
|
2261
|
-
|
2262
|
-
|
2263
|
-
|
2264
|
-
state of the modules, streams, and profiles on the managed instance
|
2265
|
-
will match the state indicated in the operation.
|
2266
|
-
|
2267
|
-
Each module stream specified in the list of module streams to enable
|
2268
|
-
will be in the \"ENABLED\" state upon completion of the operation.
|
2269
|
-
If there was already a stream of that module enabled, any work
|
2270
|
-
required to switch from the current stream to the new stream is
|
2271
|
-
performed implicitly.
|
2272
|
-
|
2273
|
-
Each module stream specified in the list of module streams to disable
|
2274
|
-
will be in the \"DISABLED\" state upon completion of the operation.
|
2275
|
-
Any profiles that are installed for the module stream will be removed
|
2276
|
-
as part of the operation.
|
2277
|
-
|
2278
|
-
Each module stream profile specified in the list of profiles to install
|
2279
|
-
will be in the \"INSTALLED\" state upon completion of the operation,
|
2280
|
-
indicating that any packages that are part of the profile are installed
|
2281
|
-
on the managed instance. If the module stream containing the profile
|
2282
|
-
is not enabled, it will be enabled as part of the operation. There
|
2283
|
-
is an exception when attempting to install a stream of a profile when
|
2284
|
-
another stream of the same module is enabled. It is an error to attempt
|
2285
|
-
to install a profile of another module stream, unless enabling the
|
2286
|
-
new module stream is explicitly included in this operation.
|
2287
|
-
|
2288
|
-
Each module stream profile specified in the list of profiles to remove
|
2289
|
-
will be in the \"AVAILABLE\" state upon completion of the operation.
|
2290
|
-
The status of packages within the profile after the operation is
|
2291
|
-
complete is defined by the package manager on the managed instance.
|
2292
|
-
|
2293
|
-
Operations that contain one or more elements that are not allowed
|
2294
|
-
are rejected.
|
2295
|
-
|
2296
|
-
The result of this request is a work request object. The returned
|
2297
|
-
work request is the parent of a structure of other WorkRequests. Taken
|
2298
|
-
as a whole, this structure indicates the entire set of work to be
|
2299
|
-
performed to complete the operation.
|
2300
|
-
|
2301
|
-
This interface can also be used to perform a dry run of the operation
|
2302
|
-
rather than committing it to a managed instance. If a dry run is
|
2303
|
-
requested, the OS Management Hub service will evaluate the operation
|
2304
|
-
against the current module, stream, and profile state on the managed
|
2305
|
-
instance. It will calculate the impact of the operation on all
|
2306
|
-
modules, streams, and profiles on the managed instance, including those
|
2307
|
-
that are implicitly impacted by the operation.
|
2308
|
-
|
2309
|
-
The WorkRequest resulting from a dry run behaves differently than
|
2310
|
-
a WorkRequest resulting from a committable operation. Dry run
|
2311
|
-
WorkRequests are always singletons and never have children. The
|
2312
|
-
impact of the operation is returned using the log and error
|
2313
|
-
facilities of work requests. The impact of operations that are
|
2314
|
-
allowed by the OS Management Hub service are communicated as one or
|
2315
|
-
more work request log entries. Operations that are not allowed
|
2316
|
-
by the OS Management Hub service are communicated as one or more
|
2317
|
-
work request error entries. Each entry, for either logs or errors,
|
2318
|
-
contains a structured message containing the results of one
|
2319
|
-
or more operations.
|
3565
|
+
Enables or disables module streams and installs or removes module stream profiles. Once complete, the state of the modules, streams, and
|
3566
|
+
profiles will match the state indicated in the operation. See :func:`manage_module_streams_on_managed_instance_details`
|
3567
|
+
for more information. You can preform this operation as a dry run. For a dry run, the service evaluates the operation against the
|
3568
|
+
current module, stream, and profile state on the managed instance, but does not commit the changes. Instead, the service returns work request log or error entries indicating the impact of the operation.
|
2320
3569
|
|
2321
3570
|
|
2322
3571
|
:param str managed_instance_id: (required)
|
2323
|
-
The OCID of the managed instance.
|
3572
|
+
The `OCID`__ of the managed instance.
|
3573
|
+
|
3574
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2324
3575
|
|
2325
3576
|
:param oci.os_management_hub.models.ManageModuleStreamsOnManagedInstanceDetails manage_module_streams_on_managed_instance_details: (required)
|
2326
3577
|
A description of an operation to perform against the modules, streams, and profiles of a managed instance.
|
@@ -2358,7 +3609,7 @@ class ManagedInstanceClient(object):
|
|
2358
3609
|
:rtype: :class:`~oci.response.Response`
|
2359
3610
|
|
2360
3611
|
:example:
|
2361
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3612
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/manage_module_streams_on_managed_instance.py.html>`__ to see an example of how to use manage_module_streams_on_managed_instance API.
|
2362
3613
|
"""
|
2363
3614
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2364
3615
|
required_arguments = ['managedInstanceId']
|
@@ -2436,11 +3687,13 @@ class ManagedInstanceClient(object):
|
|
2436
3687
|
|
2437
3688
|
def refresh_software_on_managed_instance(self, managed_instance_id, **kwargs):
|
2438
3689
|
"""
|
2439
|
-
|
3690
|
+
Refreshes the package or Windows update information on a managed instance with the latest data from the software source. This does not update packages on the instance. It provides the service with the latest package data.
|
2440
3691
|
|
2441
3692
|
|
2442
3693
|
:param str managed_instance_id: (required)
|
2443
|
-
The OCID of the managed instance.
|
3694
|
+
The `OCID`__ of the managed instance.
|
3695
|
+
|
3696
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2444
3697
|
|
2445
3698
|
:param str if_match: (optional)
|
2446
3699
|
For optimistic concurrency control. In the PUT or DELETE call
|
@@ -2475,7 +3728,7 @@ class ManagedInstanceClient(object):
|
|
2475
3728
|
:rtype: :class:`~oci.response.Response`
|
2476
3729
|
|
2477
3730
|
:example:
|
2478
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3731
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/refresh_software_on_managed_instance.py.html>`__ to see an example of how to use refresh_software_on_managed_instance API.
|
2479
3732
|
"""
|
2480
3733
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2481
3734
|
required_arguments = ['managedInstanceId']
|
@@ -2557,7 +3810,9 @@ class ManagedInstanceClient(object):
|
|
2557
3810
|
|
2558
3811
|
|
2559
3812
|
:param str managed_instance_id: (required)
|
2560
|
-
The OCID of the managed instance.
|
3813
|
+
The `OCID`__ of the managed instance.
|
3814
|
+
|
3815
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2561
3816
|
|
2562
3817
|
:param oci.os_management_hub.models.RemoveModuleStreamProfileFromManagedInstanceDetails remove_module_stream_profile_from_managed_instance_details: (required)
|
2563
3818
|
The details of the module stream profile to be removed from a managed instance.
|
@@ -2595,7 +3850,7 @@ class ManagedInstanceClient(object):
|
|
2595
3850
|
:rtype: :class:`~oci.response.Response`
|
2596
3851
|
|
2597
3852
|
:example:
|
2598
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3853
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/remove_module_stream_profile_from_managed_instance.py.html>`__ to see an example of how to use remove_module_stream_profile_from_managed_instance API.
|
2599
3854
|
"""
|
2600
3855
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2601
3856
|
required_arguments = ['managedInstanceId']
|
@@ -2677,7 +3932,9 @@ class ManagedInstanceClient(object):
|
|
2677
3932
|
|
2678
3933
|
|
2679
3934
|
:param str managed_instance_id: (required)
|
2680
|
-
The OCID of the managed instance.
|
3935
|
+
The `OCID`__ of the managed instance.
|
3936
|
+
|
3937
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2681
3938
|
|
2682
3939
|
:param oci.os_management_hub.models.RemovePackagesFromManagedInstanceDetails remove_packages_from_managed_instance_details: (required)
|
2683
3940
|
Details about packages to be removed on a managed instance.
|
@@ -2715,7 +3972,7 @@ class ManagedInstanceClient(object):
|
|
2715
3972
|
:rtype: :class:`~oci.response.Response`
|
2716
3973
|
|
2717
3974
|
:example:
|
2718
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3975
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/remove_packages_from_managed_instance.py.html>`__ to see an example of how to use remove_packages_from_managed_instance API.
|
2719
3976
|
"""
|
2720
3977
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2721
3978
|
required_arguments = ['managedInstanceId']
|
@@ -2800,7 +4057,9 @@ class ManagedInstanceClient(object):
|
|
2800
4057
|
|
2801
4058
|
|
2802
4059
|
:param str managed_instance_id: (required)
|
2803
|
-
The OCID of the managed instance.
|
4060
|
+
The `OCID`__ of the managed instance.
|
4061
|
+
|
4062
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
2804
4063
|
|
2805
4064
|
:param oci.os_management_hub.models.SwitchModuleStreamOnManagedInstanceDetails switch_module_stream_on_managed_instance_details: (required)
|
2806
4065
|
The details of the module stream to be switched on a managed instance.
|
@@ -2838,7 +4097,7 @@ class ManagedInstanceClient(object):
|
|
2838
4097
|
:rtype: :class:`~oci.response.Response`
|
2839
4098
|
|
2840
4099
|
:example:
|
2841
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4100
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/switch_module_stream_on_managed_instance.py.html>`__ to see an example of how to use switch_module_stream_on_managed_instance API.
|
2842
4101
|
"""
|
2843
4102
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2844
4103
|
required_arguments = ['managedInstanceId']
|
@@ -2916,7 +4175,7 @@ class ManagedInstanceClient(object):
|
|
2916
4175
|
|
2917
4176
|
def update_all_packages_on_managed_instances_in_compartment(self, update_all_packages_on_managed_instances_in_compartment_details, **kwargs):
|
2918
4177
|
"""
|
2919
|
-
Install all of the available package updates for all of the managed instances in a compartment.
|
4178
|
+
Install all of the available package updates for all of the managed instances in a compartment. This applies only to standalone non-Windows instances. This will not update instances that belong to a group or lifecycle environment.
|
2920
4179
|
|
2921
4180
|
|
2922
4181
|
:param oci.os_management_hub.models.UpdateAllPackagesOnManagedInstancesInCompartmentDetails update_all_packages_on_managed_instances_in_compartment_details: (required)
|
@@ -2955,7 +4214,7 @@ class ManagedInstanceClient(object):
|
|
2955
4214
|
:rtype: :class:`~oci.response.Response`
|
2956
4215
|
|
2957
4216
|
:example:
|
2958
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4217
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/update_all_packages_on_managed_instances_in_compartment.py.html>`__ to see an example of how to use update_all_packages_on_managed_instances_in_compartment API.
|
2959
4218
|
"""
|
2960
4219
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2961
4220
|
required_arguments = []
|
@@ -3021,11 +4280,13 @@ class ManagedInstanceClient(object):
|
|
3021
4280
|
|
3022
4281
|
def update_managed_instance(self, managed_instance_id, update_managed_instance_details, **kwargs):
|
3023
4282
|
"""
|
3024
|
-
Updates the managed instance.
|
4283
|
+
Updates the specified managed instance information, such as description, ONS topic, and associated management station.
|
3025
4284
|
|
3026
4285
|
|
3027
4286
|
:param str managed_instance_id: (required)
|
3028
|
-
The OCID of the managed instance.
|
4287
|
+
The `OCID`__ of the managed instance.
|
4288
|
+
|
4289
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3029
4290
|
|
3030
4291
|
:param oci.os_management_hub.models.UpdateManagedInstanceDetails update_managed_instance_details: (required)
|
3031
4292
|
Details about a managed instance to be updated.
|
@@ -3056,7 +4317,7 @@ class ManagedInstanceClient(object):
|
|
3056
4317
|
:rtype: :class:`~oci.response.Response`
|
3057
4318
|
|
3058
4319
|
:example:
|
3059
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4320
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/update_managed_instance.py.html>`__ to see an example of how to use update_managed_instance API.
|
3060
4321
|
"""
|
3061
4322
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3062
4323
|
required_arguments = ['managedInstanceId']
|
@@ -3137,7 +4398,9 @@ class ManagedInstanceClient(object):
|
|
3137
4398
|
|
3138
4399
|
|
3139
4400
|
:param str managed_instance_id: (required)
|
3140
|
-
The OCID of the managed instance.
|
4401
|
+
The `OCID`__ of the managed instance.
|
4402
|
+
|
4403
|
+
__ https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm
|
3141
4404
|
|
3142
4405
|
:param oci.os_management_hub.models.UpdatePackagesOnManagedInstanceDetails update_packages_on_managed_instance_details: (required)
|
3143
4406
|
Details about packages to be updated on a managed instance.
|
@@ -3175,7 +4438,7 @@ class ManagedInstanceClient(object):
|
|
3175
4438
|
:rtype: :class:`~oci.response.Response`
|
3176
4439
|
|
3177
4440
|
:example:
|
3178
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4441
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.0/osmanagementhub/update_packages_on_managed_instance.py.html>`__ to see an example of how to use update_packages_on_managed_instance API.
|
3179
4442
|
"""
|
3180
4443
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3181
4444
|
required_arguments = ['managedInstanceId']
|