oci 2.126.2__py3-none-any.whl → 2.126.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +10 -10
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +2338 -522
- oci/bds/bds_client_composite_operations.py +403 -0
- oci/bds/models/__init__.py +32 -0
- oci/bds/models/backup_node_details.py +99 -0
- oci/bds/models/create_node_backup_configuration_details.py +223 -0
- oci/bds/models/create_node_replace_configuration_details.py +192 -0
- oci/bds/models/level_type_details.py +109 -0
- oci/bds/models/node.py +64 -2
- oci/bds/models/node_backup.py +388 -0
- oci/bds/models/node_backup_configuration.py +410 -0
- oci/bds/models/node_backup_configuration_summary.py +254 -0
- oci/bds/models/node_backup_summary.py +289 -0
- oci/bds/models/node_level_details.py +82 -0
- oci/bds/models/node_replace_configuration.py +364 -0
- oci/bds/models/node_replace_configuration_summary.py +254 -0
- oci/bds/models/node_type_level_details.py +82 -0
- oci/bds/models/remove_node_replace_configuration_details.py +72 -0
- oci/bds/models/replace_node_details.py +165 -0
- oci/bds/models/update_node_backup_configuration_details.py +223 -0
- oci/bds/models/update_node_replace_configuration_details.py +161 -0
- oci/bds/models/work_request.py +39 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +19 -19
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +26 -26
- 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 +99 -99
- oci/core/compute_management_client.py +32 -32
- 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 +278 -278
- oci/data_science/data_science_client.py +124 -98
- oci/data_science/models/__init__.py +10 -0
- oci/data_science/models/fast_launch_job_config_summary.py +7 -3
- oci/data_science/models/job_shape_summary.py +7 -3
- oci/data_science/models/model_deployment_shape_summary.py +7 -3
- oci/data_science/models/notebook_session_shape_summary.py +7 -3
- oci/data_science/models/pipeline_container_configuration_details.py +101 -0
- oci/data_science/models/pipeline_container_step_details.py +164 -0
- oci/data_science/models/pipeline_container_step_run.py +87 -0
- oci/data_science/models/pipeline_container_step_update_details.py +99 -0
- oci/data_science/models/pipeline_custom_script_step_details.py +1 -1
- oci/data_science/models/pipeline_custom_script_step_run.py +1 -1
- oci/data_science/models/pipeline_custom_script_step_update_details.py +30 -3
- oci/data_science/models/pipeline_infrastructure_configuration_details.py +31 -0
- oci/data_science/models/pipeline_ml_job_step_details.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_run.py +1 -1
- oci/data_science/models/pipeline_ml_job_step_update_details.py +1 -1
- oci/data_science/models/pipeline_ocir_container_configuration_details.py +228 -0
- oci/data_science/models/pipeline_step_details.py +11 -3
- oci/data_science/models/pipeline_step_override_details.py +29 -2
- oci/data_science/models/pipeline_step_run.py +11 -3
- oci/data_science/models/pipeline_step_update_details.py +11 -3
- oci/data_science/models/update_pipeline_details.py +29 -2
- oci/database/database_client.py +333 -333
- oci/database/models/create_vm_cluster_details.py +33 -2
- oci/database/models/exadata_infrastructure.py +31 -0
- oci/database/models/exadata_infrastructure_summary.py +31 -0
- oci/database/models/update_vm_cluster_details.py +33 -2
- oci/database/models/vm_cluster.py +33 -2
- oci/database/models/vm_cluster_summary.py +33 -2
- oci/database_management/db_management_client.py +206 -206
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +13 -13
- oci/email/email_client.py +608 -28
- oci/email/email_client_composite_operations.py +132 -0
- oci/email/models/__init__.py +10 -0
- oci/email/models/create_email_domain_details.py +31 -0
- oci/email/models/create_email_return_path_details.py +239 -0
- oci/email/models/email_domain.py +82 -0
- oci/email/models/email_return_path.py +577 -0
- oci/email/models/email_return_path_collection.py +72 -0
- oci/email/models/email_return_path_summary.py +444 -0
- oci/email/models/sender.py +15 -3
- oci/email/models/update_email_domain_details.py +31 -0
- oci/email/models/update_email_return_path_details.py +156 -0
- oci/email/models/work_request.py +15 -3
- oci/email/models/work_request_summary.py +15 -3
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +29 -29
- oci/golden_gate/golden_gate_client.py +61 -61
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +300 -300
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +66 -66
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/load_balancer/models/ssl_configuration.py +41 -0
- oci/load_balancer/models/ssl_configuration_details.py +41 -0
- 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/__init__.py +16 -0
- oci/marketplace_private_offer/attachment_client.py +719 -0
- oci/marketplace_private_offer/attachment_client_composite_operations.py +71 -0
- oci/marketplace_private_offer/models/__init__.py +48 -0
- oci/marketplace_private_offer/models/attachment.py +446 -0
- oci/marketplace_private_offer/models/attachment_collection.py +72 -0
- oci/marketplace_private_offer/models/attachment_summary.py +293 -0
- oci/marketplace_private_offer/models/buyer_information.py +161 -0
- oci/marketplace_private_offer/models/contact.py +134 -0
- oci/marketplace_private_offer/models/create_attachment_details.py +134 -0
- oci/marketplace_private_offer/models/create_offer_details.py +498 -0
- oci/marketplace_private_offer/models/custom_field.py +103 -0
- oci/marketplace_private_offer/models/offer.py +787 -0
- oci/marketplace_private_offer/models/offer_collection.py +72 -0
- oci/marketplace_private_offer/models/offer_internal_detail.py +103 -0
- oci/marketplace_private_offer/models/offer_summary.py +591 -0
- oci/marketplace_private_offer/models/pricing.py +146 -0
- oci/marketplace_private_offer/models/publisher_summary.py +710 -0
- oci/marketplace_private_offer/models/resource_bundle.py +205 -0
- oci/marketplace_private_offer/models/seller_information.py +99 -0
- oci/marketplace_private_offer/models/update_offer_details.py +467 -0
- oci/marketplace_private_offer/models/upload_data.py +134 -0
- oci/marketplace_private_offer/offer_client.py +789 -0
- oci/marketplace_private_offer/offer_client_composite_operations.py +172 -0
- oci/marketplace_publisher/__init__.py +5 -1
- oci/marketplace_publisher/attachment_client.py +719 -0
- oci/marketplace_publisher/attachment_client_composite_operations.py +121 -0
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/models/__init__.py +32 -0
- oci/marketplace_publisher/models/attachment.py +446 -0
- oci/marketplace_publisher/models/attachment_collection.py +72 -0
- oci/marketplace_publisher/models/attachment_summary.py +293 -0
- oci/marketplace_publisher/models/buyer_information.py +161 -0
- oci/marketplace_publisher/models/contact.py +134 -0
- oci/marketplace_publisher/models/create_attachment_details.py +134 -0
- oci/marketplace_publisher/models/create_offer_details.py +498 -0
- oci/marketplace_publisher/models/custom_field.py +103 -0
- oci/marketplace_publisher/models/offer.py +787 -0
- oci/marketplace_publisher/models/offer_collection.py +72 -0
- oci/marketplace_publisher/models/offer_internal_detail.py +103 -0
- oci/marketplace_publisher/models/offer_summary.py +591 -0
- oci/marketplace_publisher/models/pricing.py +146 -0
- oci/marketplace_publisher/models/resource_bundle.py +205 -0
- oci/marketplace_publisher/models/seller_information.py +99 -0
- oci/marketplace_publisher/models/update_offer_details.py +467 -0
- oci/marketplace_publisher/models/work_request.py +23 -3
- oci/marketplace_publisher/models/work_request_summary.py +23 -3
- oci/marketplace_publisher/offer_client.py +789 -0
- oci/marketplace_publisher/offer_client_composite_operations.py +160 -0
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/models/create_listener_details.py +33 -2
- oci/network_load_balancer/models/listener.py +33 -2
- oci/network_load_balancer/models/listener_details.py +33 -2
- oci/network_load_balancer/models/listener_summary.py +33 -2
- oci/network_load_balancer/models/update_listener_details.py +33 -2
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +175 -175
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/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/redis_cluster_client.py +11 -11
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/__init__.py +14 -0
- oci/resource_scheduler/models/__init__.py +58 -0
- oci/resource_scheduler/models/compartment_id_resource_filter.py +113 -0
- oci/resource_scheduler/models/create_schedule_details.py +487 -0
- oci/resource_scheduler/models/defined_tag_filter_value.py +134 -0
- oci/resource_scheduler/models/defined_tags_resource_filter.py +82 -0
- oci/resource_scheduler/models/lifecycle_state_resource_filter.py +82 -0
- oci/resource_scheduler/models/resource.py +121 -0
- oci/resource_scheduler/models/resource_filter.py +133 -0
- oci/resource_scheduler/models/resource_type.py +72 -0
- oci/resource_scheduler/models/resource_type_collection.py +72 -0
- oci/resource_scheduler/models/resource_type_resource_filter.py +82 -0
- oci/resource_scheduler/models/schedule.py +787 -0
- oci/resource_scheduler/models/schedule_collection.py +72 -0
- oci/resource_scheduler/models/schedule_summary.py +815 -0
- oci/resource_scheduler/models/time_created_resource_filter.py +134 -0
- oci/resource_scheduler/models/update_schedule_details.py +452 -0
- oci/resource_scheduler/models/work_request.py +455 -0
- oci/resource_scheduler/models/work_request_error.py +146 -0
- oci/resource_scheduler/models/work_request_error_collection.py +72 -0
- oci/resource_scheduler/models/work_request_log_entry.py +109 -0
- oci/resource_scheduler/models/work_request_log_entry_collection.py +72 -0
- oci/resource_scheduler/models/work_request_resource.py +207 -0
- oci/resource_scheduler/models/work_request_summary.py +453 -0
- oci/resource_scheduler/models/work_request_summary_collection.py +72 -0
- oci/resource_scheduler/schedule_client.py +1778 -0
- oci/resource_scheduler/schedule_client_composite_operations.py +258 -0
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/METADATA +1 -1
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/RECORD +392 -295
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/LICENSE.txt +0 -0
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/WHEEL +0 -0
- {oci-2.126.2.dist-info → oci-2.126.4.dist-info}/top_level.txt +0 -0
@@ -364,6 +364,48 @@ class BdsClientCompositeOperations(object):
|
|
364
364
|
except Exception as e:
|
365
365
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
366
366
|
|
367
|
+
def backup_node_and_wait_for_state(self, bds_instance_id, backup_node_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
368
|
+
"""
|
369
|
+
Calls :py:func:`~oci.bds.BdsClient.backup_node` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
370
|
+
to enter the given state(s).
|
371
|
+
|
372
|
+
:param str bds_instance_id: (required)
|
373
|
+
The OCID of the cluster.
|
374
|
+
|
375
|
+
:param oci.bds.models.BackupNodeDetails backup_node_details: (required)
|
376
|
+
Details for Taking the node's backup
|
377
|
+
|
378
|
+
:param list[str] wait_for_states:
|
379
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
380
|
+
|
381
|
+
:param dict operation_kwargs:
|
382
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.backup_node`
|
383
|
+
|
384
|
+
:param dict waiter_kwargs:
|
385
|
+
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``
|
386
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
387
|
+
"""
|
388
|
+
operation_result = self.client.backup_node(bds_instance_id, backup_node_details, **operation_kwargs)
|
389
|
+
if not wait_for_states:
|
390
|
+
return operation_result
|
391
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
392
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
393
|
+
return operation_result
|
394
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
395
|
+
|
396
|
+
try:
|
397
|
+
waiter_result = oci.wait_until(
|
398
|
+
self.client,
|
399
|
+
self.client.get_work_request(wait_for_resource_id),
|
400
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
401
|
+
**waiter_kwargs
|
402
|
+
)
|
403
|
+
result_to_return = waiter_result
|
404
|
+
|
405
|
+
return result_to_return
|
406
|
+
except Exception as e:
|
407
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
408
|
+
|
367
409
|
def change_bds_instance_compartment_and_wait_for_state(self, bds_instance_id, change_bds_instance_compartment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
368
410
|
"""
|
369
411
|
Calls :py:func:`~oci.bds.BdsClient.change_bds_instance_compartment` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
@@ -571,6 +613,90 @@ class BdsClientCompositeOperations(object):
|
|
571
613
|
except Exception as e:
|
572
614
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
573
615
|
|
616
|
+
def create_node_backup_configuration_and_wait_for_state(self, bds_instance_id, create_node_backup_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
617
|
+
"""
|
618
|
+
Calls :py:func:`~oci.bds.BdsClient.create_node_backup_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
619
|
+
to enter the given state(s).
|
620
|
+
|
621
|
+
:param str bds_instance_id: (required)
|
622
|
+
The OCID of the cluster.
|
623
|
+
|
624
|
+
:param oci.bds.models.CreateNodeBackupConfigurationDetails create_node_backup_configuration_details: (required)
|
625
|
+
Details for adding nodeBackupConfiguration to the BDS cluster.
|
626
|
+
|
627
|
+
:param list[str] wait_for_states:
|
628
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
629
|
+
|
630
|
+
:param dict operation_kwargs:
|
631
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.create_node_backup_configuration`
|
632
|
+
|
633
|
+
:param dict waiter_kwargs:
|
634
|
+
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``
|
635
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
636
|
+
"""
|
637
|
+
operation_result = self.client.create_node_backup_configuration(bds_instance_id, create_node_backup_configuration_details, **operation_kwargs)
|
638
|
+
if not wait_for_states:
|
639
|
+
return operation_result
|
640
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
641
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
642
|
+
return operation_result
|
643
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
644
|
+
|
645
|
+
try:
|
646
|
+
waiter_result = oci.wait_until(
|
647
|
+
self.client,
|
648
|
+
self.client.get_work_request(wait_for_resource_id),
|
649
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
650
|
+
**waiter_kwargs
|
651
|
+
)
|
652
|
+
result_to_return = waiter_result
|
653
|
+
|
654
|
+
return result_to_return
|
655
|
+
except Exception as e:
|
656
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
657
|
+
|
658
|
+
def create_node_replace_configuration_and_wait_for_state(self, bds_instance_id, create_node_replace_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
659
|
+
"""
|
660
|
+
Calls :py:func:`~oci.bds.BdsClient.create_node_replace_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
661
|
+
to enter the given state(s).
|
662
|
+
|
663
|
+
:param str bds_instance_id: (required)
|
664
|
+
The OCID of the cluster.
|
665
|
+
|
666
|
+
:param oci.bds.models.CreateNodeReplaceConfigurationDetails create_node_replace_configuration_details: (required)
|
667
|
+
Details for adding nodeReplaceConfiguration to the BDS cluster.
|
668
|
+
|
669
|
+
:param list[str] wait_for_states:
|
670
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
671
|
+
|
672
|
+
:param dict operation_kwargs:
|
673
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.create_node_replace_configuration`
|
674
|
+
|
675
|
+
:param dict waiter_kwargs:
|
676
|
+
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``
|
677
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
678
|
+
"""
|
679
|
+
operation_result = self.client.create_node_replace_configuration(bds_instance_id, create_node_replace_configuration_details, **operation_kwargs)
|
680
|
+
if not wait_for_states:
|
681
|
+
return operation_result
|
682
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
683
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
684
|
+
return operation_result
|
685
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
686
|
+
|
687
|
+
try:
|
688
|
+
waiter_result = oci.wait_until(
|
689
|
+
self.client,
|
690
|
+
self.client.get_work_request(wait_for_resource_id),
|
691
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
692
|
+
**waiter_kwargs
|
693
|
+
)
|
694
|
+
result_to_return = waiter_result
|
695
|
+
|
696
|
+
return result_to_return
|
697
|
+
except Exception as e:
|
698
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
699
|
+
|
574
700
|
def delete_bds_api_key_and_wait_for_state(self, bds_instance_id, api_key_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
575
701
|
"""
|
576
702
|
Calls :py:func:`~oci.bds.BdsClient.delete_bds_api_key` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
@@ -718,6 +844,106 @@ class BdsClientCompositeOperations(object):
|
|
718
844
|
except Exception as e:
|
719
845
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
720
846
|
|
847
|
+
def delete_node_backup_and_wait_for_state(self, bds_instance_id, node_backup_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
848
|
+
"""
|
849
|
+
Calls :py:func:`~oci.bds.BdsClient.delete_node_backup` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
850
|
+
to enter the given state(s).
|
851
|
+
|
852
|
+
:param str bds_instance_id: (required)
|
853
|
+
The OCID of the cluster.
|
854
|
+
|
855
|
+
:param str node_backup_id: (required)
|
856
|
+
Unique assigned identifier of the nodeBackupId.
|
857
|
+
|
858
|
+
:param list[str] wait_for_states:
|
859
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
860
|
+
|
861
|
+
:param dict operation_kwargs:
|
862
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.delete_node_backup`
|
863
|
+
|
864
|
+
:param dict waiter_kwargs:
|
865
|
+
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``
|
866
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
867
|
+
"""
|
868
|
+
operation_result = None
|
869
|
+
try:
|
870
|
+
operation_result = self.client.delete_node_backup(bds_instance_id, node_backup_id, **operation_kwargs)
|
871
|
+
except oci.exceptions.ServiceError as e:
|
872
|
+
if e.status == 404:
|
873
|
+
return WAIT_RESOURCE_NOT_FOUND
|
874
|
+
else:
|
875
|
+
raise e
|
876
|
+
|
877
|
+
if not wait_for_states:
|
878
|
+
return operation_result
|
879
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
880
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
881
|
+
return operation_result
|
882
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
883
|
+
|
884
|
+
try:
|
885
|
+
waiter_result = oci.wait_until(
|
886
|
+
self.client,
|
887
|
+
self.client.get_work_request(wait_for_resource_id),
|
888
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
889
|
+
**waiter_kwargs
|
890
|
+
)
|
891
|
+
result_to_return = waiter_result
|
892
|
+
|
893
|
+
return result_to_return
|
894
|
+
except Exception as e:
|
895
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
896
|
+
|
897
|
+
def delete_node_backup_configuration_and_wait_for_state(self, bds_instance_id, node_backup_configuration_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
898
|
+
"""
|
899
|
+
Calls :py:func:`~oci.bds.BdsClient.delete_node_backup_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
900
|
+
to enter the given state(s).
|
901
|
+
|
902
|
+
:param str bds_instance_id: (required)
|
903
|
+
The OCID of the cluster.
|
904
|
+
|
905
|
+
:param str node_backup_configuration_id: (required)
|
906
|
+
Unique Oracle-assigned identifier of the NodeBackupConfiguration.
|
907
|
+
|
908
|
+
:param list[str] wait_for_states:
|
909
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
910
|
+
|
911
|
+
:param dict operation_kwargs:
|
912
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.delete_node_backup_configuration`
|
913
|
+
|
914
|
+
:param dict waiter_kwargs:
|
915
|
+
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``
|
916
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
917
|
+
"""
|
918
|
+
operation_result = None
|
919
|
+
try:
|
920
|
+
operation_result = self.client.delete_node_backup_configuration(bds_instance_id, node_backup_configuration_id, **operation_kwargs)
|
921
|
+
except oci.exceptions.ServiceError as e:
|
922
|
+
if e.status == 404:
|
923
|
+
return WAIT_RESOURCE_NOT_FOUND
|
924
|
+
else:
|
925
|
+
raise e
|
926
|
+
|
927
|
+
if not wait_for_states:
|
928
|
+
return operation_result
|
929
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
930
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
931
|
+
return operation_result
|
932
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
933
|
+
|
934
|
+
try:
|
935
|
+
waiter_result = oci.wait_until(
|
936
|
+
self.client,
|
937
|
+
self.client.get_work_request(wait_for_resource_id),
|
938
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
939
|
+
**waiter_kwargs
|
940
|
+
)
|
941
|
+
result_to_return = waiter_result
|
942
|
+
|
943
|
+
return result_to_return
|
944
|
+
except Exception as e:
|
945
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
946
|
+
|
721
947
|
def disable_certificate_and_wait_for_state(self, bds_instance_id, disable_certificate_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
722
948
|
"""
|
723
949
|
Calls :py:func:`~oci.bds.BdsClient.disable_certificate` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
@@ -1099,6 +1325,51 @@ class BdsClientCompositeOperations(object):
|
|
1099
1325
|
except Exception as e:
|
1100
1326
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1101
1327
|
|
1328
|
+
def remove_node_replace_configuration_and_wait_for_state(self, bds_instance_id, node_replace_configuration_id, remove_node_replace_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1329
|
+
"""
|
1330
|
+
Calls :py:func:`~oci.bds.BdsClient.remove_node_replace_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
1331
|
+
to enter the given state(s).
|
1332
|
+
|
1333
|
+
:param str bds_instance_id: (required)
|
1334
|
+
The OCID of the cluster.
|
1335
|
+
|
1336
|
+
:param str node_replace_configuration_id: (required)
|
1337
|
+
Unique Oracle-assigned identifier of the NodeReplaceConfiguration.
|
1338
|
+
|
1339
|
+
:param oci.bds.models.RemoveNodeReplaceConfigurationDetails remove_node_replace_configuration_details: (required)
|
1340
|
+
Details for removing NodeReplaceConfiguration
|
1341
|
+
|
1342
|
+
:param list[str] wait_for_states:
|
1343
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
1344
|
+
|
1345
|
+
:param dict operation_kwargs:
|
1346
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.remove_node_replace_configuration`
|
1347
|
+
|
1348
|
+
:param dict waiter_kwargs:
|
1349
|
+
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``
|
1350
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1351
|
+
"""
|
1352
|
+
operation_result = self.client.remove_node_replace_configuration(bds_instance_id, node_replace_configuration_id, remove_node_replace_configuration_details, **operation_kwargs)
|
1353
|
+
if not wait_for_states:
|
1354
|
+
return operation_result
|
1355
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1356
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1357
|
+
return operation_result
|
1358
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1359
|
+
|
1360
|
+
try:
|
1361
|
+
waiter_result = oci.wait_until(
|
1362
|
+
self.client,
|
1363
|
+
self.client.get_work_request(wait_for_resource_id),
|
1364
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1365
|
+
**waiter_kwargs
|
1366
|
+
)
|
1367
|
+
result_to_return = waiter_result
|
1368
|
+
|
1369
|
+
return result_to_return
|
1370
|
+
except Exception as e:
|
1371
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1372
|
+
|
1102
1373
|
def renew_certificate_and_wait_for_state(self, bds_instance_id, renew_certificate_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1103
1374
|
"""
|
1104
1375
|
Calls :py:func:`~oci.bds.BdsClient.renew_certificate` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
@@ -1141,6 +1412,48 @@ class BdsClientCompositeOperations(object):
|
|
1141
1412
|
except Exception as e:
|
1142
1413
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1143
1414
|
|
1415
|
+
def replace_node_and_wait_for_state(self, bds_instance_id, replace_node_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1416
|
+
"""
|
1417
|
+
Calls :py:func:`~oci.bds.BdsClient.replace_node` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
1418
|
+
to enter the given state(s).
|
1419
|
+
|
1420
|
+
:param str bds_instance_id: (required)
|
1421
|
+
The OCID of the cluster.
|
1422
|
+
|
1423
|
+
:param oci.bds.models.ReplaceNodeDetails replace_node_details: (required)
|
1424
|
+
Details for Replacing the node.
|
1425
|
+
|
1426
|
+
:param list[str] wait_for_states:
|
1427
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
1428
|
+
|
1429
|
+
:param dict operation_kwargs:
|
1430
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.replace_node`
|
1431
|
+
|
1432
|
+
:param dict waiter_kwargs:
|
1433
|
+
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``
|
1434
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1435
|
+
"""
|
1436
|
+
operation_result = self.client.replace_node(bds_instance_id, replace_node_details, **operation_kwargs)
|
1437
|
+
if not wait_for_states:
|
1438
|
+
return operation_result
|
1439
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1440
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1441
|
+
return operation_result
|
1442
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1443
|
+
|
1444
|
+
try:
|
1445
|
+
waiter_result = oci.wait_until(
|
1446
|
+
self.client,
|
1447
|
+
self.client.get_work_request(wait_for_resource_id),
|
1448
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1449
|
+
**waiter_kwargs
|
1450
|
+
)
|
1451
|
+
result_to_return = waiter_result
|
1452
|
+
|
1453
|
+
return result_to_return
|
1454
|
+
except Exception as e:
|
1455
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1456
|
+
|
1144
1457
|
def restart_node_and_wait_for_state(self, bds_instance_id, restart_node_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1145
1458
|
"""
|
1146
1459
|
Calls :py:func:`~oci.bds.BdsClient.restart_node` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
@@ -1488,3 +1801,93 @@ class BdsClientCompositeOperations(object):
|
|
1488
1801
|
return result_to_return
|
1489
1802
|
except Exception as e:
|
1490
1803
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1804
|
+
|
1805
|
+
def update_node_backup_configuration_and_wait_for_state(self, bds_instance_id, node_backup_configuration_id, update_node_backup_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1806
|
+
"""
|
1807
|
+
Calls :py:func:`~oci.bds.BdsClient.update_node_backup_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
1808
|
+
to enter the given state(s).
|
1809
|
+
|
1810
|
+
:param str bds_instance_id: (required)
|
1811
|
+
The OCID of the cluster.
|
1812
|
+
|
1813
|
+
:param str node_backup_configuration_id: (required)
|
1814
|
+
Unique Oracle-assigned identifier of the NodeBackupConfiguration.
|
1815
|
+
|
1816
|
+
:param oci.bds.models.UpdateNodeBackupConfigurationDetails update_node_backup_configuration_details: (required)
|
1817
|
+
Details for updating the NodeBackupConfiguration.
|
1818
|
+
|
1819
|
+
:param list[str] wait_for_states:
|
1820
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
1821
|
+
|
1822
|
+
:param dict operation_kwargs:
|
1823
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.update_node_backup_configuration`
|
1824
|
+
|
1825
|
+
:param dict waiter_kwargs:
|
1826
|
+
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``
|
1827
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1828
|
+
"""
|
1829
|
+
operation_result = self.client.update_node_backup_configuration(bds_instance_id, node_backup_configuration_id, update_node_backup_configuration_details, **operation_kwargs)
|
1830
|
+
if not wait_for_states:
|
1831
|
+
return operation_result
|
1832
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1833
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1834
|
+
return operation_result
|
1835
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1836
|
+
|
1837
|
+
try:
|
1838
|
+
waiter_result = oci.wait_until(
|
1839
|
+
self.client,
|
1840
|
+
self.client.get_work_request(wait_for_resource_id),
|
1841
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1842
|
+
**waiter_kwargs
|
1843
|
+
)
|
1844
|
+
result_to_return = waiter_result
|
1845
|
+
|
1846
|
+
return result_to_return
|
1847
|
+
except Exception as e:
|
1848
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1849
|
+
|
1850
|
+
def update_node_replace_configuration_and_wait_for_state(self, bds_instance_id, node_replace_configuration_id, update_node_replace_configuration_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1851
|
+
"""
|
1852
|
+
Calls :py:func:`~oci.bds.BdsClient.update_node_replace_configuration` and waits for the :py:class:`~oci.bds.models.WorkRequest`
|
1853
|
+
to enter the given state(s).
|
1854
|
+
|
1855
|
+
:param str bds_instance_id: (required)
|
1856
|
+
The OCID of the cluster.
|
1857
|
+
|
1858
|
+
:param str node_replace_configuration_id: (required)
|
1859
|
+
Unique Oracle-assigned identifier of the NodeReplaceConfiguration.
|
1860
|
+
|
1861
|
+
:param oci.bds.models.UpdateNodeReplaceConfigurationDetails update_node_replace_configuration_details: (required)
|
1862
|
+
Details for updating the nodeReplaceConfiguration.
|
1863
|
+
|
1864
|
+
:param list[str] wait_for_states:
|
1865
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.bds.models.WorkRequest.status`
|
1866
|
+
|
1867
|
+
:param dict operation_kwargs:
|
1868
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.bds.BdsClient.update_node_replace_configuration`
|
1869
|
+
|
1870
|
+
:param dict waiter_kwargs:
|
1871
|
+
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``
|
1872
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1873
|
+
"""
|
1874
|
+
operation_result = self.client.update_node_replace_configuration(bds_instance_id, node_replace_configuration_id, update_node_replace_configuration_details, **operation_kwargs)
|
1875
|
+
if not wait_for_states:
|
1876
|
+
return operation_result
|
1877
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1878
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1879
|
+
return operation_result
|
1880
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1881
|
+
|
1882
|
+
try:
|
1883
|
+
waiter_result = oci.wait_until(
|
1884
|
+
self.client,
|
1885
|
+
self.client.get_work_request(wait_for_resource_id),
|
1886
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1887
|
+
**waiter_kwargs
|
1888
|
+
)
|
1889
|
+
result_to_return = waiter_result
|
1890
|
+
|
1891
|
+
return result_to_return
|
1892
|
+
except Exception as e:
|
1893
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
oci/bds/models/__init__.py
CHANGED
@@ -25,6 +25,7 @@ from .auto_scale_policy_metric_rule import AutoScalePolicyMetricRule
|
|
25
25
|
from .auto_scale_policy_rule import AutoScalePolicyRule
|
26
26
|
from .auto_scaling_configuration import AutoScalingConfiguration
|
27
27
|
from .auto_scaling_configuration_summary import AutoScalingConfigurationSummary
|
28
|
+
from .backup_node_details import BackupNodeDetails
|
28
29
|
from .batching_based_patching_configs import BatchingBasedPatchingConfigs
|
29
30
|
from .bds_api_key import BdsApiKey
|
30
31
|
from .bds_api_key_summary import BdsApiKeySummary
|
@@ -42,7 +43,9 @@ from .cluster_details import ClusterDetails
|
|
42
43
|
from .create_bds_api_key_details import CreateBdsApiKeyDetails
|
43
44
|
from .create_bds_instance_details import CreateBdsInstanceDetails
|
44
45
|
from .create_bds_metastore_configuration_details import CreateBdsMetastoreConfigurationDetails
|
46
|
+
from .create_node_backup_configuration_details import CreateNodeBackupConfigurationDetails
|
45
47
|
from .create_node_details import CreateNodeDetails
|
48
|
+
from .create_node_replace_configuration_details import CreateNodeReplaceConfigurationDetails
|
46
49
|
from .day_based_horizontal_scaling_schedule_details import DayBasedHorizontalScalingScheduleDetails
|
47
50
|
from .day_based_vertical_scaling_schedule_details import DayBasedVerticalScalingScheduleDetails
|
48
51
|
from .default_error import DefaultError
|
@@ -56,6 +59,7 @@ from .host_specific_certificate_details import HostSpecificCertificateDetails
|
|
56
59
|
from .install_os_patch_details import InstallOsPatchDetails
|
57
60
|
from .install_patch_details import InstallPatchDetails
|
58
61
|
from .kerberos_details import KerberosDetails
|
62
|
+
from .level_type_details import LevelTypeDetails
|
59
63
|
from .metric_based_horizontal_scale_in_config import MetricBasedHorizontalScaleInConfig
|
60
64
|
from .metric_based_horizontal_scale_out_config import MetricBasedHorizontalScaleOutConfig
|
61
65
|
from .metric_based_horizontal_scaling_policy_details import MetricBasedHorizontalScalingPolicyDetails
|
@@ -65,6 +69,14 @@ from .metric_based_vertical_scaling_policy_details import MetricBasedVerticalSca
|
|
65
69
|
from .metric_threshold_rule import MetricThresholdRule
|
66
70
|
from .network_config import NetworkConfig
|
67
71
|
from .node import Node
|
72
|
+
from .node_backup import NodeBackup
|
73
|
+
from .node_backup_configuration import NodeBackupConfiguration
|
74
|
+
from .node_backup_configuration_summary import NodeBackupConfigurationSummary
|
75
|
+
from .node_backup_summary import NodeBackupSummary
|
76
|
+
from .node_level_details import NodeLevelDetails
|
77
|
+
from .node_replace_configuration import NodeReplaceConfiguration
|
78
|
+
from .node_replace_configuration_summary import NodeReplaceConfigurationSummary
|
79
|
+
from .node_type_level_details import NodeTypeLevelDetails
|
68
80
|
from .os_patch_details import OsPatchDetails
|
69
81
|
from .os_patch_package_summary import OsPatchPackageSummary
|
70
82
|
from .os_patch_summary import OsPatchSummary
|
@@ -75,7 +87,9 @@ from .remove_auto_scaling_configuration_details import RemoveAutoScalingConfigur
|
|
75
87
|
from .remove_cloud_sql_details import RemoveCloudSqlDetails
|
76
88
|
from .remove_kafka_details import RemoveKafkaDetails
|
77
89
|
from .remove_node_details import RemoveNodeDetails
|
90
|
+
from .remove_node_replace_configuration_details import RemoveNodeReplaceConfigurationDetails
|
78
91
|
from .renew_certificate_details import RenewCertificateDetails
|
92
|
+
from .replace_node_details import ReplaceNodeDetails
|
79
93
|
from .restart_node_details import RestartNodeDetails
|
80
94
|
from .schedule_based_horizontal_scaling_policy_details import ScheduleBasedHorizontalScalingPolicyDetails
|
81
95
|
from .schedule_based_vertical_scaling_policy_details import ScheduleBasedVerticalScalingPolicyDetails
|
@@ -92,6 +106,8 @@ from .update_bds_instance_details import UpdateBdsInstanceDetails
|
|
92
106
|
from .update_bds_metastore_configuration_details import UpdateBdsMetastoreConfigurationDetails
|
93
107
|
from .update_metric_based_horizontal_scaling_policy_details import UpdateMetricBasedHorizontalScalingPolicyDetails
|
94
108
|
from .update_metric_based_vertical_scaling_policy_details import UpdateMetricBasedVerticalScalingPolicyDetails
|
109
|
+
from .update_node_backup_configuration_details import UpdateNodeBackupConfigurationDetails
|
110
|
+
from .update_node_replace_configuration_details import UpdateNodeReplaceConfigurationDetails
|
95
111
|
from .update_schedule_based_horizontal_scaling_policy_details import UpdateScheduleBasedHorizontalScalingPolicyDetails
|
96
112
|
from .update_schedule_based_vertical_scaling_policy_details import UpdateScheduleBasedVerticalScalingPolicyDetails
|
97
113
|
from .vertical_scaling_schedule_details import VerticalScalingScheduleDetails
|
@@ -122,6 +138,7 @@ bds_type_mapping = {
|
|
122
138
|
"AutoScalePolicyRule": AutoScalePolicyRule,
|
123
139
|
"AutoScalingConfiguration": AutoScalingConfiguration,
|
124
140
|
"AutoScalingConfigurationSummary": AutoScalingConfigurationSummary,
|
141
|
+
"BackupNodeDetails": BackupNodeDetails,
|
125
142
|
"BatchingBasedPatchingConfigs": BatchingBasedPatchingConfigs,
|
126
143
|
"BdsApiKey": BdsApiKey,
|
127
144
|
"BdsApiKeySummary": BdsApiKeySummary,
|
@@ -139,7 +156,9 @@ bds_type_mapping = {
|
|
139
156
|
"CreateBdsApiKeyDetails": CreateBdsApiKeyDetails,
|
140
157
|
"CreateBdsInstanceDetails": CreateBdsInstanceDetails,
|
141
158
|
"CreateBdsMetastoreConfigurationDetails": CreateBdsMetastoreConfigurationDetails,
|
159
|
+
"CreateNodeBackupConfigurationDetails": CreateNodeBackupConfigurationDetails,
|
142
160
|
"CreateNodeDetails": CreateNodeDetails,
|
161
|
+
"CreateNodeReplaceConfigurationDetails": CreateNodeReplaceConfigurationDetails,
|
143
162
|
"DayBasedHorizontalScalingScheduleDetails": DayBasedHorizontalScalingScheduleDetails,
|
144
163
|
"DayBasedVerticalScalingScheduleDetails": DayBasedVerticalScalingScheduleDetails,
|
145
164
|
"DefaultError": DefaultError,
|
@@ -153,6 +172,7 @@ bds_type_mapping = {
|
|
153
172
|
"InstallOsPatchDetails": InstallOsPatchDetails,
|
154
173
|
"InstallPatchDetails": InstallPatchDetails,
|
155
174
|
"KerberosDetails": KerberosDetails,
|
175
|
+
"LevelTypeDetails": LevelTypeDetails,
|
156
176
|
"MetricBasedHorizontalScaleInConfig": MetricBasedHorizontalScaleInConfig,
|
157
177
|
"MetricBasedHorizontalScaleOutConfig": MetricBasedHorizontalScaleOutConfig,
|
158
178
|
"MetricBasedHorizontalScalingPolicyDetails": MetricBasedHorizontalScalingPolicyDetails,
|
@@ -162,6 +182,14 @@ bds_type_mapping = {
|
|
162
182
|
"MetricThresholdRule": MetricThresholdRule,
|
163
183
|
"NetworkConfig": NetworkConfig,
|
164
184
|
"Node": Node,
|
185
|
+
"NodeBackup": NodeBackup,
|
186
|
+
"NodeBackupConfiguration": NodeBackupConfiguration,
|
187
|
+
"NodeBackupConfigurationSummary": NodeBackupConfigurationSummary,
|
188
|
+
"NodeBackupSummary": NodeBackupSummary,
|
189
|
+
"NodeLevelDetails": NodeLevelDetails,
|
190
|
+
"NodeReplaceConfiguration": NodeReplaceConfiguration,
|
191
|
+
"NodeReplaceConfigurationSummary": NodeReplaceConfigurationSummary,
|
192
|
+
"NodeTypeLevelDetails": NodeTypeLevelDetails,
|
165
193
|
"OsPatchDetails": OsPatchDetails,
|
166
194
|
"OsPatchPackageSummary": OsPatchPackageSummary,
|
167
195
|
"OsPatchSummary": OsPatchSummary,
|
@@ -172,7 +200,9 @@ bds_type_mapping = {
|
|
172
200
|
"RemoveCloudSqlDetails": RemoveCloudSqlDetails,
|
173
201
|
"RemoveKafkaDetails": RemoveKafkaDetails,
|
174
202
|
"RemoveNodeDetails": RemoveNodeDetails,
|
203
|
+
"RemoveNodeReplaceConfigurationDetails": RemoveNodeReplaceConfigurationDetails,
|
175
204
|
"RenewCertificateDetails": RenewCertificateDetails,
|
205
|
+
"ReplaceNodeDetails": ReplaceNodeDetails,
|
176
206
|
"RestartNodeDetails": RestartNodeDetails,
|
177
207
|
"ScheduleBasedHorizontalScalingPolicyDetails": ScheduleBasedHorizontalScalingPolicyDetails,
|
178
208
|
"ScheduleBasedVerticalScalingPolicyDetails": ScheduleBasedVerticalScalingPolicyDetails,
|
@@ -189,6 +219,8 @@ bds_type_mapping = {
|
|
189
219
|
"UpdateBdsMetastoreConfigurationDetails": UpdateBdsMetastoreConfigurationDetails,
|
190
220
|
"UpdateMetricBasedHorizontalScalingPolicyDetails": UpdateMetricBasedHorizontalScalingPolicyDetails,
|
191
221
|
"UpdateMetricBasedVerticalScalingPolicyDetails": UpdateMetricBasedVerticalScalingPolicyDetails,
|
222
|
+
"UpdateNodeBackupConfigurationDetails": UpdateNodeBackupConfigurationDetails,
|
223
|
+
"UpdateNodeReplaceConfigurationDetails": UpdateNodeReplaceConfigurationDetails,
|
192
224
|
"UpdateScheduleBasedHorizontalScalingPolicyDetails": UpdateScheduleBasedHorizontalScalingPolicyDetails,
|
193
225
|
"UpdateScheduleBasedVerticalScalingPolicyDetails": UpdateScheduleBasedVerticalScalingPolicyDetails,
|
194
226
|
"VerticalScalingScheduleDetails": VerticalScalingScheduleDetails,
|
@@ -0,0 +1,99 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
|
3
|
+
# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
4
|
+
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20190531
|
6
|
+
|
7
|
+
|
8
|
+
from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401
|
9
|
+
from oci.decorators import init_model_state_from_kwargs
|
10
|
+
|
11
|
+
|
12
|
+
@init_model_state_from_kwargs
|
13
|
+
class BackupNodeDetails(object):
|
14
|
+
"""
|
15
|
+
The information about the nodes to backup.
|
16
|
+
"""
|
17
|
+
|
18
|
+
def __init__(self, **kwargs):
|
19
|
+
"""
|
20
|
+
Initializes a new BackupNodeDetails object with values from keyword arguments.
|
21
|
+
The following keyword arguments are supported (corresponding to the getters/setters of this class):
|
22
|
+
|
23
|
+
:param level_type_details:
|
24
|
+
The value to assign to the level_type_details property of this BackupNodeDetails.
|
25
|
+
:type level_type_details: oci.bds.models.LevelTypeDetails
|
26
|
+
|
27
|
+
:param backup_type:
|
28
|
+
The value to assign to the backup_type property of this BackupNodeDetails.
|
29
|
+
:type backup_type: str
|
30
|
+
|
31
|
+
"""
|
32
|
+
self.swagger_types = {
|
33
|
+
'level_type_details': 'LevelTypeDetails',
|
34
|
+
'backup_type': 'str'
|
35
|
+
}
|
36
|
+
|
37
|
+
self.attribute_map = {
|
38
|
+
'level_type_details': 'levelTypeDetails',
|
39
|
+
'backup_type': 'backupType'
|
40
|
+
}
|
41
|
+
|
42
|
+
self._level_type_details = None
|
43
|
+
self._backup_type = None
|
44
|
+
|
45
|
+
@property
|
46
|
+
def level_type_details(self):
|
47
|
+
"""
|
48
|
+
**[Required]** Gets the level_type_details of this BackupNodeDetails.
|
49
|
+
|
50
|
+
:return: The level_type_details of this BackupNodeDetails.
|
51
|
+
:rtype: oci.bds.models.LevelTypeDetails
|
52
|
+
"""
|
53
|
+
return self._level_type_details
|
54
|
+
|
55
|
+
@level_type_details.setter
|
56
|
+
def level_type_details(self, level_type_details):
|
57
|
+
"""
|
58
|
+
Sets the level_type_details of this BackupNodeDetails.
|
59
|
+
|
60
|
+
:param level_type_details: The level_type_details of this BackupNodeDetails.
|
61
|
+
:type: oci.bds.models.LevelTypeDetails
|
62
|
+
"""
|
63
|
+
self._level_type_details = level_type_details
|
64
|
+
|
65
|
+
@property
|
66
|
+
def backup_type(self):
|
67
|
+
"""
|
68
|
+
Gets the backup_type of this BackupNodeDetails.
|
69
|
+
Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
|
70
|
+
|
71
|
+
|
72
|
+
:return: The backup_type of this BackupNodeDetails.
|
73
|
+
:rtype: str
|
74
|
+
"""
|
75
|
+
return self._backup_type
|
76
|
+
|
77
|
+
@backup_type.setter
|
78
|
+
def backup_type(self, backup_type):
|
79
|
+
"""
|
80
|
+
Sets the backup_type of this BackupNodeDetails.
|
81
|
+
Incremental backup type includes only the changes since the last backup. Full backup type includes all changes since the volume was created.
|
82
|
+
|
83
|
+
|
84
|
+
:param backup_type: The backup_type of this BackupNodeDetails.
|
85
|
+
:type: str
|
86
|
+
"""
|
87
|
+
self._backup_type = backup_type
|
88
|
+
|
89
|
+
def __repr__(self):
|
90
|
+
return formatted_flat_dict(self)
|
91
|
+
|
92
|
+
def __eq__(self, other):
|
93
|
+
if other is None:
|
94
|
+
return False
|
95
|
+
|
96
|
+
return self.__dict__ == other.__dict__
|
97
|
+
|
98
|
+
def __ne__(self, other):
|
99
|
+
return not self == other
|