oci 2.114.0__py3-none-any.whl → 2.115.1__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 +36 -36
- oci/ai_speech/ai_service_speech_client.py +9 -9
- 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 +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/signers/ephemeral_resource_principals_v21_signer.py +3 -17
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +47 -47
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- 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 +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +90 -90
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +141 -141
- 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 +12749 -7471
- oci/data_safe/data_safe_client_composite_operations.py +797 -29
- oci/data_safe/models/__init__.py +104 -0
- oci/data_safe/models/apply_sdm_masking_policy_difference_details.py +1 -1
- oci/data_safe/models/audit_policy_dimensions.py +7 -3
- oci/data_safe/models/audit_specification.py +7 -3
- oci/data_safe/models/autonomous_database_details.py +3 -3
- oci/data_safe/models/change_database_security_config_compartment_details.py +72 -0
- oci/data_safe/models/change_security_policy_compartment_details.py +72 -0
- oci/data_safe/models/change_security_policy_deployment_compartment_details.py +72 -0
- oci/data_safe/models/change_sql_collection_compartment_details.py +72 -0
- oci/data_safe/models/change_sql_firewall_policy_compartment_details.py +72 -0
- oci/data_safe/models/change_target_database_compartment_details.py +2 -2
- oci/data_safe/models/column_summary.py +1 -1
- oci/data_safe/models/create_data_safe_private_endpoint_details.py +1 -1
- oci/data_safe/models/create_discovery_job_details.py +4 -4
- oci/data_safe/models/create_masking_column_details.py +2 -2
- oci/data_safe/models/create_masking_policy_details.py +2 -4
- oci/data_safe/models/create_sensitive_data_model_details.py +2 -2
- oci/data_safe/models/create_sql_collection_details.py +372 -0
- oci/data_safe/models/create_target_alert_policy_association_details.py +2 -2
- oci/data_safe/models/database_cloud_service_details.py +3 -3
- oci/data_safe/models/database_security_config.py +527 -0
- oci/data_safe/models/database_security_config_collection.py +72 -0
- oci/data_safe/models/database_security_config_summary.py +494 -0
- oci/data_safe/models/discovery_job.py +2 -2
- oci/data_safe/models/discovery_job_result.py +2 -2
- oci/data_safe/models/discovery_job_result_summary.py +2 -2
- oci/data_safe/models/download_masking_log_details.py +1 -1
- oci/data_safe/models/entry_details.py +103 -0
- oci/data_safe/models/firewall_policy_entry_details.py +113 -0
- oci/data_safe/models/mask_data_details.py +2 -4
- oci/data_safe/models/masking_column.py +2 -2
- oci/data_safe/models/masking_column_summary.py +2 -2
- oci/data_safe/models/masking_policy.py +2 -4
- oci/data_safe/models/profile.py +2 -2
- oci/data_safe/models/profile_aggregation.py +1 -65
- oci/data_safe/models/profile_summary.py +2 -2
- oci/data_safe/models/report_definition.py +22 -6
- oci/data_safe/models/report_definition_summary.py +22 -6
- oci/data_safe/models/role_summary.py +3 -3
- oci/data_safe/models/schema_summary.py +1 -1
- oci/data_safe/models/security_assessment.py +6 -6
- oci/data_safe/models/security_assessment_base_line_details.py +3 -3
- oci/data_safe/models/security_assessment_summary.py +6 -6
- oci/data_safe/models/security_policy.py +432 -0
- oci/data_safe/models/security_policy_collection.py +72 -0
- oci/data_safe/models/security_policy_deployment.py +498 -0
- oci/data_safe/models/security_policy_deployment_collection.py +72 -0
- oci/data_safe/models/security_policy_deployment_summary.py +498 -0
- oci/data_safe/models/security_policy_entry_state.py +220 -0
- oci/data_safe/models/security_policy_entry_state_collection.py +72 -0
- oci/data_safe/models/security_policy_entry_state_summary.py +193 -0
- oci/data_safe/models/security_policy_summary.py +432 -0
- oci/data_safe/models/sensitive_data_model.py +2 -2
- oci/data_safe/models/sql_collection.py +667 -0
- oci/data_safe/models/sql_collection_aggregation.py +99 -0
- oci/data_safe/models/sql_collection_analytics_collection.py +72 -0
- oci/data_safe/models/sql_collection_collection.py +72 -0
- oci/data_safe/models/sql_collection_dimensions.py +147 -0
- oci/data_safe/models/sql_collection_log_aggregation.py +192 -0
- oci/data_safe/models/sql_collection_log_dimensions.py +134 -0
- oci/data_safe/models/sql_collection_log_insights_collection.py +72 -0
- oci/data_safe/models/sql_collection_summary.py +634 -0
- oci/data_safe/models/sql_firewall_allowed_sql_aggregation.py +99 -0
- oci/data_safe/models/sql_firewall_allowed_sql_analytics_collection.py +72 -0
- oci/data_safe/models/sql_firewall_allowed_sql_collection.py +72 -0
- oci/data_safe/models/sql_firewall_allowed_sql_dimensions.py +201 -0
- oci/data_safe/models/sql_firewall_allowed_sql_summary.py +622 -0
- oci/data_safe/models/sql_firewall_config.py +215 -0
- oci/data_safe/models/sql_firewall_policy.py +838 -0
- oci/data_safe/models/sql_firewall_policy_aggregation.py +99 -0
- oci/data_safe/models/sql_firewall_policy_analytics_collection.py +72 -0
- oci/data_safe/models/sql_firewall_policy_collection.py +72 -0
- oci/data_safe/models/sql_firewall_policy_dimensions.py +241 -0
- oci/data_safe/models/sql_firewall_policy_summary.py +712 -0
- oci/data_safe/models/sql_firewall_violation_aggregation.py +223 -0
- oci/data_safe/models/sql_firewall_violation_aggregation_dimensions.py +402 -0
- oci/data_safe/models/sql_firewall_violation_analytics_collection.py +72 -0
- oci/data_safe/models/sql_firewall_violation_summary.py +604 -0
- oci/data_safe/models/sql_firewall_violations_collection.py +72 -0
- oci/data_safe/models/table_summary.py +1 -1
- oci/data_safe/models/target_alert_policy_association.py +2 -2
- oci/data_safe/models/target_alert_policy_association_summary.py +2 -2
- oci/data_safe/models/target_database.py +4 -4
- oci/data_safe/models/target_database_summary.py +2 -2
- oci/data_safe/models/update_data_safe_private_endpoint_details.py +1 -1
- oci/data_safe/models/update_database_security_config_details.py +208 -0
- oci/data_safe/models/update_masking_column_details.py +2 -2
- oci/data_safe/models/update_masking_policy_details.py +2 -4
- oci/data_safe/models/update_security_policy_deployment_details.py +181 -0
- oci/data_safe/models/update_security_policy_details.py +181 -0
- oci/data_safe/models/update_sql_collection_details.py +181 -0
- oci/data_safe/models/update_sql_firewall_config_details.py +184 -0
- oci/data_safe/models/update_sql_firewall_policy_details.py +466 -0
- oci/data_safe/models/update_target_alert_policy_association_details.py +2 -2
- oci/data_safe/models/user_assessment.py +14 -14
- oci/data_safe/models/user_assessment_base_line_details.py +3 -3
- oci/data_safe/models/user_assessment_summary.py +18 -18
- oci/data_safe/models/user_summary.py +8 -8
- oci/data_safe/models/work_request.py +83 -3
- oci/data_safe/models/work_request_summary.py +83 -3
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +645 -319
- oci/database/database_client_composite_operations.py +176 -0
- oci/database/models/__init__.py +8 -0
- oci/database/models/autonomous_container_database.py +7 -3
- oci/database/models/autonomous_container_database_summary.py +7 -3
- oci/database/models/configure_saas_admin_user_details.py +284 -0
- oci/database/models/create_autonomous_container_database_dataguard_association_details.py +321 -0
- oci/database/models/database_connection_string_profile.py +33 -2
- oci/database/models/generate_autonomous_database_wallet_details.py +33 -2
- oci/database/models/saas_admin_user_configuration.py +284 -0
- oci/database/models/saas_admin_user_status.py +154 -0
- oci/database_management/__init__.py +3 -1
- oci/database_management/db_management_client.py +182 -182
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +945 -0
- oci/database_management/managed_my_sql_databases_client_composite_operations.py +26 -0
- oci/database_management/models/__init__.py +26 -0
- oci/database_management/models/managed_my_sql_database.py +227 -0
- oci/database_management/models/managed_my_sql_database_collection.py +72 -0
- oci/database_management/models/managed_my_sql_database_summary.py +227 -0
- oci/database_management/models/my_sql_configuration_data_collection.py +72 -0
- oci/database_management/models/my_sql_configuration_data_summary.py +616 -0
- oci/database_management/models/my_sql_data_collection.py +72 -0
- oci/database_management/models/my_sql_data_summary.py +1033 -0
- oci/database_management/models/my_sql_database_usage_metrics.py +342 -0
- oci/database_management/models/my_sql_fleet_by_category.py +134 -0
- oci/database_management/models/my_sql_fleet_metric_definition.py +196 -0
- oci/database_management/models/my_sql_fleet_metric_summary_definition.py +165 -0
- oci/database_management/models/my_sql_fleet_metrics.py +165 -0
- oci/database_management/models/my_sql_fleet_summary.py +103 -0
- 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/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +168 -152
- oci/disaster_recovery/disaster_recovery_client_composite_operations.py +45 -45
- oci/disaster_recovery/models/__init__.py +88 -0
- oci/disaster_recovery/models/associate_dr_protection_group_details.py +13 -9
- oci/disaster_recovery/models/block_volume_attachment_details.py +78 -0
- oci/disaster_recovery/models/block_volume_mount_details.py +76 -0
- oci/disaster_recovery/models/cancel_dr_plan_execution_details.py +1 -1
- oci/disaster_recovery/models/change_dr_protection_group_compartment_details.py +5 -5
- oci/disaster_recovery/models/compute_instance_movable_file_system_operation.py +165 -0
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping.py +27 -23
- oci/disaster_recovery/models/compute_instance_movable_vnic_mapping_details.py +27 -23
- oci/disaster_recovery/models/compute_instance_non_movable_block_volume_operation.py +130 -0
- oci/disaster_recovery/models/compute_instance_non_movable_file_system_operation.py +146 -0
- oci/disaster_recovery/models/compute_instance_vnic_mapping.py +13 -11
- oci/disaster_recovery/models/compute_instance_vnic_mapping_details.py +25 -21
- oci/disaster_recovery/models/create_block_volume_attachment_details.py +78 -0
- oci/disaster_recovery/models/create_block_volume_mount_details.py +76 -0
- oci/disaster_recovery/models/create_compute_instance_movable_file_system_operation_details.py +165 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_operation_details.py +130 -0
- oci/disaster_recovery/models/create_compute_instance_non_movable_file_system_operation_details.py +146 -0
- oci/disaster_recovery/models/create_dr_plan_details.py +24 -12
- oci/disaster_recovery/models/create_dr_plan_execution_details.py +11 -7
- oci/disaster_recovery/models/create_dr_protection_group_details.py +15 -11
- oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.py +2 -2
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.py +18 -16
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.py +61 -26
- oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.py +99 -4
- oci/disaster_recovery/models/create_dr_protection_group_member_database_details.py +5 -5
- oci/disaster_recovery/models/create_dr_protection_group_member_details.py +30 -6
- oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.py +124 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.py +124 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.py +124 -0
- oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.py +2 -2
- oci/disaster_recovery/models/create_file_system_mount_details.py +76 -0
- oci/disaster_recovery/models/create_file_system_unmount_details.py +76 -0
- oci/disaster_recovery/models/create_object_storage_log_location_details.py +5 -5
- oci/disaster_recovery/models/disassociate_dr_protection_group_default_details.py +1 -1
- oci/disaster_recovery/models/disassociate_dr_protection_group_details.py +3 -3
- oci/disaster_recovery/models/dr_plan.py +56 -42
- oci/disaster_recovery/models/dr_plan_collection.py +3 -3
- oci/disaster_recovery/models/dr_plan_execution.py +72 -52
- oci/disaster_recovery/models/dr_plan_execution_collection.py +3 -4
- oci/disaster_recovery/models/dr_plan_execution_option_details.py +35 -3
- oci/disaster_recovery/models/dr_plan_execution_options.py +35 -3
- oci/disaster_recovery/models/dr_plan_execution_summary.py +68 -48
- oci/disaster_recovery/models/dr_plan_group.py +15 -11
- oci/disaster_recovery/models/dr_plan_group_execution.py +21 -17
- oci/disaster_recovery/models/dr_plan_step.py +170 -14
- oci/disaster_recovery/models/dr_plan_step_execution.py +178 -22
- oci/disaster_recovery/models/dr_plan_summary.py +62 -38
- oci/disaster_recovery/models/dr_plan_user_defined_step.py +19 -23
- oci/disaster_recovery/models/dr_protection_group.py +87 -34
- oci/disaster_recovery/models/dr_protection_group_collection.py +3 -3
- oci/disaster_recovery/models/dr_protection_group_member.py +30 -6
- oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.py +2 -2
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance.py +16 -12
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.py +59 -22
- oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.py +97 -4
- oci/disaster_recovery/models/dr_protection_group_member_database.py +8 -6
- oci/disaster_recovery/models/dr_protection_group_member_file_system.py +124 -0
- oci/disaster_recovery/models/dr_protection_group_member_load_balancer.py +126 -0
- oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.py +126 -0
- oci/disaster_recovery/models/dr_protection_group_member_volume_group.py +2 -2
- oci/disaster_recovery/models/dr_protection_group_summary.py +85 -32
- oci/disaster_recovery/models/failover_execution_option_details.py +1 -1
- oci/disaster_recovery/models/failover_execution_options.py +1 -1
- oci/disaster_recovery/models/failover_precheck_execution_option_details.py +1 -1
- oci/disaster_recovery/models/failover_precheck_execution_options.py +1 -1
- oci/disaster_recovery/models/file_system_export_mapping.py +111 -0
- oci/disaster_recovery/models/file_system_export_mapping_details.py +111 -0
- oci/disaster_recovery/models/file_system_mount_details.py +76 -0
- oci/disaster_recovery/models/file_system_unmount_details.py +76 -0
- oci/disaster_recovery/models/ignore_dr_plan_execution_details.py +4 -4
- oci/disaster_recovery/models/invoke_function_step.py +2 -2
- oci/disaster_recovery/models/load_balancer_backend_set_mapping.py +150 -0
- oci/disaster_recovery/models/load_balancer_backend_set_mapping_details.py +154 -0
- oci/disaster_recovery/models/network_load_balancer_backend_set_mapping.py +150 -0
- oci/disaster_recovery/models/network_load_balancer_backend_set_mapping_details.py +154 -0
- oci/disaster_recovery/models/object_storage_log_location.py +7 -7
- oci/disaster_recovery/models/object_storage_script_location.py +7 -7
- oci/disaster_recovery/models/pause_dr_plan_execution_details.py +1 -1
- oci/disaster_recovery/models/resume_dr_plan_execution_details.py +1 -1
- oci/disaster_recovery/models/retry_dr_plan_execution_details.py +4 -4
- oci/disaster_recovery/models/run_local_script_user_defined_step.py +16 -6
- oci/disaster_recovery/models/run_object_store_script_user_defined_step.py +16 -6
- oci/disaster_recovery/models/start_drill_execution_option_details.py +121 -0
- oci/disaster_recovery/models/start_drill_execution_options.py +121 -0
- oci/disaster_recovery/models/start_drill_precheck_execution_option_details.py +86 -0
- oci/disaster_recovery/models/start_drill_precheck_execution_options.py +86 -0
- oci/disaster_recovery/models/stop_drill_execution_option_details.py +121 -0
- oci/disaster_recovery/models/stop_drill_execution_options.py +121 -0
- oci/disaster_recovery/models/stop_drill_precheck_execution_option_details.py +86 -0
- oci/disaster_recovery/models/stop_drill_precheck_execution_options.py +86 -0
- oci/disaster_recovery/models/switchover_execution_option_details.py +1 -1
- oci/disaster_recovery/models/switchover_execution_options.py +1 -1
- oci/disaster_recovery/models/switchover_precheck_execution_option_details.py +1 -1
- oci/disaster_recovery/models/switchover_precheck_execution_options.py +1 -1
- oci/disaster_recovery/models/update_block_volume_attachment_details.py +78 -0
- oci/disaster_recovery/models/update_block_volume_mount_details.py +76 -0
- oci/disaster_recovery/models/update_compute_instance_movable_file_system_operation_details.py +165 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_operation_details.py +130 -0
- oci/disaster_recovery/models/update_compute_instance_non_movable_file_system_operation_details.py +146 -0
- oci/disaster_recovery/models/update_dr_plan_details.py +9 -5
- oci/disaster_recovery/models/update_dr_plan_execution_details.py +9 -5
- oci/disaster_recovery/models/update_dr_plan_group_details.py +11 -7
- oci/disaster_recovery/models/update_dr_plan_step_details.py +7 -7
- oci/disaster_recovery/models/update_dr_plan_user_defined_step_details.py +27 -9
- oci/disaster_recovery/models/update_dr_protection_group_details.py +13 -7
- oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.py +2 -2
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.py +18 -16
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.py +61 -26
- oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.py +99 -4
- oci/disaster_recovery/models/update_dr_protection_group_member_database_details.py +5 -5
- oci/disaster_recovery/models/update_dr_protection_group_member_details.py +30 -6
- oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.py +124 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.py +124 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.py +124 -0
- oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.py +2 -2
- oci/disaster_recovery/models/update_dr_protection_group_role_details.py +3 -3
- oci/disaster_recovery/models/update_file_system_mount_details.py +76 -0
- oci/disaster_recovery/models/update_file_system_unmount_details.py +76 -0
- oci/disaster_recovery/models/update_invoke_function_user_defined_step_details.py +2 -2
- oci/disaster_recovery/models/update_object_storage_log_location_details.py +5 -5
- oci/disaster_recovery/models/update_object_storage_script_location_details.py +7 -7
- oci/disaster_recovery/models/update_run_local_script_user_defined_step_details.py +14 -4
- oci/disaster_recovery/models/update_run_object_store_script_user_defined_step_details.py +16 -2
- oci/disaster_recovery/models/work_request.py +6 -6
- oci/disaster_recovery/models/work_request_error_collection.py +2 -2
- oci/disaster_recovery/models/work_request_log_entry.py +2 -2
- oci/disaster_recovery/models/work_request_resource.py +2 -2
- oci/disaster_recovery/models/work_request_summary.py +7 -7
- oci/disaster_recovery/models/work_request_summary_collection.py +2 -2
- 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 +25 -25
- 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/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +57 -57
- 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 +190 -190
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +1352 -164
- oci/jms/java_management_service_client_composite_operations.py +226 -0
- oci/jms/models/__init__.py +32 -0
- oci/jms/models/agent.py +240 -0
- oci/jms/models/announcement_summary.py +1 -1
- oci/jms/models/application_work_item_details.py +2 -2
- oci/jms/models/basic_work_item_details.py +2 -2
- oci/jms/models/blocklist.py +31 -3
- oci/jms/models/blocklist_entry.py +31 -3
- oci/jms/models/create_blocklist_details.py +31 -3
- oci/jms/models/create_drs_file_details.py +134 -0
- oci/jms/models/disable_drs_details.py +69 -0
- oci/jms/models/drs_file.py +272 -0
- oci/jms/models/drs_file_collection.py +72 -0
- oci/jms/models/drs_file_summary.py +272 -0
- oci/jms/models/drs_target.py +72 -0
- oci/jms/models/enable_drs_details.py +69 -0
- oci/jms/models/export_setting.py +485 -0
- oci/jms/models/export_status.py +201 -0
- oci/jms/models/fleet.py +31 -0
- oci/jms/models/fleet_agent_configuration.py +27 -0
- oci/jms/models/fleet_summary.py +31 -0
- oci/jms/models/java_artifact.py +262 -2
- oci/jms/models/java_family.py +103 -2
- oci/jms/models/java_family_summary.py +70 -2
- oci/jms/models/java_migration_analysis_result.py +31 -0
- oci/jms/models/java_migration_analysis_result_summary.py +31 -0
- oci/jms/models/java_release.py +66 -2
- oci/jms/models/java_release_summary.py +66 -2
- oci/jms/models/lcm_work_item_details.py +86 -0
- oci/jms/models/manage_drs_details.py +73 -0
- oci/jms/models/managed_instance_usage.py +82 -0
- oci/jms/models/patch_detail.py +103 -0
- oci/jms/models/performance_tuning_analysis.py +2 -2
- oci/jms/models/plugin.py +103 -0
- oci/jms/models/request_crypto_analyses_details.py +2 -2
- oci/jms/models/update_drs_file_details.py +134 -0
- oci/jms/models/update_export_setting_details.py +349 -0
- oci/jms/models/update_fleet_agent_configuration_details.py +29 -2
- oci/jms/models/work_item_details.py +34 -6
- oci/jms/models/work_request.py +31 -3
- oci/jms_java_downloads/__init__.py +14 -0
- oci/jms_java_downloads/java_download_client.py +3088 -0
- oci/jms_java_downloads/java_download_client_composite_operations.py +384 -0
- oci/jms_java_downloads/models/__init__.py +80 -0
- oci/jms_java_downloads/models/create_java_download_report_details.py +289 -0
- oci/jms_java_downloads/models/create_java_download_token_details.py +336 -0
- oci/jms_java_downloads/models/create_java_license_acceptance_record_details.py +174 -0
- oci/jms_java_downloads/models/download_url.py +119 -0
- oci/jms_java_downloads/models/generate_artifact_download_url_details.py +72 -0
- oci/jms_java_downloads/models/java_download_count_aggregation.py +289 -0
- oci/jms_java_downloads/models/java_download_count_aggregation_collection.py +123 -0
- oci/jms_java_downloads/models/java_download_record.py +351 -0
- oci/jms_java_downloads/models/java_download_record_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_record_summary.py +351 -0
- oci/jms_java_downloads/models/java_download_report.py +533 -0
- oci/jms_java_downloads/models/java_download_report_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_report_summary.py +532 -0
- oci/jms_java_downloads/models/java_download_token.py +710 -0
- oci/jms_java_downloads/models/java_download_token_collection.py +72 -0
- oci/jms_java_downloads/models/java_download_token_summary.py +710 -0
- oci/jms_java_downloads/models/java_license.py +154 -0
- oci/jms_java_downloads/models/java_license_acceptance_record.py +513 -0
- oci/jms_java_downloads/models/java_license_acceptance_record_collection.py +72 -0
- oci/jms_java_downloads/models/java_license_acceptance_record_summary.py +513 -0
- oci/jms_java_downloads/models/java_license_collection.py +72 -0
- oci/jms_java_downloads/models/java_license_summary.py +154 -0
- oci/jms_java_downloads/models/principal.py +138 -0
- oci/jms_java_downloads/models/request_summarized_java_download_counts_details.py +415 -0
- oci/jms_java_downloads/models/update_java_download_token_details.py +270 -0
- oci/jms_java_downloads/models/update_java_license_acceptance_record_details.py +88 -0
- oci/jms_java_downloads/models/work_request.py +412 -0
- oci/jms_java_downloads/models/work_request_error.py +136 -0
- oci/jms_java_downloads/models/work_request_error_collection.py +72 -0
- oci/jms_java_downloads/models/work_request_log_entry.py +103 -0
- oci/jms_java_downloads/models/work_request_log_entry_collection.py +72 -0
- oci/jms_java_downloads/models/work_request_resource.py +203 -0
- oci/jms_java_downloads/models/work_request_summary.py +412 -0
- oci/jms_java_downloads/models/work_request_summary_collection.py +72 -0
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- 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 +23 -23
- oci/log_analytics/log_analytics_client.py +192 -192
- 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 +23 -23
- 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 +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +32 -17
- oci/mysql/models/create_db_system_details.py +49 -2
- oci/mysql/models/db_system.py +49 -2
- oci/mysql/models/db_system_snapshot.py +49 -2
- oci/mysql/models/db_system_summary.py +49 -2
- oci/mysql/models/update_db_system_details.py +49 -2
- 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/esxi_host_client.py +6 -6
- oci/ocvp/sddc_client.py +13 -13
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +56 -56
- 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 +11 -11
- 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 +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +159 -159
- 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/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/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/regions_definitions.py +3 -0
- 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/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/models/__init__.py +124 -0
- oci/stack_monitoring/models/anomaly_data_point.py +196 -0
- oci/stack_monitoring/models/anomaly_metric_data.py +103 -0
- oci/stack_monitoring/models/associated_monitored_resource.py +47 -0
- oci/stack_monitoring/models/associated_resources_summary.py +47 -0
- oci/stack_monitoring/models/auto_promote_config_details.py +1 -1
- oci/stack_monitoring/models/baselineable_metric.py +559 -0
- oci/stack_monitoring/models/baselineable_metric_summary.py +435 -0
- oci/stack_monitoring/models/baselineable_metric_summary_collection.py +72 -0
- oci/stack_monitoring/models/change_metric_extension_compartment_details.py +78 -0
- oci/stack_monitoring/models/change_monitored_resource_task_compartment_details.py +78 -0
- oci/stack_monitoring/models/config.py +19 -3
- oci/stack_monitoring/models/config_summary.py +8 -0
- oci/stack_monitoring/models/create_baselineable_metric_details.py +196 -0
- oci/stack_monitoring/models/create_config_details.py +8 -0
- oci/stack_monitoring/models/create_license_auto_assign_config_details.py +125 -0
- oci/stack_monitoring/models/create_license_enterprise_extensibility_config_details.py +109 -0
- oci/stack_monitoring/models/create_metric_extension_details.py +289 -0
- oci/stack_monitoring/models/create_monitored_resource_details.py +49 -0
- oci/stack_monitoring/models/create_monitored_resource_task_details.py +202 -0
- oci/stack_monitoring/models/create_monitored_resource_type_details.py +297 -0
- oci/stack_monitoring/models/data_point.py +103 -0
- oci/stack_monitoring/models/disable_metric_extension_details.py +72 -0
- oci/stack_monitoring/models/discovery_details.py +47 -0
- oci/stack_monitoring/models/discovery_job_summary.py +47 -0
- oci/stack_monitoring/models/enable_metric_extension_details.py +72 -0
- oci/stack_monitoring/models/enabled_resource_details.py +72 -0
- oci/stack_monitoring/models/evaluate_baselineable_metric_details.py +103 -0
- oci/stack_monitoring/models/evaluate_baselineable_metric_result.py +103 -0
- oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.py +241 -0
- oci/stack_monitoring/models/jmx_query_properties.py +206 -0
- oci/stack_monitoring/models/jmx_update_query_properties.py +206 -0
- oci/stack_monitoring/models/license_auto_assign_config_details.py +165 -0
- oci/stack_monitoring/models/license_auto_assign_config_summary.py +160 -0
- oci/stack_monitoring/models/license_enterprise_extensibility_config_details.py +147 -0
- oci/stack_monitoring/models/license_enterprise_extensibility_config_summary.py +144 -0
- oci/stack_monitoring/models/manage_license_details.py +88 -0
- oci/stack_monitoring/models/metric.py +329 -0
- oci/stack_monitoring/models/metric_data.py +134 -0
- oci/stack_monitoring/models/metric_extension.py +701 -0
- oci/stack_monitoring/models/metric_extension_collection.py +72 -0
- oci/stack_monitoring/models/metric_extension_query_properties.py +117 -0
- oci/stack_monitoring/models/metric_extension_summary.py +504 -0
- oci/stack_monitoring/models/metric_extension_update_query_properties.py +117 -0
- oci/stack_monitoring/models/monitored_resource.py +47 -0
- oci/stack_monitoring/models/monitored_resource_member_summary.py +47 -0
- oci/stack_monitoring/models/monitored_resource_summary.py +82 -0
- oci/stack_monitoring/models/monitored_resource_task.py +483 -0
- oci/stack_monitoring/models/monitored_resource_task_details.py +101 -0
- oci/stack_monitoring/models/monitored_resource_task_summary.py +413 -0
- oci/stack_monitoring/models/monitored_resource_tasks_collection.py +72 -0
- oci/stack_monitoring/models/monitored_resource_type.py +504 -0
- oci/stack_monitoring/models/monitored_resource_type_summary.py +504 -0
- oci/stack_monitoring/models/monitored_resource_types_collection.py +72 -0
- oci/stack_monitoring/models/monitored_resources_count_aggregation.py +111 -0
- oci/stack_monitoring/models/monitored_resources_count_aggregation_collection.py +72 -0
- oci/stack_monitoring/models/os_command_query_properties.py +202 -0
- oci/stack_monitoring/models/os_command_update_query_properties.py +202 -0
- oci/stack_monitoring/models/resource_type_metadata_details.py +105 -0
- oci/stack_monitoring/models/script_file_details.py +103 -0
- oci/stack_monitoring/models/search_monitored_resources_details.py +47 -0
- oci/stack_monitoring/models/sql_details.py +103 -0
- oci/stack_monitoring/models/sql_in_param_details.py +103 -0
- oci/stack_monitoring/models/sql_out_param_details.py +119 -0
- oci/stack_monitoring/models/sql_query_properties.py +184 -0
- oci/stack_monitoring/models/sql_update_query_properties.py +183 -0
- oci/stack_monitoring/models/system_format_resource_type_metadata_details.py +263 -0
- oci/stack_monitoring/models/test_metric_extension_data.py +165 -0
- oci/stack_monitoring/models/test_metric_extension_details.py +72 -0
- oci/stack_monitoring/models/unique_property_set.py +72 -0
- oci/stack_monitoring/models/update_baselineable_metric_details.py +435 -0
- oci/stack_monitoring/models/update_config_details.py +8 -0
- oci/stack_monitoring/models/update_license_auto_assign_config_details.py +118 -0
- oci/stack_monitoring/models/update_license_enterprise_extensibility_config_details.py +102 -0
- oci/stack_monitoring/models/update_metric_extension_details.py +192 -0
- oci/stack_monitoring/models/update_monitored_resource_task_details.py +107 -0
- oci/stack_monitoring/models/update_monitored_resource_type_details.py +227 -0
- oci/stack_monitoring/models/work_request.py +19 -3
- oci/stack_monitoring/models/work_request_summary.py +19 -3
- oci/stack_monitoring/stack_monitoring_client.py +4906 -1196
- oci/stack_monitoring/stack_monitoring_client_composite_operations.py +743 -28
- 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 +19 -19
- oci/vault/vaults_client.py +11 -11
- 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.114.0.dist-info → oci-2.115.1.dist-info}/METADATA +1 -1
- {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/RECORD +659 -428
- {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/LICENSE.txt +0 -0
- {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/WHEEL +0 -0
- {oci-2.114.0.dist-info → oci-2.115.1.dist-info}/top_level.txt +0 -0
@@ -68,6 +68,49 @@ class StackMonitoringClientCompositeOperations(object):
|
|
68
68
|
except Exception as e:
|
69
69
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
70
70
|
|
71
|
+
def create_baselineable_metric_and_wait_for_state(self, create_baselineable_metric_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
72
|
+
"""
|
73
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
|
74
|
+
to enter the given state(s).
|
75
|
+
|
76
|
+
:param oci.stack_monitoring.models.CreateBaselineableMetricDetails create_baselineable_metric_details: (required)
|
77
|
+
Baseline metric
|
78
|
+
|
79
|
+
:param list[str] wait_for_states:
|
80
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
|
81
|
+
|
82
|
+
:param dict operation_kwargs:
|
83
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_baselineable_metric`
|
84
|
+
|
85
|
+
:param dict waiter_kwargs:
|
86
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
87
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
88
|
+
"""
|
89
|
+
operation_result = self.client.create_baselineable_metric(create_baselineable_metric_details, **operation_kwargs)
|
90
|
+
if not wait_for_states:
|
91
|
+
return operation_result
|
92
|
+
|
93
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
94
|
+
baselineable_metric_id = operation_result.data.id
|
95
|
+
|
96
|
+
try:
|
97
|
+
waiter_result = oci.wait_until(
|
98
|
+
self.client,
|
99
|
+
self.client.get_baselineable_metric(baselineable_metric_id), # noqa: F821
|
100
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
101
|
+
**waiter_kwargs
|
102
|
+
)
|
103
|
+
result_to_return = waiter_result
|
104
|
+
|
105
|
+
return result_to_return
|
106
|
+
except (NameError, TypeError) as e:
|
107
|
+
if not e.args:
|
108
|
+
e.args = ('',)
|
109
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
110
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
111
|
+
except Exception as e:
|
112
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
113
|
+
|
71
114
|
def create_config_and_wait_for_state(self, create_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
72
115
|
"""
|
73
116
|
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
|
@@ -154,6 +197,49 @@ class StackMonitoringClientCompositeOperations(object):
|
|
154
197
|
except Exception as e:
|
155
198
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
156
199
|
|
200
|
+
def create_metric_extension_and_wait_for_state(self, create_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
201
|
+
"""
|
202
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
|
203
|
+
to enter the given state(s).
|
204
|
+
|
205
|
+
:param oci.stack_monitoring.models.CreateMetricExtensionDetails create_metric_extension_details: (required)
|
206
|
+
Details required for creating new Metric Extension
|
207
|
+
|
208
|
+
:param list[str] wait_for_states:
|
209
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
|
210
|
+
|
211
|
+
:param dict operation_kwargs:
|
212
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_metric_extension`
|
213
|
+
|
214
|
+
:param dict waiter_kwargs:
|
215
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
216
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
217
|
+
"""
|
218
|
+
operation_result = self.client.create_metric_extension(create_metric_extension_details, **operation_kwargs)
|
219
|
+
if not wait_for_states:
|
220
|
+
return operation_result
|
221
|
+
|
222
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
223
|
+
metric_extension_id = operation_result.data.id
|
224
|
+
|
225
|
+
try:
|
226
|
+
waiter_result = oci.wait_until(
|
227
|
+
self.client,
|
228
|
+
self.client.get_metric_extension(metric_extension_id), # noqa: F821
|
229
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
230
|
+
**waiter_kwargs
|
231
|
+
)
|
232
|
+
result_to_return = waiter_result
|
233
|
+
|
234
|
+
return result_to_return
|
235
|
+
except (NameError, TypeError) as e:
|
236
|
+
if not e.args:
|
237
|
+
e.args = ('',)
|
238
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
239
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
240
|
+
except Exception as e:
|
241
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
242
|
+
|
157
243
|
def create_monitored_resource_and_wait_for_state(self, create_monitored_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
158
244
|
"""
|
159
245
|
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
@@ -192,6 +278,147 @@ class StackMonitoringClientCompositeOperations(object):
|
|
192
278
|
except Exception as e:
|
193
279
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
194
280
|
|
281
|
+
def create_monitored_resource_task_and_wait_for_state(self, create_monitored_resource_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
282
|
+
"""
|
283
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_task` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
284
|
+
to enter the given state(s).
|
285
|
+
|
286
|
+
:param oci.stack_monitoring.models.CreateMonitoredResourceTaskDetails create_monitored_resource_task_details: (required)
|
287
|
+
Details to create the new stack monitoring resource task.
|
288
|
+
|
289
|
+
:param list[str] wait_for_states:
|
290
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
291
|
+
|
292
|
+
:param dict operation_kwargs:
|
293
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_task`
|
294
|
+
|
295
|
+
:param dict waiter_kwargs:
|
296
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
297
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
298
|
+
"""
|
299
|
+
operation_result = self.client.create_monitored_resource_task(create_monitored_resource_task_details, **operation_kwargs)
|
300
|
+
if not wait_for_states:
|
301
|
+
return operation_result
|
302
|
+
|
303
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
304
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
305
|
+
|
306
|
+
try:
|
307
|
+
waiter_result = oci.wait_until(
|
308
|
+
self.client,
|
309
|
+
self.client.get_work_request(wait_for_resource_id),
|
310
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
311
|
+
**waiter_kwargs
|
312
|
+
)
|
313
|
+
result_to_return = waiter_result
|
314
|
+
|
315
|
+
return result_to_return
|
316
|
+
except Exception as e:
|
317
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
318
|
+
|
319
|
+
def create_monitored_resource_type_and_wait_for_state(self, create_monitored_resource_type_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
320
|
+
"""
|
321
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
|
322
|
+
to enter the given state(s).
|
323
|
+
|
324
|
+
:param oci.stack_monitoring.models.CreateMonitoredResourceTypeDetails create_monitored_resource_type_details: (required)
|
325
|
+
Details for the new monitored resource type.
|
326
|
+
|
327
|
+
:param list[str] wait_for_states:
|
328
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
|
329
|
+
|
330
|
+
:param dict operation_kwargs:
|
331
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.create_monitored_resource_type`
|
332
|
+
|
333
|
+
:param dict waiter_kwargs:
|
334
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
335
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
336
|
+
"""
|
337
|
+
operation_result = self.client.create_monitored_resource_type(create_monitored_resource_type_details, **operation_kwargs)
|
338
|
+
if not wait_for_states:
|
339
|
+
return operation_result
|
340
|
+
|
341
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
342
|
+
monitored_resource_type_id = operation_result.data.id
|
343
|
+
|
344
|
+
try:
|
345
|
+
waiter_result = oci.wait_until(
|
346
|
+
self.client,
|
347
|
+
self.client.get_monitored_resource_type(monitored_resource_type_id), # noqa: F821
|
348
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
349
|
+
**waiter_kwargs
|
350
|
+
)
|
351
|
+
result_to_return = waiter_result
|
352
|
+
|
353
|
+
return result_to_return
|
354
|
+
except (NameError, TypeError) as e:
|
355
|
+
if not e.args:
|
356
|
+
e.args = ('',)
|
357
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
358
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
359
|
+
except Exception as e:
|
360
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
361
|
+
|
362
|
+
def delete_baselineable_metric_and_wait_for_state(self, baselineable_metric_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
363
|
+
"""
|
364
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
|
365
|
+
to enter the given state(s).
|
366
|
+
|
367
|
+
:param str baselineable_metric_id: (required)
|
368
|
+
Identifier for the metric
|
369
|
+
|
370
|
+
:param list[str] wait_for_states:
|
371
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
|
372
|
+
|
373
|
+
:param dict operation_kwargs:
|
374
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_baselineable_metric`
|
375
|
+
|
376
|
+
:param dict waiter_kwargs:
|
377
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
378
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
379
|
+
"""
|
380
|
+
initial_get_result = self.client.get_baselineable_metric(baselineable_metric_id)
|
381
|
+
operation_result = None
|
382
|
+
try:
|
383
|
+
operation_result = self.client.delete_baselineable_metric(baselineable_metric_id, **operation_kwargs)
|
384
|
+
except oci.exceptions.ServiceError as e:
|
385
|
+
if e.status == 404:
|
386
|
+
return WAIT_RESOURCE_NOT_FOUND
|
387
|
+
else:
|
388
|
+
raise e
|
389
|
+
|
390
|
+
if not wait_for_states:
|
391
|
+
return operation_result
|
392
|
+
|
393
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
394
|
+
|
395
|
+
try:
|
396
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
397
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_baselineable_metric, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
398
|
+
else:
|
399
|
+
"""
|
400
|
+
If the user does not send in this value, we set it to True by default.
|
401
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
402
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
403
|
+
"""
|
404
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
405
|
+
waiter_result = oci.wait_until(
|
406
|
+
self.client,
|
407
|
+
initial_get_result, # noqa: F821
|
408
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
409
|
+
**waiter_kwargs
|
410
|
+
)
|
411
|
+
result_to_return = waiter_result
|
412
|
+
|
413
|
+
return result_to_return
|
414
|
+
except (NameError, TypeError) as e:
|
415
|
+
if not e.args:
|
416
|
+
e.args = ('',)
|
417
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
418
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
419
|
+
except Exception as e:
|
420
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
421
|
+
|
195
422
|
def delete_config_and_wait_for_state(self, config_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
196
423
|
"""
|
197
424
|
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
|
@@ -312,29 +539,30 @@ class StackMonitoringClientCompositeOperations(object):
|
|
312
539
|
except Exception as e:
|
313
540
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
314
541
|
|
315
|
-
def
|
542
|
+
def delete_metric_extension_and_wait_for_state(self, metric_extension_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
316
543
|
"""
|
317
|
-
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
544
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
|
318
545
|
to enter the given state(s).
|
319
546
|
|
320
|
-
:param str
|
321
|
-
The `OCID`__ of
|
547
|
+
:param str metric_extension_id: (required)
|
548
|
+
The `OCID`__ of the metric extension resource.
|
322
549
|
|
323
550
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
324
551
|
|
325
552
|
:param list[str] wait_for_states:
|
326
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.
|
553
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
|
327
554
|
|
328
555
|
:param dict operation_kwargs:
|
329
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
556
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_metric_extension`
|
330
557
|
|
331
558
|
:param dict waiter_kwargs:
|
332
559
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
333
560
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
334
561
|
"""
|
562
|
+
initial_get_result = self.client.get_metric_extension(metric_extension_id)
|
335
563
|
operation_result = None
|
336
564
|
try:
|
337
|
-
operation_result = self.client.
|
565
|
+
operation_result = self.client.delete_metric_extension(metric_extension_id, **operation_kwargs)
|
338
566
|
except oci.exceptions.ServiceError as e:
|
339
567
|
if e.status == 404:
|
340
568
|
return WAIT_RESOURCE_NOT_FOUND
|
@@ -345,24 +573,37 @@ class StackMonitoringClientCompositeOperations(object):
|
|
345
573
|
return operation_result
|
346
574
|
|
347
575
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
348
|
-
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
349
576
|
|
350
577
|
try:
|
578
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
579
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_metric_extension, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
580
|
+
else:
|
581
|
+
"""
|
582
|
+
If the user does not send in this value, we set it to True by default.
|
583
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
584
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
585
|
+
"""
|
586
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
351
587
|
waiter_result = oci.wait_until(
|
352
588
|
self.client,
|
353
|
-
|
354
|
-
evaluate_response=lambda r: getattr(r.data, '
|
589
|
+
initial_get_result, # noqa: F821
|
590
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
355
591
|
**waiter_kwargs
|
356
592
|
)
|
357
593
|
result_to_return = waiter_result
|
358
594
|
|
359
595
|
return result_to_return
|
596
|
+
except (NameError, TypeError) as e:
|
597
|
+
if not e.args:
|
598
|
+
e.args = ('',)
|
599
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
600
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
360
601
|
except Exception as e:
|
361
602
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
362
603
|
|
363
|
-
def
|
604
|
+
def delete_monitored_resource_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
364
605
|
"""
|
365
|
-
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
606
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
366
607
|
to enter the given state(s).
|
367
608
|
|
368
609
|
:param str monitored_resource_id: (required)
|
@@ -374,13 +615,21 @@ class StackMonitoringClientCompositeOperations(object):
|
|
374
615
|
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
375
616
|
|
376
617
|
:param dict operation_kwargs:
|
377
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
618
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource`
|
378
619
|
|
379
620
|
:param dict waiter_kwargs:
|
380
621
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
381
622
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
382
623
|
"""
|
383
|
-
operation_result =
|
624
|
+
operation_result = None
|
625
|
+
try:
|
626
|
+
operation_result = self.client.delete_monitored_resource(monitored_resource_id, **operation_kwargs)
|
627
|
+
except oci.exceptions.ServiceError as e:
|
628
|
+
if e.status == 404:
|
629
|
+
return WAIT_RESOURCE_NOT_FOUND
|
630
|
+
else:
|
631
|
+
raise e
|
632
|
+
|
384
633
|
if not wait_for_states:
|
385
634
|
return operation_result
|
386
635
|
|
@@ -400,42 +649,318 @@ class StackMonitoringClientCompositeOperations(object):
|
|
400
649
|
except Exception as e:
|
401
650
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
402
651
|
|
403
|
-
def
|
652
|
+
def delete_monitored_resource_type_and_wait_for_state(self, monitored_resource_type_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
404
653
|
"""
|
405
|
-
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
654
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
|
406
655
|
to enter the given state(s).
|
407
656
|
|
408
|
-
:param str
|
409
|
-
The `OCID`__ of monitored resource.
|
657
|
+
:param str monitored_resource_type_id: (required)
|
658
|
+
The `OCID`__ of monitored resource type.
|
410
659
|
|
411
660
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
412
661
|
|
413
|
-
:param oci.stack_monitoring.models.UpdateAndPropagateTagsDetails update_and_propagate_tags_details: (required)
|
414
|
-
The tags to be updated.
|
415
|
-
|
416
662
|
:param list[str] wait_for_states:
|
417
|
-
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.
|
663
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
|
418
664
|
|
419
665
|
:param dict operation_kwargs:
|
420
|
-
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.
|
666
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.delete_monitored_resource_type`
|
421
667
|
|
422
668
|
:param dict waiter_kwargs:
|
423
669
|
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
424
670
|
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
425
671
|
"""
|
426
|
-
|
672
|
+
initial_get_result = self.client.get_monitored_resource_type(monitored_resource_type_id)
|
673
|
+
operation_result = None
|
674
|
+
try:
|
675
|
+
operation_result = self.client.delete_monitored_resource_type(monitored_resource_type_id, **operation_kwargs)
|
676
|
+
except oci.exceptions.ServiceError as e:
|
677
|
+
if e.status == 404:
|
678
|
+
return WAIT_RESOURCE_NOT_FOUND
|
679
|
+
else:
|
680
|
+
raise e
|
681
|
+
|
427
682
|
if not wait_for_states:
|
428
683
|
return operation_result
|
429
684
|
|
430
685
|
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
431
|
-
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
432
686
|
|
433
687
|
try:
|
688
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
689
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_monitored_resource_type, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
690
|
+
else:
|
691
|
+
"""
|
692
|
+
If the user does not send in this value, we set it to True by default.
|
693
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
694
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
695
|
+
"""
|
696
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
434
697
|
waiter_result = oci.wait_until(
|
435
698
|
self.client,
|
436
|
-
|
437
|
-
evaluate_response=lambda r: getattr(r.data, '
|
438
|
-
**waiter_kwargs
|
699
|
+
initial_get_result, # noqa: F821
|
700
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
701
|
+
**waiter_kwargs
|
702
|
+
)
|
703
|
+
result_to_return = waiter_result
|
704
|
+
|
705
|
+
return result_to_return
|
706
|
+
except (NameError, TypeError) as e:
|
707
|
+
if not e.args:
|
708
|
+
e.args = ('',)
|
709
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
710
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
711
|
+
except Exception as e:
|
712
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
713
|
+
|
714
|
+
def disable_external_database_and_wait_for_state(self, monitored_resource_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
715
|
+
"""
|
716
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
717
|
+
to enter the given state(s).
|
718
|
+
|
719
|
+
:param str monitored_resource_id: (required)
|
720
|
+
The `OCID`__ of monitored resource.
|
721
|
+
|
722
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
723
|
+
|
724
|
+
:param list[str] wait_for_states:
|
725
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
726
|
+
|
727
|
+
:param dict operation_kwargs:
|
728
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_external_database`
|
729
|
+
|
730
|
+
:param dict waiter_kwargs:
|
731
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
732
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
733
|
+
"""
|
734
|
+
operation_result = self.client.disable_external_database(monitored_resource_id, **operation_kwargs)
|
735
|
+
if not wait_for_states:
|
736
|
+
return operation_result
|
737
|
+
|
738
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
739
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
740
|
+
|
741
|
+
try:
|
742
|
+
waiter_result = oci.wait_until(
|
743
|
+
self.client,
|
744
|
+
self.client.get_work_request(wait_for_resource_id),
|
745
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
746
|
+
**waiter_kwargs
|
747
|
+
)
|
748
|
+
result_to_return = waiter_result
|
749
|
+
|
750
|
+
return result_to_return
|
751
|
+
except Exception as e:
|
752
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
753
|
+
|
754
|
+
def disable_metric_extension_and_wait_for_state(self, metric_extension_id, disable_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
755
|
+
"""
|
756
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
757
|
+
to enter the given state(s).
|
758
|
+
|
759
|
+
:param str metric_extension_id: (required)
|
760
|
+
The `OCID`__ of the metric extension resource.
|
761
|
+
|
762
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
763
|
+
|
764
|
+
:param oci.stack_monitoring.models.DisableMetricExtensionDetails disable_metric_extension_details: (required)
|
765
|
+
The list of Resource IDs for which given metric extension needs to be disabled
|
766
|
+
|
767
|
+
:param list[str] wait_for_states:
|
768
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
769
|
+
|
770
|
+
:param dict operation_kwargs:
|
771
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.disable_metric_extension`
|
772
|
+
|
773
|
+
:param dict waiter_kwargs:
|
774
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
775
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
776
|
+
"""
|
777
|
+
operation_result = self.client.disable_metric_extension(metric_extension_id, disable_metric_extension_details, **operation_kwargs)
|
778
|
+
if not wait_for_states:
|
779
|
+
return operation_result
|
780
|
+
|
781
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
782
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
783
|
+
|
784
|
+
try:
|
785
|
+
waiter_result = oci.wait_until(
|
786
|
+
self.client,
|
787
|
+
self.client.get_work_request(wait_for_resource_id),
|
788
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
789
|
+
**waiter_kwargs
|
790
|
+
)
|
791
|
+
result_to_return = waiter_result
|
792
|
+
|
793
|
+
return result_to_return
|
794
|
+
except Exception as e:
|
795
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
796
|
+
|
797
|
+
def enable_metric_extension_and_wait_for_state(self, metric_extension_id, enable_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
798
|
+
"""
|
799
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.enable_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
800
|
+
to enter the given state(s).
|
801
|
+
|
802
|
+
:param str metric_extension_id: (required)
|
803
|
+
The `OCID`__ of the metric extension resource.
|
804
|
+
|
805
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
806
|
+
|
807
|
+
:param oci.stack_monitoring.models.EnableMetricExtensionDetails enable_metric_extension_details: (required)
|
808
|
+
The list of Resource IDs for which given metric extension needs to be enabled
|
809
|
+
|
810
|
+
:param list[str] wait_for_states:
|
811
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
812
|
+
|
813
|
+
:param dict operation_kwargs:
|
814
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.enable_metric_extension`
|
815
|
+
|
816
|
+
:param dict waiter_kwargs:
|
817
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
818
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
819
|
+
"""
|
820
|
+
operation_result = self.client.enable_metric_extension(metric_extension_id, enable_metric_extension_details, **operation_kwargs)
|
821
|
+
if not wait_for_states:
|
822
|
+
return operation_result
|
823
|
+
|
824
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
825
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
826
|
+
|
827
|
+
try:
|
828
|
+
waiter_result = oci.wait_until(
|
829
|
+
self.client,
|
830
|
+
self.client.get_work_request(wait_for_resource_id),
|
831
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
832
|
+
**waiter_kwargs
|
833
|
+
)
|
834
|
+
result_to_return = waiter_result
|
835
|
+
|
836
|
+
return result_to_return
|
837
|
+
except Exception as e:
|
838
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
839
|
+
|
840
|
+
def publish_metric_extension_and_wait_for_state(self, metric_extension_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
841
|
+
"""
|
842
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.publish_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
|
843
|
+
to enter the given state(s).
|
844
|
+
|
845
|
+
:param str metric_extension_id: (required)
|
846
|
+
The `OCID`__ of the metric extension resource.
|
847
|
+
|
848
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
849
|
+
|
850
|
+
:param list[str] wait_for_states:
|
851
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
|
852
|
+
|
853
|
+
:param dict operation_kwargs:
|
854
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.publish_metric_extension`
|
855
|
+
|
856
|
+
:param dict waiter_kwargs:
|
857
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
858
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
859
|
+
"""
|
860
|
+
operation_result = self.client.publish_metric_extension(metric_extension_id, **operation_kwargs)
|
861
|
+
if not wait_for_states:
|
862
|
+
return operation_result
|
863
|
+
|
864
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
865
|
+
metric_extension_id = operation_result.data.id
|
866
|
+
|
867
|
+
try:
|
868
|
+
waiter_result = oci.wait_until(
|
869
|
+
self.client,
|
870
|
+
self.client.get_metric_extension(metric_extension_id), # noqa: F821
|
871
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
872
|
+
**waiter_kwargs
|
873
|
+
)
|
874
|
+
result_to_return = waiter_result
|
875
|
+
|
876
|
+
return result_to_return
|
877
|
+
except (NameError, TypeError) as e:
|
878
|
+
if not e.args:
|
879
|
+
e.args = ('',)
|
880
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
881
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
882
|
+
except Exception as e:
|
883
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
884
|
+
|
885
|
+
def test_metric_extension_and_wait_for_state(self, metric_extension_id, test_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
886
|
+
"""
|
887
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.test_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
888
|
+
to enter the given state(s).
|
889
|
+
|
890
|
+
:param str metric_extension_id: (required)
|
891
|
+
The `OCID`__ of the metric extension resource.
|
892
|
+
|
893
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
894
|
+
|
895
|
+
:param oci.stack_monitoring.models.TestMetricExtensionDetails test_metric_extension_details: (required)
|
896
|
+
It contains OCID of resource.
|
897
|
+
|
898
|
+
:param list[str] wait_for_states:
|
899
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
900
|
+
|
901
|
+
:param dict operation_kwargs:
|
902
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.test_metric_extension`
|
903
|
+
|
904
|
+
:param dict waiter_kwargs:
|
905
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
906
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
907
|
+
"""
|
908
|
+
operation_result = self.client.test_metric_extension(metric_extension_id, test_metric_extension_details, **operation_kwargs)
|
909
|
+
if not wait_for_states:
|
910
|
+
return operation_result
|
911
|
+
|
912
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
913
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
914
|
+
|
915
|
+
try:
|
916
|
+
waiter_result = oci.wait_until(
|
917
|
+
self.client,
|
918
|
+
self.client.get_work_request(wait_for_resource_id),
|
919
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
920
|
+
**waiter_kwargs
|
921
|
+
)
|
922
|
+
result_to_return = waiter_result
|
923
|
+
|
924
|
+
return result_to_return
|
925
|
+
except Exception as e:
|
926
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
927
|
+
|
928
|
+
def update_and_propagate_tags_and_wait_for_state(self, monitored_resource_id, update_and_propagate_tags_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
929
|
+
"""
|
930
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
931
|
+
to enter the given state(s).
|
932
|
+
|
933
|
+
:param str monitored_resource_id: (required)
|
934
|
+
The `OCID`__ of monitored resource.
|
935
|
+
|
936
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
937
|
+
|
938
|
+
:param oci.stack_monitoring.models.UpdateAndPropagateTagsDetails update_and_propagate_tags_details: (required)
|
939
|
+
The tags to be updated.
|
940
|
+
|
941
|
+
:param list[str] wait_for_states:
|
942
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.WorkRequest.status`
|
943
|
+
|
944
|
+
:param dict operation_kwargs:
|
945
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_and_propagate_tags`
|
946
|
+
|
947
|
+
:param dict waiter_kwargs:
|
948
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
949
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
950
|
+
"""
|
951
|
+
operation_result = self.client.update_and_propagate_tags(monitored_resource_id, update_and_propagate_tags_details, **operation_kwargs)
|
952
|
+
if not wait_for_states:
|
953
|
+
return operation_result
|
954
|
+
|
955
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
956
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
957
|
+
|
958
|
+
try:
|
959
|
+
waiter_result = oci.wait_until(
|
960
|
+
self.client,
|
961
|
+
self.client.get_work_request(wait_for_resource_id),
|
962
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
963
|
+
**waiter_kwargs
|
439
964
|
)
|
440
965
|
result_to_return = waiter_result
|
441
966
|
|
@@ -443,6 +968,52 @@ class StackMonitoringClientCompositeOperations(object):
|
|
443
968
|
except Exception as e:
|
444
969
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
445
970
|
|
971
|
+
def update_baselineable_metric_and_wait_for_state(self, update_baselineable_metric_details, baselineable_metric_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
972
|
+
"""
|
973
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_baselineable_metric` and waits for the :py:class:`~oci.stack_monitoring.models.BaselineableMetric` acted upon
|
974
|
+
to enter the given state(s).
|
975
|
+
|
976
|
+
:param oci.stack_monitoring.models.UpdateBaselineableMetricDetails update_baselineable_metric_details: (required)
|
977
|
+
Baseline metric
|
978
|
+
|
979
|
+
:param str baselineable_metric_id: (required)
|
980
|
+
Identifier for the metric
|
981
|
+
|
982
|
+
:param list[str] wait_for_states:
|
983
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.BaselineableMetric.lifecycle_state`
|
984
|
+
|
985
|
+
:param dict operation_kwargs:
|
986
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_baselineable_metric`
|
987
|
+
|
988
|
+
:param dict waiter_kwargs:
|
989
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
990
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
991
|
+
"""
|
992
|
+
operation_result = self.client.update_baselineable_metric(update_baselineable_metric_details, baselineable_metric_id, **operation_kwargs)
|
993
|
+
if not wait_for_states:
|
994
|
+
return operation_result
|
995
|
+
|
996
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
997
|
+
baselineable_metric_id = operation_result.data.id
|
998
|
+
|
999
|
+
try:
|
1000
|
+
waiter_result = oci.wait_until(
|
1001
|
+
self.client,
|
1002
|
+
self.client.get_baselineable_metric(baselineable_metric_id), # noqa: F821
|
1003
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1004
|
+
**waiter_kwargs
|
1005
|
+
)
|
1006
|
+
result_to_return = waiter_result
|
1007
|
+
|
1008
|
+
return result_to_return
|
1009
|
+
except (NameError, TypeError) as e:
|
1010
|
+
if not e.args:
|
1011
|
+
e.args = ('',)
|
1012
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1013
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1014
|
+
except Exception as e:
|
1015
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1016
|
+
|
446
1017
|
def update_config_and_wait_for_state(self, config_id, update_config_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
447
1018
|
"""
|
448
1019
|
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_config` and waits for the :py:class:`~oci.stack_monitoring.models.Config` acted upon
|
@@ -489,6 +1060,54 @@ class StackMonitoringClientCompositeOperations(object):
|
|
489
1060
|
except Exception as e:
|
490
1061
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
491
1062
|
|
1063
|
+
def update_metric_extension_and_wait_for_state(self, metric_extension_id, update_metric_extension_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1064
|
+
"""
|
1065
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_metric_extension` and waits for the :py:class:`~oci.stack_monitoring.models.MetricExtension` acted upon
|
1066
|
+
to enter the given state(s).
|
1067
|
+
|
1068
|
+
:param str metric_extension_id: (required)
|
1069
|
+
The `OCID`__ of the metric extension resource.
|
1070
|
+
|
1071
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1072
|
+
|
1073
|
+
:param oci.stack_monitoring.models.UpdateMetricExtensionDetails update_metric_extension_details: (required)
|
1074
|
+
The information to be updated.
|
1075
|
+
|
1076
|
+
:param list[str] wait_for_states:
|
1077
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MetricExtension.lifecycle_state`
|
1078
|
+
|
1079
|
+
:param dict operation_kwargs:
|
1080
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_metric_extension`
|
1081
|
+
|
1082
|
+
:param dict waiter_kwargs:
|
1083
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1084
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1085
|
+
"""
|
1086
|
+
operation_result = self.client.update_metric_extension(metric_extension_id, update_metric_extension_details, **operation_kwargs)
|
1087
|
+
if not wait_for_states:
|
1088
|
+
return operation_result
|
1089
|
+
|
1090
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1091
|
+
metric_extension_id = operation_result.data.id
|
1092
|
+
|
1093
|
+
try:
|
1094
|
+
waiter_result = oci.wait_until(
|
1095
|
+
self.client,
|
1096
|
+
self.client.get_metric_extension(metric_extension_id), # noqa: F821
|
1097
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1098
|
+
**waiter_kwargs
|
1099
|
+
)
|
1100
|
+
result_to_return = waiter_result
|
1101
|
+
|
1102
|
+
return result_to_return
|
1103
|
+
except (NameError, TypeError) as e:
|
1104
|
+
if not e.args:
|
1105
|
+
e.args = ('',)
|
1106
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1107
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1108
|
+
except Exception as e:
|
1109
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1110
|
+
|
492
1111
|
def update_monitored_resource_and_wait_for_state(self, monitored_resource_id, update_monitored_resource_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
493
1112
|
"""
|
494
1113
|
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource` and waits for the :py:class:`~oci.stack_monitoring.models.WorkRequest`
|
@@ -531,3 +1150,99 @@ class StackMonitoringClientCompositeOperations(object):
|
|
531
1150
|
return result_to_return
|
532
1151
|
except Exception as e:
|
533
1152
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1153
|
+
|
1154
|
+
def update_monitored_resource_task_and_wait_for_state(self, monitored_resource_task_id, update_monitored_resource_task_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1155
|
+
"""
|
1156
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_task` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceTask` acted upon
|
1157
|
+
to enter the given state(s).
|
1158
|
+
|
1159
|
+
:param str monitored_resource_task_id: (required)
|
1160
|
+
The `OCID`__ of stack monitoring resource task.
|
1161
|
+
|
1162
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1163
|
+
|
1164
|
+
:param oci.stack_monitoring.models.UpdateMonitoredResourceTaskDetails update_monitored_resource_task_details: (required)
|
1165
|
+
The information to be updated.
|
1166
|
+
|
1167
|
+
:param list[str] wait_for_states:
|
1168
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceTask.lifecycle_state`
|
1169
|
+
|
1170
|
+
:param dict operation_kwargs:
|
1171
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_task`
|
1172
|
+
|
1173
|
+
:param dict waiter_kwargs:
|
1174
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1175
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1176
|
+
"""
|
1177
|
+
operation_result = self.client.update_monitored_resource_task(monitored_resource_task_id, update_monitored_resource_task_details, **operation_kwargs)
|
1178
|
+
if not wait_for_states:
|
1179
|
+
return operation_result
|
1180
|
+
|
1181
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1182
|
+
monitored_resource_task_id = operation_result.data.id
|
1183
|
+
|
1184
|
+
try:
|
1185
|
+
waiter_result = oci.wait_until(
|
1186
|
+
self.client,
|
1187
|
+
self.client.get_monitored_resource_task(monitored_resource_task_id), # noqa: F821
|
1188
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1189
|
+
**waiter_kwargs
|
1190
|
+
)
|
1191
|
+
result_to_return = waiter_result
|
1192
|
+
|
1193
|
+
return result_to_return
|
1194
|
+
except (NameError, TypeError) as e:
|
1195
|
+
if not e.args:
|
1196
|
+
e.args = ('',)
|
1197
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1198
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1199
|
+
except Exception as e:
|
1200
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1201
|
+
|
1202
|
+
def update_monitored_resource_type_and_wait_for_state(self, monitored_resource_type_id, update_monitored_resource_type_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1203
|
+
"""
|
1204
|
+
Calls :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_type` and waits for the :py:class:`~oci.stack_monitoring.models.MonitoredResourceType` acted upon
|
1205
|
+
to enter the given state(s).
|
1206
|
+
|
1207
|
+
:param str monitored_resource_type_id: (required)
|
1208
|
+
The `OCID`__ of monitored resource type.
|
1209
|
+
|
1210
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1211
|
+
|
1212
|
+
:param oci.stack_monitoring.models.UpdateMonitoredResourceTypeDetails update_monitored_resource_type_details: (required)
|
1213
|
+
The information to be updated for the given resource type id.
|
1214
|
+
|
1215
|
+
:param list[str] wait_for_states:
|
1216
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.stack_monitoring.models.MonitoredResourceType.lifecycle_state`
|
1217
|
+
|
1218
|
+
:param dict operation_kwargs:
|
1219
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.stack_monitoring.StackMonitoringClient.update_monitored_resource_type`
|
1220
|
+
|
1221
|
+
:param dict waiter_kwargs:
|
1222
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1223
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1224
|
+
"""
|
1225
|
+
operation_result = self.client.update_monitored_resource_type(monitored_resource_type_id, update_monitored_resource_type_details, **operation_kwargs)
|
1226
|
+
if not wait_for_states:
|
1227
|
+
return operation_result
|
1228
|
+
|
1229
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1230
|
+
monitored_resource_type_id = operation_result.data.id
|
1231
|
+
|
1232
|
+
try:
|
1233
|
+
waiter_result = oci.wait_until(
|
1234
|
+
self.client,
|
1235
|
+
self.client.get_monitored_resource_type(monitored_resource_type_id), # noqa: F821
|
1236
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1237
|
+
**waiter_kwargs
|
1238
|
+
)
|
1239
|
+
result_to_return = waiter_result
|
1240
|
+
|
1241
|
+
return result_to_return
|
1242
|
+
except (NameError, TypeError) as e:
|
1243
|
+
if not e.args:
|
1244
|
+
e.args = ('',)
|
1245
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1246
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1247
|
+
except Exception as e:
|
1248
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|