oci 2.19.0 → 2.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/lib/oci/adm/adm.rb +38 -0
- data/lib/oci/adm/application_dependency_management_client.rb +1429 -200
- data/lib/oci/adm/application_dependency_management_client_composite_operations.rb +454 -0
- data/lib/oci/adm/models/application_dependency.rb +3 -3
- data/lib/oci/adm/models/application_dependency_recommendation_collection.rb +151 -0
- data/lib/oci/adm/models/application_dependency_recommendation_summary.rb +195 -0
- data/lib/oci/adm/models/application_dependency_vulnerability_collection.rb +3 -3
- data/lib/oci/adm/models/application_dependency_vulnerability_summary.rb +6 -6
- data/lib/oci/adm/models/apply_stage.rb +208 -0
- data/lib/oci/adm/models/change_knowledge_base_compartment_details.rb +2 -2
- data/lib/oci/adm/models/change_remediation_recipe_compartment_details.rb +155 -0
- data/lib/oci/adm/models/change_remediation_run_compartment_details.rb +155 -0
- data/lib/oci/adm/models/change_vulnerability_audit_compartment_details.rb +1 -1
- data/lib/oci/adm/models/create_knowledge_base_details.rb +3 -3
- data/lib/oci/adm/models/create_remediation_recipe_details.rb +285 -0
- data/lib/oci/adm/models/create_remediation_run_details.rb +201 -0
- data/lib/oci/adm/models/create_vulnerability_audit_details.rb +20 -7
- data/lib/oci/adm/models/detect_configuration.rb +217 -0
- data/lib/oci/adm/models/detect_stage.rb +196 -0
- data/lib/oci/adm/models/external_resource_vulnerability_audit_source.rb +1 -1
- data/lib/oci/adm/models/external_scm_configuration.rb +241 -0
- data/lib/oci/adm/models/git_hub_actions_configuration.rb +220 -0
- data/lib/oci/adm/models/git_lab_pipeline_configuration.rb +221 -0
- data/lib/oci/adm/models/jenkins_pipeline_configuration.rb +217 -0
- data/lib/oci/adm/models/knowledge_base.rb +7 -7
- data/lib/oci/adm/models/knowledge_base_collection.rb +2 -2
- data/lib/oci/adm/models/knowledge_base_summary.rb +7 -7
- data/lib/oci/adm/models/network_configuration.rb +172 -0
- data/lib/oci/adm/models/none_verify_configuration.rb +146 -0
- data/lib/oci/adm/models/oci_code_repository_configuration.rb +175 -0
- data/lib/oci/adm/models/oci_dev_ops_build_configuration.rb +177 -0
- data/lib/oci/adm/models/oci_resource_vulnerability_audit_source.rb +2 -2
- data/lib/oci/adm/models/operation_type.rb +6 -0
- data/lib/oci/adm/models/pipeline_properties.rb +169 -0
- data/lib/oci/adm/models/pull_request_properties.rb +169 -0
- data/lib/oci/adm/models/recommend_stage.rb +209 -0
- data/lib/oci/adm/models/remediation_recipe.rb +381 -0
- data/lib/oci/adm/models/remediation_recipe_collection.rb +151 -0
- data/lib/oci/adm/models/remediation_recipe_summary.rb +297 -0
- data/lib/oci/adm/models/remediation_run.rb +418 -0
- data/lib/oci/adm/models/remediation_run_collection.rb +151 -0
- data/lib/oci/adm/models/remediation_run_stage.rb +363 -0
- data/lib/oci/adm/models/remediation_run_stage_collection.rb +151 -0
- data/lib/oci/adm/models/remediation_run_stage_summary.rb +249 -0
- data/lib/oci/adm/models/remediation_run_stage_type.rb +15 -0
- data/lib/oci/adm/models/remediation_run_summary.rb +361 -0
- data/lib/oci/adm/models/scm_configuration.rb +234 -0
- data/lib/oci/adm/models/stage_summary.rb +225 -0
- data/lib/oci/adm/models/unknown_source_vulnerability_audit_source.rb +1 -1
- data/lib/oci/adm/models/update_knowledge_base_details.rb +2 -2
- data/lib/oci/adm/models/update_remediation_recipe_details.rb +267 -0
- data/lib/oci/adm/models/update_remediation_run_details.rb +187 -0
- data/lib/oci/adm/models/update_vulnerability_audit_details.rb +2 -2
- data/lib/oci/adm/models/usage_data_details.rb +176 -0
- data/lib/oci/adm/models/usage_data_via_object_storage_tuple_details.rb +191 -0
- data/lib/oci/adm/models/verify_configuration.rb +201 -0
- data/lib/oci/adm/models/verify_stage.rb +208 -0
- data/lib/oci/adm/models/vulnerability.rb +18 -4
- data/lib/oci/adm/models/vulnerability_audit.rb +67 -18
- data/lib/oci/adm/models/vulnerability_audit_collection.rb +2 -2
- data/lib/oci/adm/models/vulnerability_audit_configuration.rb +7 -5
- data/lib/oci/adm/models/vulnerability_audit_source.rb +2 -2
- data/lib/oci/adm/models/vulnerability_audit_summary.rb +14 -14
- data/lib/oci/adm/models/work_request.rb +6 -0
- data/lib/oci/adm/models/work_request_summary.rb +26 -4
- data/lib/oci/ai_speech/ai_speech.rb +2 -0
- data/lib/oci/ai_speech/models/create_transcription_job_details.rb +2 -2
- data/lib/oci/ai_speech/models/diarization.rb +171 -0
- data/lib/oci/ai_speech/models/transcription_job.rb +3 -3
- data/lib/oci/ai_speech/models/transcription_job_summary.rb +3 -3
- data/lib/oci/ai_speech/models/transcription_model_details.rb +17 -4
- data/lib/oci/ai_speech/models/transcription_settings.rb +150 -0
- data/lib/oci/ai_speech/models/update_transcription_job_details.rb +2 -2
- data/lib/oci/bds/bds.rb +8 -0
- data/lib/oci/bds/bds_client.rb +285 -0
- data/lib/oci/bds/bds_client_composite_operations.rb +150 -0
- data/lib/oci/bds/models/certificate_service_info_details.rb +151 -0
- data/lib/oci/bds/models/certificate_service_info_summary.rb +228 -0
- data/lib/oci/bds/models/disable_certificate_details.rb +165 -0
- data/lib/oci/bds/models/enable_certificate_details.rb +207 -0
- data/lib/oci/bds/models/host_cert_details.rb +179 -0
- data/lib/oci/bds/models/host_specific_certificate_details.rb +203 -0
- data/lib/oci/bds/models/operation_types.rb +2 -1
- data/lib/oci/bds/models/renew_certificate_details.rb +207 -0
- data/lib/oci/bds/models/service.rb +23 -0
- data/lib/oci/bds/models/work_request.rb +1 -0
- data/lib/oci/compute_cloud_at_customer/compute_cloud_at_customer_client.rb +2 -3
- data/lib/oci/core/compute_client.rb +759 -31
- data/lib/oci/core/compute_client_composite_operations.rb +189 -0
- data/lib/oci/core/core.rb +22 -0
- data/lib/oci/core/models/capacity_source.rb +191 -0
- data/lib/oci/core/models/capture_filter.rb +20 -4
- data/lib/oci/core/models/change_compute_capacity_topology_compartment_details.rb +157 -0
- data/lib/oci/core/models/compute_bare_metal_host.rb +325 -0
- data/lib/oci/core/models/compute_bare_metal_host_collection.rb +152 -0
- data/lib/oci/core/models/compute_bare_metal_host_summary.rb +298 -0
- data/lib/oci/core/models/compute_capacity_topology.rb +321 -0
- data/lib/oci/core/models/compute_capacity_topology_collection.rb +152 -0
- data/lib/oci/core/models/compute_capacity_topology_summary.rb +284 -0
- data/lib/oci/core/models/compute_hpc_island.rb +241 -0
- data/lib/oci/core/models/compute_hpc_island_collection.rb +152 -0
- data/lib/oci/core/models/compute_hpc_island_summary.rb +228 -0
- data/lib/oci/core/models/compute_network_block.rb +255 -0
- data/lib/oci/core/models/compute_network_block_collection.rb +152 -0
- data/lib/oci/core/models/compute_network_block_summary.rb +242 -0
- data/lib/oci/core/models/create_capacity_source_details.rb +172 -0
- data/lib/oci/core/models/create_capture_filter_details.rb +21 -5
- data/lib/oci/core/models/create_compute_capacity_topology_details.rb +240 -0
- data/lib/oci/core/models/create_dedicated_capacity_source_details.rb +165 -0
- data/lib/oci/core/models/dedicated_capacity_source.rb +165 -0
- data/lib/oci/core/models/flow_log_capture_filter_rule_details.rb +334 -0
- data/lib/oci/core/models/update_capacity_source_details.rb +172 -0
- data/lib/oci/core/models/update_capture_filter_details.rb +16 -1
- data/lib/oci/core/models/update_compute_capacity_topology_details.rb +207 -0
- data/lib/oci/core/models/update_dedicated_capacity_source_details.rb +147 -0
- data/lib/oci/core/virtual_network_client.rb +6 -0
- data/lib/oci/data_safe/data_safe.rb +60 -0
- data/lib/oci/data_safe/data_safe_client.rb +7342 -4278
- data/lib/oci/data_safe/data_safe_client_composite_operations.rb +1302 -361
- data/lib/oci/data_safe/models/apply_sdm_masking_policy_difference_details.rb +1 -1
- data/lib/oci/data_safe/models/audit_policy_category.rb +2 -1
- data/lib/oci/data_safe/models/audit_policy_dimensions.rb +1 -0
- data/lib/oci/data_safe/models/audit_specification.rb +1 -0
- data/lib/oci/data_safe/models/audit_trail_source.rb +13 -0
- data/lib/oci/data_safe/models/autonomous_database_details.rb +2 -2
- data/lib/oci/data_safe/models/change_database_security_config_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_security_policy_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_security_policy_deployment_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_sql_collection_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_sql_firewall_policy_compartment_details.rb +155 -0
- data/lib/oci/data_safe/models/change_target_database_compartment_details.rb +1 -1
- data/lib/oci/data_safe/models/column_summary.rb +1 -1
- data/lib/oci/data_safe/models/create_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/data_safe/models/create_discovery_job_details.rb +2 -2
- data/lib/oci/data_safe/models/create_masking_column_details.rb +1 -1
- data/lib/oci/data_safe/models/create_masking_policy_details.rb +1 -2
- data/lib/oci/data_safe/models/create_sensitive_data_model_details.rb +1 -1
- data/lib/oci/data_safe/models/create_sql_collection_details.rb +297 -0
- data/lib/oci/data_safe/models/create_target_alert_policy_association_details.rb +1 -1
- data/lib/oci/data_safe/models/database_cloud_service_details.rb +2 -2
- data/lib/oci/data_safe/models/database_security_config.rb +364 -0
- data/lib/oci/data_safe/models/database_security_config_collection.rb +151 -0
- data/lib/oci/data_safe/models/database_security_config_lifecycle_state.rb +18 -0
- data/lib/oci/data_safe/models/database_security_config_summary.rb +348 -0
- data/lib/oci/data_safe/models/discovery_job.rb +1 -1
- data/lib/oci/data_safe/models/discovery_job_result.rb +1 -1
- data/lib/oci/data_safe/models/discovery_job_result_summary.rb +1 -1
- data/lib/oci/data_safe/models/download_masking_log_details.rb +1 -1
- data/lib/oci/data_safe/models/entry_details.rb +192 -0
- data/lib/oci/data_safe/models/firewall_policy_entry_details.rb +177 -0
- data/lib/oci/data_safe/models/mask_data_details.rb +1 -2
- data/lib/oci/data_safe/models/masking_column.rb +1 -1
- data/lib/oci/data_safe/models/masking_column_summary.rb +1 -1
- data/lib/oci/data_safe/models/masking_policy.rb +1 -2
- data/lib/oci/data_safe/models/profile.rb +1 -1
- data/lib/oci/data_safe/models/profile_aggregation.rb +2 -32
- data/lib/oci/data_safe/models/profile_summary.rb +1 -1
- data/lib/oci/data_safe/models/report_definition.rb +4 -0
- data/lib/oci/data_safe/models/report_definition_data_source.rb +3 -1
- data/lib/oci/data_safe/models/report_definition_summary.rb +4 -0
- data/lib/oci/data_safe/models/role_summary.rb +2 -2
- data/lib/oci/data_safe/models/schema_summary.rb +1 -1
- data/lib/oci/data_safe/models/security_assessment.rb +3 -3
- data/lib/oci/data_safe/models/security_assessment_base_line_details.rb +2 -2
- data/lib/oci/data_safe/models/security_assessment_summary.rb +3 -3
- data/lib/oci/data_safe/models/security_policy.rb +320 -0
- data/lib/oci/data_safe/models/security_policy_collection.rb +151 -0
- data/lib/oci/data_safe/models/security_policy_deployment.rb +349 -0
- data/lib/oci/data_safe/models/security_policy_deployment_collection.rb +151 -0
- data/lib/oci/data_safe/models/security_policy_deployment_lifecycle_state.rb +18 -0
- data/lib/oci/data_safe/models/security_policy_deployment_summary.rb +349 -0
- data/lib/oci/data_safe/models/security_policy_entry_state.rb +230 -0
- data/lib/oci/data_safe/models/security_policy_entry_state_collection.rb +151 -0
- data/lib/oci/data_safe/models/security_policy_entry_state_deployment_status.rb +16 -0
- data/lib/oci/data_safe/models/security_policy_entry_state_summary.rb +217 -0
- data/lib/oci/data_safe/models/security_policy_lifecycle_state.rb +17 -0
- data/lib/oci/data_safe/models/security_policy_summary.rb +320 -0
- data/lib/oci/data_safe/models/sensitive_data_model.rb +1 -1
- data/lib/oci/data_safe/models/sql_collection.rb +445 -0
- data/lib/oci/data_safe/models/sql_collection_aggregation.rb +161 -0
- data/lib/oci/data_safe/models/sql_collection_analytics_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_collection_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_collection_dimensions.rb +196 -0
- data/lib/oci/data_safe/models/sql_collection_lifecycle_state.rb +20 -0
- data/lib/oci/data_safe/models/sql_collection_log_aggregation.rb +202 -0
- data/lib/oci/data_safe/models/sql_collection_log_dimensions.rb +183 -0
- data/lib/oci/data_safe/models/sql_collection_log_insights_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_collection_summary.rb +429 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_aggregation.rb +161 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_analytics_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_dimensions.rb +239 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_lifecycle_state.rb +13 -0
- data/lib/oci/data_safe/models/sql_firewall_allowed_sql_summary.rb +418 -0
- data/lib/oci/data_safe/models/sql_firewall_config.rb +254 -0
- data/lib/oci/data_safe/models/sql_firewall_policy.rb +557 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_aggregation.rb +161 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_analytics_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_dimensions.rb +262 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_lifecycle_state.rb +19 -0
- data/lib/oci/data_safe/models/sql_firewall_policy_summary.rb +499 -0
- data/lib/oci/data_safe/models/sql_firewall_violation_aggregation.rb +216 -0
- data/lib/oci/data_safe/models/sql_firewall_violation_aggregation_dimensions.rb +321 -0
- data/lib/oci/data_safe/models/sql_firewall_violation_analytics_collection.rb +151 -0
- data/lib/oci/data_safe/models/sql_firewall_violation_summary.rb +413 -0
- data/lib/oci/data_safe/models/sql_firewall_violations_collection.rb +151 -0
- data/lib/oci/data_safe/models/table_summary.rb +2 -1
- data/lib/oci/data_safe/models/target_alert_policy_association.rb +1 -1
- data/lib/oci/data_safe/models/target_alert_policy_association_summary.rb +1 -1
- data/lib/oci/data_safe/models/target_database.rb +2 -2
- data/lib/oci/data_safe/models/target_database_summary.rb +1 -1
- data/lib/oci/data_safe/models/update_data_safe_private_endpoint_details.rb +1 -1
- data/lib/oci/data_safe/models/update_database_security_config_details.rb +212 -0
- data/lib/oci/data_safe/models/update_masking_column_details.rb +1 -1
- data/lib/oci/data_safe/models/update_masking_policy_details.rb +1 -2
- data/lib/oci/data_safe/models/update_security_policy_deployment_details.rb +199 -0
- data/lib/oci/data_safe/models/update_security_policy_details.rb +199 -0
- data/lib/oci/data_safe/models/update_sql_collection_details.rb +199 -0
- data/lib/oci/data_safe/models/update_sql_firewall_config_details.rb +221 -0
- data/lib/oci/data_safe/models/update_sql_firewall_policy_details.rb +346 -0
- data/lib/oci/data_safe/models/update_target_alert_policy_association_details.rb +1 -1
- data/lib/oci/data_safe/models/user_assessment.rb +7 -7
- data/lib/oci/data_safe/models/user_assessment_base_line_details.rb +2 -2
- data/lib/oci/data_safe/models/user_assessment_summary.rb +9 -9
- data/lib/oci/data_safe/models/user_summary.rb +4 -4
- data/lib/oci/data_safe/models/work_request.rb +20 -0
- data/lib/oci/data_safe/models/work_request_summary.rb +20 -0
- data/lib/oci/data_science/data_science.rb +3 -0
- data/lib/oci/data_science/data_science_client.rb +51 -51
- data/lib/oci/data_science/models/create_job_details.rb +15 -1
- data/lib/oci/data_science/models/create_notebook_session_details.rb +18 -4
- data/lib/oci/data_science/models/fast_launch_job_config_summary.rb +1 -0
- data/lib/oci/data_science/models/file_storage_mount_configuration_details.rb +185 -0
- data/lib/oci/data_science/models/job.rb +15 -1
- data/lib/oci/data_science/models/job_run.rb +15 -1
- data/lib/oci/data_science/models/job_shape_summary.rb +1 -0
- data/lib/oci/data_science/models/model_deployment_shape_series.rb +2 -1
- data/lib/oci/data_science/models/model_deployment_shape_summary.rb +1 -0
- data/lib/oci/data_science/models/notebook_session.rb +15 -1
- data/lib/oci/data_science/models/notebook_session_shape_series.rb +2 -1
- data/lib/oci/data_science/models/notebook_session_shape_summary.rb +1 -0
- data/lib/oci/data_science/models/object_storage_mount_configuration_details.rb +187 -0
- data/lib/oci/data_science/models/storage_mount_configuration_details.rb +223 -0
- data/lib/oci/data_science/models/update_job_details.rb +15 -1
- data/lib/oci/data_science/models/update_notebook_session_details.rb +18 -4
- data/lib/oci/database/database.rb +21 -0
- data/lib/oci/database/database_client.rb +1057 -19
- data/lib/oci/database/database_client_composite_operations.rb +330 -0
- data/lib/oci/database/models/autonomous_container_database.rb +47 -4
- data/lib/oci/database/models/autonomous_container_database_backup_config.rb +1 -0
- data/lib/oci/database/models/autonomous_container_database_summary.rb +47 -4
- data/lib/oci/database/models/autonomous_patch.rb +40 -4
- data/lib/oci/database/models/autonomous_patch_summary.rb +40 -4
- data/lib/oci/database/models/autonomous_vm_cluster.rb +158 -4
- data/lib/oci/database/models/autonomous_vm_cluster_resource_usage.rb +435 -0
- data/lib/oci/database/models/autonomous_vm_cluster_summary.rb +158 -4
- data/lib/oci/database/models/cloud_autonomous_vm_cluster.rb +46 -4
- data/lib/oci/database/models/cloud_autonomous_vm_cluster_summary.rb +46 -4
- data/lib/oci/database/models/configure_saas_admin_user_details.rb +242 -0
- data/lib/oci/database/models/console_history.rb +291 -0
- data/lib/oci/database/models/console_history_collection.rb +151 -0
- data/lib/oci/database/models/console_history_summary.rb +294 -0
- data/lib/oci/database/models/convert_to_regular_pluggable_database_details.rb +184 -0
- data/lib/oci/database/models/create_autonomous_container_database_dataguard_association_details.rb +274 -0
- data/lib/oci/database/models/create_autonomous_container_database_details.rb +15 -1
- data/lib/oci/database/models/create_cloud_vm_cluster_details.rb +18 -4
- data/lib/oci/database/models/create_console_history_details.rb +192 -0
- data/lib/oci/database/models/create_database_from_another_database_details.rb +18 -4
- data/lib/oci/database/models/create_database_from_backup_details.rb +18 -4
- data/lib/oci/database/models/create_maintenance_run_details.rb +256 -0
- data/lib/oci/database/models/create_pluggable_database_creation_type_details.rb +200 -0
- data/lib/oci/database/models/create_pluggable_database_details.rb +43 -1
- data/lib/oci/database/models/create_pluggable_database_from_local_clone_details.rb +163 -0
- data/lib/oci/database/models/create_pluggable_database_from_relocate_details.rb +208 -0
- data/lib/oci/database/models/create_pluggable_database_from_remote_clone_details.rb +221 -0
- data/lib/oci/database/models/create_pluggable_database_refreshable_clone_details.rb +157 -0
- data/lib/oci/database/models/create_vm_cluster_details.rb +18 -4
- data/lib/oci/database/models/database_connection_string_profile.rb +18 -4
- data/lib/oci/database/models/db_system_upgrade_history_entry.rb +31 -3
- data/lib/oci/database/models/db_system_upgrade_history_entry_summary.rb +31 -3
- data/lib/oci/database/models/generate_autonomous_database_wallet_details.rb +18 -4
- data/lib/oci/database/models/local_clone_pluggable_database_details.rb +1 -0
- data/lib/oci/database/models/maintenance_run.rb +16 -1
- data/lib/oci/database/models/maintenance_run_summary.rb +16 -1
- data/lib/oci/database/models/peer_autonomous_container_database_backup_config.rb +1 -0
- data/lib/oci/database/models/pluggable_database.rb +42 -5
- data/lib/oci/database/models/pluggable_database_node_level_details.rb +192 -0
- data/lib/oci/database/models/pluggable_database_refreshable_clone_config.rb +155 -0
- data/lib/oci/database/models/pluggable_database_summary.rb +42 -5
- data/lib/oci/database/models/remote_clone_pluggable_database_details.rb +1 -0
- data/lib/oci/database/models/restore_database_details.rb +20 -4
- data/lib/oci/database/models/saas_admin_user_configuration.rb +245 -0
- data/lib/oci/database/models/saas_admin_user_status.rb +204 -0
- data/lib/oci/database/models/system_version_collection.rb +151 -0
- data/lib/oci/database/models/system_version_summary.rb +179 -0
- data/lib/oci/database/models/update_autonomous_container_database_details.rb +15 -1
- data/lib/oci/database/models/update_autonomous_vm_cluster_details.rb +46 -4
- data/lib/oci/database/models/update_cloud_autonomous_vm_cluster_details.rb +43 -1
- data/lib/oci/database/models/update_console_history_details.rb +191 -0
- data/lib/oci/database/models/upgrade_db_system_details.rb +15 -1
- data/lib/oci/database_management/database_management.rb +17 -0
- data/lib/oci/database_management/managed_my_sql_databases_client.rb +577 -0
- data/lib/oci/database_management/managed_my_sql_databases_client_composite_operations.rb +27 -0
- data/lib/oci/database_management/models/managed_my_sql_database.rb +217 -0
- data/lib/oci/database_management/models/managed_my_sql_database_collection.rb +151 -0
- data/lib/oci/database_management/models/managed_my_sql_database_summary.rb +217 -0
- data/lib/oci/database_management/models/mds_type.rb +14 -0
- data/lib/oci/database_management/models/my_sql_configuration_data_collection.rb +151 -0
- data/lib/oci/database_management/models/my_sql_configuration_data_summary.rb +383 -0
- data/lib/oci/database_management/models/my_sql_data_collection.rb +151 -0
- data/lib/oci/database_management/models/my_sql_data_summary.rb +573 -0
- data/lib/oci/database_management/models/my_sql_database_status.rb +14 -0
- data/lib/oci/database_management/models/my_sql_database_usage_metrics.rb +286 -0
- data/lib/oci/database_management/models/my_sql_deployment_type.rb +13 -0
- data/lib/oci/database_management/models/my_sql_fleet_by_category.rb +183 -0
- data/lib/oci/database_management/models/my_sql_fleet_metric_definition.rb +199 -0
- data/lib/oci/database_management/models/my_sql_fleet_metric_summary_definition.rb +189 -0
- data/lib/oci/database_management/models/my_sql_fleet_metrics.rb +197 -0
- data/lib/oci/database_management/models/my_sql_fleet_summary.rb +165 -0
- data/lib/oci/database_tools/database_tools.rb +60 -0
- data/lib/oci/database_tools/database_tools_client.rb +286 -19
- data/lib/oci/database_tools/database_tools_client_composite_operations.rb +160 -0
- data/lib/oci/database_tools/models/add_resource_lock_details.rb +202 -0
- data/lib/oci/database_tools/models/connection_type.rb +3 -1
- data/lib/oci/database_tools/models/create_database_tools_connection_details.rb +48 -5
- data/lib/oci/database_tools/models/create_database_tools_connection_generic_jdbc_details.rb +241 -0
- data/lib/oci/database_tools/models/create_database_tools_connection_my_sql_details.rb +12 -3
- data/lib/oci/database_tools/models/create_database_tools_connection_oracle_database_details.rb +28 -6
- data/lib/oci/database_tools/models/create_database_tools_connection_postgresql_details.rb +272 -0
- data/lib/oci/database_tools/models/create_database_tools_private_endpoint_details.rb +11 -1
- data/lib/oci/database_tools/models/create_database_tools_related_resource_postgresql_details.rb +177 -0
- data/lib/oci/database_tools/models/database_tools_connection.rb +52 -4
- data/lib/oci/database_tools/models/database_tools_connection_generic_jdbc.rb +264 -0
- data/lib/oci/database_tools/models/database_tools_connection_generic_jdbc_summary.rb +264 -0
- data/lib/oci/database_tools/models/database_tools_connection_my_sql.rb +10 -2
- data/lib/oci/database_tools/models/database_tools_connection_my_sql_summary.rb +10 -2
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database.rb +26 -5
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client.rb +194 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_details.rb +187 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_no_proxy.rb +146 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_no_proxy_details.rb +146 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_no_proxy_summary.rb +146 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_summary.rb +194 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_user_name.rb +186 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_user_name_details.rb +186 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_proxy_client_user_name_summary.rb +186 -0
- data/lib/oci/database_tools/models/database_tools_connection_oracle_database_summary.rb +26 -5
- data/lib/oci/database_tools/models/database_tools_connection_postgresql.rb +295 -0
- data/lib/oci/database_tools/models/database_tools_connection_postgresql_summary.rb +295 -0
- data/lib/oci/database_tools/models/database_tools_connection_summary.rb +52 -4
- data/lib/oci/database_tools/models/database_tools_endpoint_service.rb +1 -0
- data/lib/oci/database_tools/models/database_tools_endpoint_service_summary.rb +1 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_generic_jdbc.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_generic_jdbc_details.rb +183 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_generic_jdbc_summary.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_postgresql.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_postgresql_details.rb +183 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_postgresql_summary.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_generic_jdbc.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_generic_jdbc_details.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_generic_jdbc_summary.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_postgresql.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_postgresql_details.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_content_secret_id_postgresql_summary.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_generic_jdbc.rb +206 -0
- data/lib/oci/database_tools/models/database_tools_key_store_generic_jdbc_details.rb +199 -0
- data/lib/oci/database_tools/models/database_tools_key_store_generic_jdbc_summary.rb +206 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_generic_jdbc.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_generic_jdbc_details.rb +183 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_generic_jdbc_summary.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_postgresql.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_postgresql_details.rb +183 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_postgresql_summary.rb +190 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_generic_jdbc.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_generic_jdbc_details.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_generic_jdbc_summary.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_postgresql.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_postgresql_details.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_password_secret_id_postgresql_summary.rb +163 -0
- data/lib/oci/database_tools/models/database_tools_key_store_postgresql.rb +202 -0
- data/lib/oci/database_tools/models/database_tools_key_store_postgresql_details.rb +195 -0
- data/lib/oci/database_tools/models/database_tools_key_store_postgresql_summary.rb +202 -0
- data/lib/oci/database_tools/models/database_tools_private_endpoint.rb +12 -1
- data/lib/oci/database_tools/models/database_tools_private_endpoint_summary.rb +12 -1
- data/lib/oci/database_tools/models/database_tools_related_resource_postgresql.rb +184 -0
- data/lib/oci/database_tools/models/key_store_type_generic_jdbc.rb +18 -0
- data/lib/oci/database_tools/models/key_store_type_postgresql.rb +14 -0
- data/lib/oci/database_tools/models/lifecycle_state.rb +2 -1
- data/lib/oci/database_tools/models/proxy_authentication_type.rb +13 -0
- data/lib/oci/database_tools/models/related_resource_entity_type_postgresql.rb +12 -0
- data/lib/oci/database_tools/models/remove_resource_lock_details.rb +202 -0
- data/lib/oci/database_tools/models/resource_lock.rb +215 -0
- data/lib/oci/database_tools/models/runtime_support.rb +13 -0
- data/lib/oci/database_tools/models/update_database_tools_connection_details.rb +5 -1
- data/lib/oci/database_tools/models/update_database_tools_connection_generic_jdbc_details.rb +228 -0
- data/lib/oci/database_tools/models/update_database_tools_connection_oracle_database_details.rb +17 -4
- data/lib/oci/database_tools/models/update_database_tools_connection_postgresql_details.rb +259 -0
- data/lib/oci/database_tools/models/update_database_tools_related_resource_postgresql_details.rb +177 -0
- data/lib/oci/database_tools/models/validate_database_tools_connection_details.rb +4 -1
- data/lib/oci/database_tools/models/validate_database_tools_connection_my_sql_result.rb +1 -1
- data/lib/oci/database_tools/models/validate_database_tools_connection_oracle_database_result.rb +1 -1
- data/lib/oci/database_tools/models/validate_database_tools_connection_postgresql_details.rb +146 -0
- data/lib/oci/database_tools/models/validate_database_tools_connection_postgresql_result.rb +193 -0
- data/lib/oci/database_tools/models/validate_database_tools_connection_result.rb +3 -0
- data/lib/oci/disaster_recovery/disaster_recovery.rb +45 -0
- data/lib/oci/disaster_recovery/disaster_recovery_client.rb +124 -115
- data/lib/oci/disaster_recovery/disaster_recovery_client_composite_operations.rb +45 -45
- data/lib/oci/disaster_recovery/models/associate_dr_protection_group_details.rb +7 -5
- data/lib/oci/disaster_recovery/models/block_volume_attachment_details.rb +160 -0
- data/lib/oci/disaster_recovery/models/block_volume_mount_details.rb +159 -0
- data/lib/oci/disaster_recovery/models/cancel_dr_plan_execution_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/change_dr_protection_group_compartment_details.rb +3 -3
- data/lib/oci/disaster_recovery/models/compute_instance_movable_file_system_operation.rb +204 -0
- data/lib/oci/disaster_recovery/models/compute_instance_movable_vnic_mapping.rb +14 -12
- data/lib/oci/disaster_recovery/models/compute_instance_movable_vnic_mapping_details.rb +15 -12
- data/lib/oci/disaster_recovery/models/compute_instance_non_movable_block_volume_operation.rb +185 -0
- data/lib/oci/disaster_recovery/models/compute_instance_non_movable_file_system_operation.rb +193 -0
- data/lib/oci/disaster_recovery/models/compute_instance_vnic_mapping.rb +8 -6
- data/lib/oci/disaster_recovery/models/compute_instance_vnic_mapping_details.rb +14 -11
- data/lib/oci/disaster_recovery/models/create_block_volume_attachment_details.rb +160 -0
- data/lib/oci/disaster_recovery/models/create_block_volume_mount_details.rb +159 -0
- data/lib/oci/disaster_recovery/models/create_compute_instance_movable_file_system_operation_details.rb +204 -0
- data/lib/oci/disaster_recovery/models/create_compute_instance_non_movable_block_volume_operation_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/create_compute_instance_non_movable_file_system_operation_details.rb +193 -0
- data/lib/oci/disaster_recovery/models/create_dr_plan_details.rb +10 -6
- data/lib/oci/disaster_recovery/models/create_dr_plan_execution_details.rb +6 -4
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_details.rb +8 -6
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_autonomous_database_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_details.rb +9 -8
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_movable_details.rb +33 -16
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_compute_instance_non_movable_details.rb +56 -5
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_database_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_details.rb +9 -3
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_file_system_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_load_balancer_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_network_load_balancer_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/create_dr_protection_group_member_volume_group_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/create_file_system_mount_details.rb +159 -0
- data/lib/oci/disaster_recovery/models/create_file_system_unmount_details.rb +159 -0
- data/lib/oci/disaster_recovery/models/create_object_storage_log_location_details.rb +3 -3
- data/lib/oci/disaster_recovery/models/disassociate_dr_protection_group_default_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/disassociate_dr_protection_group_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/dr_plan.rb +25 -20
- data/lib/oci/disaster_recovery/models/dr_plan_collection.rb +2 -2
- data/lib/oci/disaster_recovery/models/dr_plan_execution.rb +31 -25
- data/lib/oci/disaster_recovery/models/dr_plan_execution_collection.rb +2 -3
- data/lib/oci/disaster_recovery/models/dr_plan_execution_option_details.rb +9 -1
- data/lib/oci/disaster_recovery/models/dr_plan_execution_options.rb +8 -0
- data/lib/oci/disaster_recovery/models/dr_plan_execution_summary.rb +29 -23
- data/lib/oci/disaster_recovery/models/dr_plan_execution_type.rb +5 -1
- data/lib/oci/disaster_recovery/models/dr_plan_group.rb +8 -6
- data/lib/oci/disaster_recovery/models/dr_plan_group_execution.rb +11 -9
- data/lib/oci/disaster_recovery/models/dr_plan_step.rb +45 -6
- data/lib/oci/disaster_recovery/models/dr_plan_step_execution.rb +49 -10
- data/lib/oci/disaster_recovery/models/dr_plan_step_type.rb +39 -0
- data/lib/oci/disaster_recovery/models/dr_plan_summary.rb +28 -18
- data/lib/oci/disaster_recovery/models/dr_plan_type.rb +3 -1
- data/lib/oci/disaster_recovery/models/dr_plan_user_defined_step.rb +10 -12
- data/lib/oci/disaster_recovery/models/dr_protection_group.rb +54 -17
- data/lib/oci/disaster_recovery/models/dr_protection_group_collection.rb +2 -2
- data/lib/oci/disaster_recovery/models/dr_protection_group_lifecycle_state.rb +1 -0
- data/lib/oci/disaster_recovery/models/dr_protection_group_lifecycle_sub_state.rb +12 -0
- data/lib/oci/disaster_recovery/models/dr_protection_group_member.rb +8 -2
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_autonomous_database.rb +1 -1
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_compute_instance.rb +8 -6
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_compute_instance_movable.rb +32 -14
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_compute_instance_non_movable.rb +55 -5
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_database.rb +4 -3
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_file_system.rb +186 -0
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_load_balancer.rb +187 -0
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_network_load_balancer.rb +187 -0
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_type.rb +4 -1
- data/lib/oci/disaster_recovery/models/dr_protection_group_member_volume_group.rb +1 -1
- data/lib/oci/disaster_recovery/models/dr_protection_group_summary.rb +53 -16
- data/lib/oci/disaster_recovery/models/file_system_export_mapping.rb +176 -0
- data/lib/oci/disaster_recovery/models/file_system_export_mapping_details.rb +175 -0
- data/lib/oci/disaster_recovery/models/file_system_mount_details.rb +158 -0
- data/lib/oci/disaster_recovery/models/file_system_unmount_details.rb +158 -0
- data/lib/oci/disaster_recovery/models/ignore_dr_plan_execution_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/invoke_function_step.rb +1 -1
- data/lib/oci/disaster_recovery/models/load_balancer_backend_set_mapping.rb +197 -0
- data/lib/oci/disaster_recovery/models/load_balancer_backend_set_mapping_details.rb +198 -0
- data/lib/oci/disaster_recovery/models/network_load_balancer_backend_set_mapping.rb +197 -0
- data/lib/oci/disaster_recovery/models/network_load_balancer_backend_set_mapping_details.rb +198 -0
- data/lib/oci/disaster_recovery/models/object_storage_log_location.rb +4 -4
- data/lib/oci/disaster_recovery/models/object_storage_script_location.rb +4 -4
- data/lib/oci/disaster_recovery/models/pause_dr_plan_execution_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/resume_dr_plan_execution_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/retry_dr_plan_execution_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/run_local_script_user_defined_step.rb +8 -3
- data/lib/oci/disaster_recovery/models/run_object_store_script_user_defined_step.rb +8 -3
- data/lib/oci/disaster_recovery/models/start_drill_execution_option_details.rb +187 -0
- data/lib/oci/disaster_recovery/models/start_drill_execution_options.rb +187 -0
- data/lib/oci/disaster_recovery/models/start_drill_precheck_execution_option_details.rb +168 -0
- data/lib/oci/disaster_recovery/models/start_drill_precheck_execution_options.rb +168 -0
- data/lib/oci/disaster_recovery/models/stop_drill_execution_option_details.rb +187 -0
- data/lib/oci/disaster_recovery/models/stop_drill_execution_options.rb +187 -0
- data/lib/oci/disaster_recovery/models/stop_drill_precheck_execution_option_details.rb +168 -0
- data/lib/oci/disaster_recovery/models/stop_drill_precheck_execution_options.rb +168 -0
- data/lib/oci/disaster_recovery/models/update_block_volume_attachment_details.rb +160 -0
- data/lib/oci/disaster_recovery/models/update_block_volume_mount_details.rb +159 -0
- data/lib/oci/disaster_recovery/models/update_compute_instance_movable_file_system_operation_details.rb +204 -0
- data/lib/oci/disaster_recovery/models/update_compute_instance_non_movable_block_volume_operation_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/update_compute_instance_non_movable_file_system_operation_details.rb +193 -0
- data/lib/oci/disaster_recovery/models/update_dr_plan_details.rb +5 -3
- data/lib/oci/disaster_recovery/models/update_dr_plan_execution_details.rb +5 -3
- data/lib/oci/disaster_recovery/models/update_dr_plan_group_details.rb +6 -4
- data/lib/oci/disaster_recovery/models/update_dr_plan_step_details.rb +4 -4
- data/lib/oci/disaster_recovery/models/update_dr_plan_user_defined_step_details.rb +14 -5
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_details.rb +7 -4
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_autonomous_database_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_details.rb +9 -8
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_movable_details.rb +33 -16
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_compute_instance_non_movable_details.rb +56 -5
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_database_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_details.rb +9 -3
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_file_system_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_load_balancer_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_network_load_balancer_details.rb +185 -0
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_member_volume_group_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/update_dr_protection_group_role_details.rb +2 -2
- data/lib/oci/disaster_recovery/models/update_file_system_mount_details.rb +158 -0
- data/lib/oci/disaster_recovery/models/update_file_system_unmount_details.rb +158 -0
- data/lib/oci/disaster_recovery/models/update_invoke_function_user_defined_step_details.rb +1 -1
- data/lib/oci/disaster_recovery/models/update_object_storage_log_location_details.rb +3 -3
- data/lib/oci/disaster_recovery/models/update_object_storage_script_location_details.rb +4 -4
- data/lib/oci/disaster_recovery/models/update_run_local_script_user_defined_step_details.rb +7 -2
- data/lib/oci/disaster_recovery/models/update_run_object_store_script_user_defined_step_details.rb +8 -1
- data/lib/oci/disaster_recovery/models/work_request.rb +3 -3
- data/lib/oci/disaster_recovery/models/work_request_error_collection.rb +1 -1
- data/lib/oci/disaster_recovery/models/work_request_log_entry.rb +1 -1
- data/lib/oci/disaster_recovery/models/work_request_resource.rb +1 -1
- data/lib/oci/disaster_recovery/models/work_request_summary.rb +4 -4
- data/lib/oci/disaster_recovery/models/work_request_summary_collection.rb +1 -1
- data/lib/oci/golden_gate/golden_gate.rb +33 -0
- data/lib/oci/golden_gate/golden_gate_client.rb +286 -6
- data/lib/oci/golden_gate/golden_gate_client_composite_operations.rb +104 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection.rb +262 -0
- data/lib/oci/golden_gate/models/amazon_kinesis_connection_summary.rb +243 -0
- data/lib/oci/golden_gate/models/amazon_redshift_connection.rb +276 -0
- data/lib/oci/golden_gate/models/amazon_redshift_connection_summary.rb +257 -0
- data/lib/oci/golden_gate/models/amazon_s3_connection.rb +5 -5
- data/lib/oci/golden_gate/models/amazon_s3_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/azure_data_lake_storage_connection.rb +5 -5
- data/lib/oci/golden_gate/models/azure_data_lake_storage_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/azure_synapse_connection.rb +5 -5
- data/lib/oci/golden_gate/models/azure_synapse_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/certificate.rb +448 -0
- data/lib/oci/golden_gate/models/certificate_collection.rb +152 -0
- data/lib/oci/golden_gate/models/certificate_lifecycle_state.rb +16 -0
- data/lib/oci/golden_gate/models/certificate_summary.rb +249 -0
- data/lib/oci/golden_gate/models/connection.rb +33 -19
- data/lib/oci/golden_gate/models/connection_summary.rb +33 -19
- data/lib/oci/golden_gate/models/connection_type.rb +8 -1
- data/lib/oci/golden_gate/models/create_amazon_kinesis_connection_details.rb +230 -0
- data/lib/oci/golden_gate/models/create_amazon_redshift_connection_details.rb +241 -0
- data/lib/oci/golden_gate/models/create_amazon_s3_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_azure_data_lake_storage_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_azure_synapse_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_certificate_details.rb +168 -0
- data/lib/oci/golden_gate/models/create_connection_details.rb +34 -20
- data/lib/oci/golden_gate/models/create_deployment_details.rb +3 -1
- data/lib/oci/golden_gate/models/create_elasticsearch_connection_details.rb +279 -0
- data/lib/oci/golden_gate/models/create_generic_connection_details.rb +215 -0
- data/lib/oci/golden_gate/models/create_golden_gate_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_google_big_query_connection_details.rb +216 -0
- data/lib/oci/golden_gate/models/create_google_cloud_storage_connection_details.rb +216 -0
- data/lib/oci/golden_gate/models/create_hdfs_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_java_message_service_connection_details.rb +113 -5
- data/lib/oci/golden_gate/models/create_kafka_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_kafka_schema_registry_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_microsoft_sqlserver_connection_details.rb +6 -6
- data/lib/oci/golden_gate/models/create_mongo_db_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_mysql_connection_details.rb +10 -11
- data/lib/oci/golden_gate/models/create_oci_object_storage_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_oracle_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_oracle_nosql_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/create_postgresql_connection_details.rb +9 -8
- data/lib/oci/golden_gate/models/create_redis_connection_details.rb +327 -0
- data/lib/oci/golden_gate/models/create_snowflake_connection_details.rb +5 -5
- data/lib/oci/golden_gate/models/deployment.rb +2 -0
- data/lib/oci/golden_gate/models/deployment_summary.rb +2 -0
- data/lib/oci/golden_gate/models/deployment_type.rb +3 -1
- data/lib/oci/golden_gate/models/deployment_type_summary.rb +46 -6
- data/lib/oci/golden_gate/models/deployment_version_summary.rb +2 -0
- data/lib/oci/golden_gate/models/elasticsearch_connection.rb +340 -0
- data/lib/oci/golden_gate/models/elasticsearch_connection_summary.rb +283 -0
- data/lib/oci/golden_gate/models/generic_connection.rb +262 -0
- data/lib/oci/golden_gate/models/generic_connection_summary.rb +243 -0
- data/lib/oci/golden_gate/models/golden_gate_connection.rb +5 -5
- data/lib/oci/golden_gate/models/golden_gate_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/google_big_query_connection.rb +247 -0
- data/lib/oci/golden_gate/models/google_big_query_connection_summary.rb +228 -0
- data/lib/oci/golden_gate/models/google_cloud_storage_connection.rb +247 -0
- data/lib/oci/golden_gate/models/google_cloud_storage_connection_summary.rb +228 -0
- data/lib/oci/golden_gate/models/hdfs_connection.rb +5 -5
- data/lib/oci/golden_gate/models/hdfs_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/java_message_service_connection.rb +76 -5
- data/lib/oci/golden_gate/models/java_message_service_connection_summary.rb +37 -5
- data/lib/oci/golden_gate/models/kafka_connection.rb +5 -5
- data/lib/oci/golden_gate/models/kafka_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/kafka_schema_registry_connection.rb +5 -5
- data/lib/oci/golden_gate/models/kafka_schema_registry_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/microsoft_sqlserver_connection.rb +7 -6
- data/lib/oci/golden_gate/models/microsoft_sqlserver_connection_summary.rb +6 -6
- data/lib/oci/golden_gate/models/mongo_db_connection.rb +5 -5
- data/lib/oci/golden_gate/models/mongo_db_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/mysql_connection.rb +5 -5
- data/lib/oci/golden_gate/models/mysql_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/oci_object_storage_connection.rb +5 -5
- data/lib/oci/golden_gate/models/oci_object_storage_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/operation_type.rb +3 -1
- data/lib/oci/golden_gate/models/oracle_connection.rb +5 -5
- data/lib/oci/golden_gate/models/oracle_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/oracle_nosql_connection.rb +5 -5
- data/lib/oci/golden_gate/models/oracle_nosql_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/postgresql_connection.rb +5 -5
- data/lib/oci/golden_gate/models/postgresql_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/redis_connection.rb +341 -0
- data/lib/oci/golden_gate/models/redis_connection_summary.rb +283 -0
- data/lib/oci/golden_gate/models/snowflake_connection.rb +5 -5
- data/lib/oci/golden_gate/models/snowflake_connection_summary.rb +5 -5
- data/lib/oci/golden_gate/models/technology_type.rb +8 -0
- data/lib/oci/golden_gate/models/update_amazon_kinesis_connection_details.rb +208 -0
- data/lib/oci/golden_gate/models/update_amazon_redshift_connection_details.rb +219 -0
- data/lib/oci/golden_gate/models/update_connection_details.rb +15 -1
- data/lib/oci/golden_gate/models/update_elasticsearch_connection_details.rb +257 -0
- data/lib/oci/golden_gate/models/update_generic_connection_details.rb +193 -0
- data/lib/oci/golden_gate/models/update_google_big_query_connection_details.rb +194 -0
- data/lib/oci/golden_gate/models/update_google_cloud_storage_connection_details.rb +194 -0
- data/lib/oci/golden_gate/models/update_java_message_service_connection_details.rb +109 -1
- data/lib/oci/golden_gate/models/update_microsoft_sqlserver_connection_details.rb +1 -1
- data/lib/oci/golden_gate/models/update_mysql_connection_details.rb +5 -6
- data/lib/oci/golden_gate/models/update_postgresql_connection_details.rb +4 -3
- data/lib/oci/golden_gate/models/update_redis_connection_details.rb +305 -0
- data/lib/oci/golden_gate/models/work_request.rb +2 -0
- data/lib/oci/identity_domains/identity_domains.rb +108 -0
- data/lib/oci/identity_domains/identity_domains_client.rb +12111 -4165
- data/lib/oci/identity_domains/models/app_extension_radius_app_app.rb +27 -1
- data/lib/oci/identity_domains/models/approval_workflow.rb +506 -0
- data/lib/oci/identity_domains/models/approval_workflow_approval_workflow_steps.rb +240 -0
- data/lib/oci/identity_domains/models/approval_workflow_assignment.rb +498 -0
- data/lib/oci/identity_domains/models/approval_workflow_assignment_approval_workflow.rb +270 -0
- data/lib/oci/identity_domains/models/approval_workflow_assignment_assigned_to.rb +270 -0
- data/lib/oci/identity_domains/models/approval_workflow_assignments.rb +203 -0
- data/lib/oci/identity_domains/models/approval_workflow_max_duration.rb +217 -0
- data/lib/oci/identity_domains/models/approval_workflow_step.rb +558 -0
- data/lib/oci/identity_domains/models/approval_workflow_step_approvers.rb +240 -0
- data/lib/oci/identity_domains/models/approval_workflow_steps.rb +203 -0
- data/lib/oci/identity_domains/models/approval_workflows.rb +203 -0
- data/lib/oci/identity_domains/models/authentication_factors_remover.rb +23 -4
- data/lib/oci/identity_domains/models/branding_setting.rb +841 -0
- data/lib/oci/identity_domains/models/branding_settings.rb +203 -0
- data/lib/oci/identity_domains/models/branding_settings_company_names.rb +175 -0
- data/lib/oci/identity_domains/models/branding_settings_default_company_names.rb +181 -0
- data/lib/oci/identity_domains/models/branding_settings_default_images.rb +198 -0
- data/lib/oci/identity_domains/models/branding_settings_default_login_texts.rb +181 -0
- data/lib/oci/identity_domains/models/branding_settings_images.rb +192 -0
- data/lib/oci/identity_domains/models/branding_settings_login_texts.rb +175 -0
- data/lib/oci/identity_domains/models/cloud_gate.rb +697 -0
- data/lib/oci/identity_domains/models/cloud_gate_ext_mappings.rb +397 -0
- data/lib/oci/identity_domains/models/cloud_gate_ext_servers.rb +253 -0
- data/lib/oci/identity_domains/models/cloud_gate_ext_upstream_server_groups.rb +259 -0
- data/lib/oci/identity_domains/models/cloud_gate_ext_upstream_servers.rb +311 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping.rb +620 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping_cloud_gate.rb +191 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping_gateway_app.rb +211 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping_server.rb +191 -0
- data/lib/oci/identity_domains/models/cloud_gate_mapping_upstream_server_group.rb +218 -0
- data/lib/oci/identity_domains/models/cloud_gate_mappings.rb +203 -0
- data/lib/oci/identity_domains/models/cloud_gate_oauth_client.rb +217 -0
- data/lib/oci/identity_domains/models/cloud_gate_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/cloud_gate_server.rb +601 -0
- data/lib/oci/identity_domains/models/cloud_gate_server_cloud_gate.rb +191 -0
- data/lib/oci/identity_domains/models/cloud_gate_server_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/cloud_gate_servers.rb +203 -0
- data/lib/oci/identity_domains/models/cloud_gates.rb +203 -0
- data/lib/oci/identity_domains/models/condition.rb +612 -0
- data/lib/oci/identity_domains/models/condition_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/conditions.rb +203 -0
- data/lib/oci/identity_domains/models/defined_tags.rb +1 -0
- data/lib/oci/identity_domains/models/extension_social_identity_provider.rb +27 -1
- data/lib/oci/identity_domains/models/freeform_tags.rb +1 -0
- data/lib/oci/identity_domains/models/identity_provider_relay_idp_param_mappings.rb +203 -0
- data/lib/oci/identity_domains/models/me_password_changer.rb +1 -1
- data/lib/oci/identity_domains/models/my_authentication_factors_remover.rb +23 -4
- data/lib/oci/identity_domains/models/my_completed_approval.rb +648 -0
- data/lib/oci/identity_domains/models/my_completed_approvals.rb +203 -0
- data/lib/oci/identity_domains/models/my_pending_approval.rb +648 -0
- data/lib/oci/identity_domains/models/my_pending_approvals.rb +203 -0
- data/lib/oci/identity_domains/models/my_request.rb +113 -2
- data/lib/oci/identity_domains/models/my_request_approval_details.rb +297 -0
- data/lib/oci/identity_domains/models/my_request_requesting.rb +22 -1
- data/lib/oci/identity_domains/models/network_perimeter.rb +514 -0
- data/lib/oci/identity_domains/models/network_perimeter_ip_addresses.rb +240 -0
- data/lib/oci/identity_domains/models/network_perimeter_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/network_perimeters.rb +203 -0
- data/lib/oci/identity_domains/models/notification_setting.rb +611 -0
- data/lib/oci/identity_domains/models/notification_settings.rb +203 -0
- data/lib/oci/identity_domains/models/notification_settings_event_settings.rb +185 -0
- data/lib/oci/identity_domains/models/notification_settings_from_email_address.rb +273 -0
- data/lib/oci/identity_domains/models/notification_settings_search_request.rb +198 -0
- data/lib/oci/identity_domains/models/o_auth_client_certificate.rb +675 -0
- data/lib/oci/identity_domains/models/o_auth_client_certificate_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/o_auth_client_certificates.rb +203 -0
- data/lib/oci/identity_domains/models/o_auth_partner_certificate.rb +675 -0
- data/lib/oci/identity_domains/models/o_auth_partner_certificate_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/o_auth_partner_certificates.rb +203 -0
- data/lib/oci/identity_domains/models/policies.rb +203 -0
- data/lib/oci/identity_domains/models/policy.rb +567 -0
- data/lib/oci/identity_domains/models/policy_policy_type.rb +189 -0
- data/lib/oci/identity_domains/models/policy_rules.rb +222 -0
- data/lib/oci/identity_domains/models/policy_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/rule.rb +625 -0
- data/lib/oci/identity_domains/models/rule_condition_group.rb +250 -0
- data/lib/oci/identity_domains/models/rule_policy_type.rb +189 -0
- data/lib/oci/identity_domains/models/rule_return.rb +202 -0
- data/lib/oci/identity_domains/models/rule_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/rules.rb +203 -0
- data/lib/oci/identity_domains/models/schema.rb +358 -0
- data/lib/oci/identity_domains/models/schema_attributes.rb +2135 -0
- data/lib/oci/identity_domains/models/schema_idcs_complex_attribute_name_mappings.rb +206 -0
- data/lib/oci/identity_domains/models/schema_idcs_csv_attribute_name_mappings.rb +325 -0
- data/lib/oci/identity_domains/models/schema_localized_canonical_values.rb +202 -0
- data/lib/oci/identity_domains/models/schema_localized_display_name.rb +187 -0
- data/lib/oci/identity_domains/models/schema_referenced_resource_type_unique_attribute_name_mappings.rb +187 -0
- data/lib/oci/identity_domains/models/schema_resolve_value_using_resource_type.rb +187 -0
- data/lib/oci/identity_domains/models/schema_search_request.rb +263 -0
- data/lib/oci/identity_domains/models/schema_sub_attributes.rb +1655 -0
- data/lib/oci/identity_domains/models/schemas.rb +203 -0
- data/lib/oci/identity_domains/models/self_registration_profile.rb +884 -0
- data/lib/oci/identity_domains/models/self_registration_profile_after_submit_text.rb +201 -0
- data/lib/oci/identity_domains/models/self_registration_profile_consent_text.rb +201 -0
- data/lib/oci/identity_domains/models/self_registration_profile_default_groups.rb +199 -0
- data/lib/oci/identity_domains/models/self_registration_profile_display_name.rb +201 -0
- data/lib/oci/identity_domains/models/self_registration_profile_email_template.rb +209 -0
- data/lib/oci/identity_domains/models/self_registration_profile_footer_text.rb +201 -0
- data/lib/oci/identity_domains/models/self_registration_profile_header_text.rb +201 -0
- data/lib/oci/identity_domains/models/self_registration_profile_search_request.rb +273 -0
- data/lib/oci/identity_domains/models/self_registration_profile_user_attributes.rb +244 -0
- data/lib/oci/identity_domains/models/self_registration_profiles.rb +203 -0
- data/lib/oci/identity_domains/models/setting.rb +1610 -0
- data/lib/oci/identity_domains/models/settings.rb +203 -0
- data/lib/oci/identity_domains/models/settings_certificate_validation.rb +394 -0
- data/lib/oci/identity_domains/models/settings_cloud_gate_cors_settings.rb +278 -0
- data/lib/oci/identity_domains/models/settings_company_names.rb +177 -0
- data/lib/oci/identity_domains/models/settings_default_company_names.rb +181 -0
- data/lib/oci/identity_domains/models/settings_default_images.rb +198 -0
- data/lib/oci/identity_domains/models/settings_default_login_texts.rb +182 -0
- data/lib/oci/identity_domains/models/settings_images.rb +192 -0
- data/lib/oci/identity_domains/models/settings_login_texts.rb +178 -0
- data/lib/oci/identity_domains/models/settings_purge_configs.rb +187 -0
- data/lib/oci/identity_domains/models/settings_search_request.rb +198 -0
- data/lib/oci/identity_domains/models/settings_tenant_custom_claims.rb +330 -0
- data/lib/oci/identity_domains/models/user_ext_risk_scores.rb +2 -0
- data/lib/oci/jms/java_management_service_client.rb +730 -72
- data/lib/oci/jms/java_management_service_client_composite_operations.rb +251 -0
- data/lib/oci/jms/jms.rb +23 -0
- data/lib/oci/jms/models/agent.rb +247 -0
- data/lib/oci/jms/models/agent_type.rb +13 -0
- data/lib/oci/jms/models/announcement_summary.rb +1 -1
- data/lib/oci/jms/models/blocklist.rb +7 -0
- data/lib/oci/jms/models/blocklist_entry.rb +7 -0
- data/lib/oci/jms/models/create_blocklist_details.rb +8 -1
- data/lib/oci/jms/models/create_drs_file_details.rb +179 -0
- data/lib/oci/jms/models/disable_drs_details.rb +156 -0
- data/lib/oci/jms/models/drs_file.rb +259 -0
- data/lib/oci/jms/models/drs_file_collection.rb +151 -0
- data/lib/oci/jms/models/drs_file_sort_by.rb +17 -0
- data/lib/oci/jms/models/drs_file_status.rb +15 -0
- data/lib/oci/jms/models/drs_file_summary.rb +259 -0
- data/lib/oci/jms/models/drs_target.rb +156 -0
- data/lib/oci/jms/models/enable_drs_details.rb +156 -0
- data/lib/oci/jms/models/export_duration.rb +14 -0
- data/lib/oci/jms/models/export_frequency.rb +14 -0
- data/lib/oci/jms/models/export_resources.rb +14 -0
- data/lib/oci/jms/models/export_run_status.rb +17 -0
- data/lib/oci/jms/models/export_setting.rb +386 -0
- data/lib/oci/jms/models/export_status.rb +223 -0
- data/lib/oci/jms/models/fleet.rb +16 -1
- data/lib/oci/jms/models/fleet_agent_configuration.rb +15 -1
- data/lib/oci/jms/models/fleet_summary.rb +16 -1
- data/lib/oci/jms/models/java_artifact.rb +119 -4
- data/lib/oci/jms/models/java_family.rb +53 -4
- data/lib/oci/jms/models/java_family_summary.rb +34 -4
- data/lib/oci/jms/models/java_migration_analysis_result.rb +15 -1
- data/lib/oci/jms/models/java_migration_analysis_result_summary.rb +15 -1
- data/lib/oci/jms/models/java_release.rb +34 -4
- data/lib/oci/jms/models/java_release_summary.rb +34 -4
- data/lib/oci/jms/models/lcm_work_item_details.rb +166 -0
- data/lib/oci/jms/models/manage_drs_details.rb +153 -0
- data/lib/oci/jms/models/managed_instance_usage.rb +45 -1
- data/lib/oci/jms/models/operation_type.rb +8 -1
- data/lib/oci/jms/models/patch_detail.rb +169 -0
- data/lib/oci/jms/models/performance_tuning_analysis.rb +1 -1
- data/lib/oci/jms/models/plugin.rb +162 -0
- data/lib/oci/jms/models/request_crypto_analyses_details.rb +2 -2
- data/lib/oci/jms/models/update_drs_file_details.rb +179 -0
- data/lib/oci/jms/models/update_export_setting_details.rb +306 -0
- data/lib/oci/jms/models/update_fleet_agent_configuration_details.rb +17 -4
- data/lib/oci/jms/models/work_item_details.rb +7 -0
- data/lib/oci/jms/models/work_item_type.rb +6 -1
- data/lib/oci/jms/models/work_request.rb +7 -0
- data/lib/oci/jms_java_downloads/java_download_client.rb +1812 -0
- data/lib/oci/jms_java_downloads/java_download_client_composite_operations.rb +392 -0
- data/lib/oci/jms_java_downloads/jms_java_downloads.rb +74 -0
- data/lib/oci/jms_java_downloads/models/action_type.rb +17 -0
- data/lib/oci/jms_java_downloads/models/aggregation_sort_by.rb +13 -0
- data/lib/oci/jms_java_downloads/models/checksum_type.rb +12 -0
- data/lib/oci/jms_java_downloads/models/create_java_download_report_details.rb +269 -0
- data/lib/oci/jms_java_downloads/models/create_java_download_token_details.rb +267 -0
- data/lib/oci/jms_java_downloads/models/create_java_license_acceptance_record_details.rb +210 -0
- data/lib/oci/jms_java_downloads/models/download_url.rb +189 -0
- data/lib/oci/jms_java_downloads/models/download_url_type.rb +13 -0
- data/lib/oci/jms_java_downloads/models/generate_artifact_download_url_details.rb +155 -0
- data/lib/oci/jms_java_downloads/models/java_download_count_aggregation.rb +249 -0
- data/lib/oci/jms_java_downloads/models/java_download_count_aggregation_collection.rb +186 -0
- data/lib/oci/jms_java_downloads/models/java_download_count_aggregation_type.rb +14 -0
- data/lib/oci/jms_java_downloads/models/java_download_record.rb +274 -0
- data/lib/oci/jms_java_downloads/models/java_download_record_collection.rb +152 -0
- data/lib/oci/jms_java_downloads/models/java_download_record_sort_by.rb +14 -0
- data/lib/oci/jms_java_downloads/models/java_download_record_summary.rb +277 -0
- data/lib/oci/jms_java_downloads/models/java_download_report.rb +386 -0
- data/lib/oci/jms_java_downloads/models/java_download_report_collection.rb +152 -0
- data/lib/oci/jms_java_downloads/models/java_download_report_format.rb +12 -0
- data/lib/oci/jms_java_downloads/models/java_download_report_sort_by.rb +13 -0
- data/lib/oci/jms_java_downloads/models/java_download_report_summary.rb +388 -0
- data/lib/oci/jms_java_downloads/models/java_download_token.rb +447 -0
- data/lib/oci/jms_java_downloads/models/java_download_token_collection.rb +152 -0
- data/lib/oci/jms_java_downloads/models/java_download_token_summary.rb +450 -0
- data/lib/oci/jms_java_downloads/models/java_license.rb +202 -0
- data/lib/oci/jms_java_downloads/models/java_license_acceptance_record.rb +376 -0
- data/lib/oci/jms_java_downloads/models/java_license_acceptance_record_collection.rb +152 -0
- data/lib/oci/jms_java_downloads/models/java_license_acceptance_record_summary.rb +380 -0
- data/lib/oci/jms_java_downloads/models/java_license_collection.rb +152 -0
- data/lib/oci/jms_java_downloads/models/java_license_summary.rb +204 -0
- data/lib/oci/jms_java_downloads/models/license_acceptance_sort_by.rb +14 -0
- data/lib/oci/jms_java_downloads/models/license_acceptance_status.rb +13 -0
- data/lib/oci/jms_java_downloads/models/license_sort_by.rb +13 -0
- data/lib/oci/jms_java_downloads/models/license_type.rb +14 -0
- data/lib/oci/jms_java_downloads/models/lifecycle_state.rb +18 -0
- data/lib/oci/jms_java_downloads/models/operation_status.rb +19 -0
- data/lib/oci/jms_java_downloads/models/operation_type.rb +16 -0
- data/lib/oci/jms_java_downloads/models/principal.rb +175 -0
- data/lib/oci/jms_java_downloads/models/request_summarized_java_download_counts_details.rb +321 -0
- data/lib/oci/jms_java_downloads/models/sort_order.rb +13 -0
- data/lib/oci/jms_java_downloads/models/token_lifecycle_details.rb +14 -0
- data/lib/oci/jms_java_downloads/models/token_sort_by.rb +16 -0
- data/lib/oci/jms_java_downloads/models/update_java_download_token_details.rb +239 -0
- data/lib/oci/jms_java_downloads/models/update_java_license_acceptance_record_details.rb +168 -0
- data/lib/oci/jms_java_downloads/models/work_request.rb +309 -0
- data/lib/oci/jms_java_downloads/models/work_request_error.rb +174 -0
- data/lib/oci/jms_java_downloads/models/work_request_error_collection.rb +151 -0
- data/lib/oci/jms_java_downloads/models/work_request_log_entry.rb +161 -0
- data/lib/oci/jms_java_downloads/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/jms_java_downloads/models/work_request_resource.rb +221 -0
- data/lib/oci/jms_java_downloads/models/work_request_summary.rb +309 -0
- data/lib/oci/jms_java_downloads/models/work_request_summary_collection.rb +151 -0
- data/lib/oci/jms_java_downloads/util.rb +3 -0
- data/lib/oci/lockbox/lockbox.rb +1 -0
- data/lib/oci/lockbox/lockbox_client.rb +147 -1
- data/lib/oci/lockbox/models/access_context_attribute.rb +14 -4
- data/lib/oci/lockbox/models/access_request.rb +51 -4
- data/lib/oci/lockbox/models/access_request_summary.rb +17 -1
- data/lib/oci/lockbox/models/approval_template.rb +0 -1
- data/lib/oci/lockbox/models/approval_template_summary.rb +0 -1
- data/lib/oci/lockbox/models/create_approval_template_details.rb +0 -1
- data/lib/oci/lockbox/models/create_lockbox_details.rb +17 -3
- data/lib/oci/lockbox/models/export_access_requests_details.rb +183 -0
- data/lib/oci/lockbox/models/lockbox.rb +31 -3
- data/lib/oci/lockbox/models/lockbox_summary.rb +17 -3
- data/lib/oci/lockbox/models/operation_status.rb +2 -1
- data/lib/oci/lockbox/models/operation_type.rb +4 -1
- data/lib/oci/lockbox/models/work_request.rb +4 -0
- data/lib/oci/lockbox/models/work_request_summary.rb +4 -0
- data/lib/oci/log_analytics/log_analytics_client.rb +91 -0
- data/lib/oci/log_analytics/models/export_details.rb +7 -8
- data/lib/oci/logging/logging.rb +4 -0
- data/lib/oci/logging/logging_management_client.rb +1 -4
- data/lib/oci/logging/models/grok_pattern.rb +3 -3
- data/lib/oci/logging/models/operational_metrics_configuration.rb +161 -0
- data/lib/oci/logging/models/operational_metrics_destination.rb +155 -0
- data/lib/oci/logging/models/operational_metrics_record_input.rb +165 -0
- data/lib/oci/logging/models/operational_metrics_source.rb +193 -0
- data/lib/oci/logging/models/parameter.rb +2 -34
- data/lib/oci/logging/models/unified_agent_cri_parser.rb +2 -2
- data/lib/oci/logging/models/unified_agent_csv_parser.rb +2 -2
- data/lib/oci/logging/models/unified_agent_grok_parser.rb +4 -4
- data/lib/oci/logging/models/unified_agent_logging_destination.rb +17 -4
- data/lib/oci/logging/models/unified_agent_logging_source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_msgpack_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_multiline_grok_parser.rb +3 -3
- data/lib/oci/logging/models/unified_agent_parser.rb +5 -5
- data/lib/oci/logging/models/unified_agent_regex_parser.rb +1 -1
- data/lib/oci/logging/models/unified_agent_syslog_parser.rb +4 -4
- data/lib/oci/logging/models/unified_agent_tail_log_source.rb +1 -1
- data/lib/oci/logging/models/unified_agent_tsv_parser.rb +2 -2
- data/lib/oci/logging/models/unified_json_parser.rb +1 -1
- data/lib/oci/marketplace/marketplace.rb +15 -0
- data/lib/oci/marketplace/marketplace_client.rb +360 -0
- data/lib/oci/marketplace/marketplace_client_composite_operations.rb +51 -0
- data/lib/oci/marketplace/models/container_listing_package.rb +178 -0
- data/lib/oci/marketplace/models/create_publication_package.rb +3 -1
- data/lib/oci/marketplace/models/export_package_details.rb +169 -0
- data/lib/oci/marketplace/models/kubernetes_listing_package.rb +178 -0
- data/lib/oci/marketplace/models/listing.rb +2 -0
- data/lib/oci/marketplace/models/listing_package.rb +4 -0
- data/lib/oci/marketplace/models/listing_package_summary.rb +2 -0
- data/lib/oci/marketplace/models/listing_summary.rb +2 -0
- data/lib/oci/marketplace/models/operation_status.rb +15 -0
- data/lib/oci/marketplace/models/operation_type.rb +12 -0
- data/lib/oci/marketplace/models/package_type_enum.rb +3 -1
- data/lib/oci/marketplace/models/publication.rb +2 -0
- data/lib/oci/marketplace/models/publication_package.rb +2 -0
- data/lib/oci/marketplace/models/publication_package_summary.rb +2 -0
- data/lib/oci/marketplace/models/publication_summary.rb +2 -0
- data/lib/oci/marketplace/models/work_request.rb +327 -0
- data/lib/oci/marketplace/models/work_request_action_type.rb +18 -0
- data/lib/oci/marketplace/models/work_request_collection.rb +151 -0
- data/lib/oci/marketplace/models/work_request_error.rb +175 -0
- data/lib/oci/marketplace/models/work_request_error_collection.rb +152 -0
- data/lib/oci/marketplace/models/work_request_log_entry.rb +162 -0
- data/lib/oci/marketplace/models/work_request_log_entry_collection.rb +152 -0
- data/lib/oci/marketplace/models/work_request_resource.rb +233 -0
- data/lib/oci/marketplace/models/work_request_resource_metadata_key.rb +12 -0
- data/lib/oci/marketplace/models/work_request_summary.rb +330 -0
- data/lib/oci/marketplace_publisher/marketplace_publisher.rb +128 -0
- data/lib/oci/marketplace_publisher/marketplace_publisher_client.rb +4790 -0
- data/lib/oci/marketplace_publisher/marketplace_publisher_client_composite_operations.rb +1698 -0
- data/lib/oci/marketplace_publisher/models/action_type.rb +17 -0
- data/lib/oci/marketplace_publisher/models/artifact.rb +407 -0
- data/lib/oci/marketplace_publisher/models/artifact_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/artifact_summary.rb +319 -0
- data/lib/oci/marketplace_publisher/models/artifact_type_enum.rb +13 -0
- data/lib/oci/marketplace_publisher/models/category.rb +243 -0
- data/lib/oci/marketplace_publisher/models/category_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/category_summary.rb +224 -0
- data/lib/oci/marketplace_publisher/models/change_artifact_compartment_details.rb +155 -0
- data/lib/oci/marketplace_publisher/models/change_listing_compartment_details.rb +155 -0
- data/lib/oci/marketplace_publisher/models/change_term_compartment_details.rb +155 -0
- data/lib/oci/marketplace_publisher/models/container_image_artifact.rb +212 -0
- data/lib/oci/marketplace_publisher/models/container_image_details.rb +266 -0
- data/lib/oci/marketplace_publisher/models/container_package.rb +218 -0
- data/lib/oci/marketplace_publisher/models/create_artifact_details.rb +245 -0
- data/lib/oci/marketplace_publisher/models/create_container_image_artifact_details.rb +180 -0
- data/lib/oci/marketplace_publisher/models/create_container_image_details.rb +169 -0
- data/lib/oci/marketplace_publisher/models/create_helm_chart_image_details.rb +183 -0
- data/lib/oci/marketplace_publisher/models/create_kubernetes_image_artifact_details.rb +194 -0
- data/lib/oci/marketplace_publisher/models/create_listing_details.rb +250 -0
- data/lib/oci/marketplace_publisher/models/create_listing_revision_attachment_details.rb +244 -0
- data/lib/oci/marketplace_publisher/models/create_listing_revision_details.rb +395 -0
- data/lib/oci/marketplace_publisher/models/create_listing_revision_note_details.rb +201 -0
- data/lib/oci/marketplace_publisher/models/create_listing_revision_package_details.rb +281 -0
- data/lib/oci/marketplace_publisher/models/create_related_document_attachment_details.rb +184 -0
- data/lib/oci/marketplace_publisher/models/create_screen_shot_attachment_details.rb +167 -0
- data/lib/oci/marketplace_publisher/models/create_term_details.rb +197 -0
- data/lib/oci/marketplace_publisher/models/create_video_attachment_details.rb +184 -0
- data/lib/oci/marketplace_publisher/models/create_video_details.rb +155 -0
- data/lib/oci/marketplace_publisher/models/helm_chart_image_details.rb +280 -0
- data/lib/oci/marketplace_publisher/models/helm_chart_package.rb +218 -0
- data/lib/oci/marketplace_publisher/models/kubernetes_image_artifact.rb +226 -0
- data/lib/oci/marketplace_publisher/models/language_item.rb +161 -0
- data/lib/oci/marketplace_publisher/models/listing.rb +394 -0
- data/lib/oci/marketplace_publisher/models/listing_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/listing_revision.rb +664 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_attachment.rb +367 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_attachment_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_attachment_summary.rb +333 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_icon_attachment.rb +169 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_note.rb +344 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_note_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_note_summary.rb +305 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_package.rb +499 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_package_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_package_summary.rb +363 -0
- data/lib/oci/marketplace_publisher/models/listing_revision_summary.rb +401 -0
- data/lib/oci/marketplace_publisher/models/listing_summary.rb +337 -0
- data/lib/oci/marketplace_publisher/models/listing_type.rb +12 -0
- data/lib/oci/marketplace_publisher/models/market.rb +271 -0
- data/lib/oci/marketplace_publisher/models/market_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/market_summary.rb +237 -0
- data/lib/oci/marketplace_publisher/models/named_link.rb +161 -0
- data/lib/oci/marketplace_publisher/models/operation_status.rb +19 -0
- data/lib/oci/marketplace_publisher/models/operation_type.rb +26 -0
- data/lib/oci/marketplace_publisher/models/opn_membership.rb +232 -0
- data/lib/oci/marketplace_publisher/models/package_type.rb +13 -0
- data/lib/oci/marketplace_publisher/models/private_offer_account_details.rb +161 -0
- data/lib/oci/marketplace_publisher/models/product.rb +243 -0
- data/lib/oci/marketplace_publisher/models/product_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/product_summary.rb +223 -0
- data/lib/oci/marketplace_publisher/models/publication_status.rb +14 -0
- data/lib/oci/marketplace_publisher/models/publish_listing_revision_as_private_details.rb +155 -0
- data/lib/oci/marketplace_publisher/models/publisher.rb +525 -0
- data/lib/oci/marketplace_publisher/models/publisher_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/publisher_summary.rb +448 -0
- data/lib/oci/marketplace_publisher/models/related_document_attachment.rb +260 -0
- data/lib/oci/marketplace_publisher/models/screen_shot_attachment.rb +221 -0
- data/lib/oci/marketplace_publisher/models/sort_order.rb +13 -0
- data/lib/oci/marketplace_publisher/models/submit_listing_revision_for_review_details.rb +169 -0
- data/lib/oci/marketplace_publisher/models/support_contact.rb +181 -0
- data/lib/oci/marketplace_publisher/models/term.rb +334 -0
- data/lib/oci/marketplace_publisher/models/term_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/term_summary.rb +282 -0
- data/lib/oci/marketplace_publisher/models/term_version.rb +373 -0
- data/lib/oci/marketplace_publisher/models/term_version_attachment.rb +169 -0
- data/lib/oci/marketplace_publisher/models/term_version_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/term_version_summary.rb +285 -0
- data/lib/oci/marketplace_publisher/models/update_artifact_details.rb +246 -0
- data/lib/oci/marketplace_publisher/models/update_container_image_artifact_details.rb +179 -0
- data/lib/oci/marketplace_publisher/models/update_container_image_details.rb +169 -0
- data/lib/oci/marketplace_publisher/models/update_helm_chart_image_details.rb +183 -0
- data/lib/oci/marketplace_publisher/models/update_kubernetes_image_artifact_details.rb +193 -0
- data/lib/oci/marketplace_publisher/models/update_listing_details.rb +173 -0
- data/lib/oci/marketplace_publisher/models/update_listing_revision_attachment_details.rb +230 -0
- data/lib/oci/marketplace_publisher/models/update_listing_revision_details.rb +371 -0
- data/lib/oci/marketplace_publisher/models/update_listing_revision_package_details.rb +267 -0
- data/lib/oci/marketplace_publisher/models/update_related_document_attachment_details.rb +180 -0
- data/lib/oci/marketplace_publisher/models/update_screen_shot_attachment_details.rb +163 -0
- data/lib/oci/marketplace_publisher/models/update_term_details.rb +173 -0
- data/lib/oci/marketplace_publisher/models/update_term_version_details.rb +187 -0
- data/lib/oci/marketplace_publisher/models/update_video_attachment_details.rb +163 -0
- data/lib/oci/marketplace_publisher/models/upload_data.rb +179 -0
- data/lib/oci/marketplace_publisher/models/validation_status.rb +14 -0
- data/lib/oci/marketplace_publisher/models/version_details.rb +175 -0
- data/lib/oci/marketplace_publisher/models/video_attachment.rb +207 -0
- data/lib/oci/marketplace_publisher/models/work_request.rb +322 -0
- data/lib/oci/marketplace_publisher/models/work_request_error.rb +174 -0
- data/lib/oci/marketplace_publisher/models/work_request_error_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/work_request_log_entry.rb +161 -0
- data/lib/oci/marketplace_publisher/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/models/work_request_resource.rb +231 -0
- data/lib/oci/marketplace_publisher/models/work_request_resource_metadata_key.rb +12 -0
- data/lib/oci/marketplace_publisher/models/work_request_summary.rb +322 -0
- data/lib/oci/marketplace_publisher/models/work_request_summary_collection.rb +151 -0
- data/lib/oci/marketplace_publisher/util.rb +3 -0
- data/lib/oci/monitoring/models/alarm.rb +25 -18
- data/lib/oci/monitoring/models/alarm_dimension_states_collection.rb +2 -2
- data/lib/oci/monitoring/models/alarm_history_collection.rb +1 -1
- data/lib/oci/monitoring/models/alarm_status_summary.rb +4 -4
- data/lib/oci/monitoring/models/alarm_summary.rb +17 -10
- data/lib/oci/monitoring/models/create_alarm_details.rb +21 -15
- data/lib/oci/monitoring/models/datapoint.rb +1 -0
- data/lib/oci/monitoring/models/list_metrics_details.rb +1 -0
- data/lib/oci/monitoring/models/metric.rb +2 -1
- data/lib/oci/monitoring/models/metric_data.rb +6 -4
- data/lib/oci/monitoring/models/metric_data_details.rb +1 -0
- data/lib/oci/monitoring/models/summarize_metrics_data_details.rb +3 -3
- data/lib/oci/monitoring/models/suppression.rb +2 -1
- data/lib/oci/monitoring/models/update_alarm_details.rb +21 -16
- data/lib/oci/monitoring/monitoring_client.rb +120 -36
- data/lib/oci/mysql/db_system_client.rb +14 -0
- data/lib/oci/mysql/models/create_db_system_details.rb +34 -4
- data/lib/oci/mysql/models/database_management_status.rb +13 -0
- data/lib/oci/mysql/models/db_system.rb +40 -4
- data/lib/oci/mysql/models/db_system_snapshot.rb +40 -4
- data/lib/oci/mysql/models/db_system_summary.rb +40 -4
- data/lib/oci/mysql/models/update_db_system_details.rb +34 -4
- data/lib/oci/mysql/mysql.rb +1 -0
- data/lib/oci/network_firewall/models/action_type.rb +1 -1
- data/lib/oci/network_firewall/models/address_list.rb +222 -0
- data/lib/oci/network_firewall/models/address_list_summary.rb +209 -0
- data/lib/oci/network_firewall/models/address_list_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/address_list_type.rb +13 -0
- data/lib/oci/network_firewall/models/app_type.rb +13 -0
- data/lib/oci/network_firewall/models/application.rb +50 -9
- data/lib/oci/network_firewall/models/application_group.rb +190 -0
- data/lib/oci/network_firewall/models/application_group_summary.rb +179 -0
- data/lib/oci/network_firewall/models/application_group_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/application_summary.rb +212 -0
- data/lib/oci/network_firewall/models/application_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/apply_network_firewall_policy_details.rb +151 -0
- data/lib/oci/network_firewall/models/change_network_firewall_compartment_details.rb +1 -1
- data/lib/oci/network_firewall/models/change_network_firewall_policy_compartment_details.rb +1 -1
- data/lib/oci/network_firewall/models/clone_network_firewall_policy_details.rb +203 -0
- data/lib/oci/network_firewall/models/create_address_list_details.rb +185 -0
- data/lib/oci/network_firewall/models/create_application_details.rb +191 -0
- data/lib/oci/network_firewall/models/create_application_group_details.rb +161 -0
- data/lib/oci/network_firewall/models/create_decryption_profile_details.rb +191 -0
- data/lib/oci/network_firewall/models/create_decryption_rule_details.rb +223 -0
- data/lib/oci/network_firewall/models/create_icmp6_application_details.rb +181 -0
- data/lib/oci/network_firewall/models/create_icmp_application_details.rb +181 -0
- data/lib/oci/network_firewall/models/create_mapped_secret_details.rb +206 -0
- data/lib/oci/network_firewall/models/create_network_firewall_details.rb +6 -4
- data/lib/oci/network_firewall/models/create_network_firewall_policy_details.rb +7 -122
- data/lib/oci/network_firewall/models/create_security_rule_details.rb +231 -0
- data/lib/oci/network_firewall/models/create_service_details.rb +191 -0
- data/lib/oci/network_firewall/models/create_service_list_details.rb +161 -0
- data/lib/oci/network_firewall/models/create_ssl_forward_proxy_profile_details.rb +281 -0
- data/lib/oci/network_firewall/models/create_ssl_inbound_inspection_profile_details.rb +195 -0
- data/lib/oci/network_firewall/models/create_tcp_service_details.rb +168 -0
- data/lib/oci/network_firewall/models/create_udp_service_details.rb +168 -0
- data/lib/oci/network_firewall/models/create_url_list_details.rb +162 -0
- data/lib/oci/network_firewall/models/create_vault_mapped_secret_details.rb +185 -0
- data/lib/oci/network_firewall/models/decryption_action_type.rb +13 -0
- data/lib/oci/network_firewall/models/decryption_profile.rb +29 -5
- data/lib/oci/network_firewall/models/decryption_profile_summary.rb +200 -0
- data/lib/oci/network_firewall/models/decryption_profile_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/decryption_rule.rb +28 -5
- data/lib/oci/network_firewall/models/decryption_rule_match_criteria.rb +22 -14
- data/lib/oci/network_firewall/models/decryption_rule_summary.rb +239 -0
- data/lib/oci/network_firewall/models/decryption_rule_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/icmp6_application.rb +11 -3
- data/lib/oci/network_firewall/models/icmp6_application_summary.rb +185 -0
- data/lib/oci/network_firewall/models/icmp_application.rb +10 -2
- data/lib/oci/network_firewall/models/icmp_application_summary.rb +185 -0
- data/lib/oci/network_firewall/models/inspection_type.rb +13 -0
- data/lib/oci/network_firewall/models/lifecycle_state.rb +5 -2
- data/lib/oci/network_firewall/models/mapped_secret.rb +48 -6
- data/lib/oci/network_firewall/models/mapped_secret_summary.rb +210 -0
- data/lib/oci/network_firewall/models/mapped_secret_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/mapped_secret_type.rb +12 -0
- data/lib/oci/network_firewall/models/network_firewall.rb +15 -9
- data/lib/oci/network_firewall/models/network_firewall_collection.rb +1 -1
- data/lib/oci/network_firewall/models/network_firewall_policy.rb +20 -132
- data/lib/oci/network_firewall/models/network_firewall_policy_summary.rb +9 -4
- data/lib/oci/network_firewall/models/network_firewall_policy_summary_collection.rb +1 -1
- data/lib/oci/network_firewall/models/network_firewall_summary.rb +9 -4
- data/lib/oci/network_firewall/models/operation_status.rb +2 -1
- data/lib/oci/network_firewall/models/operation_type.rb +1 -1
- data/lib/oci/network_firewall/models/{tcp_application.rb → port_range.rb} +5 -12
- data/lib/oci/network_firewall/models/rule_position.rb +169 -0
- data/lib/oci/network_firewall/models/security_rule.rb +28 -5
- data/lib/oci/network_firewall/models/security_rule_match_criteria.rb +44 -26
- data/lib/oci/network_firewall/models/security_rule_summary.rb +253 -0
- data/lib/oci/network_firewall/models/security_rule_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/service.rb +213 -0
- data/lib/oci/network_firewall/models/service_list.rb +190 -0
- data/lib/oci/network_firewall/models/service_list_summary.rb +179 -0
- data/lib/oci/network_firewall/models/service_list_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/service_summary.rb +195 -0
- data/lib/oci/network_firewall/models/service_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/service_type.rb +13 -0
- data/lib/oci/network_firewall/models/simple_url_pattern.rb +5 -27
- data/lib/oci/network_firewall/models/sort_order.rb +1 -1
- data/lib/oci/network_firewall/models/ssl_forward_proxy_profile.rb +19 -11
- data/lib/oci/network_firewall/models/ssl_inbound_inspection_profile.rb +13 -5
- data/lib/oci/network_firewall/models/tcp_service.rb +172 -0
- data/lib/oci/network_firewall/models/traffic_action_type.rb +15 -0
- data/lib/oci/network_firewall/models/traffic_inspection_type.rb +13 -0
- data/lib/oci/network_firewall/models/udp_service.rb +172 -0
- data/lib/oci/network_firewall/models/update_address_list_details.rb +181 -0
- data/lib/oci/network_firewall/models/update_application_details.rb +182 -0
- data/lib/oci/network_firewall/models/update_application_group_details.rb +152 -0
- data/lib/oci/network_firewall/models/update_decryption_profile_details.rb +181 -0
- data/lib/oci/network_firewall/models/update_decryption_rule_details.rb +213 -0
- data/lib/oci/network_firewall/models/update_fqdn_address_list_details.rb +159 -0
- data/lib/oci/network_firewall/models/update_icmp6_application_details.rb +178 -0
- data/lib/oci/network_firewall/models/{udp_application.rb → update_icmp_application_details.rb} +25 -24
- data/lib/oci/network_firewall/models/update_ip_address_list_details.rb +159 -0
- data/lib/oci/network_firewall/models/update_mapped_secret_details.rb +195 -0
- data/lib/oci/network_firewall/models/update_network_firewall_details.rb +6 -4
- data/lib/oci/network_firewall/models/update_network_firewall_policy_details.rb +7 -122
- data/lib/oci/network_firewall/models/update_security_rule_details.rb +221 -0
- data/lib/oci/network_firewall/models/update_service_details.rb +182 -0
- data/lib/oci/network_firewall/models/update_service_list_details.rb +152 -0
- data/lib/oci/network_firewall/models/update_ssl_forward_proxy_profile_details.rb +277 -0
- data/lib/oci/network_firewall/models/update_ssl_inbound_inspection_profile_details.rb +191 -0
- data/lib/oci/network_firewall/models/update_tcp_service_details.rb +164 -0
- data/lib/oci/network_firewall/models/update_udp_service_details.rb +164 -0
- data/lib/oci/network_firewall/models/update_url_list_details.rb +151 -0
- data/lib/oci/network_firewall/models/update_vault_mapped_secret_details.rb +181 -0
- data/lib/oci/network_firewall/models/url_list.rb +192 -0
- data/lib/oci/network_firewall/models/url_list_summary.rb +179 -0
- data/lib/oci/network_firewall/models/url_list_summary_collection.rb +151 -0
- data/lib/oci/network_firewall/models/url_pattern.rb +1 -1
- data/lib/oci/network_firewall/models/vault_mapped_secret.rb +10 -2
- data/lib/oci/network_firewall/models/work_request.rb +2 -1
- data/lib/oci/network_firewall/models/work_request_error.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_error_collection.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_log_entry.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_log_entry_collection.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_resource.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_resource_metadata_key.rb +1 -1
- data/lib/oci/network_firewall/models/work_request_summary.rb +2 -1
- data/lib/oci/network_firewall/models/work_request_summary_collection.rb +1 -1
- data/lib/oci/network_firewall/network_firewall.rb +78 -3
- data/lib/oci/network_firewall/network_firewall_client.rb +4575 -367
- data/lib/oci/network_firewall/network_firewall_client_composite_operations.rb +650 -1
- data/lib/oci/nosql/models/create_replica_details.rb +203 -0
- data/lib/oci/nosql/models/replica.rb +265 -0
- data/lib/oci/nosql/models/table.rb +78 -1
- data/lib/oci/nosql/models/table_collection.rb +18 -4
- data/lib/oci/nosql/models/table_summary.rb +52 -1
- data/lib/oci/nosql/models/table_usage_summary.rb +19 -4
- data/lib/oci/nosql/nosql.rb +2 -0
- data/lib/oci/nosql/nosql_client.rb +140 -0
- data/lib/oci/nosql/nosql_client_composite_operations.rb +100 -0
- data/lib/oci/ocvp/cluster_client.rb +473 -0
- data/lib/oci/ocvp/cluster_client_composite_operations.rb +167 -0
- data/lib/oci/ocvp/esxi_host_client.rb +152 -3
- data/lib/oci/ocvp/esxi_host_client_composite_operations.rb +102 -1
- data/lib/oci/ocvp/models/action_types.rb +1 -1
- data/lib/oci/ocvp/models/change_sddc_compartment_details.rb +1 -1
- data/lib/oci/ocvp/models/cluster.rb +630 -0
- data/lib/oci/ocvp/models/cluster_collection.rb +151 -0
- data/lib/oci/ocvp/models/cluster_summary.rb +449 -0
- data/lib/oci/ocvp/models/commitment.rb +15 -0
- data/lib/oci/ocvp/models/create_cluster_details.rb +439 -0
- data/lib/oci/ocvp/models/create_esxi_host_details.rb +72 -87
- data/lib/oci/ocvp/models/create_sddc_details.rb +46 -379
- data/lib/oci/ocvp/models/{datastore_summary.rb → datastore_details.rb} +2 -2
- data/lib/oci/ocvp/models/datastore_info.rb +12 -5
- data/lib/oci/ocvp/models/datastore_types.rb +1 -1
- data/lib/oci/ocvp/models/downgrade_hcx_details.rb +1 -1
- data/lib/oci/ocvp/models/esxi_host.rb +80 -49
- data/lib/oci/ocvp/models/esxi_host_collection.rb +1 -1
- data/lib/oci/ocvp/models/esxi_host_summary.rb +64 -48
- data/lib/oci/ocvp/models/hcx_license_status.rb +1 -1
- data/lib/oci/ocvp/models/hcx_license_summary.rb +1 -1
- data/lib/oci/ocvp/models/{sku.rb → hcx_modes.rb} +5 -6
- data/lib/oci/ocvp/models/initial_cluster_configuration.rb +395 -0
- data/lib/oci/ocvp/models/initial_configuration.rb +156 -0
- data/lib/oci/ocvp/models/lifecycle_states.rb +1 -1
- data/lib/oci/ocvp/models/network_configuration.rb +411 -0
- data/lib/oci/ocvp/models/operation_status.rb +1 -1
- data/lib/oci/ocvp/models/operation_types.rb +6 -2
- data/lib/oci/ocvp/models/password_types.rb +14 -0
- data/lib/oci/ocvp/models/replace_host_details.rb +160 -0
- data/lib/oci/ocvp/models/sddc.rb +71 -576
- data/lib/oci/ocvp/models/sddc_collection.rb +1 -1
- data/lib/oci/ocvp/models/sddc_password.rb +186 -0
- data/lib/oci/ocvp/models/sddc_summary.rb +41 -83
- data/lib/oci/ocvp/models/sort_orders.rb +1 -1
- data/lib/oci/ocvp/models/{supported_sku_summary.rb → supported_commitment_summary.rb} +4 -4
- data/lib/oci/ocvp/models/supported_commitment_summary_collection.rb +152 -0
- data/lib/oci/ocvp/models/supported_esxi_software_version_summary.rb +178 -0
- data/lib/oci/ocvp/models/supported_host_shape_collection.rb +1 -1
- data/lib/oci/ocvp/models/supported_host_shape_summary.rb +27 -49
- data/lib/oci/ocvp/models/supported_vmware_software_version_collection.rb +1 -1
- data/lib/oci/ocvp/models/supported_vmware_software_version_summary.rb +20 -5
- data/lib/oci/ocvp/models/update_cluster_details.rb +248 -0
- data/lib/oci/ocvp/models/update_esxi_host_details.rb +22 -22
- data/lib/oci/ocvp/models/update_sddc_details.rb +22 -165
- data/lib/oci/ocvp/models/vsphere_license.rb +1 -1
- data/lib/oci/ocvp/models/{sddc_types.rb → vsphere_types.rb} +4 -4
- data/lib/oci/ocvp/models/vsphere_upgrade_object.rb +1 -1
- data/lib/oci/ocvp/models/work_request.rb +5 -1
- data/lib/oci/ocvp/models/work_request_collection.rb +1 -1
- data/lib/oci/ocvp/models/work_request_error.rb +1 -1
- data/lib/oci/ocvp/models/work_request_error_collection.rb +1 -1
- data/lib/oci/ocvp/models/work_request_log_entry.rb +1 -1
- data/lib/oci/ocvp/models/work_request_log_entry_collection.rb +1 -1
- data/lib/oci/ocvp/models/work_request_resource.rb +1 -1
- data/lib/oci/ocvp/ocvp.rb +21 -6
- data/lib/oci/ocvp/sddc_client.rb +114 -31
- data/lib/oci/ocvp/sddc_client_composite_operations.rb +1 -1
- data/lib/oci/ocvp/work_request_client.rb +3 -3
- data/lib/oci/ocvp/work_request_client_composite_operations.rb +1 -1
- data/lib/oci/onesubscription/models/commitment.rb +1 -0
- data/lib/oci/opsi/models/archival_state.rb +14 -0
- data/lib/oci/opsi/models/awr_hub_objects.rb +155 -0
- data/lib/oci/opsi/models/awr_hub_source.rb +531 -0
- data/lib/oci/opsi/models/awr_hub_source_lifecycle_state.rb +17 -0
- data/lib/oci/opsi/models/awr_hub_source_status.rb +15 -0
- data/lib/oci/opsi/models/awr_hub_source_summary.rb +531 -0
- data/lib/oci/opsi/models/awr_hub_source_summary_collection.rb +151 -0
- data/lib/oci/opsi/models/awr_hub_source_type.rb +27 -0
- data/lib/oci/opsi/models/awr_hub_sources.rb +155 -0
- data/lib/oci/opsi/models/change_awr_hub_source_compartment_details.rb +156 -0
- data/lib/oci/opsi/models/change_operations_insights_warehouse_compartment_details.rb +155 -0
- data/lib/oci/opsi/models/create_awr_hub_details.rb +1 -1
- data/lib/oci/opsi/models/create_awr_hub_source_details.rb +276 -0
- data/lib/oci/opsi/models/list_objects.rb +175 -0
- data/lib/oci/opsi/models/object_summary.rb +279 -0
- data/lib/oci/opsi/models/operation_type.rb +7 -1
- data/lib/oci/opsi/models/storage_tier.rb +14 -0
- data/lib/oci/opsi/models/update_awr_hub_source_details.rb +210 -0
- data/lib/oci/opsi/models/work_request.rb +6 -0
- data/lib/oci/opsi/operations_insights_client.rb +1197 -156
- data/lib/oci/opsi/operations_insights_client_composite_operations.rb +346 -0
- data/lib/oci/opsi/opsi.rb +16 -0
- data/lib/oci/osub_subscription/models/commitment.rb +1 -0
- data/lib/oci/psql/models/action_type.rb +17 -0
- data/lib/oci/psql/models/backup.rb +433 -0
- data/lib/oci/psql/models/backup_collection.rb +151 -0
- data/lib/oci/psql/models/backup_policy.rb +206 -0
- data/lib/oci/psql/models/backup_source_details.rb +180 -0
- data/lib/oci/psql/models/backup_summary.rb +340 -0
- data/lib/oci/psql/models/change_backup_compartment_details.rb +157 -0
- data/lib/oci/psql/models/change_configuration_compartment_details.rb +157 -0
- data/lib/oci/psql/models/change_db_system_compartment_details.rb +157 -0
- data/lib/oci/psql/models/config_overrides.rb +169 -0
- data/lib/oci/psql/models/config_params.rb +251 -0
- data/lib/oci/psql/models/configuration.rb +369 -0
- data/lib/oci/psql/models/configuration_collection.rb +151 -0
- data/lib/oci/psql/models/configuration_details.rb +151 -0
- data/lib/oci/psql/models/configuration_summary.rb +323 -0
- data/lib/oci/psql/models/connection_details.rb +188 -0
- data/lib/oci/psql/models/create_backup_details.rb +239 -0
- data/lib/oci/psql/models/create_configuration_details.rb +295 -0
- data/lib/oci/psql/models/create_db_instance_details.rb +181 -0
- data/lib/oci/psql/models/create_db_system_details.rb +381 -0
- data/lib/oci/psql/models/credentials.rb +167 -0
- data/lib/oci/psql/models/daily_backup_policy.rb +167 -0
- data/lib/oci/psql/models/db_configuration_override_collection.rb +151 -0
- data/lib/oci/psql/models/db_instance.rb +270 -0
- data/lib/oci/psql/models/db_instance_endpoint.rb +165 -0
- data/lib/oci/psql/models/db_system.rb +506 -0
- data/lib/oci/psql/models/db_system_collection.rb +151 -0
- data/lib/oci/psql/models/db_system_details.rb +169 -0
- data/lib/oci/psql/models/db_system_summary.rb +378 -0
- data/lib/oci/psql/models/default_config_params.rb +237 -0
- data/lib/oci/psql/models/default_configuration.rb +308 -0
- data/lib/oci/psql/models/default_configuration_collection.rb +151 -0
- data/lib/oci/psql/models/default_configuration_details.rb +151 -0
- data/lib/oci/psql/models/default_configuration_summary.rb +261 -0
- data/lib/oci/psql/models/endpoint.rb +176 -0
- data/lib/oci/psql/models/failover_db_system_details.rb +169 -0
- data/lib/oci/psql/models/management_policy.rb +170 -0
- data/lib/oci/psql/models/management_policy_details.rb +169 -0
- data/lib/oci/psql/models/monthly_backup_policy.rb +183 -0
- data/lib/oci/psql/models/network_details.rb +185 -0
- data/lib/oci/psql/models/none_backup_policy.rb +150 -0
- data/lib/oci/psql/models/none_source_details.rb +147 -0
- data/lib/oci/psql/models/oci_optimized_storage_details.rb +167 -0
- data/lib/oci/psql/models/operation_status.rb +18 -0
- data/lib/oci/psql/models/operation_type.rb +19 -0
- data/lib/oci/psql/models/password_details.rb +187 -0
- data/lib/oci/psql/models/patch_db_system_details.rb +154 -0
- data/lib/oci/psql/models/patch_insert_instruction.rb +204 -0
- data/lib/oci/psql/models/patch_instruction.rb +204 -0
- data/lib/oci/psql/models/patch_merge_instruction.rb +170 -0
- data/lib/oci/psql/models/patch_move_instruction.rb +195 -0
- data/lib/oci/psql/models/patch_prohibit_instruction.rb +170 -0
- data/lib/oci/psql/models/patch_remove_instruction.rb +152 -0
- data/lib/oci/psql/models/patch_replace_instruction.rb +167 -0
- data/lib/oci/psql/models/patch_require_instruction.rb +169 -0
- data/lib/oci/psql/models/plain_text_password_details.rb +159 -0
- data/lib/oci/psql/models/primary_db_instance_details.rb +155 -0
- data/lib/oci/psql/models/reset_master_user_password_details.rb +157 -0
- data/lib/oci/psql/models/restart_db_instance_in_db_system_details.rb +184 -0
- data/lib/oci/psql/models/restore_db_system_details.rb +167 -0
- data/lib/oci/psql/models/shape_collection.rb +151 -0
- data/lib/oci/psql/models/shape_summary.rb +190 -0
- data/lib/oci/psql/models/sort_order.rb +13 -0
- data/lib/oci/psql/models/source_details.rb +193 -0
- data/lib/oci/psql/models/storage_details.rb +208 -0
- data/lib/oci/psql/models/update_backup_details.rb +211 -0
- data/lib/oci/psql/models/update_configuration_details.rb +165 -0
- data/lib/oci/psql/models/update_db_config_params.rb +186 -0
- data/lib/oci/psql/models/update_db_system_db_instance_details.rb +165 -0
- data/lib/oci/psql/models/update_db_system_details.rb +236 -0
- data/lib/oci/psql/models/update_storage_details_params.rb +153 -0
- data/lib/oci/psql/models/vault_secret_password_details.rb +177 -0
- data/lib/oci/psql/models/weekly_backup_policy.rb +213 -0
- data/lib/oci/psql/models/work_request.rb +311 -0
- data/lib/oci/psql/models/work_request_error.rb +174 -0
- data/lib/oci/psql/models/work_request_error_collection.rb +151 -0
- data/lib/oci/psql/models/work_request_log_entry.rb +161 -0
- data/lib/oci/psql/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/psql/models/work_request_resource.rb +228 -0
- data/lib/oci/psql/models/work_request_resource_metadata_key.rb +12 -0
- data/lib/oci/psql/models/work_request_summary.rb +311 -0
- data/lib/oci/psql/models/work_request_summary_collection.rb +151 -0
- data/lib/oci/psql/postgresql_client.rb +2223 -0
- data/lib/oci/psql/postgresql_client_composite_operations.rb +873 -0
- data/lib/oci/psql/psql.rb +104 -0
- data/lib/oci/psql/util.rb +3 -0
- data/lib/oci/redis/models/action_type.rb +17 -0
- data/lib/oci/redis/models/change_redis_cluster_compartment_details.rb +157 -0
- data/lib/oci/redis/models/create_redis_cluster_details.rb +257 -0
- data/lib/oci/redis/models/node.rb +184 -0
- data/lib/oci/redis/models/node_collection.rb +151 -0
- data/lib/oci/redis/models/operation_status.rb +19 -0
- data/lib/oci/redis/models/operation_type.rb +20 -0
- data/lib/oci/redis/models/redis_cluster.rb +451 -0
- data/lib/oci/redis/models/redis_cluster_collection.rb +151 -0
- data/lib/oci/redis/models/redis_cluster_summary.rb +396 -0
- data/lib/oci/redis/models/sort_order.rb +13 -0
- data/lib/oci/redis/models/update_redis_cluster_details.rb +215 -0
- data/lib/oci/redis/models/work_request.rb +311 -0
- data/lib/oci/redis/models/work_request_error.rb +173 -0
- data/lib/oci/redis/models/work_request_error_collection.rb +151 -0
- data/lib/oci/redis/models/work_request_log_entry.rb +161 -0
- data/lib/oci/redis/models/work_request_log_entry_collection.rb +151 -0
- data/lib/oci/redis/models/work_request_resource.rb +221 -0
- data/lib/oci/redis/models/work_request_summary.rb +343 -0
- data/lib/oci/{ocvp/models/supported_sku_summary_collection.rb → redis/models/work_request_summary_collection.rb} +7 -8
- data/lib/oci/redis/redis.rb +42 -0
- data/lib/oci/redis/redis_cluster_client.rb +839 -0
- data/lib/oci/redis/redis_cluster_client_composite_operations.rb +225 -0
- data/lib/oci/redis/util.rb +3 -0
- data/lib/oci/regions_definitions.rb +15 -4
- data/lib/oci/stack_monitoring/models/anomaly_data_point.rb +191 -0
- data/lib/oci/stack_monitoring/models/anomaly_metric_data.rb +165 -0
- data/lib/oci/stack_monitoring/models/associated_monitored_resource.rb +30 -1
- data/lib/oci/stack_monitoring/models/associated_resources_summary.rb +30 -1
- data/lib/oci/stack_monitoring/models/baselineable_metric.rb +375 -0
- data/lib/oci/stack_monitoring/models/baselineable_metric_life_cycle_states.rb +13 -0
- data/lib/oci/stack_monitoring/models/baselineable_metric_summary.rb +319 -0
- data/lib/oci/stack_monitoring/models/baselineable_metric_summary_collection.rb +151 -0
- data/lib/oci/stack_monitoring/models/change_metric_extension_compartment_details.rb +157 -0
- data/lib/oci/stack_monitoring/models/change_monitored_resource_task_compartment_details.rb +157 -0
- data/lib/oci/stack_monitoring/models/config.rb +4 -0
- data/lib/oci/stack_monitoring/models/config_summary.rb +2 -0
- data/lib/oci/stack_monitoring/models/create_baselineable_metric_details.rb +199 -0
- data/lib/oci/stack_monitoring/models/create_config_details.rb +2 -0
- data/lib/oci/stack_monitoring/models/create_license_auto_assign_config_details.rb +189 -0
- data/lib/oci/stack_monitoring/models/create_license_enterprise_extensibility_config_details.rb +180 -0
- data/lib/oci/stack_monitoring/models/create_metric_extension_details.rb +245 -0
- data/lib/oci/stack_monitoring/models/create_monitored_resource_details.rb +26 -1
- data/lib/oci/stack_monitoring/models/create_monitored_resource_task_details.rb +214 -0
- data/lib/oci/stack_monitoring/models/create_monitored_resource_type_details.rb +250 -0
- data/lib/oci/stack_monitoring/models/data_point.rb +161 -0
- data/lib/oci/stack_monitoring/models/disable_metric_extension_details.rb +155 -0
- data/lib/oci/stack_monitoring/models/discovery_details.rb +30 -1
- data/lib/oci/stack_monitoring/models/discovery_job_summary.rb +30 -1
- data/lib/oci/stack_monitoring/models/enable_metric_extension_details.rb +155 -0
- data/lib/oci/stack_monitoring/models/enabled_resource_details.rb +155 -0
- data/lib/oci/stack_monitoring/models/evaluate_baselineable_metric_details.rb +165 -0
- data/lib/oci/stack_monitoring/models/evaluate_baselineable_metric_result.rb +165 -0
- data/lib/oci/stack_monitoring/models/import_oci_telemetry_resources_task_details.rb +245 -0
- data/lib/oci/stack_monitoring/models/jmx_query_properties.rb +221 -0
- data/lib/oci/stack_monitoring/models/jmx_update_query_properties.rb +221 -0
- data/lib/oci/stack_monitoring/models/license_auto_assign_config_details.rb +217 -0
- data/lib/oci/stack_monitoring/models/license_auto_assign_config_summary.rb +216 -0
- data/lib/oci/stack_monitoring/models/license_enterprise_extensibility_config_details.rb +201 -0
- data/lib/oci/stack_monitoring/models/license_enterprise_extensibility_config_summary.rb +200 -0
- data/lib/oci/stack_monitoring/models/license_type.rb +13 -0
- data/lib/oci/stack_monitoring/models/manage_license_details.rb +165 -0
- data/lib/oci/stack_monitoring/models/metric.rb +290 -0
- data/lib/oci/stack_monitoring/models/metric_data.rb +179 -0
- data/lib/oci/stack_monitoring/models/metric_extension.rb +444 -0
- data/lib/oci/stack_monitoring/models/metric_extension_collection.rb +151 -0
- data/lib/oci/stack_monitoring/models/metric_extension_collection_methods.rb +14 -0
- data/lib/oci/stack_monitoring/models/metric_extension_life_cycle_details.rb +13 -0
- data/lib/oci/stack_monitoring/models/metric_extension_life_cycle_states.rb +13 -0
- data/lib/oci/stack_monitoring/models/metric_extension_query_properties.rb +194 -0
- data/lib/oci/stack_monitoring/models/metric_extension_sort_by.rb +13 -0
- data/lib/oci/stack_monitoring/models/metric_extension_summary.rb +366 -0
- data/lib/oci/stack_monitoring/models/metric_extension_update_query_properties.rb +187 -0
- data/lib/oci/stack_monitoring/models/monitored_resource.rb +30 -1
- data/lib/oci/stack_monitoring/models/monitored_resource_member_summary.rb +30 -1
- data/lib/oci/stack_monitoring/models/monitored_resource_sort_by.rb +13 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_summary.rb +44 -1
- data/lib/oci/stack_monitoring/models/monitored_resource_task.rb +340 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_task_details.rb +186 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_task_lifecycle_state.rb +19 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_task_summary.rb +311 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_tasks_collection.rb +151 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_type.rb +346 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_type_summary.rb +345 -0
- data/lib/oci/stack_monitoring/models/monitored_resource_types_collection.rb +151 -0
- data/lib/oci/stack_monitoring/models/monitored_resources_count_aggregation.rb +166 -0
- data/lib/oci/stack_monitoring/models/monitored_resources_count_aggregation_collection.rb +151 -0
- data/lib/oci/stack_monitoring/models/operation_type.rb +5 -1
- data/lib/oci/stack_monitoring/models/os_command_query_properties.rb +206 -0
- data/lib/oci/stack_monitoring/models/os_command_update_query_properties.rb +206 -0
- data/lib/oci/stack_monitoring/models/resource_type_lifecycle_state.rb +17 -0
- data/lib/oci/stack_monitoring/models/resource_type_metadata_details.rb +189 -0
- data/lib/oci/stack_monitoring/models/script_file_details.rb +161 -0
- data/lib/oci/stack_monitoring/models/search_monitored_resources_details.rb +24 -1
- data/lib/oci/stack_monitoring/models/sql_details.rb +165 -0
- data/lib/oci/stack_monitoring/models/sql_in_param_details.rb +169 -0
- data/lib/oci/stack_monitoring/models/sql_out_param_details.rb +189 -0
- data/lib/oci/stack_monitoring/models/sql_out_param_types.rb +13 -0
- data/lib/oci/stack_monitoring/models/sql_query_properties.rb +224 -0
- data/lib/oci/stack_monitoring/models/sql_query_types.rb +13 -0
- data/lib/oci/stack_monitoring/models/sql_update_query_properties.rb +216 -0
- data/lib/oci/stack_monitoring/models/system_format_resource_type_metadata_details.rb +251 -0
- data/lib/oci/stack_monitoring/models/test_metric_extension_data.rb +197 -0
- data/lib/oci/stack_monitoring/models/test_metric_extension_details.rb +155 -0
- data/lib/oci/stack_monitoring/models/unique_property_set.rb +151 -0
- data/lib/oci/stack_monitoring/models/update_baselineable_metric_details.rb +309 -0
- data/lib/oci/stack_monitoring/models/update_config_details.rb +2 -0
- data/lib/oci/stack_monitoring/models/update_license_auto_assign_config_details.rb +185 -0
- data/lib/oci/stack_monitoring/models/update_license_enterprise_extensibility_config_details.rb +176 -0
- data/lib/oci/stack_monitoring/models/update_metric_extension_details.rb +206 -0
- data/lib/oci/stack_monitoring/models/update_monitored_resource_task_details.rb +173 -0
- data/lib/oci/stack_monitoring/models/update_monitored_resource_type_details.rb +220 -0
- data/lib/oci/stack_monitoring/models/work_request.rb +4 -0
- data/lib/oci/stack_monitoring/models/work_request_summary.rb +4 -0
- data/lib/oci/stack_monitoring/stack_monitoring.rb +73 -0
- data/lib/oci/stack_monitoring/stack_monitoring_client.rb +2942 -717
- data/lib/oci/stack_monitoring/stack_monitoring_client_composite_operations.rb +651 -16
- data/lib/oci/tenant_manager_control_plane/models/sku.rb +0 -1
- data/lib/oci/version.rb +1 -1
- data/lib/oci/vn_monitoring/models/capture_filter.rb +20 -4
- data/lib/oci/vn_monitoring/models/create_capture_filter_details.rb +21 -5
- data/lib/oci/vn_monitoring/models/flow_log_capture_filter_rule_details.rb +334 -0
- data/lib/oci/vn_monitoring/models/service.rb +1 -0
- data/lib/oci/vn_monitoring/models/update_capture_filter_details.rb +16 -1
- data/lib/oci/vn_monitoring/vn_monitoring.rb +1 -0
- data/lib/oci.rb +4 -0
- metadata +929 -9
@@ -257,11 +257,11 @@ module OCI
|
|
257
257
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
258
258
|
|
259
259
|
|
260
|
-
# Moves a
|
260
|
+
# Moves a Metric Extension resource from one compartment identifier to another.
|
261
261
|
# When provided, If-Match is checked against ETag values of the resource.
|
262
262
|
#
|
263
|
-
# @param [String]
|
264
|
-
# @param [OCI::StackMonitoring::Models::
|
263
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
264
|
+
# @param [OCI::StackMonitoring::Models::ChangeMetricExtensionCompartmentDetails] change_metric_extension_compartment_details The information required to change compartment of given Metric Extension resource
|
265
265
|
# @param [Hash] opts the optional parameters
|
266
266
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
267
267
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -281,15 +281,15 @@ module OCI
|
|
281
281
|
# might be rejected.
|
282
282
|
#
|
283
283
|
# @return [Response] A Response object with data of type nil
|
284
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
285
|
-
def
|
286
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
284
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/change_metric_extension_compartment.rb.html) to see an example of how to use change_metric_extension_compartment API.
|
285
|
+
def change_metric_extension_compartment(metric_extension_id, change_metric_extension_compartment_details, opts = {})
|
286
|
+
logger.debug 'Calling operation StackMonitoringClient#change_metric_extension_compartment.' if logger
|
287
287
|
|
288
|
-
raise "Missing the required parameter '
|
289
|
-
raise "Missing the required parameter '
|
290
|
-
raise "Parameter value for '
|
288
|
+
raise "Missing the required parameter 'metric_extension_id' when calling change_metric_extension_compartment." if metric_extension_id.nil?
|
289
|
+
raise "Missing the required parameter 'change_metric_extension_compartment_details' when calling change_metric_extension_compartment." if change_metric_extension_compartment_details.nil?
|
290
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
291
291
|
|
292
|
-
path = '/
|
292
|
+
path = '/metricExtensions/{metricExtensionId}/actions/changeCompartment'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
293
293
|
operation_signing_strategy = :standard
|
294
294
|
|
295
295
|
# rubocop:disable Style/NegatedIf
|
@@ -306,10 +306,10 @@ module OCI
|
|
306
306
|
# rubocop:enable Style/NegatedIf
|
307
307
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
308
308
|
|
309
|
-
post_body = @api_client.object_to_http_body(
|
309
|
+
post_body = @api_client.object_to_http_body(change_metric_extension_compartment_details)
|
310
310
|
|
311
311
|
# rubocop:disable Metrics/BlockLength
|
312
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
312
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#change_metric_extension_compartment') do
|
313
313
|
@api_client.call_api(
|
314
314
|
:POST,
|
315
315
|
path,
|
@@ -331,35 +331,39 @@ module OCI
|
|
331
331
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
332
332
|
|
333
333
|
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
337
|
-
# For example, when a new Management Agent gets registered in a certain compartment,
|
338
|
-
# this Management Agent can potentially get promoted to a HOST resource.
|
339
|
-
# The configuration item will determine if HOST resources in the selected compartment will be
|
340
|
-
# discovered automatically.
|
334
|
+
# Moves a monitored resource from one compartment to another.
|
335
|
+
# When provided, If-Match is checked against ETag values of the resource.
|
341
336
|
#
|
342
|
-
# @param [
|
337
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
338
|
+
# @param [OCI::StackMonitoring::Models::ChangeMonitoredResourceCompartmentDetails] change_monitored_resource_compartment_details The information to be updated.
|
343
339
|
# @param [Hash] opts the optional parameters
|
344
340
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
345
341
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
342
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
343
|
+
# for a resource, set the `if-match` parameter to the value of the
|
344
|
+
# etag from a previous GET or POST response for that resource.
|
345
|
+
# The resource will be updated or deleted only if the etag you
|
346
|
+
# provide matches the resource's current etag value.
|
347
|
+
#
|
348
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
349
|
+
# particular request, please provide the request ID.
|
350
|
+
#
|
346
351
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
347
352
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
348
353
|
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
349
354
|
# has been deleted and purged from the system, then a retry of the original creation request
|
350
355
|
# might be rejected.
|
351
356
|
#
|
352
|
-
# @
|
353
|
-
#
|
354
|
-
|
355
|
-
|
356
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_config.rb.html) to see an example of how to use create_config API.
|
357
|
-
def create_config(create_config_details, opts = {})
|
358
|
-
logger.debug 'Calling operation StackMonitoringClient#create_config.' if logger
|
357
|
+
# @return [Response] A Response object with data of type nil
|
358
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/change_monitored_resource_compartment.rb.html) to see an example of how to use change_monitored_resource_compartment API.
|
359
|
+
def change_monitored_resource_compartment(monitored_resource_id, change_monitored_resource_compartment_details, opts = {})
|
360
|
+
logger.debug 'Calling operation StackMonitoringClient#change_monitored_resource_compartment.' if logger
|
359
361
|
|
360
|
-
raise "Missing the required parameter '
|
362
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling change_monitored_resource_compartment." if monitored_resource_id.nil?
|
363
|
+
raise "Missing the required parameter 'change_monitored_resource_compartment_details' when calling change_monitored_resource_compartment." if change_monitored_resource_compartment_details.nil?
|
364
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
361
365
|
|
362
|
-
path = '/
|
366
|
+
path = '/monitoredResources/{monitoredResourceId}/actions/changeCompartment'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
363
367
|
operation_signing_strategy = :standard
|
364
368
|
|
365
369
|
# rubocop:disable Style/NegatedIf
|
@@ -370,15 +374,16 @@ module OCI
|
|
370
374
|
header_params = {}
|
371
375
|
header_params[:accept] = 'application/json'
|
372
376
|
header_params[:'content-type'] = 'application/json'
|
373
|
-
header_params[:'
|
377
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
374
378
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
379
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
375
380
|
# rubocop:enable Style/NegatedIf
|
376
381
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
377
382
|
|
378
|
-
post_body = @api_client.object_to_http_body(
|
383
|
+
post_body = @api_client.object_to_http_body(change_monitored_resource_compartment_details)
|
379
384
|
|
380
385
|
# rubocop:disable Metrics/BlockLength
|
381
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
386
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#change_monitored_resource_compartment') do
|
382
387
|
@api_client.call_api(
|
383
388
|
:POST,
|
384
389
|
path,
|
@@ -386,8 +391,7 @@ module OCI
|
|
386
391
|
header_params: header_params,
|
387
392
|
query_params: query_params,
|
388
393
|
operation_signing_strategy: operation_signing_strategy,
|
389
|
-
body: post_body
|
390
|
-
return_type: 'OCI::StackMonitoring::Models::Config'
|
394
|
+
body: post_body
|
391
395
|
)
|
392
396
|
end
|
393
397
|
# rubocop:enable Metrics/BlockLength
|
@@ -401,12 +405,19 @@ module OCI
|
|
401
405
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
402
406
|
|
403
407
|
|
404
|
-
#
|
408
|
+
# Moves a stack monitoring resource task from one compartment to another.
|
405
409
|
#
|
406
|
-
# @param [
|
410
|
+
# @param [String] monitored_resource_task_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of stack monitoring resource task.
|
411
|
+
# @param [OCI::StackMonitoring::Models::ChangeMonitoredResourceTaskCompartmentDetails] change_monitored_resource_task_compartment_details The information to be updated.
|
407
412
|
# @param [Hash] opts the optional parameters
|
408
413
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
409
414
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
415
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
416
|
+
# for a resource, set the `if-match` parameter to the value of the
|
417
|
+
# etag from a previous GET or POST response for that resource.
|
418
|
+
# The resource will be updated or deleted only if the etag you
|
419
|
+
# provide matches the resource's current etag value.
|
420
|
+
#
|
410
421
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
411
422
|
# particular request, please provide the request ID.
|
412
423
|
#
|
@@ -416,14 +427,16 @@ module OCI
|
|
416
427
|
# has been deleted and purged from the system, then a retry of the original creation request
|
417
428
|
# might be rejected.
|
418
429
|
#
|
419
|
-
# @return [Response] A Response object with data of type
|
420
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
421
|
-
def
|
422
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
430
|
+
# @return [Response] A Response object with data of type nil
|
431
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/change_monitored_resource_task_compartment.rb.html) to see an example of how to use change_monitored_resource_task_compartment API.
|
432
|
+
def change_monitored_resource_task_compartment(monitored_resource_task_id, change_monitored_resource_task_compartment_details, opts = {})
|
433
|
+
logger.debug 'Calling operation StackMonitoringClient#change_monitored_resource_task_compartment.' if logger
|
423
434
|
|
424
|
-
raise "Missing the required parameter '
|
435
|
+
raise "Missing the required parameter 'monitored_resource_task_id' when calling change_monitored_resource_task_compartment." if monitored_resource_task_id.nil?
|
436
|
+
raise "Missing the required parameter 'change_monitored_resource_task_compartment_details' when calling change_monitored_resource_task_compartment." if change_monitored_resource_task_compartment_details.nil?
|
437
|
+
raise "Parameter value for 'monitored_resource_task_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_task_id)
|
425
438
|
|
426
|
-
path = '/
|
439
|
+
path = '/monitoredResourceTasks/{monitoredResourceTaskId}/actions/changeCompartment'.sub('{monitoredResourceTaskId}', monitored_resource_task_id.to_s)
|
427
440
|
operation_signing_strategy = :standard
|
428
441
|
|
429
442
|
# rubocop:disable Style/NegatedIf
|
@@ -434,15 +447,16 @@ module OCI
|
|
434
447
|
header_params = {}
|
435
448
|
header_params[:accept] = 'application/json'
|
436
449
|
header_params[:'content-type'] = 'application/json'
|
450
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
437
451
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
438
452
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
439
453
|
# rubocop:enable Style/NegatedIf
|
440
454
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
441
455
|
|
442
|
-
post_body = @api_client.object_to_http_body(
|
456
|
+
post_body = @api_client.object_to_http_body(change_monitored_resource_task_compartment_details)
|
443
457
|
|
444
458
|
# rubocop:disable Metrics/BlockLength
|
445
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
459
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#change_monitored_resource_task_compartment') do
|
446
460
|
@api_client.call_api(
|
447
461
|
:POST,
|
448
462
|
path,
|
@@ -450,8 +464,7 @@ module OCI
|
|
450
464
|
header_params: header_params,
|
451
465
|
query_params: query_params,
|
452
466
|
operation_signing_strategy: operation_signing_strategy,
|
453
|
-
body: post_body
|
454
|
-
return_type: 'OCI::StackMonitoring::Models::DiscoveryJob'
|
467
|
+
body: post_body
|
455
468
|
)
|
456
469
|
end
|
457
470
|
# rubocop:enable Metrics/BlockLength
|
@@ -465,37 +478,28 @@ module OCI
|
|
465
478
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
466
479
|
|
467
480
|
|
468
|
-
# Creates
|
469
|
-
#
|
470
|
-
# added to agent, resource state will be marked active.
|
471
|
-
#
|
472
|
-
# @param [OCI::StackMonitoring::Models::CreateMonitoredResourceDetails] create_monitored_resource_details Details for the new monitored resource.
|
473
|
-
#
|
481
|
+
# Creates the specified Baseline-able metric
|
482
|
+
# @param [OCI::StackMonitoring::Models::CreateBaselineableMetricDetails] create_baselineable_metric_details Baseline metric
|
474
483
|
# @param [Hash] opts the optional parameters
|
475
484
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
476
485
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
486
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
487
|
+
# particular request, please provide the request ID.
|
488
|
+
#
|
477
489
|
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
478
490
|
# server error without risk of executing that same action again. Retry tokens expire after 24
|
479
491
|
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
480
492
|
# has been deleted and purged from the system, then a retry of the original creation request
|
481
493
|
# might be rejected.
|
482
494
|
#
|
483
|
-
# @
|
484
|
-
#
|
485
|
-
|
486
|
-
|
487
|
-
# The same will be passed to resource service to enable Stack Monitoring Service on DBM.
|
488
|
-
# This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource.
|
489
|
-
# If this header is not set as part of the request, then an id will be generated and stored for the resource.
|
490
|
-
#
|
491
|
-
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResource MonitoredResource}
|
492
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_monitored_resource.rb.html) to see an example of how to use create_monitored_resource API.
|
493
|
-
def create_monitored_resource(create_monitored_resource_details, opts = {})
|
494
|
-
logger.debug 'Calling operation StackMonitoringClient#create_monitored_resource.' if logger
|
495
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::BaselineableMetric BaselineableMetric}
|
496
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_baselineable_metric.rb.html) to see an example of how to use create_baselineable_metric API.
|
497
|
+
def create_baselineable_metric(create_baselineable_metric_details, opts = {})
|
498
|
+
logger.debug 'Calling operation StackMonitoringClient#create_baselineable_metric.' if logger
|
495
499
|
|
496
|
-
raise "Missing the required parameter '
|
500
|
+
raise "Missing the required parameter 'create_baselineable_metric_details' when calling create_baselineable_metric." if create_baselineable_metric_details.nil?
|
497
501
|
|
498
|
-
path = '/
|
502
|
+
path = '/baselineableMetrics'
|
499
503
|
operation_signing_strategy = :standard
|
500
504
|
|
501
505
|
# rubocop:disable Style/NegatedIf
|
@@ -506,16 +510,15 @@ module OCI
|
|
506
510
|
header_params = {}
|
507
511
|
header_params[:accept] = 'application/json'
|
508
512
|
header_params[:'content-type'] = 'application/json'
|
509
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
510
513
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
511
|
-
header_params[:'
|
514
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
512
515
|
# rubocop:enable Style/NegatedIf
|
513
516
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
514
517
|
|
515
|
-
post_body = @api_client.object_to_http_body(
|
518
|
+
post_body = @api_client.object_to_http_body(create_baselineable_metric_details)
|
516
519
|
|
517
520
|
# rubocop:disable Metrics/BlockLength
|
518
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
521
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_baselineable_metric') do
|
519
522
|
@api_client.call_api(
|
520
523
|
:POST,
|
521
524
|
path,
|
@@ -524,7 +527,7 @@ module OCI
|
|
524
527
|
query_params: query_params,
|
525
528
|
operation_signing_strategy: operation_signing_strategy,
|
526
529
|
body: post_body,
|
527
|
-
return_type: 'OCI::StackMonitoring::Models::
|
530
|
+
return_type: 'OCI::StackMonitoring::Models::BaselineableMetric'
|
528
531
|
)
|
529
532
|
end
|
530
533
|
# rubocop:enable Metrics/BlockLength
|
@@ -538,29 +541,35 @@ module OCI
|
|
538
541
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
539
542
|
|
540
543
|
|
541
|
-
#
|
542
|
-
#
|
544
|
+
# Creates a configuration item, for example to define
|
545
|
+
# whether resources of a specific type should be discovered automatically.
|
546
|
+
#
|
547
|
+
# For example, when a new Management Agent gets registered in a certain compartment,
|
548
|
+
# this Management Agent can potentially get promoted to a HOST resource.
|
549
|
+
# The configuration item will determine if HOST resources in the selected compartment will be
|
550
|
+
# discovered automatically.
|
551
|
+
#
|
552
|
+
# @param [OCI::StackMonitoring::Models::CreateConfigDetails] create_config_details Details for the new configuration.
|
543
553
|
# @param [Hash] opts the optional parameters
|
544
554
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
545
555
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
546
|
-
# @option opts [String] :
|
547
|
-
#
|
548
|
-
#
|
549
|
-
#
|
550
|
-
#
|
556
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
557
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
558
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
559
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
560
|
+
# might be rejected.
|
551
561
|
#
|
552
562
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
553
563
|
# particular request, please provide the request ID.
|
554
564
|
#
|
555
|
-
# @return [Response] A Response object with data of type
|
556
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
557
|
-
def
|
558
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
565
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::Config Config}
|
566
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_config.rb.html) to see an example of how to use create_config API.
|
567
|
+
def create_config(create_config_details, opts = {})
|
568
|
+
logger.debug 'Calling operation StackMonitoringClient#create_config.' if logger
|
559
569
|
|
560
|
-
raise "Missing the required parameter '
|
561
|
-
raise "Parameter value for 'config_id' must not be blank" if OCI::Internal::Util.blank_string?(config_id)
|
570
|
+
raise "Missing the required parameter 'create_config_details' when calling create_config." if create_config_details.nil?
|
562
571
|
|
563
|
-
path = '/configs
|
572
|
+
path = '/configs'
|
564
573
|
operation_signing_strategy = :standard
|
565
574
|
|
566
575
|
# rubocop:disable Style/NegatedIf
|
@@ -571,22 +580,24 @@ module OCI
|
|
571
580
|
header_params = {}
|
572
581
|
header_params[:accept] = 'application/json'
|
573
582
|
header_params[:'content-type'] = 'application/json'
|
574
|
-
header_params[:'
|
583
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
575
584
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
576
585
|
# rubocop:enable Style/NegatedIf
|
586
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
577
587
|
|
578
|
-
post_body =
|
588
|
+
post_body = @api_client.object_to_http_body(create_config_details)
|
579
589
|
|
580
590
|
# rubocop:disable Metrics/BlockLength
|
581
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
591
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_config') do
|
582
592
|
@api_client.call_api(
|
583
|
-
:
|
593
|
+
:POST,
|
584
594
|
path,
|
585
595
|
endpoint,
|
586
596
|
header_params: header_params,
|
587
597
|
query_params: query_params,
|
588
598
|
operation_signing_strategy: operation_signing_strategy,
|
589
|
-
body: post_body
|
599
|
+
body: post_body,
|
600
|
+
return_type: 'OCI::StackMonitoring::Models::Config'
|
590
601
|
)
|
591
602
|
end
|
592
603
|
# rubocop:enable Metrics/BlockLength
|
@@ -600,29 +611,29 @@ module OCI
|
|
600
611
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
601
612
|
|
602
613
|
|
603
|
-
#
|
604
|
-
#
|
614
|
+
# API to create discovery Job and submit discovery Details to agent.
|
615
|
+
#
|
616
|
+
# @param [OCI::StackMonitoring::Models::CreateDiscoveryJobDetails] create_discovery_job_details Summary of source and credential discovery details.
|
605
617
|
# @param [Hash] opts the optional parameters
|
606
618
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
607
619
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
608
|
-
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
609
|
-
# for a resource, set the `if-match` parameter to the value of the
|
610
|
-
# etag from a previous GET or POST response for that resource.
|
611
|
-
# The resource will be updated or deleted only if the etag you
|
612
|
-
# provide matches the resource's current etag value.
|
613
|
-
#
|
614
620
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
615
621
|
# particular request, please provide the request ID.
|
616
622
|
#
|
617
|
-
# @
|
618
|
-
#
|
619
|
-
|
620
|
-
|
623
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
624
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
625
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
626
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
627
|
+
# might be rejected.
|
628
|
+
#
|
629
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::DiscoveryJob DiscoveryJob}
|
630
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_discovery_job.rb.html) to see an example of how to use create_discovery_job API.
|
631
|
+
def create_discovery_job(create_discovery_job_details, opts = {})
|
632
|
+
logger.debug 'Calling operation StackMonitoringClient#create_discovery_job.' if logger
|
621
633
|
|
622
|
-
raise "Missing the required parameter '
|
623
|
-
raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id)
|
634
|
+
raise "Missing the required parameter 'create_discovery_job_details' when calling create_discovery_job." if create_discovery_job_details.nil?
|
624
635
|
|
625
|
-
path = '/discoveryJobs
|
636
|
+
path = '/discoveryJobs'
|
626
637
|
operation_signing_strategy = :standard
|
627
638
|
|
628
639
|
# rubocop:disable Style/NegatedIf
|
@@ -633,22 +644,24 @@ module OCI
|
|
633
644
|
header_params = {}
|
634
645
|
header_params[:accept] = 'application/json'
|
635
646
|
header_params[:'content-type'] = 'application/json'
|
636
|
-
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
637
647
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
648
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
638
649
|
# rubocop:enable Style/NegatedIf
|
650
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
639
651
|
|
640
|
-
post_body =
|
652
|
+
post_body = @api_client.object_to_http_body(create_discovery_job_details)
|
641
653
|
|
642
654
|
# rubocop:disable Metrics/BlockLength
|
643
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
655
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_discovery_job') do
|
644
656
|
@api_client.call_api(
|
645
|
-
:
|
657
|
+
:POST,
|
646
658
|
path,
|
647
659
|
endpoint,
|
648
660
|
header_params: header_params,
|
649
661
|
query_params: query_params,
|
650
662
|
operation_signing_strategy: operation_signing_strategy,
|
651
|
-
body: post_body
|
663
|
+
body: post_body,
|
664
|
+
return_type: 'OCI::StackMonitoring::Models::DiscoveryJob'
|
652
665
|
)
|
653
666
|
end
|
654
667
|
# rubocop:enable Metrics/BlockLength
|
@@ -662,63 +675,57 @@ module OCI
|
|
662
675
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
663
676
|
|
664
677
|
|
665
|
-
#
|
666
|
-
# By default, only the specified resource is deleted. If the parameter 'isDeleteMembers' is set to true,
|
667
|
-
# then the member resources will be deleted too. If the operation fails partially, the deleted entries
|
668
|
-
# will not be rolled back.
|
678
|
+
# Creates a new metric extension resource for a given compartment
|
669
679
|
#
|
670
|
-
# @param [
|
680
|
+
# @param [OCI::StackMonitoring::Models::CreateMetricExtensionDetails] create_metric_extension_details Details required for creating new Metric Extension
|
671
681
|
# @param [Hash] opts the optional parameters
|
672
682
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
673
683
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
674
|
-
# @option opts [String] :
|
675
|
-
#
|
676
|
-
#
|
677
|
-
#
|
678
|
-
#
|
684
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
685
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
686
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
687
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
688
|
+
# might be rejected.
|
679
689
|
#
|
680
690
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
681
691
|
# particular request, please provide the request ID.
|
682
692
|
#
|
683
|
-
# @
|
684
|
-
#
|
685
|
-
|
686
|
-
|
687
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_monitored_resource.rb.html) to see an example of how to use delete_monitored_resource API.
|
688
|
-
def delete_monitored_resource(monitored_resource_id, opts = {})
|
689
|
-
logger.debug 'Calling operation StackMonitoringClient#delete_monitored_resource.' if logger
|
693
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MetricExtension MetricExtension}
|
694
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_metric_extension.rb.html) to see an example of how to use create_metric_extension API.
|
695
|
+
def create_metric_extension(create_metric_extension_details, opts = {})
|
696
|
+
logger.debug 'Calling operation StackMonitoringClient#create_metric_extension.' if logger
|
690
697
|
|
691
|
-
raise "Missing the required parameter '
|
692
|
-
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
698
|
+
raise "Missing the required parameter 'create_metric_extension_details' when calling create_metric_extension." if create_metric_extension_details.nil?
|
693
699
|
|
694
|
-
path = '/
|
700
|
+
path = '/metricExtensions'
|
695
701
|
operation_signing_strategy = :standard
|
696
702
|
|
697
703
|
# rubocop:disable Style/NegatedIf
|
698
704
|
# Query Params
|
699
705
|
query_params = {}
|
700
|
-
query_params[:isDeleteMembers] = opts[:is_delete_members] if !opts[:is_delete_members].nil?
|
701
706
|
|
702
707
|
# Header Params
|
703
708
|
header_params = {}
|
704
709
|
header_params[:accept] = 'application/json'
|
705
710
|
header_params[:'content-type'] = 'application/json'
|
706
|
-
header_params[:'
|
711
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
707
712
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
708
713
|
# rubocop:enable Style/NegatedIf
|
714
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
709
715
|
|
710
|
-
post_body =
|
716
|
+
post_body = @api_client.object_to_http_body(create_metric_extension_details)
|
711
717
|
|
712
718
|
# rubocop:disable Metrics/BlockLength
|
713
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
719
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_metric_extension') do
|
714
720
|
@api_client.call_api(
|
715
|
-
:
|
721
|
+
:POST,
|
716
722
|
path,
|
717
723
|
endpoint,
|
718
724
|
header_params: header_params,
|
719
725
|
query_params: query_params,
|
720
726
|
operation_signing_strategy: operation_signing_strategy,
|
721
|
-
body: post_body
|
727
|
+
body: post_body,
|
728
|
+
return_type: 'OCI::StackMonitoring::Models::MetricExtension'
|
722
729
|
)
|
723
730
|
end
|
724
731
|
# rubocop:enable Metrics/BlockLength
|
@@ -732,10 +739,12 @@ module OCI
|
|
732
739
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
733
740
|
|
734
741
|
|
735
|
-
#
|
736
|
-
#
|
742
|
+
# Creates a new monitored resource for the given resource type with the details and submits
|
743
|
+
# a work request for promoting the resource to agent. Once the resource is successfully
|
744
|
+
# added to agent, resource state will be marked active.
|
745
|
+
#
|
746
|
+
# @param [OCI::StackMonitoring::Models::CreateMonitoredResourceDetails] create_monitored_resource_details Details for the new monitored resource.
|
737
747
|
#
|
738
|
-
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
739
748
|
# @param [Hash] opts the optional parameters
|
740
749
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
741
750
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -748,21 +757,19 @@ module OCI
|
|
748
757
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
749
758
|
# particular request, please provide the request ID.
|
750
759
|
#
|
751
|
-
# @option opts [String] :
|
752
|
-
#
|
753
|
-
#
|
754
|
-
#
|
755
|
-
# provide matches the resource's current etag value.
|
760
|
+
# @option opts [String] :external_resource_id Generally used by DBaaS to send the Database OCID stored on the DBaaS.
|
761
|
+
# The same will be passed to resource service to enable Stack Monitoring Service on DBM.
|
762
|
+
# This will be stored in Stack Monitoring Resource Service data store as identifier for monitored resource.
|
763
|
+
# If this header is not set as part of the request, then an id will be generated and stored for the resource.
|
756
764
|
#
|
757
|
-
# @return [Response] A Response object with data of type
|
758
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
759
|
-
def
|
760
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
761
|
-
|
762
|
-
raise "Missing the required parameter 'monitored_resource_id' when calling disable_external_database." if monitored_resource_id.nil?
|
763
|
-
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
765
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResource MonitoredResource}
|
766
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_monitored_resource.rb.html) to see an example of how to use create_monitored_resource API.
|
767
|
+
def create_monitored_resource(create_monitored_resource_details, opts = {})
|
768
|
+
logger.debug 'Calling operation StackMonitoringClient#create_monitored_resource.' if logger
|
764
769
|
|
765
|
-
|
770
|
+
raise "Missing the required parameter 'create_monitored_resource_details' when calling create_monitored_resource." if create_monitored_resource_details.nil?
|
771
|
+
|
772
|
+
path = '/monitoredResources'
|
766
773
|
operation_signing_strategy = :standard
|
767
774
|
|
768
775
|
# rubocop:disable Style/NegatedIf
|
@@ -775,14 +782,14 @@ module OCI
|
|
775
782
|
header_params[:'content-type'] = 'application/json'
|
776
783
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
777
784
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
778
|
-
header_params[:'
|
785
|
+
header_params[:'external-resource-id'] = opts[:external_resource_id] if opts[:external_resource_id]
|
779
786
|
# rubocop:enable Style/NegatedIf
|
780
787
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
781
788
|
|
782
|
-
post_body =
|
789
|
+
post_body = @api_client.object_to_http_body(create_monitored_resource_details)
|
783
790
|
|
784
791
|
# rubocop:disable Metrics/BlockLength
|
785
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
792
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_monitored_resource') do
|
786
793
|
@api_client.call_api(
|
787
794
|
:POST,
|
788
795
|
path,
|
@@ -790,7 +797,8 @@ module OCI
|
|
790
797
|
header_params: header_params,
|
791
798
|
query_params: query_params,
|
792
799
|
operation_signing_strategy: operation_signing_strategy,
|
793
|
-
body: post_body
|
800
|
+
body: post_body,
|
801
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResource'
|
794
802
|
)
|
795
803
|
end
|
796
804
|
# rubocop:enable Metrics/BlockLength
|
@@ -804,8 +812,8 @@ module OCI
|
|
804
812
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
805
813
|
|
806
814
|
|
807
|
-
#
|
808
|
-
# @param [OCI::StackMonitoring::Models::
|
815
|
+
# Create a new stack monitoring resource task.
|
816
|
+
# @param [OCI::StackMonitoring::Models::CreateMonitoredResourceTaskDetails] create_monitored_resource_task_details Details to create the new stack monitoring resource task.
|
809
817
|
# @param [Hash] opts the optional parameters
|
810
818
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
811
819
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -818,20 +826,14 @@ module OCI
|
|
818
826
|
# has been deleted and purged from the system, then a retry of the original creation request
|
819
827
|
# might be rejected.
|
820
828
|
#
|
821
|
-
# @
|
822
|
-
#
|
823
|
-
|
824
|
-
|
825
|
-
# provide matches the resource's current etag value.
|
826
|
-
#
|
827
|
-
# @return [Response] A Response object with data of type nil
|
828
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/disassociate_monitored_resources.rb.html) to see an example of how to use disassociate_monitored_resources API.
|
829
|
-
def disassociate_monitored_resources(disassociate_monitored_resources_details, opts = {})
|
830
|
-
logger.debug 'Calling operation StackMonitoringClient#disassociate_monitored_resources.' if logger
|
829
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceTask MonitoredResourceTask}
|
830
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_monitored_resource_task.rb.html) to see an example of how to use create_monitored_resource_task API.
|
831
|
+
def create_monitored_resource_task(create_monitored_resource_task_details, opts = {})
|
832
|
+
logger.debug 'Calling operation StackMonitoringClient#create_monitored_resource_task.' if logger
|
831
833
|
|
832
|
-
raise "Missing the required parameter '
|
834
|
+
raise "Missing the required parameter 'create_monitored_resource_task_details' when calling create_monitored_resource_task." if create_monitored_resource_task_details.nil?
|
833
835
|
|
834
|
-
path = '/
|
836
|
+
path = '/monitoredResourceTasks'
|
835
837
|
operation_signing_strategy = :standard
|
836
838
|
|
837
839
|
# rubocop:disable Style/NegatedIf
|
@@ -844,14 +846,13 @@ module OCI
|
|
844
846
|
header_params[:'content-type'] = 'application/json'
|
845
847
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
846
848
|
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
847
|
-
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
848
849
|
# rubocop:enable Style/NegatedIf
|
849
850
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
850
851
|
|
851
|
-
post_body = @api_client.object_to_http_body(
|
852
|
+
post_body = @api_client.object_to_http_body(create_monitored_resource_task_details)
|
852
853
|
|
853
854
|
# rubocop:disable Metrics/BlockLength
|
854
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
855
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_monitored_resource_task') do
|
855
856
|
@api_client.call_api(
|
856
857
|
:POST,
|
857
858
|
path,
|
@@ -859,7 +860,8 @@ module OCI
|
|
859
860
|
header_params: header_params,
|
860
861
|
query_params: query_params,
|
861
862
|
operation_signing_strategy: operation_signing_strategy,
|
862
|
-
body: post_body
|
863
|
+
body: post_body,
|
864
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceTask'
|
863
865
|
)
|
864
866
|
end
|
865
867
|
# rubocop:enable Metrics/BlockLength
|
@@ -873,23 +875,28 @@ module OCI
|
|
873
875
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
874
876
|
|
875
877
|
|
876
|
-
#
|
877
|
-
# @param [
|
878
|
+
# Creates a new monitored resource type.
|
879
|
+
# @param [OCI::StackMonitoring::Models::CreateMonitoredResourceTypeDetails] create_monitored_resource_type_details Details for the new monitored resource type.
|
878
880
|
# @param [Hash] opts the optional parameters
|
879
881
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
880
882
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
881
883
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
882
884
|
# particular request, please provide the request ID.
|
883
885
|
#
|
884
|
-
# @
|
885
|
-
#
|
886
|
-
|
887
|
-
|
886
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
887
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
888
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
889
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
890
|
+
# might be rejected.
|
891
|
+
#
|
892
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceType MonitoredResourceType}
|
893
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/create_monitored_resource_type.rb.html) to see an example of how to use create_monitored_resource_type API.
|
894
|
+
def create_monitored_resource_type(create_monitored_resource_type_details, opts = {})
|
895
|
+
logger.debug 'Calling operation StackMonitoringClient#create_monitored_resource_type.' if logger
|
888
896
|
|
889
|
-
raise "Missing the required parameter '
|
890
|
-
raise "Parameter value for 'config_id' must not be blank" if OCI::Internal::Util.blank_string?(config_id)
|
897
|
+
raise "Missing the required parameter 'create_monitored_resource_type_details' when calling create_monitored_resource_type." if create_monitored_resource_type_details.nil?
|
891
898
|
|
892
|
-
path = '/
|
899
|
+
path = '/monitoredResourceTypes'
|
893
900
|
operation_signing_strategy = :standard
|
894
901
|
|
895
902
|
# rubocop:disable Style/NegatedIf
|
@@ -901,21 +908,23 @@ module OCI
|
|
901
908
|
header_params[:accept] = 'application/json'
|
902
909
|
header_params[:'content-type'] = 'application/json'
|
903
910
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
911
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
904
912
|
# rubocop:enable Style/NegatedIf
|
913
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
905
914
|
|
906
|
-
post_body =
|
915
|
+
post_body = @api_client.object_to_http_body(create_monitored_resource_type_details)
|
907
916
|
|
908
917
|
# rubocop:disable Metrics/BlockLength
|
909
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
918
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#create_monitored_resource_type') do
|
910
919
|
@api_client.call_api(
|
911
|
-
:
|
920
|
+
:POST,
|
912
921
|
path,
|
913
922
|
endpoint,
|
914
923
|
header_params: header_params,
|
915
924
|
query_params: query_params,
|
916
925
|
operation_signing_strategy: operation_signing_strategy,
|
917
926
|
body: post_body,
|
918
|
-
return_type: 'OCI::StackMonitoring::Models::
|
927
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceType'
|
919
928
|
)
|
920
929
|
end
|
921
930
|
# rubocop:enable Metrics/BlockLength
|
@@ -929,24 +938,29 @@ module OCI
|
|
929
938
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
930
939
|
|
931
940
|
|
932
|
-
#
|
933
|
-
#
|
934
|
-
# @param [String] discovery_job_id The Discovery Job ID
|
941
|
+
# Deletes the Baseline-able metric for the given id
|
942
|
+
# @param [String] baselineable_metric_id Identifier for the metric
|
935
943
|
# @param [Hash] opts the optional parameters
|
936
944
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
937
945
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
938
946
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
939
947
|
# particular request, please provide the request ID.
|
940
948
|
#
|
941
|
-
# @
|
942
|
-
#
|
943
|
-
|
944
|
-
|
949
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
950
|
+
# for a resource, set the `if-match` parameter to the value of the
|
951
|
+
# etag from a previous GET or POST response for that resource.
|
952
|
+
# The resource will be updated or deleted only if the etag you
|
953
|
+
# provide matches the resource's current etag value.
|
954
|
+
#
|
955
|
+
# @return [Response] A Response object with data of type nil
|
956
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_baselineable_metric.rb.html) to see an example of how to use delete_baselineable_metric API.
|
957
|
+
def delete_baselineable_metric(baselineable_metric_id, opts = {})
|
958
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_baselineable_metric.' if logger
|
945
959
|
|
946
|
-
raise "Missing the required parameter '
|
947
|
-
raise "Parameter value for '
|
960
|
+
raise "Missing the required parameter 'baselineable_metric_id' when calling delete_baselineable_metric." if baselineable_metric_id.nil?
|
961
|
+
raise "Parameter value for 'baselineable_metric_id' must not be blank" if OCI::Internal::Util.blank_string?(baselineable_metric_id)
|
948
962
|
|
949
|
-
path = '/
|
963
|
+
path = '/baselineableMetrics/{baselineableMetricId}'.sub('{baselineableMetricId}', baselineable_metric_id.to_s)
|
950
964
|
operation_signing_strategy = :standard
|
951
965
|
|
952
966
|
# rubocop:disable Style/NegatedIf
|
@@ -958,21 +972,21 @@ module OCI
|
|
958
972
|
header_params[:accept] = 'application/json'
|
959
973
|
header_params[:'content-type'] = 'application/json'
|
960
974
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
975
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
961
976
|
# rubocop:enable Style/NegatedIf
|
962
977
|
|
963
978
|
post_body = nil
|
964
979
|
|
965
980
|
# rubocop:disable Metrics/BlockLength
|
966
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
981
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_baselineable_metric') do
|
967
982
|
@api_client.call_api(
|
968
|
-
:
|
983
|
+
:DELETE,
|
969
984
|
path,
|
970
985
|
endpoint,
|
971
986
|
header_params: header_params,
|
972
987
|
query_params: query_params,
|
973
988
|
operation_signing_strategy: operation_signing_strategy,
|
974
|
-
body: post_body
|
975
|
-
return_type: 'OCI::StackMonitoring::Models::DiscoveryJob'
|
989
|
+
body: post_body
|
976
990
|
)
|
977
991
|
end
|
978
992
|
# rubocop:enable Metrics/BlockLength
|
@@ -986,24 +1000,29 @@ module OCI
|
|
986
1000
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
987
1001
|
|
988
1002
|
|
989
|
-
#
|
990
|
-
#
|
991
|
-
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
1003
|
+
# Deletes a configuration identified by the id.
|
1004
|
+
# @param [String] config_id Unique Config identifier.
|
992
1005
|
# @param [Hash] opts the optional parameters
|
993
1006
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
994
1007
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1008
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1009
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1010
|
+
# etag from a previous GET or POST response for that resource.
|
1011
|
+
# The resource will be updated or deleted only if the etag you
|
1012
|
+
# provide matches the resource's current etag value.
|
1013
|
+
#
|
995
1014
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
996
1015
|
# particular request, please provide the request ID.
|
997
1016
|
#
|
998
|
-
# @return [Response] A Response object with data of type
|
999
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
1000
|
-
def
|
1001
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
1017
|
+
# @return [Response] A Response object with data of type nil
|
1018
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_config.rb.html) to see an example of how to use delete_config API.
|
1019
|
+
def delete_config(config_id, opts = {})
|
1020
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_config.' if logger
|
1002
1021
|
|
1003
|
-
raise "Missing the required parameter '
|
1004
|
-
raise "Parameter value for '
|
1022
|
+
raise "Missing the required parameter 'config_id' when calling delete_config." if config_id.nil?
|
1023
|
+
raise "Parameter value for 'config_id' must not be blank" if OCI::Internal::Util.blank_string?(config_id)
|
1005
1024
|
|
1006
|
-
path = '/
|
1025
|
+
path = '/configs/{configId}'.sub('{configId}', config_id.to_s)
|
1007
1026
|
operation_signing_strategy = :standard
|
1008
1027
|
|
1009
1028
|
# rubocop:disable Style/NegatedIf
|
@@ -1014,22 +1033,22 @@ module OCI
|
|
1014
1033
|
header_params = {}
|
1015
1034
|
header_params[:accept] = 'application/json'
|
1016
1035
|
header_params[:'content-type'] = 'application/json'
|
1036
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1017
1037
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1018
1038
|
# rubocop:enable Style/NegatedIf
|
1019
1039
|
|
1020
1040
|
post_body = nil
|
1021
1041
|
|
1022
1042
|
# rubocop:disable Metrics/BlockLength
|
1023
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1043
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_config') do
|
1024
1044
|
@api_client.call_api(
|
1025
|
-
:
|
1045
|
+
:DELETE,
|
1026
1046
|
path,
|
1027
1047
|
endpoint,
|
1028
1048
|
header_params: header_params,
|
1029
1049
|
query_params: query_params,
|
1030
1050
|
operation_signing_strategy: operation_signing_strategy,
|
1031
|
-
body: post_body
|
1032
|
-
return_type: 'OCI::StackMonitoring::Models::MonitoredResource'
|
1051
|
+
body: post_body
|
1033
1052
|
)
|
1034
1053
|
end
|
1035
1054
|
# rubocop:enable Metrics/BlockLength
|
@@ -1043,23 +1062,29 @@ module OCI
|
|
1043
1062
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1044
1063
|
|
1045
1064
|
|
1046
|
-
#
|
1047
|
-
# @param [String]
|
1065
|
+
# Deletes a DiscoveryJob by identifier
|
1066
|
+
# @param [String] discovery_job_id The Discovery Job ID
|
1048
1067
|
# @param [Hash] opts the optional parameters
|
1049
1068
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1050
1069
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1070
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1071
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1072
|
+
# etag from a previous GET or POST response for that resource.
|
1073
|
+
# The resource will be updated or deleted only if the etag you
|
1074
|
+
# provide matches the resource's current etag value.
|
1075
|
+
#
|
1051
1076
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1052
1077
|
# particular request, please provide the request ID.
|
1053
1078
|
#
|
1054
|
-
# @return [Response] A Response object with data of type
|
1055
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
1056
|
-
def
|
1057
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
1079
|
+
# @return [Response] A Response object with data of type nil
|
1080
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_discovery_job.rb.html) to see an example of how to use delete_discovery_job API.
|
1081
|
+
def delete_discovery_job(discovery_job_id, opts = {})
|
1082
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_discovery_job.' if logger
|
1058
1083
|
|
1059
|
-
raise "Missing the required parameter '
|
1060
|
-
raise "Parameter value for '
|
1084
|
+
raise "Missing the required parameter 'discovery_job_id' when calling delete_discovery_job." if discovery_job_id.nil?
|
1085
|
+
raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id)
|
1061
1086
|
|
1062
|
-
path = '/
|
1087
|
+
path = '/discoveryJobs/{discoveryJobId}'.sub('{discoveryJobId}', discovery_job_id.to_s)
|
1063
1088
|
operation_signing_strategy = :standard
|
1064
1089
|
|
1065
1090
|
# rubocop:disable Style/NegatedIf
|
@@ -1070,22 +1095,22 @@ module OCI
|
|
1070
1095
|
header_params = {}
|
1071
1096
|
header_params[:accept] = 'application/json'
|
1072
1097
|
header_params[:'content-type'] = 'application/json'
|
1098
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1073
1099
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1074
1100
|
# rubocop:enable Style/NegatedIf
|
1075
1101
|
|
1076
1102
|
post_body = nil
|
1077
1103
|
|
1078
1104
|
# rubocop:disable Metrics/BlockLength
|
1079
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1105
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_discovery_job') do
|
1080
1106
|
@api_client.call_api(
|
1081
|
-
:
|
1107
|
+
:DELETE,
|
1082
1108
|
path,
|
1083
1109
|
endpoint,
|
1084
1110
|
header_params: header_params,
|
1085
1111
|
query_params: query_params,
|
1086
1112
|
operation_signing_strategy: operation_signing_strategy,
|
1087
|
-
body: post_body
|
1088
|
-
return_type: 'OCI::StackMonitoring::Models::WorkRequest'
|
1113
|
+
body: post_body
|
1089
1114
|
)
|
1090
1115
|
end
|
1091
1116
|
# rubocop:enable Metrics/BlockLength
|
@@ -1099,91 +1124,55 @@ module OCI
|
|
1099
1124
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1100
1125
|
|
1101
1126
|
|
1102
|
-
#
|
1103
|
-
#
|
1104
|
-
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
1127
|
+
# Deletes a metric extension by identifier
|
1128
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
1105
1129
|
# @param [Hash] opts the optional parameters
|
1106
1130
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1107
1131
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1108
|
-
# @option opts [String] :
|
1109
|
-
#
|
1110
|
-
#
|
1111
|
-
#
|
1112
|
-
#
|
1113
|
-
# (default to 10)
|
1114
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1115
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1116
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1132
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1133
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1134
|
+
# etag from a previous GET or POST response for that resource.
|
1135
|
+
# The resource will be updated or deleted only if the etag you
|
1136
|
+
# provide matches the resource's current etag value.
|
1117
1137
|
#
|
1118
|
-
# @option opts [String] :lifecycle_state The current state of the Config.
|
1119
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1120
|
-
# (default to ASC)
|
1121
|
-
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
1122
|
-
# Default order for 'timeCreated' is descending.
|
1123
|
-
# Default order for 'displayName' and 'configType' is ascending.
|
1124
|
-
# (default to timeCreated)
|
1125
|
-
# Allowed values are: timeCreated, configType, displayName
|
1126
1138
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1127
1139
|
# particular request, please provide the request ID.
|
1128
1140
|
#
|
1129
|
-
# @return [Response] A Response object with data of type
|
1130
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
1131
|
-
def
|
1132
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
1133
|
-
|
1134
|
-
raise "Missing the required parameter 'compartment_id' when calling list_configs." if compartment_id.nil?
|
1135
|
-
|
1136
|
-
if opts[:type] && !OCI::StackMonitoring::Models::Config::CONFIG_TYPE_ENUM.include?(opts[:type])
|
1137
|
-
raise 'Invalid value for "type", must be one of the values in OCI::StackMonitoring::Models::Config::CONFIG_TYPE_ENUM.'
|
1138
|
-
end
|
1139
|
-
|
1140
|
-
if opts[:lifecycle_state] && !OCI::StackMonitoring::Models::Config::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
1141
|
-
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::StackMonitoring::Models::Config::LIFECYCLE_STATE_ENUM.'
|
1142
|
-
end
|
1143
|
-
|
1144
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1145
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1146
|
-
end
|
1141
|
+
# @return [Response] A Response object with data of type nil
|
1142
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_metric_extension.rb.html) to see an example of how to use delete_metric_extension API.
|
1143
|
+
def delete_metric_extension(metric_extension_id, opts = {})
|
1144
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_metric_extension.' if logger
|
1147
1145
|
|
1148
|
-
|
1149
|
-
|
1150
|
-
end
|
1146
|
+
raise "Missing the required parameter 'metric_extension_id' when calling delete_metric_extension." if metric_extension_id.nil?
|
1147
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1151
1148
|
|
1152
|
-
path = '/
|
1149
|
+
path = '/metricExtensions/{metricExtensionId}'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1153
1150
|
operation_signing_strategy = :standard
|
1154
1151
|
|
1155
1152
|
# rubocop:disable Style/NegatedIf
|
1156
1153
|
# Query Params
|
1157
1154
|
query_params = {}
|
1158
|
-
query_params[:compartmentId] = compartment_id
|
1159
|
-
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
1160
|
-
query_params[:type] = opts[:type] if opts[:type]
|
1161
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1162
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1163
|
-
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
1164
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1165
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1166
1155
|
|
1167
1156
|
# Header Params
|
1168
1157
|
header_params = {}
|
1169
1158
|
header_params[:accept] = 'application/json'
|
1170
1159
|
header_params[:'content-type'] = 'application/json'
|
1160
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1171
1161
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1172
1162
|
# rubocop:enable Style/NegatedIf
|
1173
1163
|
|
1174
1164
|
post_body = nil
|
1175
1165
|
|
1176
1166
|
# rubocop:disable Metrics/BlockLength
|
1177
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1167
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_metric_extension') do
|
1178
1168
|
@api_client.call_api(
|
1179
|
-
:
|
1169
|
+
:DELETE,
|
1180
1170
|
path,
|
1181
1171
|
endpoint,
|
1182
1172
|
header_params: header_params,
|
1183
1173
|
query_params: query_params,
|
1184
1174
|
operation_signing_strategy: operation_signing_strategy,
|
1185
|
-
body: post_body
|
1186
|
-
return_type: 'OCI::StackMonitoring::Models::ConfigCollection'
|
1175
|
+
body: post_body
|
1187
1176
|
)
|
1188
1177
|
end
|
1189
1178
|
# rubocop:enable Metrics/BlockLength
|
@@ -1197,82 +1186,63 @@ module OCI
|
|
1197
1186
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1198
1187
|
|
1199
1188
|
|
1200
|
-
#
|
1189
|
+
# Delete monitored resource by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
1190
|
+
# By default, only the specified resource is deleted. If the parameter 'isDeleteMembers' is set to true,
|
1191
|
+
# then the member resources will be deleted too. If the operation fails partially, the deleted entries
|
1192
|
+
# will not be rolled back.
|
1201
1193
|
#
|
1202
|
-
# @param [String]
|
1194
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
1203
1195
|
# @param [Hash] opts the optional parameters
|
1204
1196
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1205
1197
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1206
|
-
# @option opts [String] :
|
1207
|
-
#
|
1208
|
-
#
|
1209
|
-
#
|
1210
|
-
#
|
1211
|
-
# (default to 10)
|
1212
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1213
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1214
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1198
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1199
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1200
|
+
# etag from a previous GET or POST response for that resource.
|
1201
|
+
# The resource will be updated or deleted only if the etag you
|
1202
|
+
# provide matches the resource's current etag value.
|
1215
1203
|
#
|
1216
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1217
|
-
# (default to ASC)
|
1218
|
-
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for logType is ascending.
|
1219
|
-
# (default to timeCreated)
|
1220
|
-
# Allowed values are: timeCreated, logType
|
1221
1204
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1222
1205
|
# particular request, please provide the request ID.
|
1223
1206
|
#
|
1224
|
-
# @
|
1225
|
-
#
|
1226
|
-
|
1227
|
-
|
1207
|
+
# @option opts [BOOLEAN] :is_delete_members If this query parameter is specified and set to true, all the member
|
1208
|
+
# resources will be deleted before deleting the specified resource.
|
1209
|
+
# (default to false)
|
1210
|
+
# @return [Response] A Response object with data of type nil
|
1211
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_monitored_resource.rb.html) to see an example of how to use delete_monitored_resource API.
|
1212
|
+
def delete_monitored_resource(monitored_resource_id, opts = {})
|
1213
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_monitored_resource.' if logger
|
1228
1214
|
|
1229
|
-
raise "Missing the required parameter '
|
1215
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling delete_monitored_resource." if monitored_resource_id.nil?
|
1216
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
1230
1217
|
|
1231
|
-
|
1232
|
-
|
1233
|
-
end
|
1234
|
-
|
1235
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1236
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1237
|
-
end
|
1238
|
-
|
1239
|
-
if opts[:sort_by] && !%w[timeCreated logType].include?(opts[:sort_by])
|
1240
|
-
raise 'Invalid value for "sort_by", must be one of timeCreated, logType.'
|
1241
|
-
end
|
1242
|
-
raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id)
|
1243
|
-
|
1244
|
-
path = '/discoveryJobs/{discoveryJobId}/logs'.sub('{discoveryJobId}', discovery_job_id.to_s)
|
1245
|
-
operation_signing_strategy = :standard
|
1218
|
+
path = '/monitoredResources/{monitoredResourceId}'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
1219
|
+
operation_signing_strategy = :standard
|
1246
1220
|
|
1247
1221
|
# rubocop:disable Style/NegatedIf
|
1248
1222
|
# Query Params
|
1249
1223
|
query_params = {}
|
1250
|
-
query_params[:
|
1251
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1252
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1253
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1254
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1224
|
+
query_params[:isDeleteMembers] = opts[:is_delete_members] if !opts[:is_delete_members].nil?
|
1255
1225
|
|
1256
1226
|
# Header Params
|
1257
1227
|
header_params = {}
|
1258
1228
|
header_params[:accept] = 'application/json'
|
1259
1229
|
header_params[:'content-type'] = 'application/json'
|
1230
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1260
1231
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1261
1232
|
# rubocop:enable Style/NegatedIf
|
1262
1233
|
|
1263
1234
|
post_body = nil
|
1264
1235
|
|
1265
1236
|
# rubocop:disable Metrics/BlockLength
|
1266
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1237
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_monitored_resource') do
|
1267
1238
|
@api_client.call_api(
|
1268
|
-
:
|
1239
|
+
:DELETE,
|
1269
1240
|
path,
|
1270
1241
|
endpoint,
|
1271
1242
|
header_params: header_params,
|
1272
1243
|
query_params: query_params,
|
1273
1244
|
operation_signing_strategy: operation_signing_strategy,
|
1274
|
-
body: post_body
|
1275
|
-
return_type: 'OCI::StackMonitoring::Models::DiscoveryJobLogCollection'
|
1245
|
+
body: post_body
|
1276
1246
|
)
|
1277
1247
|
end
|
1278
1248
|
# rubocop:enable Metrics/BlockLength
|
@@ -1286,77 +1256,55 @@ module OCI
|
|
1286
1256
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1287
1257
|
|
1288
1258
|
|
1289
|
-
#
|
1290
|
-
#
|
1291
|
-
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
1259
|
+
# Deletes a monitored resource type by identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
1260
|
+
# @param [String] monitored_resource_type_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource type.
|
1292
1261
|
# @param [Hash] opts the optional parameters
|
1293
1262
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1294
1263
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1295
|
-
# @option opts [String] :
|
1296
|
-
#
|
1297
|
-
#
|
1298
|
-
#
|
1299
|
-
#
|
1300
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1301
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1302
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1264
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1265
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1266
|
+
# etag from a previous GET or POST response for that resource.
|
1267
|
+
# The resource will be updated or deleted only if the etag you
|
1268
|
+
# provide matches the resource's current etag value.
|
1303
1269
|
#
|
1304
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1305
|
-
# (default to ASC)
|
1306
|
-
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeUpdated is descending. Default order for resourceName is ascending.
|
1307
|
-
# (default to timeUpdated)
|
1308
|
-
# Allowed values are: timeUpdated, resourceName
|
1309
1270
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1310
1271
|
# particular request, please provide the request ID.
|
1311
1272
|
#
|
1312
|
-
# @return [Response] A Response object with data of type
|
1313
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
1314
|
-
def
|
1315
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
1316
|
-
|
1317
|
-
raise "Missing the required parameter 'compartment_id' when calling list_discovery_jobs." if compartment_id.nil?
|
1318
|
-
|
1319
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1320
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1321
|
-
end
|
1273
|
+
# @return [Response] A Response object with data of type nil
|
1274
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/delete_monitored_resource_type.rb.html) to see an example of how to use delete_monitored_resource_type API.
|
1275
|
+
def delete_monitored_resource_type(monitored_resource_type_id, opts = {})
|
1276
|
+
logger.debug 'Calling operation StackMonitoringClient#delete_monitored_resource_type.' if logger
|
1322
1277
|
|
1323
|
-
|
1324
|
-
|
1325
|
-
end
|
1278
|
+
raise "Missing the required parameter 'monitored_resource_type_id' when calling delete_monitored_resource_type." if monitored_resource_type_id.nil?
|
1279
|
+
raise "Parameter value for 'monitored_resource_type_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_type_id)
|
1326
1280
|
|
1327
|
-
path = '/
|
1281
|
+
path = '/monitoredResourceTypes/{monitoredResourceTypeId}'.sub('{monitoredResourceTypeId}', monitored_resource_type_id.to_s)
|
1328
1282
|
operation_signing_strategy = :standard
|
1329
1283
|
|
1330
1284
|
# rubocop:disable Style/NegatedIf
|
1331
1285
|
# Query Params
|
1332
1286
|
query_params = {}
|
1333
|
-
query_params[:compartmentId] = compartment_id
|
1334
|
-
query_params[:name] = opts[:name] if opts[:name]
|
1335
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1336
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1337
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1338
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1339
1287
|
|
1340
1288
|
# Header Params
|
1341
1289
|
header_params = {}
|
1342
1290
|
header_params[:accept] = 'application/json'
|
1343
1291
|
header_params[:'content-type'] = 'application/json'
|
1292
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1344
1293
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1345
1294
|
# rubocop:enable Style/NegatedIf
|
1346
1295
|
|
1347
1296
|
post_body = nil
|
1348
1297
|
|
1349
1298
|
# rubocop:disable Metrics/BlockLength
|
1350
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1299
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#delete_monitored_resource_type') do
|
1351
1300
|
@api_client.call_api(
|
1352
|
-
:
|
1301
|
+
:DELETE,
|
1353
1302
|
path,
|
1354
1303
|
endpoint,
|
1355
1304
|
header_params: header_params,
|
1356
1305
|
query_params: query_params,
|
1357
1306
|
operation_signing_strategy: operation_signing_strategy,
|
1358
|
-
body: post_body
|
1359
|
-
return_type: 'OCI::StackMonitoring::Models::DiscoveryJobCollection'
|
1307
|
+
body: post_body
|
1360
1308
|
)
|
1361
1309
|
end
|
1362
1310
|
# rubocop:enable Metrics/BlockLength
|
@@ -1370,75 +1318,65 @@ module OCI
|
|
1370
1318
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1371
1319
|
|
1372
1320
|
|
1373
|
-
#
|
1321
|
+
# Disable external database resource monitoring. All the references in DBaaS,
|
1322
|
+
# DBM and resource service will be deleted as part of this operation.
|
1374
1323
|
#
|
1375
|
-
# @param [String]
|
1324
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
1376
1325
|
# @param [Hash] opts the optional parameters
|
1377
1326
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1378
1327
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1328
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1329
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1330
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1331
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1332
|
+
# might be rejected.
|
1333
|
+
#
|
1379
1334
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1380
1335
|
# particular request, please provide the request ID.
|
1381
1336
|
#
|
1382
|
-
# @option opts [String] :
|
1383
|
-
#
|
1384
|
-
#
|
1337
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1338
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1339
|
+
# etag from a previous GET or POST response for that resource.
|
1340
|
+
# The resource will be updated or deleted only if the etag you
|
1341
|
+
# provide matches the resource's current etag value.
|
1385
1342
|
#
|
1386
|
-
# @
|
1387
|
-
#
|
1388
|
-
|
1389
|
-
|
1390
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1391
|
-
# (default to ASC)
|
1392
|
-
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. If no value is specified timestamp is default.
|
1393
|
-
# (default to timestamp)
|
1394
|
-
# Allowed values are: timestamp
|
1395
|
-
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
|
1396
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
|
1397
|
-
def list_work_request_errors(work_request_id, opts = {})
|
1398
|
-
logger.debug 'Calling operation StackMonitoringClient#list_work_request_errors.' if logger
|
1399
|
-
|
1400
|
-
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
1401
|
-
|
1402
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1403
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1404
|
-
end
|
1343
|
+
# @return [Response] A Response object with data of type nil
|
1344
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/disable_external_database.rb.html) to see an example of how to use disable_external_database API.
|
1345
|
+
def disable_external_database(monitored_resource_id, opts = {})
|
1346
|
+
logger.debug 'Calling operation StackMonitoringClient#disable_external_database.' if logger
|
1405
1347
|
|
1406
|
-
|
1407
|
-
|
1408
|
-
end
|
1409
|
-
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1348
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling disable_external_database." if monitored_resource_id.nil?
|
1349
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
1410
1350
|
|
1411
|
-
path = '/
|
1351
|
+
path = '/monitoredResources/{monitoredResourceId}/actions/disableExternalDatabase'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
1412
1352
|
operation_signing_strategy = :standard
|
1413
1353
|
|
1414
1354
|
# rubocop:disable Style/NegatedIf
|
1415
1355
|
# Query Params
|
1416
1356
|
query_params = {}
|
1417
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1418
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1419
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1420
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1421
1357
|
|
1422
1358
|
# Header Params
|
1423
1359
|
header_params = {}
|
1424
1360
|
header_params[:accept] = 'application/json'
|
1425
1361
|
header_params[:'content-type'] = 'application/json'
|
1362
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1426
1363
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1364
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1427
1365
|
# rubocop:enable Style/NegatedIf
|
1366
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1428
1367
|
|
1429
1368
|
post_body = nil
|
1430
1369
|
|
1431
1370
|
# rubocop:disable Metrics/BlockLength
|
1432
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1371
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#disable_external_database') do
|
1433
1372
|
@api_client.call_api(
|
1434
|
-
:
|
1373
|
+
:POST,
|
1435
1374
|
path,
|
1436
1375
|
endpoint,
|
1437
1376
|
header_params: header_params,
|
1438
1377
|
query_params: query_params,
|
1439
1378
|
operation_signing_strategy: operation_signing_strategy,
|
1440
|
-
body: post_body
|
1441
|
-
return_type: 'OCI::StackMonitoring::Models::WorkRequestErrorCollection'
|
1379
|
+
body: post_body
|
1442
1380
|
)
|
1443
1381
|
end
|
1444
1382
|
# rubocop:enable Metrics/BlockLength
|
@@ -1452,75 +1390,66 @@ module OCI
|
|
1452
1390
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1453
1391
|
|
1454
1392
|
|
1455
|
-
#
|
1393
|
+
# Submits a request to disable matching metric extension Id for the given Resource IDs
|
1456
1394
|
#
|
1457
|
-
# @param [String]
|
1395
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
1396
|
+
# @param [OCI::StackMonitoring::Models::DisableMetricExtensionDetails] disable_metric_extension_details The list of Resource IDs for which given metric extension needs to be disabled
|
1458
1397
|
# @param [Hash] opts the optional parameters
|
1459
1398
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1460
1399
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1400
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1401
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1402
|
+
# etag from a previous GET or POST response for that resource.
|
1403
|
+
# The resource will be updated or deleted only if the etag you
|
1404
|
+
# provide matches the resource's current etag value.
|
1405
|
+
#
|
1461
1406
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1462
1407
|
# particular request, please provide the request ID.
|
1463
1408
|
#
|
1464
|
-
# @option opts [String] :
|
1465
|
-
#
|
1466
|
-
#
|
1409
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1410
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1411
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1412
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1413
|
+
# might be rejected.
|
1467
1414
|
#
|
1468
|
-
# @
|
1469
|
-
#
|
1470
|
-
|
1471
|
-
|
1472
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1473
|
-
# (default to ASC)
|
1474
|
-
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. If no value is specified timestamp is default.
|
1475
|
-
# (default to timestamp)
|
1476
|
-
# Allowed values are: timestamp
|
1477
|
-
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
|
1478
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
|
1479
|
-
def list_work_request_logs(work_request_id, opts = {})
|
1480
|
-
logger.debug 'Calling operation StackMonitoringClient#list_work_request_logs.' if logger
|
1481
|
-
|
1482
|
-
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
1483
|
-
|
1484
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1485
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1486
|
-
end
|
1415
|
+
# @return [Response] A Response object with data of type nil
|
1416
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/disable_metric_extension.rb.html) to see an example of how to use disable_metric_extension API.
|
1417
|
+
def disable_metric_extension(metric_extension_id, disable_metric_extension_details, opts = {})
|
1418
|
+
logger.debug 'Calling operation StackMonitoringClient#disable_metric_extension.' if logger
|
1487
1419
|
|
1488
|
-
|
1489
|
-
|
1490
|
-
|
1491
|
-
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
1420
|
+
raise "Missing the required parameter 'metric_extension_id' when calling disable_metric_extension." if metric_extension_id.nil?
|
1421
|
+
raise "Missing the required parameter 'disable_metric_extension_details' when calling disable_metric_extension." if disable_metric_extension_details.nil?
|
1422
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1492
1423
|
|
1493
|
-
path = '/
|
1424
|
+
path = '/metricExtensions/{metricExtensionId}/actions/disable'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1494
1425
|
operation_signing_strategy = :standard
|
1495
1426
|
|
1496
1427
|
# rubocop:disable Style/NegatedIf
|
1497
1428
|
# Query Params
|
1498
1429
|
query_params = {}
|
1499
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1500
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1501
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1502
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1503
1430
|
|
1504
1431
|
# Header Params
|
1505
1432
|
header_params = {}
|
1506
1433
|
header_params[:accept] = 'application/json'
|
1507
1434
|
header_params[:'content-type'] = 'application/json'
|
1435
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1508
1436
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1437
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1509
1438
|
# rubocop:enable Style/NegatedIf
|
1439
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1510
1440
|
|
1511
|
-
post_body =
|
1441
|
+
post_body = @api_client.object_to_http_body(disable_metric_extension_details)
|
1512
1442
|
|
1513
1443
|
# rubocop:disable Metrics/BlockLength
|
1514
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
1444
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#disable_metric_extension') do
|
1515
1445
|
@api_client.call_api(
|
1516
|
-
:
|
1446
|
+
:POST,
|
1517
1447
|
path,
|
1518
1448
|
endpoint,
|
1519
1449
|
header_params: header_params,
|
1520
1450
|
query_params: query_params,
|
1521
1451
|
operation_signing_strategy: operation_signing_strategy,
|
1522
|
-
body: post_body
|
1523
|
-
return_type: 'OCI::StackMonitoring::Models::WorkRequestLogEntryCollection'
|
1452
|
+
body: post_body
|
1524
1453
|
)
|
1525
1454
|
end
|
1526
1455
|
# rubocop:enable Metrics/BlockLength
|
@@ -1534,85 +1463,2334 @@ module OCI
|
|
1534
1463
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1535
1464
|
|
1536
1465
|
|
1537
|
-
#
|
1538
|
-
#
|
1539
|
-
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
1466
|
+
# Removes associations between two monitored resources.
|
1467
|
+
# @param [OCI::StackMonitoring::Models::DisassociateMonitoredResourcesDetails] disassociate_monitored_resources_details Disassociate resources.
|
1540
1468
|
# @param [Hash] opts the optional parameters
|
1541
1469
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1542
1470
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1543
|
-
# @option opts [String] :work_request_id The ID of the asynchronous work request.
|
1544
|
-
# @option opts [String] :status A filter to return only resources their lifecycleState matches the given OperationStatus.
|
1545
|
-
# @option opts [String] :resource_id The ID of the resource affected by the work request.
|
1546
1471
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1547
1472
|
# particular request, please provide the request ID.
|
1548
1473
|
#
|
1549
|
-
# @option opts [String] :
|
1550
|
-
#
|
1551
|
-
#
|
1474
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1475
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1476
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1477
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1478
|
+
# might be rejected.
|
1552
1479
|
#
|
1553
|
-
# @option opts [
|
1554
|
-
#
|
1555
|
-
#
|
1556
|
-
#
|
1557
|
-
#
|
1558
|
-
#
|
1559
|
-
# @
|
1560
|
-
#
|
1561
|
-
|
1562
|
-
|
1563
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
|
1564
|
-
def list_work_requests(compartment_id, opts = {})
|
1565
|
-
logger.debug 'Calling operation StackMonitoringClient#list_work_requests.' if logger
|
1566
|
-
|
1567
|
-
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
1568
|
-
|
1569
|
-
if opts[:status] && !OCI::StackMonitoring::Models::OPERATION_STATUS_ENUM.include?(opts[:status])
|
1570
|
-
raise 'Invalid value for "status", must be one of the values in OCI::StackMonitoring::Models::OPERATION_STATUS_ENUM.'
|
1571
|
-
end
|
1572
|
-
|
1573
|
-
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
1574
|
-
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
1575
|
-
end
|
1480
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1481
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1482
|
+
# etag from a previous GET or POST response for that resource.
|
1483
|
+
# The resource will be updated or deleted only if the etag you
|
1484
|
+
# provide matches the resource's current etag value.
|
1485
|
+
#
|
1486
|
+
# @return [Response] A Response object with data of type nil
|
1487
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/disassociate_monitored_resources.rb.html) to see an example of how to use disassociate_monitored_resources API.
|
1488
|
+
def disassociate_monitored_resources(disassociate_monitored_resources_details, opts = {})
|
1489
|
+
logger.debug 'Calling operation StackMonitoringClient#disassociate_monitored_resources.' if logger
|
1576
1490
|
|
1577
|
-
|
1578
|
-
raise 'Invalid value for "sort_by", must be one of timeAccepted.'
|
1579
|
-
end
|
1491
|
+
raise "Missing the required parameter 'disassociate_monitored_resources_details' when calling disassociate_monitored_resources." if disassociate_monitored_resources_details.nil?
|
1580
1492
|
|
1581
|
-
path = '/
|
1493
|
+
path = '/monitoredResources/actions/disassociateMonitoredResources'
|
1494
|
+
operation_signing_strategy = :standard
|
1495
|
+
|
1496
|
+
# rubocop:disable Style/NegatedIf
|
1497
|
+
# Query Params
|
1498
|
+
query_params = {}
|
1499
|
+
|
1500
|
+
# Header Params
|
1501
|
+
header_params = {}
|
1502
|
+
header_params[:accept] = 'application/json'
|
1503
|
+
header_params[:'content-type'] = 'application/json'
|
1504
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1505
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1506
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1507
|
+
# rubocop:enable Style/NegatedIf
|
1508
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1509
|
+
|
1510
|
+
post_body = @api_client.object_to_http_body(disassociate_monitored_resources_details)
|
1511
|
+
|
1512
|
+
# rubocop:disable Metrics/BlockLength
|
1513
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#disassociate_monitored_resources') do
|
1514
|
+
@api_client.call_api(
|
1515
|
+
:POST,
|
1516
|
+
path,
|
1517
|
+
endpoint,
|
1518
|
+
header_params: header_params,
|
1519
|
+
query_params: query_params,
|
1520
|
+
operation_signing_strategy: operation_signing_strategy,
|
1521
|
+
body: post_body
|
1522
|
+
)
|
1523
|
+
end
|
1524
|
+
# rubocop:enable Metrics/BlockLength
|
1525
|
+
end
|
1526
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1527
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1528
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1529
|
+
|
1530
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1531
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1532
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1533
|
+
|
1534
|
+
|
1535
|
+
# Submits a request to enable matching metric extension Id for the given Resource IDs
|
1536
|
+
#
|
1537
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
1538
|
+
# @param [OCI::StackMonitoring::Models::EnableMetricExtensionDetails] enable_metric_extension_details The list of Resource IDs for which given metric extension needs to be enabled
|
1539
|
+
# @param [Hash] opts the optional parameters
|
1540
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1541
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1542
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1543
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1544
|
+
# etag from a previous GET or POST response for that resource.
|
1545
|
+
# The resource will be updated or deleted only if the etag you
|
1546
|
+
# provide matches the resource's current etag value.
|
1547
|
+
#
|
1548
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1549
|
+
# particular request, please provide the request ID.
|
1550
|
+
#
|
1551
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1552
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1553
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1554
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1555
|
+
# might be rejected.
|
1556
|
+
#
|
1557
|
+
# @return [Response] A Response object with data of type nil
|
1558
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/enable_metric_extension.rb.html) to see an example of how to use enable_metric_extension API.
|
1559
|
+
def enable_metric_extension(metric_extension_id, enable_metric_extension_details, opts = {})
|
1560
|
+
logger.debug 'Calling operation StackMonitoringClient#enable_metric_extension.' if logger
|
1561
|
+
|
1562
|
+
raise "Missing the required parameter 'metric_extension_id' when calling enable_metric_extension." if metric_extension_id.nil?
|
1563
|
+
raise "Missing the required parameter 'enable_metric_extension_details' when calling enable_metric_extension." if enable_metric_extension_details.nil?
|
1564
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1565
|
+
|
1566
|
+
path = '/metricExtensions/{metricExtensionId}/actions/enable'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1567
|
+
operation_signing_strategy = :standard
|
1568
|
+
|
1569
|
+
# rubocop:disable Style/NegatedIf
|
1570
|
+
# Query Params
|
1571
|
+
query_params = {}
|
1572
|
+
|
1573
|
+
# Header Params
|
1574
|
+
header_params = {}
|
1575
|
+
header_params[:accept] = 'application/json'
|
1576
|
+
header_params[:'content-type'] = 'application/json'
|
1577
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1578
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1579
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1580
|
+
# rubocop:enable Style/NegatedIf
|
1581
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1582
|
+
|
1583
|
+
post_body = @api_client.object_to_http_body(enable_metric_extension_details)
|
1584
|
+
|
1585
|
+
# rubocop:disable Metrics/BlockLength
|
1586
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#enable_metric_extension') do
|
1587
|
+
@api_client.call_api(
|
1588
|
+
:POST,
|
1589
|
+
path,
|
1590
|
+
endpoint,
|
1591
|
+
header_params: header_params,
|
1592
|
+
query_params: query_params,
|
1593
|
+
operation_signing_strategy: operation_signing_strategy,
|
1594
|
+
body: post_body
|
1595
|
+
)
|
1596
|
+
end
|
1597
|
+
# rubocop:enable Metrics/BlockLength
|
1598
|
+
end
|
1599
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1600
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1601
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1602
|
+
|
1603
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1604
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1605
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1606
|
+
|
1607
|
+
|
1608
|
+
# Evaluates metric for anomalies for the given data points
|
1609
|
+
# @param [OCI::StackMonitoring::Models::EvaluateBaselineableMetricDetails] evaluate_baselineable_metric_details Metric details
|
1610
|
+
# @param [String] baselineable_metric_id Identifier for the metric
|
1611
|
+
# @param [Hash] opts the optional parameters
|
1612
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1613
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1614
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1615
|
+
# particular request, please provide the request ID.
|
1616
|
+
#
|
1617
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1618
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1619
|
+
# etag from a previous GET or POST response for that resource.
|
1620
|
+
# The resource will be updated or deleted only if the etag you
|
1621
|
+
# provide matches the resource's current etag value.
|
1622
|
+
#
|
1623
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1624
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1625
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1626
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1627
|
+
# might be rejected.
|
1628
|
+
#
|
1629
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::EvaluateBaselineableMetricResult EvaluateBaselineableMetricResult}
|
1630
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/evaluate_baselineable_metric.rb.html) to see an example of how to use evaluate_baselineable_metric API.
|
1631
|
+
def evaluate_baselineable_metric(evaluate_baselineable_metric_details, baselineable_metric_id, opts = {})
|
1632
|
+
logger.debug 'Calling operation StackMonitoringClient#evaluate_baselineable_metric.' if logger
|
1633
|
+
|
1634
|
+
raise "Missing the required parameter 'evaluate_baselineable_metric_details' when calling evaluate_baselineable_metric." if evaluate_baselineable_metric_details.nil?
|
1635
|
+
raise "Missing the required parameter 'baselineable_metric_id' when calling evaluate_baselineable_metric." if baselineable_metric_id.nil?
|
1636
|
+
raise "Parameter value for 'baselineable_metric_id' must not be blank" if OCI::Internal::Util.blank_string?(baselineable_metric_id)
|
1637
|
+
|
1638
|
+
path = '/baselineableMetrics/{baselineableMetricId}/actions/evaluate'.sub('{baselineableMetricId}', baselineable_metric_id.to_s)
|
1639
|
+
operation_signing_strategy = :standard
|
1640
|
+
|
1641
|
+
# rubocop:disable Style/NegatedIf
|
1642
|
+
# Query Params
|
1643
|
+
query_params = {}
|
1644
|
+
|
1645
|
+
# Header Params
|
1646
|
+
header_params = {}
|
1647
|
+
header_params[:accept] = 'application/json'
|
1648
|
+
header_params[:'content-type'] = 'application/json'
|
1649
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1650
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1651
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1652
|
+
# rubocop:enable Style/NegatedIf
|
1653
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1654
|
+
|
1655
|
+
post_body = @api_client.object_to_http_body(evaluate_baselineable_metric_details)
|
1656
|
+
|
1657
|
+
# rubocop:disable Metrics/BlockLength
|
1658
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#evaluate_baselineable_metric') do
|
1659
|
+
@api_client.call_api(
|
1660
|
+
:POST,
|
1661
|
+
path,
|
1662
|
+
endpoint,
|
1663
|
+
header_params: header_params,
|
1664
|
+
query_params: query_params,
|
1665
|
+
operation_signing_strategy: operation_signing_strategy,
|
1666
|
+
body: post_body,
|
1667
|
+
return_type: 'OCI::StackMonitoring::Models::EvaluateBaselineableMetricResult'
|
1668
|
+
)
|
1669
|
+
end
|
1670
|
+
# rubocop:enable Metrics/BlockLength
|
1671
|
+
end
|
1672
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1673
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1674
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1675
|
+
|
1676
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1677
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1678
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1679
|
+
|
1680
|
+
|
1681
|
+
# Export generates a template used to create new metric extension resources similar to matching metric extension id.
|
1682
|
+
# Response is a file that contains metric extension definition with placeholders for fields to be changed.
|
1683
|
+
#
|
1684
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
1685
|
+
# @param [Hash] opts the optional parameters
|
1686
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1687
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1688
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1689
|
+
# for a resource, set the `if-match` parameter to the value of the
|
1690
|
+
# etag from a previous GET or POST response for that resource.
|
1691
|
+
# The resource will be updated or deleted only if the etag you
|
1692
|
+
# provide matches the resource's current etag value.
|
1693
|
+
#
|
1694
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1695
|
+
# particular request, please provide the request ID.
|
1696
|
+
#
|
1697
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1698
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1699
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1700
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
1701
|
+
# might be rejected.
|
1702
|
+
#
|
1703
|
+
# @option opts [String, IO] :response_target Streaming http body into a file (specified by file name or File object) or IO object if the block is not given
|
1704
|
+
# @option [Block] &block Streaming http body to the block
|
1705
|
+
# @return [Response] A Response object with data of type String if response_target and block are not given, otherwise with nil data
|
1706
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/export_metric_extension.rb.html) to see an example of how to use export_metric_extension API.
|
1707
|
+
def export_metric_extension(metric_extension_id, opts = {}, &block)
|
1708
|
+
logger.debug 'Calling operation StackMonitoringClient#export_metric_extension.' if logger
|
1709
|
+
|
1710
|
+
raise "Missing the required parameter 'metric_extension_id' when calling export_metric_extension." if metric_extension_id.nil?
|
1711
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1712
|
+
|
1713
|
+
path = '/metricExtensions/{metricExtensionId}/actions/export'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1714
|
+
operation_signing_strategy = :standard
|
1715
|
+
|
1716
|
+
# rubocop:disable Style/NegatedIf
|
1717
|
+
# Query Params
|
1718
|
+
query_params = {}
|
1719
|
+
|
1720
|
+
# Header Params
|
1721
|
+
header_params = {}
|
1722
|
+
header_params[:accept] = opts[:accept] if opts[:accept]
|
1723
|
+
header_params[:accept] ||= 'application/json'
|
1724
|
+
header_params[:'accept-encoding'] = opts[:accept_encoding] if opts[:accept_encoding]
|
1725
|
+
header_params[:'content-type'] = 'application/json'
|
1726
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1727
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1728
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1729
|
+
# rubocop:enable Style/NegatedIf
|
1730
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1731
|
+
|
1732
|
+
post_body = nil
|
1733
|
+
|
1734
|
+
# rubocop:disable Metrics/BlockLength
|
1735
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#export_metric_extension') do
|
1736
|
+
if !block.nil?
|
1737
|
+
@api_client.call_api(
|
1738
|
+
:POST,
|
1739
|
+
path,
|
1740
|
+
endpoint,
|
1741
|
+
header_params: header_params,
|
1742
|
+
query_params: query_params,
|
1743
|
+
operation_signing_strategy: operation_signing_strategy,
|
1744
|
+
body: post_body,
|
1745
|
+
return_type: 'Stream',
|
1746
|
+
&block
|
1747
|
+
)
|
1748
|
+
elsif opts[:response_target]
|
1749
|
+
if opts[:response_target].respond_to? :write
|
1750
|
+
@api_client.call_api(
|
1751
|
+
:POST,
|
1752
|
+
path,
|
1753
|
+
endpoint,
|
1754
|
+
header_params: header_params,
|
1755
|
+
query_params: query_params,
|
1756
|
+
operation_signing_strategy: operation_signing_strategy,
|
1757
|
+
body: post_body,
|
1758
|
+
return_type: 'Stream',
|
1759
|
+
&proc { |chunk, _response| opts[:response_target].write(chunk) }
|
1760
|
+
)
|
1761
|
+
elsif opts[:response_target].is_a?(String)
|
1762
|
+
File.open(opts[:response_target], 'wb') do |output|
|
1763
|
+
return @api_client.call_api(
|
1764
|
+
:POST,
|
1765
|
+
path,
|
1766
|
+
endpoint,
|
1767
|
+
header_params: header_params,
|
1768
|
+
query_params: query_params,
|
1769
|
+
operation_signing_strategy: operation_signing_strategy,
|
1770
|
+
body: post_body,
|
1771
|
+
return_type: 'Stream',
|
1772
|
+
&proc { |chunk, _response| output.write(chunk) }
|
1773
|
+
)
|
1774
|
+
end
|
1775
|
+
end
|
1776
|
+
else
|
1777
|
+
@api_client.call_api(
|
1778
|
+
:POST,
|
1779
|
+
path,
|
1780
|
+
endpoint,
|
1781
|
+
header_params: header_params,
|
1782
|
+
query_params: query_params,
|
1783
|
+
operation_signing_strategy: operation_signing_strategy,
|
1784
|
+
body: post_body,
|
1785
|
+
return_type: 'String'
|
1786
|
+
)
|
1787
|
+
end
|
1788
|
+
end
|
1789
|
+
# rubocop:enable Metrics/BlockLength
|
1790
|
+
end
|
1791
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1792
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1793
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1794
|
+
|
1795
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1796
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1797
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1798
|
+
|
1799
|
+
|
1800
|
+
# Get the Baseline-able metric for the given id
|
1801
|
+
# @param [String] baselineable_metric_id Identifier for the metric
|
1802
|
+
# @param [Hash] opts the optional parameters
|
1803
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1804
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1805
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1806
|
+
# particular request, please provide the request ID.
|
1807
|
+
#
|
1808
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::BaselineableMetric BaselineableMetric}
|
1809
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_baselineable_metric.rb.html) to see an example of how to use get_baselineable_metric API.
|
1810
|
+
def get_baselineable_metric(baselineable_metric_id, opts = {})
|
1811
|
+
logger.debug 'Calling operation StackMonitoringClient#get_baselineable_metric.' if logger
|
1812
|
+
|
1813
|
+
raise "Missing the required parameter 'baselineable_metric_id' when calling get_baselineable_metric." if baselineable_metric_id.nil?
|
1814
|
+
raise "Parameter value for 'baselineable_metric_id' must not be blank" if OCI::Internal::Util.blank_string?(baselineable_metric_id)
|
1815
|
+
|
1816
|
+
path = '/baselineableMetrics/{baselineableMetricId}'.sub('{baselineableMetricId}', baselineable_metric_id.to_s)
|
1817
|
+
operation_signing_strategy = :standard
|
1818
|
+
|
1819
|
+
# rubocop:disable Style/NegatedIf
|
1820
|
+
# Query Params
|
1821
|
+
query_params = {}
|
1822
|
+
|
1823
|
+
# Header Params
|
1824
|
+
header_params = {}
|
1825
|
+
header_params[:accept] = 'application/json'
|
1826
|
+
header_params[:'content-type'] = 'application/json'
|
1827
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1828
|
+
# rubocop:enable Style/NegatedIf
|
1829
|
+
|
1830
|
+
post_body = nil
|
1831
|
+
|
1832
|
+
# rubocop:disable Metrics/BlockLength
|
1833
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_baselineable_metric') do
|
1834
|
+
@api_client.call_api(
|
1835
|
+
:GET,
|
1836
|
+
path,
|
1837
|
+
endpoint,
|
1838
|
+
header_params: header_params,
|
1839
|
+
query_params: query_params,
|
1840
|
+
operation_signing_strategy: operation_signing_strategy,
|
1841
|
+
body: post_body,
|
1842
|
+
return_type: 'OCI::StackMonitoring::Models::BaselineableMetric'
|
1843
|
+
)
|
1844
|
+
end
|
1845
|
+
# rubocop:enable Metrics/BlockLength
|
1846
|
+
end
|
1847
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1848
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1849
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1850
|
+
|
1851
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1852
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1853
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1854
|
+
|
1855
|
+
|
1856
|
+
# Gets the details of a configuration.
|
1857
|
+
# @param [String] config_id Unique Config identifier.
|
1858
|
+
# @param [Hash] opts the optional parameters
|
1859
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1860
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1861
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1862
|
+
# particular request, please provide the request ID.
|
1863
|
+
#
|
1864
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::Config Config}
|
1865
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_config.rb.html) to see an example of how to use get_config API.
|
1866
|
+
def get_config(config_id, opts = {})
|
1867
|
+
logger.debug 'Calling operation StackMonitoringClient#get_config.' if logger
|
1868
|
+
|
1869
|
+
raise "Missing the required parameter 'config_id' when calling get_config." if config_id.nil?
|
1870
|
+
raise "Parameter value for 'config_id' must not be blank" if OCI::Internal::Util.blank_string?(config_id)
|
1871
|
+
|
1872
|
+
path = '/configs/{configId}'.sub('{configId}', config_id.to_s)
|
1873
|
+
operation_signing_strategy = :standard
|
1874
|
+
|
1875
|
+
# rubocop:disable Style/NegatedIf
|
1876
|
+
# Query Params
|
1877
|
+
query_params = {}
|
1878
|
+
|
1879
|
+
# Header Params
|
1880
|
+
header_params = {}
|
1881
|
+
header_params[:accept] = 'application/json'
|
1882
|
+
header_params[:'content-type'] = 'application/json'
|
1883
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1884
|
+
# rubocop:enable Style/NegatedIf
|
1885
|
+
|
1886
|
+
post_body = nil
|
1887
|
+
|
1888
|
+
# rubocop:disable Metrics/BlockLength
|
1889
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_config') do
|
1890
|
+
@api_client.call_api(
|
1891
|
+
:GET,
|
1892
|
+
path,
|
1893
|
+
endpoint,
|
1894
|
+
header_params: header_params,
|
1895
|
+
query_params: query_params,
|
1896
|
+
operation_signing_strategy: operation_signing_strategy,
|
1897
|
+
body: post_body,
|
1898
|
+
return_type: 'OCI::StackMonitoring::Models::Config'
|
1899
|
+
)
|
1900
|
+
end
|
1901
|
+
# rubocop:enable Metrics/BlockLength
|
1902
|
+
end
|
1903
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1904
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1905
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1906
|
+
|
1907
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1908
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1909
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1910
|
+
|
1911
|
+
|
1912
|
+
# API to get the details of discovery Job by identifier.
|
1913
|
+
#
|
1914
|
+
# @param [String] discovery_job_id The Discovery Job ID
|
1915
|
+
# @param [Hash] opts the optional parameters
|
1916
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1917
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1918
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1919
|
+
# particular request, please provide the request ID.
|
1920
|
+
#
|
1921
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::DiscoveryJob DiscoveryJob}
|
1922
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_discovery_job.rb.html) to see an example of how to use get_discovery_job API.
|
1923
|
+
def get_discovery_job(discovery_job_id, opts = {})
|
1924
|
+
logger.debug 'Calling operation StackMonitoringClient#get_discovery_job.' if logger
|
1925
|
+
|
1926
|
+
raise "Missing the required parameter 'discovery_job_id' when calling get_discovery_job." if discovery_job_id.nil?
|
1927
|
+
raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id)
|
1928
|
+
|
1929
|
+
path = '/discoveryJobs/{discoveryJobId}'.sub('{discoveryJobId}', discovery_job_id.to_s)
|
1930
|
+
operation_signing_strategy = :standard
|
1931
|
+
|
1932
|
+
# rubocop:disable Style/NegatedIf
|
1933
|
+
# Query Params
|
1934
|
+
query_params = {}
|
1935
|
+
|
1936
|
+
# Header Params
|
1937
|
+
header_params = {}
|
1938
|
+
header_params[:accept] = 'application/json'
|
1939
|
+
header_params[:'content-type'] = 'application/json'
|
1940
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1941
|
+
# rubocop:enable Style/NegatedIf
|
1942
|
+
|
1943
|
+
post_body = nil
|
1944
|
+
|
1945
|
+
# rubocop:disable Metrics/BlockLength
|
1946
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_discovery_job') do
|
1947
|
+
@api_client.call_api(
|
1948
|
+
:GET,
|
1949
|
+
path,
|
1950
|
+
endpoint,
|
1951
|
+
header_params: header_params,
|
1952
|
+
query_params: query_params,
|
1953
|
+
operation_signing_strategy: operation_signing_strategy,
|
1954
|
+
body: post_body,
|
1955
|
+
return_type: 'OCI::StackMonitoring::Models::DiscoveryJob'
|
1956
|
+
)
|
1957
|
+
end
|
1958
|
+
# rubocop:enable Metrics/BlockLength
|
1959
|
+
end
|
1960
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1961
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
1962
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
1963
|
+
|
1964
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
1965
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
1966
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1967
|
+
|
1968
|
+
|
1969
|
+
# Gets a Metric Extension by identifier
|
1970
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
1971
|
+
# @param [Hash] opts the optional parameters
|
1972
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1973
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1974
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1975
|
+
# particular request, please provide the request ID.
|
1976
|
+
#
|
1977
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MetricExtension MetricExtension}
|
1978
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_metric_extension.rb.html) to see an example of how to use get_metric_extension API.
|
1979
|
+
def get_metric_extension(metric_extension_id, opts = {})
|
1980
|
+
logger.debug 'Calling operation StackMonitoringClient#get_metric_extension.' if logger
|
1981
|
+
|
1982
|
+
raise "Missing the required parameter 'metric_extension_id' when calling get_metric_extension." if metric_extension_id.nil?
|
1983
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1984
|
+
|
1985
|
+
path = '/metricExtensions/{metricExtensionId}'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1986
|
+
operation_signing_strategy = :standard
|
1987
|
+
|
1988
|
+
# rubocop:disable Style/NegatedIf
|
1989
|
+
# Query Params
|
1990
|
+
query_params = {}
|
1991
|
+
|
1992
|
+
# Header Params
|
1993
|
+
header_params = {}
|
1994
|
+
header_params[:accept] = 'application/json'
|
1995
|
+
header_params[:'content-type'] = 'application/json'
|
1996
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1997
|
+
# rubocop:enable Style/NegatedIf
|
1998
|
+
|
1999
|
+
post_body = nil
|
2000
|
+
|
2001
|
+
# rubocop:disable Metrics/BlockLength
|
2002
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_metric_extension') do
|
2003
|
+
@api_client.call_api(
|
2004
|
+
:GET,
|
2005
|
+
path,
|
2006
|
+
endpoint,
|
2007
|
+
header_params: header_params,
|
2008
|
+
query_params: query_params,
|
2009
|
+
operation_signing_strategy: operation_signing_strategy,
|
2010
|
+
body: post_body,
|
2011
|
+
return_type: 'OCI::StackMonitoring::Models::MetricExtension'
|
2012
|
+
)
|
2013
|
+
end
|
2014
|
+
# rubocop:enable Metrics/BlockLength
|
2015
|
+
end
|
2016
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2017
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2018
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2019
|
+
|
2020
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2021
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2022
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2023
|
+
|
2024
|
+
|
2025
|
+
# Get monitored resource for the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2026
|
+
#
|
2027
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
2028
|
+
# @param [Hash] opts the optional parameters
|
2029
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2030
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2031
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2032
|
+
# particular request, please provide the request ID.
|
2033
|
+
#
|
2034
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResource MonitoredResource}
|
2035
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_monitored_resource.rb.html) to see an example of how to use get_monitored_resource API.
|
2036
|
+
def get_monitored_resource(monitored_resource_id, opts = {})
|
2037
|
+
logger.debug 'Calling operation StackMonitoringClient#get_monitored_resource.' if logger
|
2038
|
+
|
2039
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling get_monitored_resource." if monitored_resource_id.nil?
|
2040
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
2041
|
+
|
2042
|
+
path = '/monitoredResources/{monitoredResourceId}'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
2043
|
+
operation_signing_strategy = :standard
|
2044
|
+
|
2045
|
+
# rubocop:disable Style/NegatedIf
|
2046
|
+
# Query Params
|
2047
|
+
query_params = {}
|
2048
|
+
|
2049
|
+
# Header Params
|
2050
|
+
header_params = {}
|
2051
|
+
header_params[:accept] = 'application/json'
|
2052
|
+
header_params[:'content-type'] = 'application/json'
|
2053
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2054
|
+
# rubocop:enable Style/NegatedIf
|
2055
|
+
|
2056
|
+
post_body = nil
|
2057
|
+
|
2058
|
+
# rubocop:disable Metrics/BlockLength
|
2059
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_monitored_resource') do
|
2060
|
+
@api_client.call_api(
|
2061
|
+
:GET,
|
2062
|
+
path,
|
2063
|
+
endpoint,
|
2064
|
+
header_params: header_params,
|
2065
|
+
query_params: query_params,
|
2066
|
+
operation_signing_strategy: operation_signing_strategy,
|
2067
|
+
body: post_body,
|
2068
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResource'
|
2069
|
+
)
|
2070
|
+
end
|
2071
|
+
# rubocop:enable Metrics/BlockLength
|
2072
|
+
end
|
2073
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2074
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2075
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2076
|
+
|
2077
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2078
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2079
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2080
|
+
|
2081
|
+
|
2082
|
+
# Gets stack monitoring resource task details by identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2083
|
+
# @param [String] monitored_resource_task_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of stack monitoring resource task.
|
2084
|
+
# @param [Hash] opts the optional parameters
|
2085
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2086
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2087
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2088
|
+
# particular request, please provide the request ID.
|
2089
|
+
#
|
2090
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceTask MonitoredResourceTask}
|
2091
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_monitored_resource_task.rb.html) to see an example of how to use get_monitored_resource_task API.
|
2092
|
+
def get_monitored_resource_task(monitored_resource_task_id, opts = {})
|
2093
|
+
logger.debug 'Calling operation StackMonitoringClient#get_monitored_resource_task.' if logger
|
2094
|
+
|
2095
|
+
raise "Missing the required parameter 'monitored_resource_task_id' when calling get_monitored_resource_task." if monitored_resource_task_id.nil?
|
2096
|
+
raise "Parameter value for 'monitored_resource_task_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_task_id)
|
2097
|
+
|
2098
|
+
path = '/monitoredResourceTasks/{monitoredResourceTaskId}'.sub('{monitoredResourceTaskId}', monitored_resource_task_id.to_s)
|
2099
|
+
operation_signing_strategy = :standard
|
2100
|
+
|
2101
|
+
# rubocop:disable Style/NegatedIf
|
2102
|
+
# Query Params
|
2103
|
+
query_params = {}
|
2104
|
+
|
2105
|
+
# Header Params
|
2106
|
+
header_params = {}
|
2107
|
+
header_params[:accept] = 'application/json'
|
2108
|
+
header_params[:'content-type'] = 'application/json'
|
2109
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2110
|
+
# rubocop:enable Style/NegatedIf
|
2111
|
+
|
2112
|
+
post_body = nil
|
2113
|
+
|
2114
|
+
# rubocop:disable Metrics/BlockLength
|
2115
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_monitored_resource_task') do
|
2116
|
+
@api_client.call_api(
|
2117
|
+
:GET,
|
2118
|
+
path,
|
2119
|
+
endpoint,
|
2120
|
+
header_params: header_params,
|
2121
|
+
query_params: query_params,
|
2122
|
+
operation_signing_strategy: operation_signing_strategy,
|
2123
|
+
body: post_body,
|
2124
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceTask'
|
2125
|
+
)
|
2126
|
+
end
|
2127
|
+
# rubocop:enable Metrics/BlockLength
|
2128
|
+
end
|
2129
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2130
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2131
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2132
|
+
|
2133
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2134
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2135
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2136
|
+
|
2137
|
+
|
2138
|
+
# Gets a monitored resource type by identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2139
|
+
# @param [String] monitored_resource_type_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource type.
|
2140
|
+
# @param [Hash] opts the optional parameters
|
2141
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2142
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2143
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2144
|
+
# particular request, please provide the request ID.
|
2145
|
+
#
|
2146
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceType MonitoredResourceType}
|
2147
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_monitored_resource_type.rb.html) to see an example of how to use get_monitored_resource_type API.
|
2148
|
+
def get_monitored_resource_type(monitored_resource_type_id, opts = {})
|
2149
|
+
logger.debug 'Calling operation StackMonitoringClient#get_monitored_resource_type.' if logger
|
2150
|
+
|
2151
|
+
raise "Missing the required parameter 'monitored_resource_type_id' when calling get_monitored_resource_type." if monitored_resource_type_id.nil?
|
2152
|
+
raise "Parameter value for 'monitored_resource_type_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_type_id)
|
2153
|
+
|
2154
|
+
path = '/monitoredResourceTypes/{monitoredResourceTypeId}'.sub('{monitoredResourceTypeId}', monitored_resource_type_id.to_s)
|
2155
|
+
operation_signing_strategy = :standard
|
2156
|
+
|
2157
|
+
# rubocop:disable Style/NegatedIf
|
2158
|
+
# Query Params
|
2159
|
+
query_params = {}
|
2160
|
+
|
2161
|
+
# Header Params
|
2162
|
+
header_params = {}
|
2163
|
+
header_params[:accept] = 'application/json'
|
2164
|
+
header_params[:'content-type'] = 'application/json'
|
2165
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2166
|
+
# rubocop:enable Style/NegatedIf
|
2167
|
+
|
2168
|
+
post_body = nil
|
2169
|
+
|
2170
|
+
# rubocop:disable Metrics/BlockLength
|
2171
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_monitored_resource_type') do
|
2172
|
+
@api_client.call_api(
|
2173
|
+
:GET,
|
2174
|
+
path,
|
2175
|
+
endpoint,
|
2176
|
+
header_params: header_params,
|
2177
|
+
query_params: query_params,
|
2178
|
+
operation_signing_strategy: operation_signing_strategy,
|
2179
|
+
body: post_body,
|
2180
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceType'
|
2181
|
+
)
|
2182
|
+
end
|
2183
|
+
# rubocop:enable Metrics/BlockLength
|
2184
|
+
end
|
2185
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2186
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2187
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2188
|
+
|
2189
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2190
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2191
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2192
|
+
|
2193
|
+
|
2194
|
+
# Gets the status of the work request with the given ID.
|
2195
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
|
2196
|
+
# @param [Hash] opts the optional parameters
|
2197
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2198
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2199
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2200
|
+
# particular request, please provide the request ID.
|
2201
|
+
#
|
2202
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequest WorkRequest}
|
2203
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/get_work_request.rb.html) to see an example of how to use get_work_request API.
|
2204
|
+
def get_work_request(work_request_id, opts = {})
|
2205
|
+
logger.debug 'Calling operation StackMonitoringClient#get_work_request.' if logger
|
2206
|
+
|
2207
|
+
raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
|
2208
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
2209
|
+
|
2210
|
+
path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
|
2211
|
+
operation_signing_strategy = :standard
|
2212
|
+
|
2213
|
+
# rubocop:disable Style/NegatedIf
|
2214
|
+
# Query Params
|
2215
|
+
query_params = {}
|
2216
|
+
|
2217
|
+
# Header Params
|
2218
|
+
header_params = {}
|
2219
|
+
header_params[:accept] = 'application/json'
|
2220
|
+
header_params[:'content-type'] = 'application/json'
|
2221
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2222
|
+
# rubocop:enable Style/NegatedIf
|
2223
|
+
|
2224
|
+
post_body = nil
|
2225
|
+
|
2226
|
+
# rubocop:disable Metrics/BlockLength
|
2227
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#get_work_request') do
|
2228
|
+
@api_client.call_api(
|
2229
|
+
:GET,
|
2230
|
+
path,
|
2231
|
+
endpoint,
|
2232
|
+
header_params: header_params,
|
2233
|
+
query_params: query_params,
|
2234
|
+
operation_signing_strategy: operation_signing_strategy,
|
2235
|
+
body: post_body,
|
2236
|
+
return_type: 'OCI::StackMonitoring::Models::WorkRequest'
|
2237
|
+
)
|
2238
|
+
end
|
2239
|
+
# rubocop:enable Metrics/BlockLength
|
2240
|
+
end
|
2241
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2242
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2243
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2244
|
+
|
2245
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2246
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2247
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2248
|
+
|
2249
|
+
|
2250
|
+
# List of summary of baseline-able metrics for a given resource group if specified.
|
2251
|
+
# @param [Hash] opts the optional parameters
|
2252
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2253
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2254
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2255
|
+
# particular request, please provide the request ID.
|
2256
|
+
#
|
2257
|
+
# @option opts [String] :resource_group Resource Group
|
2258
|
+
# @option opts [String] :name Metric Name
|
2259
|
+
# @option opts [String] :metric_namespace A filter to return monitored resource types that has the matching namespace.
|
2260
|
+
#
|
2261
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2262
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2263
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2264
|
+
# (default to 10)
|
2265
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2266
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2267
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2268
|
+
#
|
2269
|
+
# @option opts [String] :compartment_id The ID of the compartment in which data is listed.
|
2270
|
+
# @option opts [String] :baselineable_metric_id Identifier for the metric
|
2271
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2272
|
+
# (default to ASC)
|
2273
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order is ascending.
|
2274
|
+
# (default to name)
|
2275
|
+
# Allowed values are: name, namespace, resourceGroup
|
2276
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::BaselineableMetricSummaryCollection BaselineableMetricSummaryCollection}
|
2277
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_baselineable_metrics.rb.html) to see an example of how to use list_baselineable_metrics API.
|
2278
|
+
def list_baselineable_metrics(opts = {})
|
2279
|
+
logger.debug 'Calling operation StackMonitoringClient#list_baselineable_metrics.' if logger
|
2280
|
+
|
2281
|
+
|
2282
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2283
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2284
|
+
end
|
2285
|
+
|
2286
|
+
if opts[:sort_by] && !%w[name namespace resourceGroup].include?(opts[:sort_by])
|
2287
|
+
raise 'Invalid value for "sort_by", must be one of name, namespace, resourceGroup.'
|
2288
|
+
end
|
2289
|
+
|
2290
|
+
path = '/baselineableMetrics'
|
2291
|
+
operation_signing_strategy = :standard
|
2292
|
+
|
2293
|
+
# rubocop:disable Style/NegatedIf
|
2294
|
+
# Query Params
|
2295
|
+
query_params = {}
|
2296
|
+
query_params[:resourceGroup] = opts[:resource_group] if opts[:resource_group]
|
2297
|
+
query_params[:name] = opts[:name] if opts[:name]
|
2298
|
+
query_params[:metricNamespace] = opts[:metric_namespace] if opts[:metric_namespace]
|
2299
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2300
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2301
|
+
query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
|
2302
|
+
query_params[:baselineableMetricId] = opts[:baselineable_metric_id] if opts[:baselineable_metric_id]
|
2303
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2304
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2305
|
+
|
2306
|
+
# Header Params
|
2307
|
+
header_params = {}
|
2308
|
+
header_params[:accept] = 'application/json'
|
2309
|
+
header_params[:'content-type'] = 'application/json'
|
2310
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2311
|
+
# rubocop:enable Style/NegatedIf
|
2312
|
+
|
2313
|
+
post_body = nil
|
2314
|
+
|
2315
|
+
# rubocop:disable Metrics/BlockLength
|
2316
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_baselineable_metrics') do
|
2317
|
+
@api_client.call_api(
|
2318
|
+
:GET,
|
2319
|
+
path,
|
2320
|
+
endpoint,
|
2321
|
+
header_params: header_params,
|
2322
|
+
query_params: query_params,
|
2323
|
+
operation_signing_strategy: operation_signing_strategy,
|
2324
|
+
body: post_body,
|
2325
|
+
return_type: 'OCI::StackMonitoring::Models::BaselineableMetricSummaryCollection'
|
2326
|
+
)
|
2327
|
+
end
|
2328
|
+
# rubocop:enable Metrics/BlockLength
|
2329
|
+
end
|
2330
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2331
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2332
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2333
|
+
|
2334
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2335
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2336
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2337
|
+
|
2338
|
+
|
2339
|
+
# Get a list of configurations in a compartment.
|
2340
|
+
#
|
2341
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
2342
|
+
# @param [Hash] opts the optional parameters
|
2343
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2344
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2345
|
+
# @option opts [String] :display_name A filter to return only resources that match the entire display name given.
|
2346
|
+
# @option opts [String] :type A filter to return only configuration items for a given config type.
|
2347
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2348
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2349
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2350
|
+
# (default to 10)
|
2351
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2352
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2353
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2354
|
+
#
|
2355
|
+
# @option opts [String] :lifecycle_state The current state of the Config.
|
2356
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2357
|
+
# (default to ASC)
|
2358
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
2359
|
+
# Default order for 'timeCreated' is descending.
|
2360
|
+
# Default order for 'displayName' and 'configType' is ascending.
|
2361
|
+
# (default to timeCreated)
|
2362
|
+
# Allowed values are: timeCreated, configType, displayName
|
2363
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2364
|
+
# particular request, please provide the request ID.
|
2365
|
+
#
|
2366
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::ConfigCollection ConfigCollection}
|
2367
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_configs.rb.html) to see an example of how to use list_configs API.
|
2368
|
+
def list_configs(compartment_id, opts = {})
|
2369
|
+
logger.debug 'Calling operation StackMonitoringClient#list_configs.' if logger
|
2370
|
+
|
2371
|
+
raise "Missing the required parameter 'compartment_id' when calling list_configs." if compartment_id.nil?
|
2372
|
+
|
2373
|
+
if opts[:type] && !OCI::StackMonitoring::Models::Config::CONFIG_TYPE_ENUM.include?(opts[:type])
|
2374
|
+
raise 'Invalid value for "type", must be one of the values in OCI::StackMonitoring::Models::Config::CONFIG_TYPE_ENUM.'
|
2375
|
+
end
|
2376
|
+
|
2377
|
+
if opts[:lifecycle_state] && !OCI::StackMonitoring::Models::Config::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
|
2378
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::StackMonitoring::Models::Config::LIFECYCLE_STATE_ENUM.'
|
2379
|
+
end
|
2380
|
+
|
2381
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2382
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2383
|
+
end
|
2384
|
+
|
2385
|
+
if opts[:sort_by] && !%w[timeCreated configType displayName].include?(opts[:sort_by])
|
2386
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, configType, displayName.'
|
2387
|
+
end
|
2388
|
+
|
2389
|
+
path = '/configs'
|
2390
|
+
operation_signing_strategy = :standard
|
2391
|
+
|
2392
|
+
# rubocop:disable Style/NegatedIf
|
2393
|
+
# Query Params
|
2394
|
+
query_params = {}
|
2395
|
+
query_params[:compartmentId] = compartment_id
|
2396
|
+
query_params[:displayName] = opts[:display_name] if opts[:display_name]
|
2397
|
+
query_params[:type] = opts[:type] if opts[:type]
|
2398
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2399
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2400
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
2401
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2402
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2403
|
+
|
2404
|
+
# Header Params
|
2405
|
+
header_params = {}
|
2406
|
+
header_params[:accept] = 'application/json'
|
2407
|
+
header_params[:'content-type'] = 'application/json'
|
2408
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2409
|
+
# rubocop:enable Style/NegatedIf
|
2410
|
+
|
2411
|
+
post_body = nil
|
2412
|
+
|
2413
|
+
# rubocop:disable Metrics/BlockLength
|
2414
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_configs') do
|
2415
|
+
@api_client.call_api(
|
2416
|
+
:GET,
|
2417
|
+
path,
|
2418
|
+
endpoint,
|
2419
|
+
header_params: header_params,
|
2420
|
+
query_params: query_params,
|
2421
|
+
operation_signing_strategy: operation_signing_strategy,
|
2422
|
+
body: post_body,
|
2423
|
+
return_type: 'OCI::StackMonitoring::Models::ConfigCollection'
|
2424
|
+
)
|
2425
|
+
end
|
2426
|
+
# rubocop:enable Metrics/BlockLength
|
2427
|
+
end
|
2428
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2429
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2430
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2431
|
+
|
2432
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2433
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2434
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2435
|
+
|
2436
|
+
|
2437
|
+
# API to get all the logs of a Discovery Job.
|
2438
|
+
#
|
2439
|
+
# @param [String] discovery_job_id The Discovery Job ID
|
2440
|
+
# @param [Hash] opts the optional parameters
|
2441
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2442
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2443
|
+
# @option opts [String] :log_type The log type like INFO, WARNING, ERROR, SUCCESS
|
2444
|
+
# Allowed values are: INFO, WARNING, ERROR, SUCCESS
|
2445
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2446
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2447
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2448
|
+
# (default to 10)
|
2449
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2450
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2451
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2452
|
+
#
|
2453
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2454
|
+
# (default to ASC)
|
2455
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for logType is ascending.
|
2456
|
+
# (default to timeCreated)
|
2457
|
+
# Allowed values are: timeCreated, logType
|
2458
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2459
|
+
# particular request, please provide the request ID.
|
2460
|
+
#
|
2461
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::DiscoveryJobLogCollection DiscoveryJobLogCollection}
|
2462
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_discovery_job_logs.rb.html) to see an example of how to use list_discovery_job_logs API.
|
2463
|
+
def list_discovery_job_logs(discovery_job_id, opts = {})
|
2464
|
+
logger.debug 'Calling operation StackMonitoringClient#list_discovery_job_logs.' if logger
|
2465
|
+
|
2466
|
+
raise "Missing the required parameter 'discovery_job_id' when calling list_discovery_job_logs." if discovery_job_id.nil?
|
2467
|
+
|
2468
|
+
if opts[:log_type] && !%w[INFO WARNING ERROR SUCCESS].include?(opts[:log_type])
|
2469
|
+
raise 'Invalid value for "log_type", must be one of INFO, WARNING, ERROR, SUCCESS.'
|
2470
|
+
end
|
2471
|
+
|
2472
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2473
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2474
|
+
end
|
2475
|
+
|
2476
|
+
if opts[:sort_by] && !%w[timeCreated logType].include?(opts[:sort_by])
|
2477
|
+
raise 'Invalid value for "sort_by", must be one of timeCreated, logType.'
|
2478
|
+
end
|
2479
|
+
raise "Parameter value for 'discovery_job_id' must not be blank" if OCI::Internal::Util.blank_string?(discovery_job_id)
|
2480
|
+
|
2481
|
+
path = '/discoveryJobs/{discoveryJobId}/logs'.sub('{discoveryJobId}', discovery_job_id.to_s)
|
2482
|
+
operation_signing_strategy = :standard
|
2483
|
+
|
2484
|
+
# rubocop:disable Style/NegatedIf
|
2485
|
+
# Query Params
|
2486
|
+
query_params = {}
|
2487
|
+
query_params[:logType] = opts[:log_type] if opts[:log_type]
|
2488
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2489
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2490
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2491
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2492
|
+
|
2493
|
+
# Header Params
|
2494
|
+
header_params = {}
|
2495
|
+
header_params[:accept] = 'application/json'
|
2496
|
+
header_params[:'content-type'] = 'application/json'
|
2497
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2498
|
+
# rubocop:enable Style/NegatedIf
|
2499
|
+
|
2500
|
+
post_body = nil
|
2501
|
+
|
2502
|
+
# rubocop:disable Metrics/BlockLength
|
2503
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_discovery_job_logs') do
|
2504
|
+
@api_client.call_api(
|
2505
|
+
:GET,
|
2506
|
+
path,
|
2507
|
+
endpoint,
|
2508
|
+
header_params: header_params,
|
2509
|
+
query_params: query_params,
|
2510
|
+
operation_signing_strategy: operation_signing_strategy,
|
2511
|
+
body: post_body,
|
2512
|
+
return_type: 'OCI::StackMonitoring::Models::DiscoveryJobLogCollection'
|
2513
|
+
)
|
2514
|
+
end
|
2515
|
+
# rubocop:enable Metrics/BlockLength
|
2516
|
+
end
|
2517
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2518
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2519
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2520
|
+
|
2521
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2522
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2523
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2524
|
+
|
2525
|
+
|
2526
|
+
# API to get the details of all Discovery Jobs.
|
2527
|
+
#
|
2528
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
2529
|
+
# @param [Hash] opts the optional parameters
|
2530
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2531
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2532
|
+
# @option opts [String] :name A filter to return only discovery jobs that match the entire resource name given.
|
2533
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2534
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2535
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2536
|
+
# (default to 10)
|
2537
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2538
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2539
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2540
|
+
#
|
2541
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2542
|
+
# (default to ASC)
|
2543
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeUpdated is descending. Default order for resourceName is ascending.
|
2544
|
+
# (default to timeUpdated)
|
2545
|
+
# Allowed values are: timeUpdated, resourceName
|
2546
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2547
|
+
# particular request, please provide the request ID.
|
2548
|
+
#
|
2549
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::DiscoveryJobCollection DiscoveryJobCollection}
|
2550
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_discovery_jobs.rb.html) to see an example of how to use list_discovery_jobs API.
|
2551
|
+
def list_discovery_jobs(compartment_id, opts = {})
|
2552
|
+
logger.debug 'Calling operation StackMonitoringClient#list_discovery_jobs.' if logger
|
2553
|
+
|
2554
|
+
raise "Missing the required parameter 'compartment_id' when calling list_discovery_jobs." if compartment_id.nil?
|
2555
|
+
|
2556
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2557
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2558
|
+
end
|
2559
|
+
|
2560
|
+
if opts[:sort_by] && !%w[timeUpdated resourceName].include?(opts[:sort_by])
|
2561
|
+
raise 'Invalid value for "sort_by", must be one of timeUpdated, resourceName.'
|
2562
|
+
end
|
2563
|
+
|
2564
|
+
path = '/discoveryJobs'
|
2565
|
+
operation_signing_strategy = :standard
|
2566
|
+
|
2567
|
+
# rubocop:disable Style/NegatedIf
|
2568
|
+
# Query Params
|
2569
|
+
query_params = {}
|
2570
|
+
query_params[:compartmentId] = compartment_id
|
2571
|
+
query_params[:name] = opts[:name] if opts[:name]
|
2572
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2573
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2574
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2575
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2576
|
+
|
2577
|
+
# Header Params
|
2578
|
+
header_params = {}
|
2579
|
+
header_params[:accept] = 'application/json'
|
2580
|
+
header_params[:'content-type'] = 'application/json'
|
2581
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2582
|
+
# rubocop:enable Style/NegatedIf
|
2583
|
+
|
2584
|
+
post_body = nil
|
2585
|
+
|
2586
|
+
# rubocop:disable Metrics/BlockLength
|
2587
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_discovery_jobs') do
|
2588
|
+
@api_client.call_api(
|
2589
|
+
:GET,
|
2590
|
+
path,
|
2591
|
+
endpoint,
|
2592
|
+
header_params: header_params,
|
2593
|
+
query_params: query_params,
|
2594
|
+
operation_signing_strategy: operation_signing_strategy,
|
2595
|
+
body: post_body,
|
2596
|
+
return_type: 'OCI::StackMonitoring::Models::DiscoveryJobCollection'
|
2597
|
+
)
|
2598
|
+
end
|
2599
|
+
# rubocop:enable Metrics/BlockLength
|
2600
|
+
end
|
2601
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2602
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2603
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2604
|
+
|
2605
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2606
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2607
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2608
|
+
|
2609
|
+
|
2610
|
+
# Returns a list of metric extensions
|
2611
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
2612
|
+
# @param [Hash] opts the optional parameters
|
2613
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2614
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2615
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2616
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2617
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2618
|
+
# (default to 10)
|
2619
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2620
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2621
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2622
|
+
#
|
2623
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
2624
|
+
# Default order for timeCreated is descending. Default order for resources is ascending.
|
2625
|
+
# (default to TIME_CREATED)
|
2626
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2627
|
+
# (default to ASC)
|
2628
|
+
# @option opts [String] :resource_type A filter to return resources based on resource type.
|
2629
|
+
# @option opts [String] :name A filter to return resources based on name.
|
2630
|
+
# @option opts [String] :status A filter to return resources based on status e.g. Draft or Published
|
2631
|
+
# @option opts [String] :lifecycle_state A filter to return metric extensions based on Lifecycle State
|
2632
|
+
# @option opts [String] :enabled_on_resource_id A filter to return metric extensions based on input resource Id on which metric extension is enabled
|
2633
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2634
|
+
# particular request, please provide the request ID.
|
2635
|
+
#
|
2636
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MetricExtensionCollection MetricExtensionCollection}
|
2637
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_metric_extensions.rb.html) to see an example of how to use list_metric_extensions API.
|
2638
|
+
def list_metric_extensions(compartment_id, opts = {})
|
2639
|
+
logger.debug 'Calling operation StackMonitoringClient#list_metric_extensions.' if logger
|
2640
|
+
|
2641
|
+
raise "Missing the required parameter 'compartment_id' when calling list_metric_extensions." if compartment_id.nil?
|
2642
|
+
|
2643
|
+
if opts[:sort_by] && !OCI::StackMonitoring::Models::METRIC_EXTENSION_SORT_BY_ENUM.include?(opts[:sort_by])
|
2644
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::StackMonitoring::Models::METRIC_EXTENSION_SORT_BY_ENUM.'
|
2645
|
+
end
|
2646
|
+
|
2647
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2648
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2649
|
+
end
|
2650
|
+
|
2651
|
+
if opts[:status] && !OCI::StackMonitoring::Models::METRIC_EXTENSION_LIFE_CYCLE_DETAILS_ENUM.include?(opts[:status])
|
2652
|
+
raise 'Invalid value for "status", must be one of the values in OCI::StackMonitoring::Models::METRIC_EXTENSION_LIFE_CYCLE_DETAILS_ENUM.'
|
2653
|
+
end
|
2654
|
+
|
2655
|
+
if opts[:lifecycle_state] && !OCI::StackMonitoring::Models::METRIC_EXTENSION_LIFE_CYCLE_STATES_ENUM.include?(opts[:lifecycle_state])
|
2656
|
+
raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::StackMonitoring::Models::METRIC_EXTENSION_LIFE_CYCLE_STATES_ENUM.'
|
2657
|
+
end
|
2658
|
+
|
2659
|
+
path = '/metricExtensions'
|
2660
|
+
operation_signing_strategy = :standard
|
2661
|
+
|
2662
|
+
# rubocop:disable Style/NegatedIf
|
2663
|
+
# Query Params
|
2664
|
+
query_params = {}
|
2665
|
+
query_params[:compartmentId] = compartment_id
|
2666
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2667
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2668
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2669
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2670
|
+
query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
|
2671
|
+
query_params[:name] = opts[:name] if opts[:name]
|
2672
|
+
query_params[:status] = opts[:status] if opts[:status]
|
2673
|
+
query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
|
2674
|
+
query_params[:enabledOnResourceId] = opts[:enabled_on_resource_id] if opts[:enabled_on_resource_id]
|
2675
|
+
|
2676
|
+
# Header Params
|
2677
|
+
header_params = {}
|
2678
|
+
header_params[:accept] = 'application/json'
|
2679
|
+
header_params[:'content-type'] = 'application/json'
|
2680
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2681
|
+
# rubocop:enable Style/NegatedIf
|
2682
|
+
|
2683
|
+
post_body = nil
|
2684
|
+
|
2685
|
+
# rubocop:disable Metrics/BlockLength
|
2686
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_metric_extensions') do
|
2687
|
+
@api_client.call_api(
|
2688
|
+
:GET,
|
2689
|
+
path,
|
2690
|
+
endpoint,
|
2691
|
+
header_params: header_params,
|
2692
|
+
query_params: query_params,
|
2693
|
+
operation_signing_strategy: operation_signing_strategy,
|
2694
|
+
body: post_body,
|
2695
|
+
return_type: 'OCI::StackMonitoring::Models::MetricExtensionCollection'
|
2696
|
+
)
|
2697
|
+
end
|
2698
|
+
# rubocop:enable Metrics/BlockLength
|
2699
|
+
end
|
2700
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2701
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2702
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2703
|
+
|
2704
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2705
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2706
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2707
|
+
|
2708
|
+
|
2709
|
+
# Returns a list of stack monitoring resource tasks in the compartment.
|
2710
|
+
#
|
2711
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the compartment for which
|
2712
|
+
# stack monitoring resource tasks should be listed.
|
2713
|
+
#
|
2714
|
+
# @param [Hash] opts the optional parameters
|
2715
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2716
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2717
|
+
# @option opts [String] :status A filter to return only resources that matches with lifecycleState given.
|
2718
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
2719
|
+
# Default order for 'timeUpdated' is descending.
|
2720
|
+
# (default to timeUpdated)
|
2721
|
+
# Allowed values are: timeUpdated
|
2722
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2723
|
+
# (default to ASC)
|
2724
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2725
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2726
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2727
|
+
# (default to 10)
|
2728
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2729
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2730
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2731
|
+
#
|
2732
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2733
|
+
# particular request, please provide the request ID.
|
2734
|
+
#
|
2735
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceTasksCollection MonitoredResourceTasksCollection}
|
2736
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_monitored_resource_tasks.rb.html) to see an example of how to use list_monitored_resource_tasks API.
|
2737
|
+
def list_monitored_resource_tasks(compartment_id, opts = {})
|
2738
|
+
logger.debug 'Calling operation StackMonitoringClient#list_monitored_resource_tasks.' if logger
|
2739
|
+
|
2740
|
+
raise "Missing the required parameter 'compartment_id' when calling list_monitored_resource_tasks." if compartment_id.nil?
|
2741
|
+
|
2742
|
+
if opts[:status] && !OCI::StackMonitoring::Models::MONITORED_RESOURCE_TASK_LIFECYCLE_STATE_ENUM.include?(opts[:status])
|
2743
|
+
raise 'Invalid value for "status", must be one of the values in OCI::StackMonitoring::Models::MONITORED_RESOURCE_TASK_LIFECYCLE_STATE_ENUM.'
|
2744
|
+
end
|
2745
|
+
|
2746
|
+
if opts[:sort_by] && !%w[timeUpdated].include?(opts[:sort_by])
|
2747
|
+
raise 'Invalid value for "sort_by", must be one of timeUpdated.'
|
2748
|
+
end
|
2749
|
+
|
2750
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2751
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2752
|
+
end
|
2753
|
+
|
2754
|
+
path = '/monitoredResourceTasks'
|
2755
|
+
operation_signing_strategy = :standard
|
2756
|
+
|
2757
|
+
# rubocop:disable Style/NegatedIf
|
2758
|
+
# Query Params
|
2759
|
+
query_params = {}
|
2760
|
+
query_params[:compartmentId] = compartment_id
|
2761
|
+
query_params[:status] = opts[:status] if opts[:status]
|
2762
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2763
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2764
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2765
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2766
|
+
|
2767
|
+
# Header Params
|
2768
|
+
header_params = {}
|
2769
|
+
header_params[:accept] = 'application/json'
|
2770
|
+
header_params[:'content-type'] = 'application/json'
|
2771
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2772
|
+
# rubocop:enable Style/NegatedIf
|
2773
|
+
|
2774
|
+
post_body = nil
|
2775
|
+
|
2776
|
+
# rubocop:disable Metrics/BlockLength
|
2777
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_monitored_resource_tasks') do
|
2778
|
+
@api_client.call_api(
|
2779
|
+
:GET,
|
2780
|
+
path,
|
2781
|
+
endpoint,
|
2782
|
+
header_params: header_params,
|
2783
|
+
query_params: query_params,
|
2784
|
+
operation_signing_strategy: operation_signing_strategy,
|
2785
|
+
body: post_body,
|
2786
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceTasksCollection'
|
2787
|
+
)
|
2788
|
+
end
|
2789
|
+
# rubocop:enable Metrics/BlockLength
|
2790
|
+
end
|
2791
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2792
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2793
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2794
|
+
|
2795
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2796
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2797
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2798
|
+
|
2799
|
+
|
2800
|
+
# Returns list of resource types accessible to the customer.
|
2801
|
+
# There are two types of resource types - System resource types and User resource types.
|
2802
|
+
# System resource types are available out of the box in the stack monitoring resource service
|
2803
|
+
# and are accessible to all the tenant users. User resource types are created in the context
|
2804
|
+
# of a tenancy and are visible only for the tenancy. By default, both System resource types
|
2805
|
+
# and User resource types are returned.
|
2806
|
+
#
|
2807
|
+
# @param [String] compartment_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the tenancy for which
|
2808
|
+
# monitored resource types should be listed.
|
2809
|
+
#
|
2810
|
+
# @param [Hash] opts the optional parameters
|
2811
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2812
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2813
|
+
# @option opts [String] :name A filter to return monitored resource types that match exactly with the resource type name given.
|
2814
|
+
#
|
2815
|
+
# @option opts [String] :status A filter to return only resources that matches with lifecycleState given.
|
2816
|
+
# @option opts [BOOLEAN] :is_exclude_system_types A filter to exclude system resource types. If set to true, system resource types will be excluded.
|
2817
|
+
# (default to false)
|
2818
|
+
# @option opts [String] :metric_namespace A filter to return monitored resource types that has the matching namespace.
|
2819
|
+
#
|
2820
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
2821
|
+
# Default order for 'timeUpdated' is descending. Default order for 'name' is ascending.
|
2822
|
+
# (default to timeUpdated)
|
2823
|
+
# Allowed values are: timeUpdated, name
|
2824
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2825
|
+
# (default to ASC)
|
2826
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2827
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2828
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2829
|
+
# (default to 10)
|
2830
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2831
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2832
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2833
|
+
#
|
2834
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2835
|
+
# particular request, please provide the request ID.
|
2836
|
+
#
|
2837
|
+
# @option opts [Array<String>] :fields Partial response refers to an optimization technique offered
|
2838
|
+
# by the RESTful web APIs, to return only the information
|
2839
|
+
# (fields) required by the client. In this mechanism, the client
|
2840
|
+
# sends the required field names as the query parameters for
|
2841
|
+
# an API to the server, and the server trims down the default
|
2842
|
+
# response content by removing the fields that are not required
|
2843
|
+
# by the client. The parameter controls which fields to
|
2844
|
+
# return and should be a query string parameter called \"fields\" of
|
2845
|
+
# an array type, provide the values as enums, and use collectionFormat.
|
2846
|
+
#
|
2847
|
+
# MonitoredResourceType Id, name and compartment will be added by default.
|
2848
|
+
#
|
2849
|
+
# @option opts [Array<String>] :exclude_fields Partial response refers to an optimization technique offered
|
2850
|
+
# by the RESTful web APIs, to return all the information except
|
2851
|
+
# the fields requested to be excluded (excludeFields) by the client.
|
2852
|
+
# In this mechanism, the client
|
2853
|
+
# sends the exclude field names as the query parameters for
|
2854
|
+
# an API to the server, and the server trims down the default
|
2855
|
+
# response content by removing the fields that are not required
|
2856
|
+
# by the client. The parameter controls which fields to
|
2857
|
+
# exlude and to return and should be a query string parameter
|
2858
|
+
# called \"excludeFields\" of an array type, provide the values
|
2859
|
+
# as enums, and use collectionFormat.
|
2860
|
+
#
|
2861
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceTypesCollection MonitoredResourceTypesCollection}
|
2862
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_monitored_resource_types.rb.html) to see an example of how to use list_monitored_resource_types API.
|
2863
|
+
def list_monitored_resource_types(compartment_id, opts = {})
|
2864
|
+
logger.debug 'Calling operation StackMonitoringClient#list_monitored_resource_types.' if logger
|
2865
|
+
|
2866
|
+
raise "Missing the required parameter 'compartment_id' when calling list_monitored_resource_types." if compartment_id.nil?
|
2867
|
+
|
2868
|
+
if opts[:status] && !OCI::StackMonitoring::Models::RESOURCE_TYPE_LIFECYCLE_STATE_ENUM.include?(opts[:status])
|
2869
|
+
raise 'Invalid value for "status", must be one of the values in OCI::StackMonitoring::Models::RESOURCE_TYPE_LIFECYCLE_STATE_ENUM.'
|
2870
|
+
end
|
2871
|
+
|
2872
|
+
if opts[:sort_by] && !%w[timeUpdated name].include?(opts[:sort_by])
|
2873
|
+
raise 'Invalid value for "sort_by", must be one of timeUpdated, name.'
|
2874
|
+
end
|
2875
|
+
|
2876
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2877
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2878
|
+
end
|
2879
|
+
|
2880
|
+
path = '/monitoredResourceTypes'
|
2881
|
+
operation_signing_strategy = :standard
|
2882
|
+
|
2883
|
+
# rubocop:disable Style/NegatedIf
|
2884
|
+
# Query Params
|
2885
|
+
query_params = {}
|
2886
|
+
query_params[:compartmentId] = compartment_id
|
2887
|
+
query_params[:name] = opts[:name] if opts[:name]
|
2888
|
+
query_params[:status] = opts[:status] if opts[:status]
|
2889
|
+
query_params[:isExcludeSystemTypes] = opts[:is_exclude_system_types] if !opts[:is_exclude_system_types].nil?
|
2890
|
+
query_params[:metricNamespace] = opts[:metric_namespace] if opts[:metric_namespace]
|
2891
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2892
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2893
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2894
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2895
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
|
2896
|
+
query_params[:excludeFields] = OCI::ApiClient.build_collection_params(opts[:exclude_fields], :multi) if opts[:exclude_fields] && !opts[:exclude_fields].empty?
|
2897
|
+
|
2898
|
+
# Header Params
|
2899
|
+
header_params = {}
|
2900
|
+
header_params[:accept] = 'application/json'
|
2901
|
+
header_params[:'content-type'] = 'application/json'
|
2902
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2903
|
+
# rubocop:enable Style/NegatedIf
|
2904
|
+
|
2905
|
+
post_body = nil
|
2906
|
+
|
2907
|
+
# rubocop:disable Metrics/BlockLength
|
2908
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_monitored_resource_types') do
|
2909
|
+
@api_client.call_api(
|
2910
|
+
:GET,
|
2911
|
+
path,
|
2912
|
+
endpoint,
|
2913
|
+
header_params: header_params,
|
2914
|
+
query_params: query_params,
|
2915
|
+
operation_signing_strategy: operation_signing_strategy,
|
2916
|
+
body: post_body,
|
2917
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceTypesCollection'
|
2918
|
+
)
|
2919
|
+
end
|
2920
|
+
# rubocop:enable Metrics/BlockLength
|
2921
|
+
end
|
2922
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2923
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
2924
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
2925
|
+
|
2926
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
2927
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
2928
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2929
|
+
|
2930
|
+
|
2931
|
+
# Returns a list of monitored resources.
|
2932
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
2933
|
+
# @param [Hash] opts the optional parameters
|
2934
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2935
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2936
|
+
# @option opts [String] :name A filter to return resources that match exact resource name.
|
2937
|
+
# @option opts [String] :work_request_id A filter to return resources which were impacted as part of this work request identifier.
|
2938
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided.
|
2939
|
+
# Default order for timeCreated is descending. Default order for resources is ascending.
|
2940
|
+
# (default to TIME_CREATED)
|
2941
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
2942
|
+
# (default to ASC)
|
2943
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
2944
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
2945
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2946
|
+
# (default to 10)
|
2947
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
2948
|
+
# previous \"List\" call. For important details about how pagination works, see
|
2949
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
2950
|
+
#
|
2951
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2952
|
+
# particular request, please provide the request ID.
|
2953
|
+
#
|
2954
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceCollection MonitoredResourceCollection}
|
2955
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_monitored_resources.rb.html) to see an example of how to use list_monitored_resources API.
|
2956
|
+
def list_monitored_resources(compartment_id, opts = {})
|
2957
|
+
logger.debug 'Calling operation StackMonitoringClient#list_monitored_resources.' if logger
|
2958
|
+
|
2959
|
+
raise "Missing the required parameter 'compartment_id' when calling list_monitored_resources." if compartment_id.nil?
|
2960
|
+
|
2961
|
+
if opts[:sort_by] && !OCI::StackMonitoring::Models::MONITORED_RESOURCE_SORT_BY_ENUM.include?(opts[:sort_by])
|
2962
|
+
raise 'Invalid value for "sort_by", must be one of the values in OCI::StackMonitoring::Models::MONITORED_RESOURCE_SORT_BY_ENUM.'
|
2963
|
+
end
|
2964
|
+
|
2965
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
2966
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
2967
|
+
end
|
2968
|
+
|
2969
|
+
path = '/monitoredResources'
|
2970
|
+
operation_signing_strategy = :standard
|
2971
|
+
|
2972
|
+
# rubocop:disable Style/NegatedIf
|
2973
|
+
# Query Params
|
2974
|
+
query_params = {}
|
2975
|
+
query_params[:compartmentId] = compartment_id
|
2976
|
+
query_params[:name] = opts[:name] if opts[:name]
|
2977
|
+
query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
|
2978
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
2979
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
2980
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
2981
|
+
query_params[:page] = opts[:page] if opts[:page]
|
2982
|
+
|
2983
|
+
# Header Params
|
2984
|
+
header_params = {}
|
2985
|
+
header_params[:accept] = 'application/json'
|
2986
|
+
header_params[:'content-type'] = 'application/json'
|
2987
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2988
|
+
# rubocop:enable Style/NegatedIf
|
2989
|
+
|
2990
|
+
post_body = nil
|
2991
|
+
|
2992
|
+
# rubocop:disable Metrics/BlockLength
|
2993
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_monitored_resources') do
|
2994
|
+
@api_client.call_api(
|
2995
|
+
:GET,
|
2996
|
+
path,
|
2997
|
+
endpoint,
|
2998
|
+
header_params: header_params,
|
2999
|
+
query_params: query_params,
|
3000
|
+
operation_signing_strategy: operation_signing_strategy,
|
3001
|
+
body: post_body,
|
3002
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceCollection'
|
3003
|
+
)
|
3004
|
+
end
|
3005
|
+
# rubocop:enable Metrics/BlockLength
|
3006
|
+
end
|
3007
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3008
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3009
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3010
|
+
|
3011
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3012
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3013
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3014
|
+
|
3015
|
+
|
3016
|
+
# Return a (paginated) list of errors for a given work request.
|
3017
|
+
#
|
3018
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
|
3019
|
+
# @param [Hash] opts the optional parameters
|
3020
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3021
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3022
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3023
|
+
# particular request, please provide the request ID.
|
3024
|
+
#
|
3025
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3026
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3027
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3028
|
+
#
|
3029
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3030
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3031
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3032
|
+
# (default to 10)
|
3033
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3034
|
+
# (default to ASC)
|
3035
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. If no value is specified timestamp is default.
|
3036
|
+
# (default to timestamp)
|
3037
|
+
# Allowed values are: timestamp
|
3038
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
|
3039
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
|
3040
|
+
def list_work_request_errors(work_request_id, opts = {})
|
3041
|
+
logger.debug 'Calling operation StackMonitoringClient#list_work_request_errors.' if logger
|
3042
|
+
|
3043
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
|
3044
|
+
|
3045
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
3046
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
3047
|
+
end
|
3048
|
+
|
3049
|
+
if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by])
|
3050
|
+
raise 'Invalid value for "sort_by", must be one of timestamp.'
|
3051
|
+
end
|
3052
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
3053
|
+
|
3054
|
+
path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
|
3055
|
+
operation_signing_strategy = :standard
|
3056
|
+
|
3057
|
+
# rubocop:disable Style/NegatedIf
|
3058
|
+
# Query Params
|
3059
|
+
query_params = {}
|
3060
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3061
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3062
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3063
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3064
|
+
|
3065
|
+
# Header Params
|
3066
|
+
header_params = {}
|
3067
|
+
header_params[:accept] = 'application/json'
|
3068
|
+
header_params[:'content-type'] = 'application/json'
|
3069
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3070
|
+
# rubocop:enable Style/NegatedIf
|
3071
|
+
|
3072
|
+
post_body = nil
|
3073
|
+
|
3074
|
+
# rubocop:disable Metrics/BlockLength
|
3075
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_work_request_errors') do
|
3076
|
+
@api_client.call_api(
|
3077
|
+
:GET,
|
3078
|
+
path,
|
3079
|
+
endpoint,
|
3080
|
+
header_params: header_params,
|
3081
|
+
query_params: query_params,
|
3082
|
+
operation_signing_strategy: operation_signing_strategy,
|
3083
|
+
body: post_body,
|
3084
|
+
return_type: 'OCI::StackMonitoring::Models::WorkRequestErrorCollection'
|
3085
|
+
)
|
3086
|
+
end
|
3087
|
+
# rubocop:enable Metrics/BlockLength
|
3088
|
+
end
|
3089
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3090
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3091
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3092
|
+
|
3093
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3094
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3095
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3096
|
+
|
3097
|
+
|
3098
|
+
# Return a (paginated) list of logs for a given work request.
|
3099
|
+
#
|
3100
|
+
# @param [String] work_request_id The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the work request.
|
3101
|
+
# @param [Hash] opts the optional parameters
|
3102
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3103
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3104
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3105
|
+
# particular request, please provide the request ID.
|
3106
|
+
#
|
3107
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3108
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3109
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3110
|
+
#
|
3111
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3112
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3113
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3114
|
+
# (default to 10)
|
3115
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3116
|
+
# (default to ASC)
|
3117
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timestamp is descending. If no value is specified timestamp is default.
|
3118
|
+
# (default to timestamp)
|
3119
|
+
# Allowed values are: timestamp
|
3120
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
|
3121
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
|
3122
|
+
def list_work_request_logs(work_request_id, opts = {})
|
3123
|
+
logger.debug 'Calling operation StackMonitoringClient#list_work_request_logs.' if logger
|
3124
|
+
|
3125
|
+
raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
|
3126
|
+
|
3127
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
3128
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
3129
|
+
end
|
3130
|
+
|
3131
|
+
if opts[:sort_by] && !%w[timestamp].include?(opts[:sort_by])
|
3132
|
+
raise 'Invalid value for "sort_by", must be one of timestamp.'
|
3133
|
+
end
|
3134
|
+
raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
|
3135
|
+
|
3136
|
+
path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
|
3137
|
+
operation_signing_strategy = :standard
|
3138
|
+
|
3139
|
+
# rubocop:disable Style/NegatedIf
|
3140
|
+
# Query Params
|
3141
|
+
query_params = {}
|
3142
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3143
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3144
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3145
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3146
|
+
|
3147
|
+
# Header Params
|
3148
|
+
header_params = {}
|
3149
|
+
header_params[:accept] = 'application/json'
|
3150
|
+
header_params[:'content-type'] = 'application/json'
|
3151
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3152
|
+
# rubocop:enable Style/NegatedIf
|
3153
|
+
|
3154
|
+
post_body = nil
|
3155
|
+
|
3156
|
+
# rubocop:disable Metrics/BlockLength
|
3157
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_work_request_logs') do
|
3158
|
+
@api_client.call_api(
|
3159
|
+
:GET,
|
3160
|
+
path,
|
3161
|
+
endpoint,
|
3162
|
+
header_params: header_params,
|
3163
|
+
query_params: query_params,
|
3164
|
+
operation_signing_strategy: operation_signing_strategy,
|
3165
|
+
body: post_body,
|
3166
|
+
return_type: 'OCI::StackMonitoring::Models::WorkRequestLogEntryCollection'
|
3167
|
+
)
|
3168
|
+
end
|
3169
|
+
# rubocop:enable Metrics/BlockLength
|
3170
|
+
end
|
3171
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3172
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3173
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3174
|
+
|
3175
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3176
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3177
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3178
|
+
|
3179
|
+
|
3180
|
+
# Lists the work requests in a compartment.
|
3181
|
+
#
|
3182
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
3183
|
+
# @param [Hash] opts the optional parameters
|
3184
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3185
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3186
|
+
# @option opts [String] :work_request_id The ID of the asynchronous work request.
|
3187
|
+
# @option opts [String] :status A filter to return only resources their lifecycleState matches the given OperationStatus.
|
3188
|
+
# @option opts [String] :resource_id The ID of the resource affected by the work request.
|
3189
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3190
|
+
# particular request, please provide the request ID.
|
3191
|
+
#
|
3192
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3193
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3194
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3195
|
+
#
|
3196
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3197
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3198
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3199
|
+
# (default to 10)
|
3200
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3201
|
+
# (default to ASC)
|
3202
|
+
# @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending. If no value is specified timeAccepted is default.
|
3203
|
+
# (default to timeAccepted)
|
3204
|
+
# Allowed values are: timeAccepted
|
3205
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::WorkRequestSummaryCollection WorkRequestSummaryCollection}
|
3206
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
|
3207
|
+
def list_work_requests(compartment_id, opts = {})
|
3208
|
+
logger.debug 'Calling operation StackMonitoringClient#list_work_requests.' if logger
|
3209
|
+
|
3210
|
+
raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
|
3211
|
+
|
3212
|
+
if opts[:status] && !OCI::StackMonitoring::Models::OPERATION_STATUS_ENUM.include?(opts[:status])
|
3213
|
+
raise 'Invalid value for "status", must be one of the values in OCI::StackMonitoring::Models::OPERATION_STATUS_ENUM.'
|
3214
|
+
end
|
3215
|
+
|
3216
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
3217
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
3218
|
+
end
|
3219
|
+
|
3220
|
+
if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
|
3221
|
+
raise 'Invalid value for "sort_by", must be one of timeAccepted.'
|
3222
|
+
end
|
3223
|
+
|
3224
|
+
path = '/workRequests'
|
3225
|
+
operation_signing_strategy = :standard
|
3226
|
+
|
3227
|
+
# rubocop:disable Style/NegatedIf
|
3228
|
+
# Query Params
|
3229
|
+
query_params = {}
|
3230
|
+
query_params[:compartmentId] = compartment_id
|
3231
|
+
query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
|
3232
|
+
query_params[:status] = opts[:status] if opts[:status]
|
3233
|
+
query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
|
3234
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3235
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3236
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3237
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3238
|
+
|
3239
|
+
# Header Params
|
3240
|
+
header_params = {}
|
3241
|
+
header_params[:accept] = 'application/json'
|
3242
|
+
header_params[:'content-type'] = 'application/json'
|
3243
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3244
|
+
# rubocop:enable Style/NegatedIf
|
3245
|
+
|
3246
|
+
post_body = nil
|
3247
|
+
|
3248
|
+
# rubocop:disable Metrics/BlockLength
|
3249
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#list_work_requests') do
|
3250
|
+
@api_client.call_api(
|
3251
|
+
:GET,
|
3252
|
+
path,
|
3253
|
+
endpoint,
|
3254
|
+
header_params: header_params,
|
3255
|
+
query_params: query_params,
|
3256
|
+
operation_signing_strategy: operation_signing_strategy,
|
3257
|
+
body: post_body,
|
3258
|
+
return_type: 'OCI::StackMonitoring::Models::WorkRequestSummaryCollection'
|
3259
|
+
)
|
3260
|
+
end
|
3261
|
+
# rubocop:enable Metrics/BlockLength
|
3262
|
+
end
|
3263
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3264
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3265
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3266
|
+
|
3267
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3268
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3269
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3270
|
+
|
3271
|
+
|
3272
|
+
# Each resource is assigned a license based on which features are enabled for it.
|
3273
|
+
# User is charged differently based on license.
|
3274
|
+
# Specify the license type to be updated for the parent resource in the topology.
|
3275
|
+
# The license type value is propagated to the member resources as well.
|
3276
|
+
# Member resource is a resource which has \"contains\" association with the resource.
|
3277
|
+
#
|
3278
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
3279
|
+
# @param [OCI::StackMonitoring::Models::ManageLicenseDetails] manage_license_details New license information.
|
3280
|
+
# @param [Hash] opts the optional parameters
|
3281
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3282
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3283
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3284
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3285
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3286
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3287
|
+
# might be rejected.
|
3288
|
+
#
|
3289
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3290
|
+
# particular request, please provide the request ID.
|
3291
|
+
#
|
3292
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3293
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3294
|
+
# etag from a previous GET or POST response for that resource.
|
3295
|
+
# The resource will be updated or deleted only if the etag you
|
3296
|
+
# provide matches the resource's current etag value.
|
3297
|
+
#
|
3298
|
+
# @return [Response] A Response object with data of type nil
|
3299
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/manage_license.rb.html) to see an example of how to use manage_license API.
|
3300
|
+
def manage_license(monitored_resource_id, manage_license_details, opts = {})
|
3301
|
+
logger.debug 'Calling operation StackMonitoringClient#manage_license.' if logger
|
3302
|
+
|
3303
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling manage_license." if monitored_resource_id.nil?
|
3304
|
+
raise "Missing the required parameter 'manage_license_details' when calling manage_license." if manage_license_details.nil?
|
3305
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
3306
|
+
|
3307
|
+
path = '/monitoredResources/{monitoredResourceId}/actions/manageLicense'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
3308
|
+
operation_signing_strategy = :standard
|
3309
|
+
|
3310
|
+
# rubocop:disable Style/NegatedIf
|
3311
|
+
# Query Params
|
3312
|
+
query_params = {}
|
3313
|
+
|
3314
|
+
# Header Params
|
3315
|
+
header_params = {}
|
3316
|
+
header_params[:accept] = 'application/json'
|
3317
|
+
header_params[:'content-type'] = 'application/json'
|
3318
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3319
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3320
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3321
|
+
# rubocop:enable Style/NegatedIf
|
3322
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3323
|
+
|
3324
|
+
post_body = @api_client.object_to_http_body(manage_license_details)
|
3325
|
+
|
3326
|
+
# rubocop:disable Metrics/BlockLength
|
3327
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#manage_license') do
|
3328
|
+
@api_client.call_api(
|
3329
|
+
:POST,
|
3330
|
+
path,
|
3331
|
+
endpoint,
|
3332
|
+
header_params: header_params,
|
3333
|
+
query_params: query_params,
|
3334
|
+
operation_signing_strategy: operation_signing_strategy,
|
3335
|
+
body: post_body
|
3336
|
+
)
|
3337
|
+
end
|
3338
|
+
# rubocop:enable Metrics/BlockLength
|
3339
|
+
end
|
3340
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3341
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3342
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3343
|
+
|
3344
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3345
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3346
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3347
|
+
|
3348
|
+
|
3349
|
+
# Publish the Metric Extension identified by the id
|
3350
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
3351
|
+
# @param [Hash] opts the optional parameters
|
3352
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3353
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3354
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3355
|
+
# particular request, please provide the request ID.
|
3356
|
+
#
|
3357
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3358
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3359
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3360
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3361
|
+
# might be rejected.
|
3362
|
+
#
|
3363
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3364
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3365
|
+
# etag from a previous GET or POST response for that resource.
|
3366
|
+
# The resource will be updated or deleted only if the etag you
|
3367
|
+
# provide matches the resource's current etag value.
|
3368
|
+
#
|
3369
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MetricExtension MetricExtension}
|
3370
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/publish_metric_extension.rb.html) to see an example of how to use publish_metric_extension API.
|
3371
|
+
def publish_metric_extension(metric_extension_id, opts = {})
|
3372
|
+
logger.debug 'Calling operation StackMonitoringClient#publish_metric_extension.' if logger
|
3373
|
+
|
3374
|
+
raise "Missing the required parameter 'metric_extension_id' when calling publish_metric_extension." if metric_extension_id.nil?
|
3375
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
3376
|
+
|
3377
|
+
path = '/metricExtensions/{metricExtensionId}/actions/publish'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
3378
|
+
operation_signing_strategy = :standard
|
3379
|
+
|
3380
|
+
# rubocop:disable Style/NegatedIf
|
3381
|
+
# Query Params
|
3382
|
+
query_params = {}
|
3383
|
+
|
3384
|
+
# Header Params
|
3385
|
+
header_params = {}
|
3386
|
+
header_params[:accept] = 'application/json'
|
3387
|
+
header_params[:'content-type'] = 'application/json'
|
3388
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3389
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3390
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3391
|
+
# rubocop:enable Style/NegatedIf
|
3392
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3393
|
+
|
3394
|
+
post_body = nil
|
3395
|
+
|
3396
|
+
# rubocop:disable Metrics/BlockLength
|
3397
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#publish_metric_extension') do
|
3398
|
+
@api_client.call_api(
|
3399
|
+
:POST,
|
3400
|
+
path,
|
3401
|
+
endpoint,
|
3402
|
+
header_params: header_params,
|
3403
|
+
query_params: query_params,
|
3404
|
+
operation_signing_strategy: operation_signing_strategy,
|
3405
|
+
body: post_body,
|
3406
|
+
return_type: 'OCI::StackMonitoring::Models::MetricExtension'
|
3407
|
+
)
|
3408
|
+
end
|
3409
|
+
# rubocop:enable Metrics/BlockLength
|
3410
|
+
end
|
3411
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3412
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3413
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3414
|
+
|
3415
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3416
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3417
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3418
|
+
|
3419
|
+
|
3420
|
+
# Gets resource count based on the aggregation criteria specified using \"groupBy\" parameter.
|
3421
|
+
#
|
3422
|
+
# @param [String] compartment_id The ID of the compartment in which data is listed.
|
3423
|
+
# @param [Hash] opts the optional parameters
|
3424
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3425
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3426
|
+
# @option opts [String] :group_by The field to group by. Default group by is 'resourceType'.
|
3427
|
+
# (default to resourceType)
|
3428
|
+
# Allowed values are: resourceType, license, parentResourceId
|
3429
|
+
# @option opts [String] :license Filter to return resource counts that match with the given licence edition.
|
3430
|
+
#
|
3431
|
+
# @option opts [String] :resource_type A filter to return resource counts that match exact resource type.
|
3432
|
+
# @option opts [String] :sort_by If this query parameter is specified, the result is sorted by this query parameter value.
|
3433
|
+
# (default to count)
|
3434
|
+
# Allowed values are: count
|
3435
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3436
|
+
# (default to ASC)
|
3437
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3438
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3439
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3440
|
+
# (default to 10)
|
3441
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3442
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3443
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3444
|
+
#
|
3445
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3446
|
+
# particular request, please provide the request ID.
|
3447
|
+
#
|
3448
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourcesCountAggregationCollection MonitoredResourcesCountAggregationCollection}
|
3449
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/request_monitored_resources_summarized_count.rb.html) to see an example of how to use request_monitored_resources_summarized_count API.
|
3450
|
+
def request_monitored_resources_summarized_count(compartment_id, opts = {})
|
3451
|
+
logger.debug 'Calling operation StackMonitoringClient#request_monitored_resources_summarized_count.' if logger
|
3452
|
+
|
3453
|
+
raise "Missing the required parameter 'compartment_id' when calling request_monitored_resources_summarized_count." if compartment_id.nil?
|
3454
|
+
|
3455
|
+
if opts[:group_by] && !%w[resourceType license parentResourceId].include?(opts[:group_by])
|
3456
|
+
raise 'Invalid value for "group_by", must be one of resourceType, license, parentResourceId.'
|
3457
|
+
end
|
3458
|
+
|
3459
|
+
if opts[:license] && !OCI::StackMonitoring::Models::LICENSE_TYPE_ENUM.include?(opts[:license])
|
3460
|
+
raise 'Invalid value for "license", must be one of the values in OCI::StackMonitoring::Models::LICENSE_TYPE_ENUM.'
|
3461
|
+
end
|
3462
|
+
|
3463
|
+
if opts[:sort_by] && !%w[count].include?(opts[:sort_by])
|
3464
|
+
raise 'Invalid value for "sort_by", must be one of count.'
|
3465
|
+
end
|
3466
|
+
|
3467
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
3468
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
3469
|
+
end
|
3470
|
+
|
3471
|
+
path = '/monitoredResources/actions/summarizeCount'
|
3472
|
+
operation_signing_strategy = :standard
|
3473
|
+
|
3474
|
+
# rubocop:disable Style/NegatedIf
|
3475
|
+
# Query Params
|
3476
|
+
query_params = {}
|
3477
|
+
query_params[:compartmentId] = compartment_id
|
3478
|
+
query_params[:groupBy] = opts[:group_by] if opts[:group_by]
|
3479
|
+
query_params[:license] = opts[:license] if opts[:license]
|
3480
|
+
query_params[:resourceType] = opts[:resource_type] if opts[:resource_type]
|
3481
|
+
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3482
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3483
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3484
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3485
|
+
|
3486
|
+
# Header Params
|
3487
|
+
header_params = {}
|
3488
|
+
header_params[:accept] = 'application/json'
|
3489
|
+
header_params[:'content-type'] = 'application/json'
|
3490
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3491
|
+
# rubocop:enable Style/NegatedIf
|
3492
|
+
|
3493
|
+
post_body = nil
|
3494
|
+
|
3495
|
+
# rubocop:disable Metrics/BlockLength
|
3496
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#request_monitored_resources_summarized_count') do
|
3497
|
+
@api_client.call_api(
|
3498
|
+
:POST,
|
3499
|
+
path,
|
3500
|
+
endpoint,
|
3501
|
+
header_params: header_params,
|
3502
|
+
query_params: query_params,
|
3503
|
+
operation_signing_strategy: operation_signing_strategy,
|
3504
|
+
body: post_body,
|
3505
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourcesCountAggregationCollection'
|
3506
|
+
)
|
3507
|
+
end
|
3508
|
+
# rubocop:enable Metrics/BlockLength
|
3509
|
+
end
|
3510
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3511
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3512
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3513
|
+
|
3514
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3515
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3516
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3517
|
+
|
3518
|
+
|
3519
|
+
# List all associated resources recursively up-to a specified level,
|
3520
|
+
# for the monitored resources of type specified.
|
3521
|
+
#
|
3522
|
+
# @param [OCI::StackMonitoring::Models::SearchAssociatedResourcesDetails] search_associated_resources_details Search Criteria for the listing the monitored resources for given type and compartmentId.
|
3523
|
+
# @param [Hash] opts the optional parameters
|
3524
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3525
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3526
|
+
# @option opts [Array<String>] :fields Partial response refers to an optimization technique offered
|
3527
|
+
# by the RESTful web APIs, to return only the information
|
3528
|
+
# (fields) required by the client. In this mechanism, the client
|
3529
|
+
# sends the required field names as the query parameters for
|
3530
|
+
# an API to the server, and the server trims down the default
|
3531
|
+
# response content by removing the fields that are not required
|
3532
|
+
# by the client. The parameter controls which fields to
|
3533
|
+
# return and should be a query string parameter called \"fields\" of
|
3534
|
+
# an array type, provide the values as enums, and use collectionFormat.
|
3535
|
+
#
|
3536
|
+
# @option opts [Array<String>] :exclude_fields Partial response refers to an optimization technique offered
|
3537
|
+
# by the RESTful web APIs, to return all the information except
|
3538
|
+
# the fields requested to be excluded (excludeFields) by the client.
|
3539
|
+
# In this mechanism, the client
|
3540
|
+
# sends the exclude field names as the query parameters for
|
3541
|
+
# an API to the server, and the server trims down the default
|
3542
|
+
# response content by removing the fields that are not required
|
3543
|
+
# by the client. The parameter controls which fields to
|
3544
|
+
# exlude and to return and should be a query string parameter
|
3545
|
+
# called \"excludeFields\" of an array type, provide the values
|
3546
|
+
# as enums, and use collectionFormat.
|
3547
|
+
#
|
3548
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3549
|
+
# particular request, please provide the request ID.
|
3550
|
+
#
|
3551
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3552
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3553
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3554
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3555
|
+
# might be rejected.
|
3556
|
+
#
|
3557
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3558
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3559
|
+
# etag from a previous GET or POST response for that resource.
|
3560
|
+
# The resource will be updated or deleted only if the etag you
|
3561
|
+
# provide matches the resource's current etag value.
|
3562
|
+
#
|
3563
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3564
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3565
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3566
|
+
# (default to 10)
|
3567
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3568
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3569
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3570
|
+
#
|
3571
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::AssociatedResourcesCollection AssociatedResourcesCollection}
|
3572
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/search_associated_resources.rb.html) to see an example of how to use search_associated_resources API.
|
3573
|
+
def search_associated_resources(search_associated_resources_details, opts = {})
|
3574
|
+
logger.debug 'Calling operation StackMonitoringClient#search_associated_resources.' if logger
|
3575
|
+
|
3576
|
+
raise "Missing the required parameter 'search_associated_resources_details' when calling search_associated_resources." if search_associated_resources_details.nil?
|
3577
|
+
|
3578
|
+
path = '/monitoredResources/actions/searchAssociatedResources'
|
3579
|
+
operation_signing_strategy = :standard
|
3580
|
+
|
3581
|
+
# rubocop:disable Style/NegatedIf
|
3582
|
+
# Query Params
|
3583
|
+
query_params = {}
|
3584
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
|
3585
|
+
query_params[:excludeFields] = OCI::ApiClient.build_collection_params(opts[:exclude_fields], :multi) if opts[:exclude_fields] && !opts[:exclude_fields].empty?
|
3586
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3587
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3588
|
+
|
3589
|
+
# Header Params
|
3590
|
+
header_params = {}
|
3591
|
+
header_params[:accept] = 'application/json'
|
3592
|
+
header_params[:'content-type'] = 'application/json'
|
3593
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3594
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3595
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3596
|
+
# rubocop:enable Style/NegatedIf
|
3597
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3598
|
+
|
3599
|
+
post_body = @api_client.object_to_http_body(search_associated_resources_details)
|
3600
|
+
|
3601
|
+
# rubocop:disable Metrics/BlockLength
|
3602
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#search_associated_resources') do
|
3603
|
+
@api_client.call_api(
|
3604
|
+
:POST,
|
3605
|
+
path,
|
3606
|
+
endpoint,
|
3607
|
+
header_params: header_params,
|
3608
|
+
query_params: query_params,
|
3609
|
+
operation_signing_strategy: operation_signing_strategy,
|
3610
|
+
body: post_body,
|
3611
|
+
return_type: 'OCI::StackMonitoring::Models::AssociatedResourcesCollection'
|
3612
|
+
)
|
3613
|
+
end
|
3614
|
+
# rubocop:enable Metrics/BlockLength
|
3615
|
+
end
|
3616
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3617
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3618
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3619
|
+
|
3620
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3621
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3622
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3623
|
+
|
3624
|
+
|
3625
|
+
# Search associations in the given compartment based on the search criteria.
|
3626
|
+
#
|
3627
|
+
# @param [OCI::StackMonitoring::Models::SearchMonitoredResourceAssociationsDetails] search_monitored_resource_associations_details Search criteria for listing monitored resource associations.
|
3628
|
+
#
|
3629
|
+
# @param [Hash] opts the optional parameters
|
3630
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3631
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3632
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3633
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3634
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3635
|
+
# (default to 10)
|
3636
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3637
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3638
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3639
|
+
#
|
3640
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3641
|
+
# particular request, please provide the request ID.
|
3642
|
+
#
|
3643
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3644
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3645
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3646
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3647
|
+
# might be rejected.
|
3648
|
+
#
|
3649
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3650
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3651
|
+
# etag from a previous GET or POST response for that resource.
|
3652
|
+
# The resource will be updated or deleted only if the etag you
|
3653
|
+
# provide matches the resource's current etag value.
|
3654
|
+
#
|
3655
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceAssociationsCollection MonitoredResourceAssociationsCollection}
|
3656
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/search_monitored_resource_associations.rb.html) to see an example of how to use search_monitored_resource_associations API.
|
3657
|
+
def search_monitored_resource_associations(search_monitored_resource_associations_details, opts = {})
|
3658
|
+
logger.debug 'Calling operation StackMonitoringClient#search_monitored_resource_associations.' if logger
|
3659
|
+
|
3660
|
+
raise "Missing the required parameter 'search_monitored_resource_associations_details' when calling search_monitored_resource_associations." if search_monitored_resource_associations_details.nil?
|
3661
|
+
|
3662
|
+
path = '/monitoredResources/actions/searchAssociations'
|
3663
|
+
operation_signing_strategy = :standard
|
3664
|
+
|
3665
|
+
# rubocop:disable Style/NegatedIf
|
3666
|
+
# Query Params
|
3667
|
+
query_params = {}
|
3668
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
3669
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3670
|
+
|
3671
|
+
# Header Params
|
3672
|
+
header_params = {}
|
3673
|
+
header_params[:accept] = 'application/json'
|
3674
|
+
header_params[:'content-type'] = 'application/json'
|
3675
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3676
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3677
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3678
|
+
# rubocop:enable Style/NegatedIf
|
3679
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3680
|
+
|
3681
|
+
post_body = @api_client.object_to_http_body(search_monitored_resource_associations_details)
|
3682
|
+
|
3683
|
+
# rubocop:disable Metrics/BlockLength
|
3684
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#search_monitored_resource_associations') do
|
3685
|
+
@api_client.call_api(
|
3686
|
+
:POST,
|
3687
|
+
path,
|
3688
|
+
endpoint,
|
3689
|
+
header_params: header_params,
|
3690
|
+
query_params: query_params,
|
3691
|
+
operation_signing_strategy: operation_signing_strategy,
|
3692
|
+
body: post_body,
|
3693
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceAssociationsCollection'
|
3694
|
+
)
|
3695
|
+
end
|
3696
|
+
# rubocop:enable Metrics/BlockLength
|
3697
|
+
end
|
3698
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3699
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3700
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3701
|
+
|
3702
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3703
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3704
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3705
|
+
|
3706
|
+
|
3707
|
+
# List the member resources for the given monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3708
|
+
#
|
3709
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
3710
|
+
# @param [OCI::StackMonitoring::Models::SearchMonitoredResourceMembersDetails] search_monitored_resource_members_details Search criteria for listing member monitored resources.
|
3711
|
+
#
|
3712
|
+
# @param [Hash] opts the optional parameters
|
3713
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3714
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3715
|
+
# @option opts [String] :sort_by If this query parameter is specified, the result is sorted by this query parameter value.
|
3716
|
+
# (default to resourceName)
|
3717
|
+
# Allowed values are: resourceName, resourceType, sourceResourceType
|
3718
|
+
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
3719
|
+
# (default to ASC)
|
3720
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3721
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3722
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3723
|
+
#
|
3724
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3725
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3726
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3727
|
+
# (default to 10)
|
3728
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3729
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3730
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3731
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3732
|
+
# might be rejected.
|
3733
|
+
#
|
3734
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3735
|
+
# particular request, please provide the request ID.
|
3736
|
+
#
|
3737
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3738
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3739
|
+
# etag from a previous GET or POST response for that resource.
|
3740
|
+
# The resource will be updated or deleted only if the etag you
|
3741
|
+
# provide matches the resource's current etag value.
|
3742
|
+
#
|
3743
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceMembersCollection MonitoredResourceMembersCollection}
|
3744
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/search_monitored_resource_members.rb.html) to see an example of how to use search_monitored_resource_members API.
|
3745
|
+
def search_monitored_resource_members(monitored_resource_id, search_monitored_resource_members_details, opts = {})
|
3746
|
+
logger.debug 'Calling operation StackMonitoringClient#search_monitored_resource_members.' if logger
|
3747
|
+
|
3748
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling search_monitored_resource_members." if monitored_resource_id.nil?
|
3749
|
+
raise "Missing the required parameter 'search_monitored_resource_members_details' when calling search_monitored_resource_members." if search_monitored_resource_members_details.nil?
|
3750
|
+
|
3751
|
+
if opts[:sort_by] && !%w[resourceName resourceType sourceResourceType].include?(opts[:sort_by])
|
3752
|
+
raise 'Invalid value for "sort_by", must be one of resourceName, resourceType, sourceResourceType.'
|
3753
|
+
end
|
3754
|
+
|
3755
|
+
if opts[:sort_order] && !OCI::StackMonitoring::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
|
3756
|
+
raise 'Invalid value for "sort_order", must be one of the values in OCI::StackMonitoring::Models::SORT_ORDER_ENUM.'
|
3757
|
+
end
|
3758
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
3759
|
+
|
3760
|
+
path = '/monitoredResources/{monitoredResourceId}/actions/listMembers'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
1582
3761
|
operation_signing_strategy = :standard
|
1583
3762
|
|
1584
3763
|
# rubocop:disable Style/NegatedIf
|
1585
3764
|
# Query Params
|
1586
3765
|
query_params = {}
|
1587
|
-
query_params[:compartmentId] = compartment_id
|
1588
|
-
query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
|
1589
|
-
query_params[:status] = opts[:status] if opts[:status]
|
1590
|
-
query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
|
1591
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1592
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1593
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1594
3766
|
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
3767
|
+
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
3768
|
+
query_params[:page] = opts[:page] if opts[:page]
|
3769
|
+
query_params[:limit] = opts[:limit] if opts[:limit]
|
1595
3770
|
|
1596
3771
|
# Header Params
|
1597
3772
|
header_params = {}
|
1598
3773
|
header_params[:accept] = 'application/json'
|
1599
3774
|
header_params[:'content-type'] = 'application/json'
|
3775
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1600
3776
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3777
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
1601
3778
|
# rubocop:enable Style/NegatedIf
|
3779
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1602
3780
|
|
1603
|
-
post_body =
|
3781
|
+
post_body = @api_client.object_to_http_body(search_monitored_resource_members_details)
|
1604
3782
|
|
1605
3783
|
# rubocop:disable Metrics/BlockLength
|
1606
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
3784
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#search_monitored_resource_members') do
|
1607
3785
|
@api_client.call_api(
|
1608
|
-
:
|
3786
|
+
:POST,
|
1609
3787
|
path,
|
1610
3788
|
endpoint,
|
1611
3789
|
header_params: header_params,
|
1612
3790
|
query_params: query_params,
|
1613
3791
|
operation_signing_strategy: operation_signing_strategy,
|
1614
3792
|
body: post_body,
|
1615
|
-
return_type: 'OCI::StackMonitoring::Models::
|
3793
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceMembersCollection'
|
1616
3794
|
)
|
1617
3795
|
end
|
1618
3796
|
# rubocop:enable Metrics/BlockLength
|
@@ -1626,13 +3804,21 @@ module OCI
|
|
1626
3804
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1627
3805
|
|
1628
3806
|
|
1629
|
-
#
|
1630
|
-
#
|
3807
|
+
# Gets a list of all monitored resources in a compartment for the given search criteria.
|
3808
|
+
#
|
3809
|
+
# @param [OCI::StackMonitoring::Models::SearchMonitoredResourcesDetails] search_monitored_resources_details Search Criteria for listing monitored resources.
|
1631
3810
|
#
|
1632
|
-
# @param [OCI::StackMonitoring::Models::SearchAssociatedResourcesDetails] search_associated_resources_details Search Criteria for the listing the monitored resources for given type and compartmentId.
|
1633
3811
|
# @param [Hash] opts the optional parameters
|
1634
3812
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1635
3813
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3814
|
+
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
3815
|
+
# paginated \"List\" call. For important details about how pagination works, see
|
3816
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3817
|
+
# (default to 10)
|
3818
|
+
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
3819
|
+
# previous \"List\" call. For important details about how pagination works, see
|
3820
|
+
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
3821
|
+
#
|
1636
3822
|
# @option opts [Array<String>] :fields Partial response refers to an optimization technique offered
|
1637
3823
|
# by the RESTful web APIs, to return only the information
|
1638
3824
|
# (fields) required by the client. In this mechanism, the client
|
@@ -1670,31 +3856,23 @@ module OCI
|
|
1670
3856
|
# The resource will be updated or deleted only if the etag you
|
1671
3857
|
# provide matches the resource's current etag value.
|
1672
3858
|
#
|
1673
|
-
# @
|
1674
|
-
#
|
1675
|
-
|
1676
|
-
|
1677
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1678
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1679
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1680
|
-
#
|
1681
|
-
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::AssociatedResourcesCollection AssociatedResourcesCollection}
|
1682
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/search_associated_resources.rb.html) to see an example of how to use search_associated_resources API.
|
1683
|
-
def search_associated_resources(search_associated_resources_details, opts = {})
|
1684
|
-
logger.debug 'Calling operation StackMonitoringClient#search_associated_resources.' if logger
|
3859
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceCollection MonitoredResourceCollection}
|
3860
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/search_monitored_resources.rb.html) to see an example of how to use search_monitored_resources API.
|
3861
|
+
def search_monitored_resources(search_monitored_resources_details, opts = {})
|
3862
|
+
logger.debug 'Calling operation StackMonitoringClient#search_monitored_resources.' if logger
|
1685
3863
|
|
1686
|
-
raise "Missing the required parameter '
|
3864
|
+
raise "Missing the required parameter 'search_monitored_resources_details' when calling search_monitored_resources." if search_monitored_resources_details.nil?
|
1687
3865
|
|
1688
|
-
path = '/monitoredResources/actions/
|
3866
|
+
path = '/monitoredResources/actions/search'
|
1689
3867
|
operation_signing_strategy = :standard
|
1690
3868
|
|
1691
3869
|
# rubocop:disable Style/NegatedIf
|
1692
3870
|
# Query Params
|
1693
3871
|
query_params = {}
|
1694
|
-
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
|
1695
|
-
query_params[:excludeFields] = OCI::ApiClient.build_collection_params(opts[:exclude_fields], :multi) if opts[:exclude_fields] && !opts[:exclude_fields].empty?
|
1696
3872
|
query_params[:limit] = opts[:limit] if opts[:limit]
|
1697
3873
|
query_params[:page] = opts[:page] if opts[:page]
|
3874
|
+
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
|
3875
|
+
query_params[:excludeFields] = OCI::ApiClient.build_collection_params(opts[:exclude_fields], :multi) if opts[:exclude_fields] && !opts[:exclude_fields].empty?
|
1698
3876
|
|
1699
3877
|
# Header Params
|
1700
3878
|
header_params = {}
|
@@ -1706,10 +3884,10 @@ module OCI
|
|
1706
3884
|
# rubocop:enable Style/NegatedIf
|
1707
3885
|
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1708
3886
|
|
1709
|
-
post_body = @api_client.object_to_http_body(
|
3887
|
+
post_body = @api_client.object_to_http_body(search_monitored_resources_details)
|
1710
3888
|
|
1711
3889
|
# rubocop:disable Metrics/BlockLength
|
1712
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
3890
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#search_monitored_resources') do
|
1713
3891
|
@api_client.call_api(
|
1714
3892
|
:POST,
|
1715
3893
|
path,
|
@@ -1718,7 +3896,156 @@ module OCI
|
|
1718
3896
|
query_params: query_params,
|
1719
3897
|
operation_signing_strategy: operation_signing_strategy,
|
1720
3898
|
body: post_body,
|
1721
|
-
return_type: 'OCI::StackMonitoring::Models::
|
3899
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceCollection'
|
3900
|
+
)
|
3901
|
+
end
|
3902
|
+
# rubocop:enable Metrics/BlockLength
|
3903
|
+
end
|
3904
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3905
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3906
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3907
|
+
|
3908
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3909
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3910
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3911
|
+
|
3912
|
+
|
3913
|
+
# Performs test of Metric Extension on a specific resource Id
|
3914
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
3915
|
+
# @param [OCI::StackMonitoring::Models::TestMetricExtensionDetails] test_metric_extension_details It contains OCID of resource.
|
3916
|
+
# @param [Hash] opts the optional parameters
|
3917
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3918
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3919
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
3920
|
+
# for a resource, set the `if-match` parameter to the value of the
|
3921
|
+
# etag from a previous GET or POST response for that resource.
|
3922
|
+
# The resource will be updated or deleted only if the etag you
|
3923
|
+
# provide matches the resource's current etag value.
|
3924
|
+
#
|
3925
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
3926
|
+
# particular request, please provide the request ID.
|
3927
|
+
#
|
3928
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3929
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3930
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3931
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
3932
|
+
# might be rejected.
|
3933
|
+
#
|
3934
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::TestMetricExtensionData TestMetricExtensionData}
|
3935
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/test_metric_extension.rb.html) to see an example of how to use test_metric_extension API.
|
3936
|
+
def test_metric_extension(metric_extension_id, test_metric_extension_details, opts = {})
|
3937
|
+
logger.debug 'Calling operation StackMonitoringClient#test_metric_extension.' if logger
|
3938
|
+
|
3939
|
+
raise "Missing the required parameter 'metric_extension_id' when calling test_metric_extension." if metric_extension_id.nil?
|
3940
|
+
raise "Missing the required parameter 'test_metric_extension_details' when calling test_metric_extension." if test_metric_extension_details.nil?
|
3941
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
3942
|
+
|
3943
|
+
path = '/metricExtensions/{metricExtensionId}/actions/test'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
3944
|
+
operation_signing_strategy = :standard
|
3945
|
+
|
3946
|
+
# rubocop:disable Style/NegatedIf
|
3947
|
+
# Query Params
|
3948
|
+
query_params = {}
|
3949
|
+
|
3950
|
+
# Header Params
|
3951
|
+
header_params = {}
|
3952
|
+
header_params[:accept] = 'application/json'
|
3953
|
+
header_params[:'content-type'] = 'application/json'
|
3954
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
3955
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
3956
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
3957
|
+
# rubocop:enable Style/NegatedIf
|
3958
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
3959
|
+
|
3960
|
+
post_body = @api_client.object_to_http_body(test_metric_extension_details)
|
3961
|
+
|
3962
|
+
# rubocop:disable Metrics/BlockLength
|
3963
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#test_metric_extension') do
|
3964
|
+
@api_client.call_api(
|
3965
|
+
:POST,
|
3966
|
+
path,
|
3967
|
+
endpoint,
|
3968
|
+
header_params: header_params,
|
3969
|
+
query_params: query_params,
|
3970
|
+
operation_signing_strategy: operation_signing_strategy,
|
3971
|
+
body: post_body,
|
3972
|
+
return_type: 'OCI::StackMonitoring::Models::TestMetricExtensionData'
|
3973
|
+
)
|
3974
|
+
end
|
3975
|
+
# rubocop:enable Metrics/BlockLength
|
3976
|
+
end
|
3977
|
+
# rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3978
|
+
# rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
|
3979
|
+
# rubocop:enable Metrics/MethodLength, Layout/EmptyLines
|
3980
|
+
|
3981
|
+
# rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
|
3982
|
+
# rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
|
3983
|
+
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
3984
|
+
|
3985
|
+
|
3986
|
+
# Provided tags will be added or updated in the existing list of tags for the affected resources.
|
3987
|
+
# Resources to be updated are identified based on association types specified.
|
3988
|
+
# If association types not specified, then tags will be updated only for the resource identified by
|
3989
|
+
# the given monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
3990
|
+
#
|
3991
|
+
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
3992
|
+
# @param [OCI::StackMonitoring::Models::UpdateAndPropagateTagsDetails] update_and_propagate_tags_details The tags to be updated.
|
3993
|
+
# @param [Hash] opts the optional parameters
|
3994
|
+
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
3995
|
+
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
3996
|
+
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3997
|
+
# server error without risk of executing that same action again. Retry tokens expire after 24
|
3998
|
+
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
3999
|
+
# has been deleted and purged from the system, then a retry of the original creation request
|
4000
|
+
# might be rejected.
|
4001
|
+
#
|
4002
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4003
|
+
# particular request, please provide the request ID.
|
4004
|
+
#
|
4005
|
+
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
4006
|
+
# for a resource, set the `if-match` parameter to the value of the
|
4007
|
+
# etag from a previous GET or POST response for that resource.
|
4008
|
+
# The resource will be updated or deleted only if the etag you
|
4009
|
+
# provide matches the resource's current etag value.
|
4010
|
+
#
|
4011
|
+
# @return [Response] A Response object with data of type nil
|
4012
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_and_propagate_tags.rb.html) to see an example of how to use update_and_propagate_tags API.
|
4013
|
+
def update_and_propagate_tags(monitored_resource_id, update_and_propagate_tags_details, opts = {})
|
4014
|
+
logger.debug 'Calling operation StackMonitoringClient#update_and_propagate_tags.' if logger
|
4015
|
+
|
4016
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling update_and_propagate_tags." if monitored_resource_id.nil?
|
4017
|
+
raise "Missing the required parameter 'update_and_propagate_tags_details' when calling update_and_propagate_tags." if update_and_propagate_tags_details.nil?
|
4018
|
+
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
4019
|
+
|
4020
|
+
path = '/monitoredResources/{monitoredResourceId}/actions/updateAndPropagateTags'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
4021
|
+
operation_signing_strategy = :standard
|
4022
|
+
|
4023
|
+
# rubocop:disable Style/NegatedIf
|
4024
|
+
# Query Params
|
4025
|
+
query_params = {}
|
4026
|
+
|
4027
|
+
# Header Params
|
4028
|
+
header_params = {}
|
4029
|
+
header_params[:accept] = 'application/json'
|
4030
|
+
header_params[:'content-type'] = 'application/json'
|
4031
|
+
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
4032
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
4033
|
+
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4034
|
+
# rubocop:enable Style/NegatedIf
|
4035
|
+
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
4036
|
+
|
4037
|
+
post_body = @api_client.object_to_http_body(update_and_propagate_tags_details)
|
4038
|
+
|
4039
|
+
# rubocop:disable Metrics/BlockLength
|
4040
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_and_propagate_tags') do
|
4041
|
+
@api_client.call_api(
|
4042
|
+
:POST,
|
4043
|
+
path,
|
4044
|
+
endpoint,
|
4045
|
+
header_params: header_params,
|
4046
|
+
query_params: query_params,
|
4047
|
+
operation_signing_strategy: operation_signing_strategy,
|
4048
|
+
body: post_body
|
1722
4049
|
)
|
1723
4050
|
end
|
1724
4051
|
# rubocop:enable Metrics/BlockLength
|
@@ -1732,75 +4059,58 @@ module OCI
|
|
1732
4059
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1733
4060
|
|
1734
4061
|
|
1735
|
-
#
|
1736
|
-
#
|
1737
|
-
# @param [
|
1738
|
-
#
|
4062
|
+
# Updates the Baseline-able metric for the given id
|
4063
|
+
# @param [OCI::StackMonitoring::Models::UpdateBaselineableMetricDetails] update_baselineable_metric_details Baseline metric
|
4064
|
+
# @param [String] baselineable_metric_id Identifier for the metric
|
1739
4065
|
# @param [Hash] opts the optional parameters
|
1740
4066
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1741
4067
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1742
|
-
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
1743
|
-
# paginated \"List\" call. For important details about how pagination works, see
|
1744
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1745
|
-
# (default to 10)
|
1746
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1747
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1748
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1749
|
-
#
|
1750
|
-
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1751
|
-
# particular request, please provide the request ID.
|
1752
|
-
#
|
1753
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1754
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1755
|
-
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1756
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1757
|
-
# might be rejected.
|
1758
|
-
#
|
1759
4068
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1760
4069
|
# for a resource, set the `if-match` parameter to the value of the
|
1761
4070
|
# etag from a previous GET or POST response for that resource.
|
1762
4071
|
# The resource will be updated or deleted only if the etag you
|
1763
4072
|
# provide matches the resource's current etag value.
|
1764
4073
|
#
|
1765
|
-
# @
|
1766
|
-
#
|
1767
|
-
|
1768
|
-
|
4074
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4075
|
+
# particular request, please provide the request ID.
|
4076
|
+
#
|
4077
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::BaselineableMetric BaselineableMetric}
|
4078
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_baselineable_metric.rb.html) to see an example of how to use update_baselineable_metric API.
|
4079
|
+
def update_baselineable_metric(update_baselineable_metric_details, baselineable_metric_id, opts = {})
|
4080
|
+
logger.debug 'Calling operation StackMonitoringClient#update_baselineable_metric.' if logger
|
1769
4081
|
|
1770
|
-
raise "Missing the required parameter '
|
4082
|
+
raise "Missing the required parameter 'update_baselineable_metric_details' when calling update_baselineable_metric." if update_baselineable_metric_details.nil?
|
4083
|
+
raise "Missing the required parameter 'baselineable_metric_id' when calling update_baselineable_metric." if baselineable_metric_id.nil?
|
4084
|
+
raise "Parameter value for 'baselineable_metric_id' must not be blank" if OCI::Internal::Util.blank_string?(baselineable_metric_id)
|
1771
4085
|
|
1772
|
-
path = '/
|
4086
|
+
path = '/baselineableMetrics/{baselineableMetricId}'.sub('{baselineableMetricId}', baselineable_metric_id.to_s)
|
1773
4087
|
operation_signing_strategy = :standard
|
1774
4088
|
|
1775
4089
|
# rubocop:disable Style/NegatedIf
|
1776
4090
|
# Query Params
|
1777
4091
|
query_params = {}
|
1778
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1779
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1780
4092
|
|
1781
4093
|
# Header Params
|
1782
4094
|
header_params = {}
|
1783
4095
|
header_params[:accept] = 'application/json'
|
1784
4096
|
header_params[:'content-type'] = 'application/json'
|
1785
|
-
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1786
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1787
4097
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4098
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1788
4099
|
# rubocop:enable Style/NegatedIf
|
1789
|
-
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1790
4100
|
|
1791
|
-
post_body = @api_client.object_to_http_body(
|
4101
|
+
post_body = @api_client.object_to_http_body(update_baselineable_metric_details)
|
1792
4102
|
|
1793
4103
|
# rubocop:disable Metrics/BlockLength
|
1794
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4104
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_baselineable_metric') do
|
1795
4105
|
@api_client.call_api(
|
1796
|
-
:
|
4106
|
+
:PUT,
|
1797
4107
|
path,
|
1798
4108
|
endpoint,
|
1799
4109
|
header_params: header_params,
|
1800
4110
|
query_params: query_params,
|
1801
4111
|
operation_signing_strategy: operation_signing_strategy,
|
1802
4112
|
body: post_body,
|
1803
|
-
return_type: 'OCI::StackMonitoring::Models::
|
4113
|
+
return_type: 'OCI::StackMonitoring::Models::BaselineableMetric'
|
1804
4114
|
)
|
1805
4115
|
end
|
1806
4116
|
# rubocop:enable Metrics/BlockLength
|
@@ -1814,93 +4124,58 @@ module OCI
|
|
1814
4124
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1815
4125
|
|
1816
4126
|
|
1817
|
-
#
|
1818
|
-
#
|
1819
|
-
# @param [
|
1820
|
-
# @param [OCI::StackMonitoring::Models::SearchMonitoredResourceMembersDetails] search_monitored_resource_members_details Search criteria for listing member monitored resources.
|
1821
|
-
#
|
4127
|
+
# Updates the configuration identified by the id given.
|
4128
|
+
# @param [String] config_id Unique Config identifier.
|
4129
|
+
# @param [OCI::StackMonitoring::Models::UpdateConfigDetails] update_config_details The details of the configuration to be updated.
|
1822
4130
|
# @param [Hash] opts the optional parameters
|
1823
4131
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1824
4132
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1825
|
-
# @option opts [String] :sort_by If this query parameter is specified, the result is sorted by this query parameter value.
|
1826
|
-
# (default to resourceName)
|
1827
|
-
# Allowed values are: resourceName, resourceType, sourceResourceType
|
1828
|
-
# @option opts [String] :sort_order The sort order to use, either ascending (`ASC`) or descending (`DESC`).
|
1829
|
-
# (default to ASC)
|
1830
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1831
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1832
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1833
|
-
#
|
1834
|
-
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
1835
|
-
# paginated \"List\" call. For important details about how pagination works, see
|
1836
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1837
|
-
# (default to 10)
|
1838
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1839
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1840
|
-
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1841
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1842
|
-
# might be rejected.
|
1843
|
-
#
|
1844
|
-
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1845
|
-
# particular request, please provide the request ID.
|
1846
|
-
#
|
1847
4133
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1848
4134
|
# for a resource, set the `if-match` parameter to the value of the
|
1849
4135
|
# etag from a previous GET or POST response for that resource.
|
1850
4136
|
# The resource will be updated or deleted only if the etag you
|
1851
4137
|
# provide matches the resource's current etag value.
|
1852
4138
|
#
|
1853
|
-
# @
|
1854
|
-
#
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1859
|
-
|
1860
|
-
|
1861
|
-
if opts[:sort_by] && !%w[resourceName resourceType sourceResourceType].include?(opts[:sort_by])
|
1862
|
-
raise 'Invalid value for "sort_by", must be one of resourceName, resourceType, sourceResourceType.'
|
1863
|
-
end
|
4139
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4140
|
+
# particular request, please provide the request ID.
|
4141
|
+
#
|
4142
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::Config Config}
|
4143
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_config.rb.html) to see an example of how to use update_config API.
|
4144
|
+
def update_config(config_id, update_config_details, opts = {})
|
4145
|
+
logger.debug 'Calling operation StackMonitoringClient#update_config.' if logger
|
1864
4146
|
|
1865
|
-
|
1866
|
-
|
1867
|
-
|
1868
|
-
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
4147
|
+
raise "Missing the required parameter 'config_id' when calling update_config." if config_id.nil?
|
4148
|
+
raise "Missing the required parameter 'update_config_details' when calling update_config." if update_config_details.nil?
|
4149
|
+
raise "Parameter value for 'config_id' must not be blank" if OCI::Internal::Util.blank_string?(config_id)
|
1869
4150
|
|
1870
|
-
path = '/
|
4151
|
+
path = '/configs/{configId}'.sub('{configId}', config_id.to_s)
|
1871
4152
|
operation_signing_strategy = :standard
|
1872
4153
|
|
1873
4154
|
# rubocop:disable Style/NegatedIf
|
1874
4155
|
# Query Params
|
1875
4156
|
query_params = {}
|
1876
|
-
query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
|
1877
|
-
query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
|
1878
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1879
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1880
4157
|
|
1881
4158
|
# Header Params
|
1882
4159
|
header_params = {}
|
1883
4160
|
header_params[:accept] = 'application/json'
|
1884
4161
|
header_params[:'content-type'] = 'application/json'
|
1885
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1886
|
-
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1887
4162
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4163
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1888
4164
|
# rubocop:enable Style/NegatedIf
|
1889
|
-
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1890
4165
|
|
1891
|
-
post_body = @api_client.object_to_http_body(
|
4166
|
+
post_body = @api_client.object_to_http_body(update_config_details)
|
1892
4167
|
|
1893
4168
|
# rubocop:disable Metrics/BlockLength
|
1894
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4169
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_config') do
|
1895
4170
|
@api_client.call_api(
|
1896
|
-
:
|
4171
|
+
:PUT,
|
1897
4172
|
path,
|
1898
4173
|
endpoint,
|
1899
4174
|
header_params: header_params,
|
1900
4175
|
query_params: query_params,
|
1901
4176
|
operation_signing_strategy: operation_signing_strategy,
|
1902
4177
|
body: post_body,
|
1903
|
-
return_type: 'OCI::StackMonitoring::Models::
|
4178
|
+
return_type: 'OCI::StackMonitoring::Models::Config'
|
1904
4179
|
)
|
1905
4180
|
end
|
1906
4181
|
# rubocop:enable Metrics/BlockLength
|
@@ -1914,99 +4189,58 @@ module OCI
|
|
1914
4189
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
1915
4190
|
|
1916
4191
|
|
1917
|
-
#
|
1918
|
-
#
|
1919
|
-
# @param [OCI::StackMonitoring::Models::
|
1920
|
-
#
|
4192
|
+
# Updates the Metric Extension
|
4193
|
+
# @param [String] metric_extension_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of the metric extension resource.
|
4194
|
+
# @param [OCI::StackMonitoring::Models::UpdateMetricExtensionDetails] update_metric_extension_details The information to be updated.
|
1921
4195
|
# @param [Hash] opts the optional parameters
|
1922
4196
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
1923
4197
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
1924
|
-
# @option opts [Integer] :limit For list pagination. The maximum number of results per page, or items to return in a
|
1925
|
-
# paginated \"List\" call. For important details about how pagination works, see
|
1926
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1927
|
-
# (default to 10)
|
1928
|
-
# @option opts [String] :page For list pagination. The value of the `opc-next-page` response header from the
|
1929
|
-
# previous \"List\" call. For important details about how pagination works, see
|
1930
|
-
# [List Pagination](https://docs.cloud.oracle.com/iaas/Content/API/Concepts/usingapi.htm#nine).
|
1931
|
-
#
|
1932
|
-
# @option opts [Array<String>] :fields Partial response refers to an optimization technique offered
|
1933
|
-
# by the RESTful web APIs, to return only the information
|
1934
|
-
# (fields) required by the client. In this mechanism, the client
|
1935
|
-
# sends the required field names as the query parameters for
|
1936
|
-
# an API to the server, and the server trims down the default
|
1937
|
-
# response content by removing the fields that are not required
|
1938
|
-
# by the client. The parameter controls which fields to
|
1939
|
-
# return and should be a query string parameter called \"fields\" of
|
1940
|
-
# an array type, provide the values as enums, and use collectionFormat.
|
1941
|
-
#
|
1942
|
-
# @option opts [Array<String>] :exclude_fields Partial response refers to an optimization technique offered
|
1943
|
-
# by the RESTful web APIs, to return all the information except
|
1944
|
-
# the fields requested to be excluded (excludeFields) by the client.
|
1945
|
-
# In this mechanism, the client
|
1946
|
-
# sends the exclude field names as the query parameters for
|
1947
|
-
# an API to the server, and the server trims down the default
|
1948
|
-
# response content by removing the fields that are not required
|
1949
|
-
# by the client. The parameter controls which fields to
|
1950
|
-
# exlude and to return and should be a query string parameter
|
1951
|
-
# called \"excludeFields\" of an array type, provide the values
|
1952
|
-
# as enums, and use collectionFormat.
|
1953
|
-
#
|
1954
|
-
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
1955
|
-
# particular request, please provide the request ID.
|
1956
|
-
#
|
1957
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1958
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
1959
|
-
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
1960
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
1961
|
-
# might be rejected.
|
1962
|
-
#
|
1963
4198
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
1964
4199
|
# for a resource, set the `if-match` parameter to the value of the
|
1965
4200
|
# etag from a previous GET or POST response for that resource.
|
1966
4201
|
# The resource will be updated or deleted only if the etag you
|
1967
4202
|
# provide matches the resource's current etag value.
|
1968
4203
|
#
|
1969
|
-
# @
|
1970
|
-
#
|
1971
|
-
|
1972
|
-
|
4204
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4205
|
+
# particular request, please provide the request ID.
|
4206
|
+
#
|
4207
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MetricExtension MetricExtension}
|
4208
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_metric_extension.rb.html) to see an example of how to use update_metric_extension API.
|
4209
|
+
def update_metric_extension(metric_extension_id, update_metric_extension_details, opts = {})
|
4210
|
+
logger.debug 'Calling operation StackMonitoringClient#update_metric_extension.' if logger
|
1973
4211
|
|
1974
|
-
raise "Missing the required parameter '
|
4212
|
+
raise "Missing the required parameter 'metric_extension_id' when calling update_metric_extension." if metric_extension_id.nil?
|
4213
|
+
raise "Missing the required parameter 'update_metric_extension_details' when calling update_metric_extension." if update_metric_extension_details.nil?
|
4214
|
+
raise "Parameter value for 'metric_extension_id' must not be blank" if OCI::Internal::Util.blank_string?(metric_extension_id)
|
1975
4215
|
|
1976
|
-
path = '/
|
4216
|
+
path = '/metricExtensions/{metricExtensionId}'.sub('{metricExtensionId}', metric_extension_id.to_s)
|
1977
4217
|
operation_signing_strategy = :standard
|
1978
4218
|
|
1979
4219
|
# rubocop:disable Style/NegatedIf
|
1980
4220
|
# Query Params
|
1981
4221
|
query_params = {}
|
1982
|
-
query_params[:limit] = opts[:limit] if opts[:limit]
|
1983
|
-
query_params[:page] = opts[:page] if opts[:page]
|
1984
|
-
query_params[:fields] = OCI::ApiClient.build_collection_params(opts[:fields], :multi) if opts[:fields] && !opts[:fields].empty?
|
1985
|
-
query_params[:excludeFields] = OCI::ApiClient.build_collection_params(opts[:exclude_fields], :multi) if opts[:exclude_fields] && !opts[:exclude_fields].empty?
|
1986
4222
|
|
1987
4223
|
# Header Params
|
1988
4224
|
header_params = {}
|
1989
4225
|
header_params[:accept] = 'application/json'
|
1990
4226
|
header_params[:'content-type'] = 'application/json'
|
1991
|
-
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1992
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
1993
4227
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4228
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
1994
4229
|
# rubocop:enable Style/NegatedIf
|
1995
|
-
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
1996
4230
|
|
1997
|
-
post_body = @api_client.object_to_http_body(
|
4231
|
+
post_body = @api_client.object_to_http_body(update_metric_extension_details)
|
1998
4232
|
|
1999
4233
|
# rubocop:disable Metrics/BlockLength
|
2000
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4234
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_metric_extension') do
|
2001
4235
|
@api_client.call_api(
|
2002
|
-
:
|
4236
|
+
:PUT,
|
2003
4237
|
path,
|
2004
4238
|
endpoint,
|
2005
4239
|
header_params: header_params,
|
2006
4240
|
query_params: query_params,
|
2007
4241
|
operation_signing_strategy: operation_signing_strategy,
|
2008
4242
|
body: post_body,
|
2009
|
-
return_type: 'OCI::StackMonitoring::Models::
|
4243
|
+
return_type: 'OCI::StackMonitoring::Models::MetricExtension'
|
2010
4244
|
)
|
2011
4245
|
end
|
2012
4246
|
# rubocop:enable Metrics/BlockLength
|
@@ -2020,41 +4254,34 @@ module OCI
|
|
2020
4254
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2021
4255
|
|
2022
4256
|
|
2023
|
-
#
|
2024
|
-
#
|
2025
|
-
#
|
2026
|
-
# the given monitored resource identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4257
|
+
# Update monitored resource by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4258
|
+
# Note that \"properties\" object, if specified, will entirely replace the existing object,
|
4259
|
+
# as part this operation.
|
2027
4260
|
#
|
2028
4261
|
# @param [String] monitored_resource_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource.
|
2029
|
-
# @param [OCI::StackMonitoring::Models::
|
4262
|
+
# @param [OCI::StackMonitoring::Models::UpdateMonitoredResourceDetails] update_monitored_resource_details The information to be updated.
|
2030
4263
|
# @param [Hash] opts the optional parameters
|
2031
4264
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2032
4265
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
2033
|
-
# @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2034
|
-
# server error without risk of executing that same action again. Retry tokens expire after 24
|
2035
|
-
# hours, but can be invalidated before then due to conflicting operations. For example, if a resource
|
2036
|
-
# has been deleted and purged from the system, then a retry of the original creation request
|
2037
|
-
# might be rejected.
|
2038
|
-
#
|
2039
|
-
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2040
|
-
# particular request, please provide the request ID.
|
2041
|
-
#
|
2042
4266
|
# @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
|
2043
4267
|
# for a resource, set the `if-match` parameter to the value of the
|
2044
4268
|
# etag from a previous GET or POST response for that resource.
|
2045
4269
|
# The resource will be updated or deleted only if the etag you
|
2046
4270
|
# provide matches the resource's current etag value.
|
2047
4271
|
#
|
4272
|
+
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
4273
|
+
# particular request, please provide the request ID.
|
4274
|
+
#
|
2048
4275
|
# @return [Response] A Response object with data of type nil
|
2049
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
2050
|
-
def
|
2051
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
4276
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_monitored_resource.rb.html) to see an example of how to use update_monitored_resource API.
|
4277
|
+
def update_monitored_resource(monitored_resource_id, update_monitored_resource_details, opts = {})
|
4278
|
+
logger.debug 'Calling operation StackMonitoringClient#update_monitored_resource.' if logger
|
2052
4279
|
|
2053
|
-
raise "Missing the required parameter 'monitored_resource_id' when calling
|
2054
|
-
raise "Missing the required parameter '
|
4280
|
+
raise "Missing the required parameter 'monitored_resource_id' when calling update_monitored_resource." if monitored_resource_id.nil?
|
4281
|
+
raise "Missing the required parameter 'update_monitored_resource_details' when calling update_monitored_resource." if update_monitored_resource_details.nil?
|
2055
4282
|
raise "Parameter value for 'monitored_resource_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_id)
|
2056
4283
|
|
2057
|
-
path = '/monitoredResources/{monitoredResourceId}
|
4284
|
+
path = '/monitoredResources/{monitoredResourceId}'.sub('{monitoredResourceId}', monitored_resource_id.to_s)
|
2058
4285
|
operation_signing_strategy = :standard
|
2059
4286
|
|
2060
4287
|
# rubocop:disable Style/NegatedIf
|
@@ -2065,18 +4292,16 @@ module OCI
|
|
2065
4292
|
header_params = {}
|
2066
4293
|
header_params[:accept] = 'application/json'
|
2067
4294
|
header_params[:'content-type'] = 'application/json'
|
2068
|
-
header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
|
2069
|
-
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2070
4295
|
header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
|
4296
|
+
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2071
4297
|
# rubocop:enable Style/NegatedIf
|
2072
|
-
header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
|
2073
4298
|
|
2074
|
-
post_body = @api_client.object_to_http_body(
|
4299
|
+
post_body = @api_client.object_to_http_body(update_monitored_resource_details)
|
2075
4300
|
|
2076
4301
|
# rubocop:disable Metrics/BlockLength
|
2077
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4302
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_monitored_resource') do
|
2078
4303
|
@api_client.call_api(
|
2079
|
-
:
|
4304
|
+
:PUT,
|
2080
4305
|
path,
|
2081
4306
|
endpoint,
|
2082
4307
|
header_params: header_params,
|
@@ -2096,9 +4321,10 @@ module OCI
|
|
2096
4321
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2097
4322
|
|
2098
4323
|
|
2099
|
-
#
|
2100
|
-
#
|
2101
|
-
# @param [
|
4324
|
+
# Update stack monitoring resource task by the given identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
4325
|
+
#
|
4326
|
+
# @param [String] monitored_resource_task_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of stack monitoring resource task.
|
4327
|
+
# @param [OCI::StackMonitoring::Models::UpdateMonitoredResourceTaskDetails] update_monitored_resource_task_details The information to be updated.
|
2102
4328
|
# @param [Hash] opts the optional parameters
|
2103
4329
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2104
4330
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -2111,16 +4337,16 @@ module OCI
|
|
2111
4337
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2112
4338
|
# particular request, please provide the request ID.
|
2113
4339
|
#
|
2114
|
-
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::
|
2115
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
2116
|
-
def
|
2117
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
4340
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceTask MonitoredResourceTask}
|
4341
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_monitored_resource_task.rb.html) to see an example of how to use update_monitored_resource_task API.
|
4342
|
+
def update_monitored_resource_task(monitored_resource_task_id, update_monitored_resource_task_details, opts = {})
|
4343
|
+
logger.debug 'Calling operation StackMonitoringClient#update_monitored_resource_task.' if logger
|
2118
4344
|
|
2119
|
-
raise "Missing the required parameter '
|
2120
|
-
raise "Missing the required parameter '
|
2121
|
-
raise "Parameter value for '
|
4345
|
+
raise "Missing the required parameter 'monitored_resource_task_id' when calling update_monitored_resource_task." if monitored_resource_task_id.nil?
|
4346
|
+
raise "Missing the required parameter 'update_monitored_resource_task_details' when calling update_monitored_resource_task." if update_monitored_resource_task_details.nil?
|
4347
|
+
raise "Parameter value for 'monitored_resource_task_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_task_id)
|
2122
4348
|
|
2123
|
-
path = '/
|
4349
|
+
path = '/monitoredResourceTasks/{monitoredResourceTaskId}'.sub('{monitoredResourceTaskId}', monitored_resource_task_id.to_s)
|
2124
4350
|
operation_signing_strategy = :standard
|
2125
4351
|
|
2126
4352
|
# rubocop:disable Style/NegatedIf
|
@@ -2135,10 +4361,10 @@ module OCI
|
|
2135
4361
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2136
4362
|
# rubocop:enable Style/NegatedIf
|
2137
4363
|
|
2138
|
-
post_body = @api_client.object_to_http_body(
|
4364
|
+
post_body = @api_client.object_to_http_body(update_monitored_resource_task_details)
|
2139
4365
|
|
2140
4366
|
# rubocop:disable Metrics/BlockLength
|
2141
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4367
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_monitored_resource_task') do
|
2142
4368
|
@api_client.call_api(
|
2143
4369
|
:PUT,
|
2144
4370
|
path,
|
@@ -2147,7 +4373,7 @@ module OCI
|
|
2147
4373
|
query_params: query_params,
|
2148
4374
|
operation_signing_strategy: operation_signing_strategy,
|
2149
4375
|
body: post_body,
|
2150
|
-
return_type: 'OCI::StackMonitoring::Models::
|
4376
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceTask'
|
2151
4377
|
)
|
2152
4378
|
end
|
2153
4379
|
# rubocop:enable Metrics/BlockLength
|
@@ -2161,12 +4387,10 @@ module OCI
|
|
2161
4387
|
# rubocop:disable Metrics/MethodLength, Layout/EmptyLines
|
2162
4388
|
|
2163
4389
|
|
2164
|
-
# Update
|
2165
|
-
# Note that \"properties\" object, if specified, will entirely replace the existing object,
|
2166
|
-
# as part this operation.
|
4390
|
+
# Update the Monitored Resource Type identified by the identifier [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm).
|
2167
4391
|
#
|
2168
|
-
# @param [String]
|
2169
|
-
# @param [OCI::StackMonitoring::Models::
|
4392
|
+
# @param [String] monitored_resource_type_id The [OCID](https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm) of monitored resource type.
|
4393
|
+
# @param [OCI::StackMonitoring::Models::UpdateMonitoredResourceTypeDetails] update_monitored_resource_type_details The information to be updated for the given resource type id.
|
2170
4394
|
# @param [Hash] opts the optional parameters
|
2171
4395
|
# @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
|
2172
4396
|
# retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
|
@@ -2179,16 +4403,16 @@ module OCI
|
|
2179
4403
|
# @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a
|
2180
4404
|
# particular request, please provide the request ID.
|
2181
4405
|
#
|
2182
|
-
# @return [Response] A Response object with data of type
|
2183
|
-
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/
|
2184
|
-
def
|
2185
|
-
logger.debug 'Calling operation StackMonitoringClient#
|
4406
|
+
# @return [Response] A Response object with data of type {OCI::StackMonitoring::Models::MonitoredResourceType MonitoredResourceType}
|
4407
|
+
# @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/stackmonitoring/update_monitored_resource_type.rb.html) to see an example of how to use update_monitored_resource_type API.
|
4408
|
+
def update_monitored_resource_type(monitored_resource_type_id, update_monitored_resource_type_details, opts = {})
|
4409
|
+
logger.debug 'Calling operation StackMonitoringClient#update_monitored_resource_type.' if logger
|
2186
4410
|
|
2187
|
-
raise "Missing the required parameter '
|
2188
|
-
raise "Missing the required parameter '
|
2189
|
-
raise "Parameter value for '
|
4411
|
+
raise "Missing the required parameter 'monitored_resource_type_id' when calling update_monitored_resource_type." if monitored_resource_type_id.nil?
|
4412
|
+
raise "Missing the required parameter 'update_monitored_resource_type_details' when calling update_monitored_resource_type." if update_monitored_resource_type_details.nil?
|
4413
|
+
raise "Parameter value for 'monitored_resource_type_id' must not be blank" if OCI::Internal::Util.blank_string?(monitored_resource_type_id)
|
2190
4414
|
|
2191
|
-
path = '/
|
4415
|
+
path = '/monitoredResourceTypes/{monitoredResourceTypeId}'.sub('{monitoredResourceTypeId}', monitored_resource_type_id.to_s)
|
2192
4416
|
operation_signing_strategy = :standard
|
2193
4417
|
|
2194
4418
|
# rubocop:disable Style/NegatedIf
|
@@ -2203,10 +4427,10 @@ module OCI
|
|
2203
4427
|
header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
|
2204
4428
|
# rubocop:enable Style/NegatedIf
|
2205
4429
|
|
2206
|
-
post_body = @api_client.object_to_http_body(
|
4430
|
+
post_body = @api_client.object_to_http_body(update_monitored_resource_type_details)
|
2207
4431
|
|
2208
4432
|
# rubocop:disable Metrics/BlockLength
|
2209
|
-
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#
|
4433
|
+
OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'StackMonitoringClient#update_monitored_resource_type') do
|
2210
4434
|
@api_client.call_api(
|
2211
4435
|
:PUT,
|
2212
4436
|
path,
|
@@ -2214,7 +4438,8 @@ module OCI
|
|
2214
4438
|
header_params: header_params,
|
2215
4439
|
query_params: query_params,
|
2216
4440
|
operation_signing_strategy: operation_signing_strategy,
|
2217
|
-
body: post_body
|
4441
|
+
body: post_body,
|
4442
|
+
return_type: 'OCI::StackMonitoring::Models::MonitoredResourceType'
|
2218
4443
|
)
|
2219
4444
|
end
|
2220
4445
|
# rubocop:enable Metrics/BlockLength
|