oci 2.129.4__py3-none-any.whl → 2.130.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +870 -87
- oci/ai_speech/ai_service_speech_client_composite_operations.py +146 -0
- oci/ai_speech/models/__init__.py +70 -0
- oci/ai_speech/models/change_customization_compartment_details.py +78 -0
- oci/ai_speech/models/create_customization_details.py +289 -0
- oci/ai_speech/models/create_realtime_session_token_details.py +142 -0
- oci/ai_speech/models/customization.py +544 -0
- oci/ai_speech/models/customization_collection.py +72 -0
- oci/ai_speech/models/customization_dataset_details.py +109 -0
- oci/ai_speech/models/customization_inference.py +173 -0
- oci/ai_speech/models/customization_inference_entity.py +138 -0
- oci/ai_speech/models/customization_model_details.py +139 -0
- oci/ai_speech/models/customization_referenced_entities.py +134 -0
- oci/ai_speech/models/customization_summary.py +396 -0
- oci/ai_speech/models/entity.py +134 -0
- oci/ai_speech/models/entity_list.py +166 -0
- oci/ai_speech/models/entity_list_dataset.py +115 -0
- oci/ai_speech/models/location_details.py +101 -0
- oci/ai_speech/models/object_list_dataset.py +144 -0
- oci/ai_speech/models/object_storage_dataset.py +109 -0
- oci/ai_speech/models/pronunciation.py +99 -0
- oci/ai_speech/models/realtime_message.py +168 -0
- oci/ai_speech/models/realtime_message_ack_audio.py +85 -0
- oci/ai_speech/models/realtime_message_ack_audio_details.py +134 -0
- oci/ai_speech/models/realtime_message_authentication.py +140 -0
- oci/ai_speech/models/realtime_message_authentication_credentials.py +89 -0
- oci/ai_speech/models/realtime_message_authentication_token.py +89 -0
- oci/ai_speech/models/realtime_message_connect.py +58 -0
- oci/ai_speech/models/realtime_message_error.py +120 -0
- oci/ai_speech/models/realtime_message_out.py +103 -0
- oci/ai_speech/models/realtime_message_result.py +89 -0
- oci/ai_speech/models/realtime_message_result_transcription.py +258 -0
- oci/ai_speech/models/realtime_message_result_transcription_token.py +212 -0
- oci/ai_speech/models/realtime_message_send_final_result.py +51 -0
- oci/ai_speech/models/realtime_model_details.py +139 -0
- oci/ai_speech/models/realtime_parameters.py +390 -0
- oci/ai_speech/models/realtime_session_token.py +200 -0
- oci/ai_speech/models/update_customization_details.py +254 -0
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/signers/ephemeral_resource_principals_v21_signer.py +38 -5
- oci/auth/signers/key_pair_signer.py +2 -2
- oci/auth/signers/resource_principals_signer.py +17 -5
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +66 -66
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +508 -99
- oci/core/compute_client_composite_operations.py +39 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +6 -0
- oci/core/models/instance_maintenance_event.py +1022 -0
- oci/core/models/instance_maintenance_event_summary.py +795 -0
- oci/core/models/update_instance_maintenance_event_details.py +281 -0
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +3154 -2286
- oci/data_safe/data_safe_client_composite_operations.py +307 -0
- oci/data_safe/models/__init__.py +2 -0
- oci/data_safe/models/alert.py +62 -0
- oci/data_safe/models/alert_policy.py +31 -0
- oci/data_safe/models/alert_policy_rule.py +127 -2
- oci/data_safe/models/alert_policy_rule_summary.py +127 -2
- oci/data_safe/models/alert_policy_summary.py +31 -0
- oci/data_safe/models/alert_summary.py +62 -0
- oci/data_safe/models/create_alert_policy_details.py +31 -0
- oci/data_safe/models/create_alert_policy_rule_details.py +33 -2
- oci/data_safe/models/report.py +42 -3
- oci/data_safe/models/report_definition.py +38 -3
- oci/data_safe/models/report_definition_summary.py +7 -3
- oci/data_safe/models/report_summary.py +11 -3
- oci/data_safe/models/target_alert_policy_association.py +31 -0
- oci/data_safe/models/target_alert_policy_association_summary.py +31 -0
- oci/data_safe/models/update_alert_policy_details.py +240 -0
- oci/data_safe/models/update_alert_policy_rule_details.py +33 -2
- oci/data_safe/models/work_request.py +31 -3
- oci/data_safe/models/work_request_summary.py +31 -3
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +356 -356
- oci/database/models/autonomous_database.py +37 -2
- oci/database/models/autonomous_database_summary.py +37 -2
- oci/database_management/db_management_client.py +208 -208
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +792 -66
- oci/database_migration/database_migration_client_composite_operations.py +179 -0
- oci/database_migration/models/__init__.py +8 -0
- oci/database_migration/models/adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/create_parameter_file_version_details.py +181 -0
- oci/database_migration/models/job.py +31 -0
- oci/database_migration/models/non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/parameter_file_version.py +274 -0
- oci/database_migration/models/parameter_file_version_collection.py +72 -0
- oci/database_migration/models/parameter_file_version_summary.py +342 -0
- oci/database_migration/models/phase_status.py +80 -2
- oci/database_migration/models/update_adb_dedicated_auto_create_tablespace_details.py +11 -3
- oci/database_migration/models/update_non_adb_auto_create_tablespace_details.py +11 -3
- oci/database_tools/database_tools_client.py +23 -23
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +51 -51
- oci/fleet_software_update/fleet_software_update_client.py +259 -45
- oci/fleet_software_update/fleet_software_update_client_composite_operations.py +52 -1
- oci/fleet_software_update/models/__init__.py +4 -0
- oci/fleet_software_update/models/cloud_vm_cluster_target_summary.py +33 -2
- oci/fleet_software_update/models/create_fsu_cycle_details.py +27 -0
- oci/fleet_software_update/models/create_patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/diagnostics_collection_details.py +94 -0
- oci/fleet_software_update/models/fsu_collection_target.py +239 -0
- oci/fleet_software_update/models/fsu_cycle.py +27 -0
- oci/fleet_software_update/models/fsu_cycle_summary.py +27 -0
- oci/fleet_software_update/models/gi_resource_id_filter.py +7 -3
- oci/fleet_software_update/models/image_id_fsu_target_details.py +4 -1
- oci/fleet_software_update/models/patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/update_fsu_cycle_details.py +27 -0
- oci/fleet_software_update/models/update_patch_fsu_cycle.py +7 -0
- oci/fleet_software_update/models/vm_cluster_target_summary.py +33 -2
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +1525 -662
- oci/identity_domains/models/__init__.py +12 -0
- oci/identity_domains/models/extension_social_identity_provider.py +220 -0
- oci/identity_domains/models/identity_propagation_trust.py +0 -49
- oci/identity_domains/models/identity_provider_jit_prov_assigned_groups.py +214 -0
- oci/identity_domains/models/social_identity_provider.py +2083 -0
- oci/identity_domains/models/social_identity_provider_jit_prov_assigned_groups.py +202 -0
- oci/identity_domains/models/social_identity_provider_relay_idp_param_mappings.py +147 -0
- oci/identity_domains/models/social_identity_provider_search_request.py +364 -0
- oci/identity_domains/models/social_identity_providers.py +196 -0
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/models/__init__.py +22 -0
- oci/network_firewall/models/create_tunnel_inspection_rule_details.py +218 -0
- oci/network_firewall/models/create_vxlan_inspection_rule_details.py +127 -0
- oci/network_firewall/models/tunnel_inspection_rule.py +280 -0
- oci/network_firewall/models/tunnel_inspection_rule_summary.py +253 -0
- oci/network_firewall/models/tunnel_inspection_rule_summary_collection.py +72 -0
- oci/network_firewall/models/update_tunnel_inspection_rule_details.py +187 -0
- oci/network_firewall/models/update_vxlan_inspection_rule_details.py +120 -0
- oci/network_firewall/models/vxlan_inspection_rule.py +141 -0
- oci/network_firewall/models/vxlan_inspection_rule_match_criteria.py +104 -0
- oci/network_firewall/models/vxlan_inspection_rule_profile.py +72 -0
- oci/network_firewall/models/vxlan_inspection_rule_summary.py +134 -0
- oci/network_firewall/network_firewall_client.py +837 -97
- oci/network_firewall/network_firewall_client_composite_operations.py +42 -0
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +177 -177
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/onboarding_client.py +6 -6
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +7 -7
- oci/os_management_hub/software_source_client.py +27 -27
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/postgresql_client.py +33 -33
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +25 -25
- oci/redis/models/create_redis_cluster_details.py +12 -2
- oci/redis/models/redis_cluster.py +19 -5
- oci/redis/models/redis_cluster_summary.py +12 -2
- oci/redis/models/update_redis_cluster_details.py +12 -2
- oci/redis/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/baselineable_metric.py +155 -124
- oci/stack_monitoring/models/baselineable_metric_summary.py +31 -0
- oci/stack_monitoring/models/create_baselineable_metric_details.py +35 -4
- oci/stack_monitoring/models/update_baselineable_metric_details.py +31 -0
- oci/stack_monitoring/stack_monitoring_client.py +74 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/METADATA +1 -1
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/RECORD +380 -318
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/WHEEL +0 -0
- {oci-2.129.4.dist-info → oci-2.130.0.dist-info}/top_level.txt +0 -0
@@ -313,6 +313,48 @@ class DataSafeClientCompositeOperations(object):
|
|
313
313
|
except Exception as e:
|
314
314
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
315
315
|
|
316
|
+
def change_alert_policy_compartment_and_wait_for_state(self, alert_policy_id, change_alert_policy_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
317
|
+
"""
|
318
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.change_alert_policy_compartment` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
319
|
+
to enter the given state(s).
|
320
|
+
|
321
|
+
:param str alert_policy_id: (required)
|
322
|
+
The OCID of the alert policy.
|
323
|
+
|
324
|
+
:param oci.data_safe.models.ChangeAlertPolicyCompartmentDetails change_alert_policy_compartment_details: (required)
|
325
|
+
The details used to change the compartment of an alert policy.
|
326
|
+
|
327
|
+
:param list[str] wait_for_states:
|
328
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
329
|
+
|
330
|
+
:param dict operation_kwargs:
|
331
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.change_alert_policy_compartment`
|
332
|
+
|
333
|
+
:param dict waiter_kwargs:
|
334
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
335
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
336
|
+
"""
|
337
|
+
operation_result = self.client.change_alert_policy_compartment(alert_policy_id, change_alert_policy_compartment_details, **operation_kwargs)
|
338
|
+
if not wait_for_states:
|
339
|
+
return operation_result
|
340
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
341
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
342
|
+
return operation_result
|
343
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
344
|
+
|
345
|
+
try:
|
346
|
+
waiter_result = oci.wait_until(
|
347
|
+
self.client,
|
348
|
+
self.client.get_work_request(wait_for_resource_id),
|
349
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
350
|
+
**waiter_kwargs
|
351
|
+
)
|
352
|
+
result_to_return = waiter_result
|
353
|
+
|
354
|
+
return result_to_return
|
355
|
+
except Exception as e:
|
356
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
357
|
+
|
316
358
|
def change_audit_archive_retrieval_compartment_and_wait_for_state(self, audit_archive_retrieval_id, change_audit_archive_retrieval_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
317
359
|
"""
|
318
360
|
Calls :py:func:`~oci.data_safe.DataSafeClient.change_audit_archive_retrieval_compartment` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
@@ -901,6 +943,87 @@ class DataSafeClientCompositeOperations(object):
|
|
901
943
|
except Exception as e:
|
902
944
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
903
945
|
|
946
|
+
def create_alert_policy_and_wait_for_state(self, create_alert_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
947
|
+
"""
|
948
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.create_alert_policy` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
949
|
+
to enter the given state(s).
|
950
|
+
|
951
|
+
:param oci.data_safe.models.CreateAlertPolicyDetails create_alert_policy_details: (required)
|
952
|
+
The details used to create a new alert policy.
|
953
|
+
|
954
|
+
:param list[str] wait_for_states:
|
955
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
956
|
+
|
957
|
+
:param dict operation_kwargs:
|
958
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.create_alert_policy`
|
959
|
+
|
960
|
+
:param dict waiter_kwargs:
|
961
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
962
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
963
|
+
"""
|
964
|
+
operation_result = self.client.create_alert_policy(create_alert_policy_details, **operation_kwargs)
|
965
|
+
if not wait_for_states:
|
966
|
+
return operation_result
|
967
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
968
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
969
|
+
return operation_result
|
970
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
971
|
+
|
972
|
+
try:
|
973
|
+
waiter_result = oci.wait_until(
|
974
|
+
self.client,
|
975
|
+
self.client.get_work_request(wait_for_resource_id),
|
976
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
977
|
+
**waiter_kwargs
|
978
|
+
)
|
979
|
+
result_to_return = waiter_result
|
980
|
+
|
981
|
+
return result_to_return
|
982
|
+
except Exception as e:
|
983
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
984
|
+
|
985
|
+
def create_alert_policy_rule_and_wait_for_state(self, create_alert_policy_rule_details, alert_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
986
|
+
"""
|
987
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.create_alert_policy_rule` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
988
|
+
to enter the given state(s).
|
989
|
+
|
990
|
+
:param oci.data_safe.models.CreateAlertPolicyRuleDetails create_alert_policy_rule_details: (required)
|
991
|
+
The details used to create a new alert policy rule.
|
992
|
+
|
993
|
+
:param str alert_policy_id: (required)
|
994
|
+
The OCID of the alert policy.
|
995
|
+
|
996
|
+
:param list[str] wait_for_states:
|
997
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
998
|
+
|
999
|
+
:param dict operation_kwargs:
|
1000
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.create_alert_policy_rule`
|
1001
|
+
|
1002
|
+
:param dict waiter_kwargs:
|
1003
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1004
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1005
|
+
"""
|
1006
|
+
operation_result = self.client.create_alert_policy_rule(create_alert_policy_rule_details, alert_policy_id, **operation_kwargs)
|
1007
|
+
if not wait_for_states:
|
1008
|
+
return operation_result
|
1009
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1010
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1011
|
+
return operation_result
|
1012
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1013
|
+
|
1014
|
+
try:
|
1015
|
+
waiter_result = oci.wait_until(
|
1016
|
+
self.client,
|
1017
|
+
self.client.get_work_request(wait_for_resource_id),
|
1018
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1019
|
+
**waiter_kwargs
|
1020
|
+
)
|
1021
|
+
result_to_return = waiter_result
|
1022
|
+
|
1023
|
+
return result_to_return
|
1024
|
+
except Exception as e:
|
1025
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1026
|
+
|
904
1027
|
def create_audit_archive_retrieval_and_wait_for_state(self, create_audit_archive_retrieval_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
905
1028
|
"""
|
906
1029
|
Calls :py:func:`~oci.data_safe.DataSafeClient.create_audit_archive_retrieval` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
@@ -1651,6 +1774,103 @@ class DataSafeClientCompositeOperations(object):
|
|
1651
1774
|
except Exception as e:
|
1652
1775
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1653
1776
|
|
1777
|
+
def delete_alert_policy_and_wait_for_state(self, alert_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1778
|
+
"""
|
1779
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.delete_alert_policy` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
1780
|
+
to enter the given state(s).
|
1781
|
+
|
1782
|
+
:param str alert_policy_id: (required)
|
1783
|
+
The OCID of the alert policy.
|
1784
|
+
|
1785
|
+
:param list[str] wait_for_states:
|
1786
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
1787
|
+
|
1788
|
+
:param dict operation_kwargs:
|
1789
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.delete_alert_policy`
|
1790
|
+
|
1791
|
+
:param dict waiter_kwargs:
|
1792
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1793
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1794
|
+
"""
|
1795
|
+
operation_result = None
|
1796
|
+
try:
|
1797
|
+
operation_result = self.client.delete_alert_policy(alert_policy_id, **operation_kwargs)
|
1798
|
+
except oci.exceptions.ServiceError as e:
|
1799
|
+
if e.status == 404:
|
1800
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1801
|
+
else:
|
1802
|
+
raise e
|
1803
|
+
|
1804
|
+
if not wait_for_states:
|
1805
|
+
return operation_result
|
1806
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1807
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1808
|
+
return operation_result
|
1809
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1810
|
+
|
1811
|
+
try:
|
1812
|
+
waiter_result = oci.wait_until(
|
1813
|
+
self.client,
|
1814
|
+
self.client.get_work_request(wait_for_resource_id),
|
1815
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1816
|
+
**waiter_kwargs
|
1817
|
+
)
|
1818
|
+
result_to_return = waiter_result
|
1819
|
+
|
1820
|
+
return result_to_return
|
1821
|
+
except Exception as e:
|
1822
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1823
|
+
|
1824
|
+
def delete_alert_policy_rule_and_wait_for_state(self, alert_policy_id, rule_key, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1825
|
+
"""
|
1826
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.delete_alert_policy_rule` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
1827
|
+
to enter the given state(s).
|
1828
|
+
|
1829
|
+
:param str alert_policy_id: (required)
|
1830
|
+
The OCID of the alert policy.
|
1831
|
+
|
1832
|
+
:param str rule_key: (required)
|
1833
|
+
The key of the alert policy rule.
|
1834
|
+
|
1835
|
+
:param list[str] wait_for_states:
|
1836
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
1837
|
+
|
1838
|
+
:param dict operation_kwargs:
|
1839
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.delete_alert_policy_rule`
|
1840
|
+
|
1841
|
+
:param dict waiter_kwargs:
|
1842
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1843
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1844
|
+
"""
|
1845
|
+
operation_result = None
|
1846
|
+
try:
|
1847
|
+
operation_result = self.client.delete_alert_policy_rule(alert_policy_id, rule_key, **operation_kwargs)
|
1848
|
+
except oci.exceptions.ServiceError as e:
|
1849
|
+
if e.status == 404:
|
1850
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1851
|
+
else:
|
1852
|
+
raise e
|
1853
|
+
|
1854
|
+
if not wait_for_states:
|
1855
|
+
return operation_result
|
1856
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1857
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1858
|
+
return operation_result
|
1859
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1860
|
+
|
1861
|
+
try:
|
1862
|
+
waiter_result = oci.wait_until(
|
1863
|
+
self.client,
|
1864
|
+
self.client.get_work_request(wait_for_resource_id),
|
1865
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1866
|
+
**waiter_kwargs
|
1867
|
+
)
|
1868
|
+
result_to_return = waiter_result
|
1869
|
+
|
1870
|
+
return result_to_return
|
1871
|
+
except Exception as e:
|
1872
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1873
|
+
|
1654
1874
|
def delete_audit_archive_retrieval_and_wait_for_state(self, audit_archive_retrieval_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1655
1875
|
"""
|
1656
1876
|
Calls :py:func:`~oci.data_safe.DataSafeClient.delete_audit_archive_retrieval` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
@@ -4155,6 +4375,93 @@ class DataSafeClientCompositeOperations(object):
|
|
4155
4375
|
except Exception as e:
|
4156
4376
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
4157
4377
|
|
4378
|
+
def update_alert_policy_and_wait_for_state(self, alert_policy_id, update_alert_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
4379
|
+
"""
|
4380
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.update_alert_policy` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
4381
|
+
to enter the given state(s).
|
4382
|
+
|
4383
|
+
:param str alert_policy_id: (required)
|
4384
|
+
The OCID of the alert policy.
|
4385
|
+
|
4386
|
+
:param oci.data_safe.models.UpdateAlertPolicyDetails update_alert_policy_details: (required)
|
4387
|
+
The details used to update the alert policy.
|
4388
|
+
|
4389
|
+
:param list[str] wait_for_states:
|
4390
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
4391
|
+
|
4392
|
+
:param dict operation_kwargs:
|
4393
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.update_alert_policy`
|
4394
|
+
|
4395
|
+
:param dict waiter_kwargs:
|
4396
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
4397
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
4398
|
+
"""
|
4399
|
+
operation_result = self.client.update_alert_policy(alert_policy_id, update_alert_policy_details, **operation_kwargs)
|
4400
|
+
if not wait_for_states:
|
4401
|
+
return operation_result
|
4402
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
4403
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
4404
|
+
return operation_result
|
4405
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4406
|
+
|
4407
|
+
try:
|
4408
|
+
waiter_result = oci.wait_until(
|
4409
|
+
self.client,
|
4410
|
+
self.client.get_work_request(wait_for_resource_id),
|
4411
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
4412
|
+
**waiter_kwargs
|
4413
|
+
)
|
4414
|
+
result_to_return = waiter_result
|
4415
|
+
|
4416
|
+
return result_to_return
|
4417
|
+
except Exception as e:
|
4418
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
4419
|
+
|
4420
|
+
def update_alert_policy_rule_and_wait_for_state(self, alert_policy_id, rule_key, update_alert_policy_rule_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
4421
|
+
"""
|
4422
|
+
Calls :py:func:`~oci.data_safe.DataSafeClient.update_alert_policy_rule` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
4423
|
+
to enter the given state(s).
|
4424
|
+
|
4425
|
+
:param str alert_policy_id: (required)
|
4426
|
+
The OCID of the alert policy.
|
4427
|
+
|
4428
|
+
:param str rule_key: (required)
|
4429
|
+
The key of the alert policy rule.
|
4430
|
+
|
4431
|
+
:param oci.data_safe.models.UpdateAlertPolicyRuleDetails update_alert_policy_rule_details: (required)
|
4432
|
+
The details used to update the alert policy rule.
|
4433
|
+
|
4434
|
+
:param list[str] wait_for_states:
|
4435
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.data_safe.models.WorkRequest.status`
|
4436
|
+
|
4437
|
+
:param dict operation_kwargs:
|
4438
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.data_safe.DataSafeClient.update_alert_policy_rule`
|
4439
|
+
|
4440
|
+
:param dict waiter_kwargs:
|
4441
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
4442
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
4443
|
+
"""
|
4444
|
+
operation_result = self.client.update_alert_policy_rule(alert_policy_id, rule_key, update_alert_policy_rule_details, **operation_kwargs)
|
4445
|
+
if not wait_for_states:
|
4446
|
+
return operation_result
|
4447
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
4448
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
4449
|
+
return operation_result
|
4450
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
4451
|
+
|
4452
|
+
try:
|
4453
|
+
waiter_result = oci.wait_until(
|
4454
|
+
self.client,
|
4455
|
+
self.client.get_work_request(wait_for_resource_id),
|
4456
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
4457
|
+
**waiter_kwargs
|
4458
|
+
)
|
4459
|
+
result_to_return = waiter_result
|
4460
|
+
|
4461
|
+
return result_to_return
|
4462
|
+
except Exception as e:
|
4463
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
4464
|
+
|
4158
4465
|
def update_audit_archive_retrieval_and_wait_for_state(self, audit_archive_retrieval_id, update_audit_archive_retrieval_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
4159
4466
|
"""
|
4160
4467
|
Calls :py:func:`~oci.data_safe.DataSafeClient.update_audit_archive_retrieval` and waits for the :py:class:`~oci.data_safe.models.WorkRequest`
|
oci/data_safe/models/__init__.py
CHANGED
@@ -363,6 +363,7 @@ from .udf_format_entry import UDFFormatEntry
|
|
363
363
|
from .unset_security_assessment_baseline_details import UnsetSecurityAssessmentBaselineDetails
|
364
364
|
from .unset_user_assessment_baseline_details import UnsetUserAssessmentBaselineDetails
|
365
365
|
from .update_alert_details import UpdateAlertDetails
|
366
|
+
from .update_alert_policy_details import UpdateAlertPolicyDetails
|
366
367
|
from .update_alert_policy_rule_details import UpdateAlertPolicyRuleDetails
|
367
368
|
from .update_audit_archive_retrieval_details import UpdateAuditArchiveRetrievalDetails
|
368
369
|
from .update_audit_policy_details import UpdateAuditPolicyDetails
|
@@ -771,6 +772,7 @@ data_safe_type_mapping = {
|
|
771
772
|
"UnsetSecurityAssessmentBaselineDetails": UnsetSecurityAssessmentBaselineDetails,
|
772
773
|
"UnsetUserAssessmentBaselineDetails": UnsetUserAssessmentBaselineDetails,
|
773
774
|
"UpdateAlertDetails": UpdateAlertDetails,
|
775
|
+
"UpdateAlertPolicyDetails": UpdateAlertPolicyDetails,
|
774
776
|
"UpdateAlertPolicyRuleDetails": UpdateAlertPolicyRuleDetails,
|
775
777
|
"UpdateAuditArchiveRetrievalDetails": UpdateAuditArchiveRetrievalDetails,
|
776
778
|
"UpdateAuditPolicyDetails": UpdateAuditPolicyDetails,
|
oci/data_safe/models/alert.py
CHANGED
@@ -166,6 +166,14 @@ class Alert(object):
|
|
166
166
|
The value to assign to the time_updated property of this Alert.
|
167
167
|
:type time_updated: datetime
|
168
168
|
|
169
|
+
:param alert_policy_rule_key:
|
170
|
+
The value to assign to the alert_policy_rule_key property of this Alert.
|
171
|
+
:type alert_policy_rule_key: str
|
172
|
+
|
173
|
+
:param alert_policy_rule_name:
|
174
|
+
The value to assign to the alert_policy_rule_name property of this Alert.
|
175
|
+
:type alert_policy_rule_name: str
|
176
|
+
|
169
177
|
:param freeform_tags:
|
170
178
|
The value to assign to the freeform_tags property of this Alert.
|
171
179
|
:type freeform_tags: dict(str, str)
|
@@ -199,6 +207,8 @@ class Alert(object):
|
|
199
207
|
'lifecycle_state': 'str',
|
200
208
|
'time_created': 'datetime',
|
201
209
|
'time_updated': 'datetime',
|
210
|
+
'alert_policy_rule_key': 'str',
|
211
|
+
'alert_policy_rule_name': 'str',
|
202
212
|
'freeform_tags': 'dict(str, str)',
|
203
213
|
'defined_tags': 'dict(str, dict(str, object))',
|
204
214
|
'system_tags': 'dict(str, dict(str, object))'
|
@@ -224,6 +234,8 @@ class Alert(object):
|
|
224
234
|
'lifecycle_state': 'lifecycleState',
|
225
235
|
'time_created': 'timeCreated',
|
226
236
|
'time_updated': 'timeUpdated',
|
237
|
+
'alert_policy_rule_key': 'alertPolicyRuleKey',
|
238
|
+
'alert_policy_rule_name': 'alertPolicyRuleName',
|
227
239
|
'freeform_tags': 'freeformTags',
|
228
240
|
'defined_tags': 'definedTags',
|
229
241
|
'system_tags': 'systemTags'
|
@@ -248,6 +260,8 @@ class Alert(object):
|
|
248
260
|
self._lifecycle_state = None
|
249
261
|
self._time_created = None
|
250
262
|
self._time_updated = None
|
263
|
+
self._alert_policy_rule_key = None
|
264
|
+
self._alert_policy_rule_name = None
|
251
265
|
self._freeform_tags = None
|
252
266
|
self._defined_tags = None
|
253
267
|
self._system_tags = None
|
@@ -752,6 +766,54 @@ class Alert(object):
|
|
752
766
|
"""
|
753
767
|
self._time_updated = time_updated
|
754
768
|
|
769
|
+
@property
|
770
|
+
def alert_policy_rule_key(self):
|
771
|
+
"""
|
772
|
+
Gets the alert_policy_rule_key of this Alert.
|
773
|
+
The key of the rule of alert policy that triggered alert.
|
774
|
+
|
775
|
+
|
776
|
+
:return: The alert_policy_rule_key of this Alert.
|
777
|
+
:rtype: str
|
778
|
+
"""
|
779
|
+
return self._alert_policy_rule_key
|
780
|
+
|
781
|
+
@alert_policy_rule_key.setter
|
782
|
+
def alert_policy_rule_key(self, alert_policy_rule_key):
|
783
|
+
"""
|
784
|
+
Sets the alert_policy_rule_key of this Alert.
|
785
|
+
The key of the rule of alert policy that triggered alert.
|
786
|
+
|
787
|
+
|
788
|
+
:param alert_policy_rule_key: The alert_policy_rule_key of this Alert.
|
789
|
+
:type: str
|
790
|
+
"""
|
791
|
+
self._alert_policy_rule_key = alert_policy_rule_key
|
792
|
+
|
793
|
+
@property
|
794
|
+
def alert_policy_rule_name(self):
|
795
|
+
"""
|
796
|
+
Gets the alert_policy_rule_name of this Alert.
|
797
|
+
The display name of the rule of alert policy that triggered alert.
|
798
|
+
|
799
|
+
|
800
|
+
:return: The alert_policy_rule_name of this Alert.
|
801
|
+
:rtype: str
|
802
|
+
"""
|
803
|
+
return self._alert_policy_rule_name
|
804
|
+
|
805
|
+
@alert_policy_rule_name.setter
|
806
|
+
def alert_policy_rule_name(self, alert_policy_rule_name):
|
807
|
+
"""
|
808
|
+
Sets the alert_policy_rule_name of this Alert.
|
809
|
+
The display name of the rule of alert policy that triggered alert.
|
810
|
+
|
811
|
+
|
812
|
+
:param alert_policy_rule_name: The alert_policy_rule_name of this Alert.
|
813
|
+
:type: str
|
814
|
+
"""
|
815
|
+
self._alert_policy_rule_name = alert_policy_rule_name
|
816
|
+
|
755
817
|
@property
|
756
818
|
def freeform_tags(self):
|
757
819
|
"""
|
@@ -124,6 +124,10 @@ class AlertPolicy(object):
|
|
124
124
|
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
125
125
|
:type lifecycle_state: str
|
126
126
|
|
127
|
+
:param lifecycle_details:
|
128
|
+
The value to assign to the lifecycle_details property of this AlertPolicy.
|
129
|
+
:type lifecycle_details: str
|
130
|
+
|
127
131
|
:param freeform_tags:
|
128
132
|
The value to assign to the freeform_tags property of this AlertPolicy.
|
129
133
|
:type freeform_tags: dict(str, str)
|
@@ -148,6 +152,7 @@ class AlertPolicy(object):
|
|
148
152
|
'time_created': 'datetime',
|
149
153
|
'time_updated': 'datetime',
|
150
154
|
'lifecycle_state': 'str',
|
155
|
+
'lifecycle_details': 'str',
|
151
156
|
'freeform_tags': 'dict(str, str)',
|
152
157
|
'defined_tags': 'dict(str, dict(str, object))',
|
153
158
|
'system_tags': 'dict(str, dict(str, object))'
|
@@ -164,6 +169,7 @@ class AlertPolicy(object):
|
|
164
169
|
'time_created': 'timeCreated',
|
165
170
|
'time_updated': 'timeUpdated',
|
166
171
|
'lifecycle_state': 'lifecycleState',
|
172
|
+
'lifecycle_details': 'lifecycleDetails',
|
167
173
|
'freeform_tags': 'freeformTags',
|
168
174
|
'defined_tags': 'definedTags',
|
169
175
|
'system_tags': 'systemTags'
|
@@ -179,6 +185,7 @@ class AlertPolicy(object):
|
|
179
185
|
self._time_created = None
|
180
186
|
self._time_updated = None
|
181
187
|
self._lifecycle_state = None
|
188
|
+
self._lifecycle_details = None
|
182
189
|
self._freeform_tags = None
|
183
190
|
self._defined_tags = None
|
184
191
|
self._system_tags = None
|
@@ -449,6 +456,30 @@ class AlertPolicy(object):
|
|
449
456
|
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
|
450
457
|
self._lifecycle_state = lifecycle_state
|
451
458
|
|
459
|
+
@property
|
460
|
+
def lifecycle_details(self):
|
461
|
+
"""
|
462
|
+
Gets the lifecycle_details of this AlertPolicy.
|
463
|
+
Details about the current state of the alert policy.
|
464
|
+
|
465
|
+
|
466
|
+
:return: The lifecycle_details of this AlertPolicy.
|
467
|
+
:rtype: str
|
468
|
+
"""
|
469
|
+
return self._lifecycle_details
|
470
|
+
|
471
|
+
@lifecycle_details.setter
|
472
|
+
def lifecycle_details(self, lifecycle_details):
|
473
|
+
"""
|
474
|
+
Sets the lifecycle_details of this AlertPolicy.
|
475
|
+
Details about the current state of the alert policy.
|
476
|
+
|
477
|
+
|
478
|
+
:param lifecycle_details: The lifecycle_details of this AlertPolicy.
|
479
|
+
:type: str
|
480
|
+
"""
|
481
|
+
self._lifecycle_details = lifecycle_details
|
482
|
+
|
452
483
|
@property
|
453
484
|
def freeform_tags(self):
|
454
485
|
"""
|
@@ -15,6 +15,26 @@ class AlertPolicyRule(object):
|
|
15
15
|
A rule associated with a alert policy.
|
16
16
|
"""
|
17
17
|
|
18
|
+
#: A constant which can be used with the lifecycle_state property of a AlertPolicyRule.
|
19
|
+
#: This constant has a value of "CREATING"
|
20
|
+
LIFECYCLE_STATE_CREATING = "CREATING"
|
21
|
+
|
22
|
+
#: A constant which can be used with the lifecycle_state property of a AlertPolicyRule.
|
23
|
+
#: This constant has a value of "UPDATING"
|
24
|
+
LIFECYCLE_STATE_UPDATING = "UPDATING"
|
25
|
+
|
26
|
+
#: A constant which can be used with the lifecycle_state property of a AlertPolicyRule.
|
27
|
+
#: This constant has a value of "ACTIVE"
|
28
|
+
LIFECYCLE_STATE_ACTIVE = "ACTIVE"
|
29
|
+
|
30
|
+
#: A constant which can be used with the lifecycle_state property of a AlertPolicyRule.
|
31
|
+
#: This constant has a value of "DELETING"
|
32
|
+
LIFECYCLE_STATE_DELETING = "DELETING"
|
33
|
+
|
34
|
+
#: A constant which can be used with the lifecycle_state property of a AlertPolicyRule.
|
35
|
+
#: This constant has a value of "FAILED"
|
36
|
+
LIFECYCLE_STATE_FAILED = "FAILED"
|
37
|
+
|
18
38
|
def __init__(self, **kwargs):
|
19
39
|
"""
|
20
40
|
Initializes a new AlertPolicyRule object with values from keyword arguments.
|
@@ -32,22 +52,45 @@ class AlertPolicyRule(object):
|
|
32
52
|
The value to assign to the expression property of this AlertPolicyRule.
|
33
53
|
:type expression: str
|
34
54
|
|
55
|
+
:param lifecycle_state:
|
56
|
+
The value to assign to the lifecycle_state property of this AlertPolicyRule.
|
57
|
+
Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
|
58
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
59
|
+
:type lifecycle_state: str
|
60
|
+
|
61
|
+
:param display_name:
|
62
|
+
The value to assign to the display_name property of this AlertPolicyRule.
|
63
|
+
:type display_name: str
|
64
|
+
|
65
|
+
:param time_created:
|
66
|
+
The value to assign to the time_created property of this AlertPolicyRule.
|
67
|
+
:type time_created: datetime
|
68
|
+
|
35
69
|
"""
|
36
70
|
self.swagger_types = {
|
37
71
|
'key': 'str',
|
38
72
|
'description': 'str',
|
39
|
-
'expression': 'str'
|
73
|
+
'expression': 'str',
|
74
|
+
'lifecycle_state': 'str',
|
75
|
+
'display_name': 'str',
|
76
|
+
'time_created': 'datetime'
|
40
77
|
}
|
41
78
|
|
42
79
|
self.attribute_map = {
|
43
80
|
'key': 'key',
|
44
81
|
'description': 'description',
|
45
|
-
'expression': 'expression'
|
82
|
+
'expression': 'expression',
|
83
|
+
'lifecycle_state': 'lifecycleState',
|
84
|
+
'display_name': 'displayName',
|
85
|
+
'time_created': 'timeCreated'
|
46
86
|
}
|
47
87
|
|
48
88
|
self._key = None
|
49
89
|
self._description = None
|
50
90
|
self._expression = None
|
91
|
+
self._lifecycle_state = None
|
92
|
+
self._display_name = None
|
93
|
+
self._time_created = None
|
51
94
|
|
52
95
|
@property
|
53
96
|
def key(self):
|
@@ -121,6 +164,88 @@ class AlertPolicyRule(object):
|
|
121
164
|
"""
|
122
165
|
self._expression = expression
|
123
166
|
|
167
|
+
@property
|
168
|
+
def lifecycle_state(self):
|
169
|
+
"""
|
170
|
+
Gets the lifecycle_state of this AlertPolicyRule.
|
171
|
+
The current state of the alert policy rule.
|
172
|
+
|
173
|
+
Allowed values for this property are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED", 'UNKNOWN_ENUM_VALUE'.
|
174
|
+
Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
|
175
|
+
|
176
|
+
|
177
|
+
:return: The lifecycle_state of this AlertPolicyRule.
|
178
|
+
:rtype: str
|
179
|
+
"""
|
180
|
+
return self._lifecycle_state
|
181
|
+
|
182
|
+
@lifecycle_state.setter
|
183
|
+
def lifecycle_state(self, lifecycle_state):
|
184
|
+
"""
|
185
|
+
Sets the lifecycle_state of this AlertPolicyRule.
|
186
|
+
The current state of the alert policy rule.
|
187
|
+
|
188
|
+
|
189
|
+
:param lifecycle_state: The lifecycle_state of this AlertPolicyRule.
|
190
|
+
:type: str
|
191
|
+
"""
|
192
|
+
allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "FAILED"]
|
193
|
+
if not value_allowed_none_or_none_sentinel(lifecycle_state, allowed_values):
|
194
|
+
lifecycle_state = 'UNKNOWN_ENUM_VALUE'
|
195
|
+
self._lifecycle_state = lifecycle_state
|
196
|
+
|
197
|
+
@property
|
198
|
+
def display_name(self):
|
199
|
+
"""
|
200
|
+
Gets the display_name of this AlertPolicyRule.
|
201
|
+
The display name of the alert policy rule.
|
202
|
+
|
203
|
+
|
204
|
+
:return: The display_name of this AlertPolicyRule.
|
205
|
+
:rtype: str
|
206
|
+
"""
|
207
|
+
return self._display_name
|
208
|
+
|
209
|
+
@display_name.setter
|
210
|
+
def display_name(self, display_name):
|
211
|
+
"""
|
212
|
+
Sets the display_name of this AlertPolicyRule.
|
213
|
+
The display name of the alert policy rule.
|
214
|
+
|
215
|
+
|
216
|
+
:param display_name: The display_name of this AlertPolicyRule.
|
217
|
+
:type: str
|
218
|
+
"""
|
219
|
+
self._display_name = display_name
|
220
|
+
|
221
|
+
@property
|
222
|
+
def time_created(self):
|
223
|
+
"""
|
224
|
+
Gets the time_created of this AlertPolicyRule.
|
225
|
+
Creation date and time of the alert policy rule, in the format defined by `RFC3339`__.
|
226
|
+
|
227
|
+
__ https://tools.ietf.org/html/rfc3339
|
228
|
+
|
229
|
+
|
230
|
+
:return: The time_created of this AlertPolicyRule.
|
231
|
+
:rtype: datetime
|
232
|
+
"""
|
233
|
+
return self._time_created
|
234
|
+
|
235
|
+
@time_created.setter
|
236
|
+
def time_created(self, time_created):
|
237
|
+
"""
|
238
|
+
Sets the time_created of this AlertPolicyRule.
|
239
|
+
Creation date and time of the alert policy rule, in the format defined by `RFC3339`__.
|
240
|
+
|
241
|
+
__ https://tools.ietf.org/html/rfc3339
|
242
|
+
|
243
|
+
|
244
|
+
:param time_created: The time_created of this AlertPolicyRule.
|
245
|
+
:type: datetime
|
246
|
+
"""
|
247
|
+
self._time_created = time_created
|
248
|
+
|
124
249
|
def __repr__(self):
|
125
250
|
return formatted_flat_dict(self)
|
126
251
|
|