oci 2.115.1__py3-none-any.whl → 2.117.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/__init__.py +2 -2
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +41 -41
- oci/adm/models/__init__.py +4 -0
- oci/adm/models/create_vulnerability_audit_details.py +27 -0
- oci/adm/models/usage_data_details.py +92 -0
- oci/adm/models/usage_data_via_object_storage_tuple_details.py +143 -0
- oci/adm/models/vulnerability.py +33 -2
- oci/adm/models/vulnerability_audit.py +86 -0
- oci/adm/models/work_request_summary.py +35 -2
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +36 -36
- oci/ai_speech/ai_service_speech_client.py +9 -9
- oci/ai_speech/models/__init__.py +4 -0
- oci/ai_speech/models/create_transcription_job_details.py +4 -4
- oci/ai_speech/models/diarization.py +103 -0
- oci/ai_speech/models/transcription_job.py +6 -6
- oci/ai_speech/models/transcription_job_summary.py +6 -6
- oci/ai_speech/models/transcription_model_details.py +29 -2
- oci/ai_speech/models/transcription_settings.py +68 -0
- oci/ai_speech/models/update_transcription_job_details.py +4 -4
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +8 -8
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +18 -18
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/application_migration/application_migration_client.py +19 -19
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +521 -47
- oci/bds/bds_client_composite_operations.py +123 -0
- oci/bds/models/__init__.py +14 -0
- oci/bds/models/certificate_service_info_details.py +72 -0
- oci/bds/models/certificate_service_info_summary.py +206 -0
- oci/bds/models/disable_certificate_details.py +103 -0
- oci/bds/models/enable_certificate_details.py +196 -0
- oci/bds/models/host_cert_details.py +134 -0
- oci/bds/models/host_specific_certificate_details.py +150 -0
- oci/bds/models/renew_certificate_details.py +196 -0
- oci/bds/models/work_request.py +7 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +133 -133
- oci/cloud_migrations/migration_client.py +43 -43
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +14 -15
- 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 +1480 -210
- oci/core/compute_client_composite_operations.py +195 -0
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +42 -0
- oci/core/models/capacity_source.py +101 -0
- oci/core/models/change_compute_capacity_topology_compartment_details.py +78 -0
- oci/core/models/compute_bare_metal_host.py +458 -0
- oci/core/models/compute_bare_metal_host_collection.py +72 -0
- oci/core/models/compute_bare_metal_host_summary.py +422 -0
- oci/core/models/compute_capacity_topology.py +425 -0
- oci/core/models/compute_capacity_topology_collection.py +72 -0
- oci/core/models/compute_capacity_topology_summary.py +370 -0
- oci/core/models/compute_hpc_island.py +267 -0
- oci/core/models/compute_hpc_island_collection.py +72 -0
- oci/core/models/compute_hpc_island_summary.py +251 -0
- oci/core/models/compute_network_block.py +302 -0
- oci/core/models/compute_network_block_collection.py +72 -0
- oci/core/models/compute_network_block_summary.py +286 -0
- oci/core/models/create_capacity_source_details.py +89 -0
- oci/core/models/create_compute_capacity_topology_details.py +253 -0
- oci/core/models/create_dedicated_capacity_source_details.py +85 -0
- oci/core/models/dedicated_capacity_source.py +86 -0
- oci/core/models/update_capacity_source_details.py +89 -0
- oci/core/models/update_compute_capacity_topology_details.py +183 -0
- oci/core/models/update_dedicated_capacity_source_details.py +50 -0
- oci/core/virtual_network_client.py +242 -242
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +141 -141
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +252 -252
- oci/data_science/data_science_client.py +91 -91
- 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/database/database_client.py +2092 -1268
- oci/database/database_client_composite_operations.py +222 -0
- oci/database/models/__init__.py +14 -0
- oci/database/models/autonomous_container_database.py +33 -2
- oci/database/models/autonomous_container_database_backup_config.py +2 -0
- oci/database/models/autonomous_container_database_summary.py +33 -2
- oci/database/models/autonomous_vm_cluster.py +95 -2
- oci/database/models/autonomous_vm_cluster_summary.py +95 -2
- oci/database/models/cloud_autonomous_vm_cluster.py +95 -2
- oci/database/models/cloud_autonomous_vm_cluster_summary.py +95 -2
- oci/database/models/console_history.py +368 -0
- oci/database/models/console_history_collection.py +72 -0
- oci/database/models/console_history_summary.py +368 -0
- oci/database/models/create_cloud_vm_cluster_details.py +33 -2
- oci/database/models/create_console_history_details.py +151 -0
- oci/database/models/create_vm_cluster_details.py +33 -2
- oci/database/models/db_system_upgrade_history_entry.py +64 -2
- oci/database/models/db_system_upgrade_history_entry_summary.py +64 -2
- oci/database/models/peer_autonomous_container_database_backup_config.py +2 -0
- oci/database/models/system_version_collection.py +72 -0
- oci/database/models/system_version_summary.py +134 -0
- oci/database/models/update_autonomous_vm_cluster_details.py +95 -2
- oci/database/models/update_cloud_autonomous_vm_cluster_details.py +93 -0
- oci/database/models/update_console_history_details.py +150 -0
- oci/database/models/upgrade_db_system_details.py +31 -0
- oci/database_management/db_management_client.py +182 -182
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +6 -6
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +41 -41
- oci/database_tools/database_tools_client.py +23 -23
- oci/devops/devops_client.py +89 -89
- oci/disaster_recovery/disaster_recovery_client.py +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 +25 -25
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +50 -50
- oci/fleet_software_update/fleet_software_update_client.py +44 -44
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +39 -39
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/golden_gate/golden_gate_client.py +536 -57
- oci/golden_gate/golden_gate_client_composite_operations.py +90 -0
- oci/golden_gate/models/__init__.py +8 -0
- oci/golden_gate/models/certificate.py +713 -0
- oci/golden_gate/models/certificate_collection.py +72 -0
- oci/golden_gate/models/certificate_summary.py +269 -0
- oci/golden_gate/models/create_certificate_details.py +105 -0
- oci/golden_gate/models/create_microsoft_sqlserver_connection_details.py +2 -2
- oci/golden_gate/models/create_mysql_connection_details.py +10 -12
- oci/golden_gate/models/create_postgresql_connection_details.py +8 -6
- oci/golden_gate/models/microsoft_sqlserver_connection.py +2 -2
- oci/golden_gate/models/microsoft_sqlserver_connection_summary.py +2 -2
- oci/golden_gate/models/update_microsoft_sqlserver_connection_details.py +2 -2
- oci/golden_gate/models/update_mysql_connection_details.py +10 -12
- oci/golden_gate/models/update_postgresql_connection_details.py +8 -6
- oci/golden_gate/models/work_request.py +11 -3
- 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 +20355 -6173
- oci/identity_domains/models/__init__.py +216 -0
- oci/identity_domains/models/app_extension_radius_app_app.py +55 -0
- oci/identity_domains/models/approval_workflow.py +832 -0
- oci/identity_domains/models/approval_workflow_approval_workflow_steps.py +294 -0
- oci/identity_domains/models/approval_workflow_assignment.py +771 -0
- oci/identity_domains/models/approval_workflow_assignment_approval_workflow.py +318 -0
- oci/identity_domains/models/approval_workflow_assignment_assigned_to.py +318 -0
- oci/identity_domains/models/approval_workflow_assignments.py +196 -0
- oci/identity_domains/models/approval_workflow_max_duration.py +185 -0
- oci/identity_domains/models/approval_workflow_step.py +929 -0
- oci/identity_domains/models/approval_workflow_step_approvers.py +294 -0
- oci/identity_domains/models/approval_workflow_steps.py +196 -0
- oci/identity_domains/models/approval_workflows.py +196 -0
- oci/identity_domains/models/authentication_factors_remover.py +51 -2
- oci/identity_domains/models/branding_setting.py +1556 -0
- oci/identity_domains/models/branding_settings.py +196 -0
- oci/identity_domains/models/branding_settings_company_names.py +131 -0
- oci/identity_domains/models/branding_settings_default_company_names.py +143 -0
- oci/identity_domains/models/branding_settings_default_images.py +188 -0
- oci/identity_domains/models/branding_settings_default_login_texts.py +143 -0
- oci/identity_domains/models/branding_settings_images.py +176 -0
- oci/identity_domains/models/branding_settings_login_texts.py +131 -0
- oci/identity_domains/models/cloud_gate.py +1239 -0
- oci/identity_domains/models/cloud_gate_ext_mappings.py +610 -0
- oci/identity_domains/models/cloud_gate_ext_servers.py +296 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_server_groups.py +316 -0
- oci/identity_domains/models/cloud_gate_ext_upstream_servers.py +426 -0
- oci/identity_domains/models/cloud_gate_mapping.py +1068 -0
- oci/identity_domains/models/cloud_gate_mapping_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_gateway_app.py +204 -0
- oci/identity_domains/models/cloud_gate_mapping_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_mapping_server.py +153 -0
- oci/identity_domains/models/cloud_gate_mapping_upstream_server_group.py +217 -0
- oci/identity_domains/models/cloud_gate_mappings.py +196 -0
- oci/identity_domains/models/cloud_gate_oauth_client.py +208 -0
- oci/identity_domains/models/cloud_gate_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_server.py +1042 -0
- oci/identity_domains/models/cloud_gate_server_cloud_gate.py +153 -0
- oci/identity_domains/models/cloud_gate_server_search_request.py +364 -0
- oci/identity_domains/models/cloud_gate_servers.py +196 -0
- oci/identity_domains/models/cloud_gates.py +196 -0
- oci/identity_domains/models/condition.py +1063 -0
- oci/identity_domains/models/condition_search_request.py +364 -0
- oci/identity_domains/models/conditions.py +196 -0
- oci/identity_domains/models/defined_tags.py +2 -0
- oci/identity_domains/models/extension_social_identity_provider.py +55 -0
- oci/identity_domains/models/freeform_tags.py +2 -0
- oci/identity_domains/models/identity_provider_relay_idp_param_mappings.py +159 -0
- oci/identity_domains/models/me_password_changer.py +2 -2
- oci/identity_domains/models/my_authentication_factors_remover.py +51 -2
- oci/identity_domains/models/my_completed_approval.py +1146 -0
- oci/identity_domains/models/my_completed_approvals.py +196 -0
- oci/identity_domains/models/my_pending_approval.py +1146 -0
- oci/identity_domains/models/my_pending_approvals.py +196 -0
- oci/identity_domains/models/my_request.py +217 -2
- oci/identity_domains/models/my_request_approval_details.py +398 -0
- oci/identity_domains/models/my_request_requesting.py +53 -0
- oci/identity_domains/models/network_perimeter.py +852 -0
- oci/identity_domains/models/network_perimeter_ip_addresses.py +228 -0
- oci/identity_domains/models/network_perimeter_search_request.py +364 -0
- oci/identity_domains/models/network_perimeters.py +196 -0
- oci/identity_domains/models/notification_setting.py +1038 -0
- oci/identity_domains/models/notification_settings.py +196 -0
- oci/identity_domains/models/notification_settings_event_settings.py +143 -0
- oci/identity_domains/models/notification_settings_from_email_address.py +278 -0
- oci/identity_domains/models/notification_settings_search_request.py +171 -0
- oci/identity_domains/models/o_auth_client_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_client_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_client_certificates.py +196 -0
- oci/identity_domains/models/o_auth_partner_certificate.py +1187 -0
- oci/identity_domains/models/o_auth_partner_certificate_search_request.py +364 -0
- oci/identity_domains/models/o_auth_partner_certificates.py +196 -0
- oci/identity_domains/models/policies.py +196 -0
- oci/identity_domains/models/policy.py +979 -0
- oci/identity_domains/models/policy_policy_type.py +150 -0
- oci/identity_domains/models/policy_rules.py +247 -0
- oci/identity_domains/models/policy_search_request.py +364 -0
- oci/identity_domains/models/rule.py +1110 -0
- oci/identity_domains/models/rule_condition_group.py +270 -0
- oci/identity_domains/models/rule_policy_type.py +150 -0
- oci/identity_domains/models/rule_return.py +188 -0
- oci/identity_domains/models/rule_search_request.py +364 -0
- oci/identity_domains/models/rules.py +196 -0
- oci/identity_domains/models/schema.py +537 -0
- oci/identity_domains/models/schema_attributes.py +4165 -0
- oci/identity_domains/models/schema_idcs_complex_attribute_name_mappings.py +188 -0
- oci/identity_domains/models/schema_idcs_csv_attribute_name_mappings.py +433 -0
- oci/identity_domains/models/schema_localized_canonical_values.py +188 -0
- oci/identity_domains/models/schema_localized_display_name.py +147 -0
- oci/identity_domains/models/schema_referenced_resource_type_unique_attribute_name_mappings.py +139 -0
- oci/identity_domains/models/schema_resolve_value_using_resource_type.py +139 -0
- oci/identity_domains/models/schema_search_request.py +329 -0
- oci/identity_domains/models/schema_sub_attributes.py +3209 -0
- oci/identity_domains/models/schemas.py +196 -0
- oci/identity_domains/models/self_registration_profile.py +1636 -0
- oci/identity_domains/models/self_registration_profile_after_submit_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_consent_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_default_groups.py +190 -0
- oci/identity_domains/models/self_registration_profile_display_name.py +194 -0
- oci/identity_domains/models/self_registration_profile_email_template.py +202 -0
- oci/identity_domains/models/self_registration_profile_footer_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_header_text.py +194 -0
- oci/identity_domains/models/self_registration_profile_search_request.py +364 -0
- oci/identity_domains/models/self_registration_profile_user_attributes.py +286 -0
- oci/identity_domains/models/self_registration_profiles.py +196 -0
- oci/identity_domains/models/setting.py +3110 -0
- oci/identity_domains/models/settings.py +196 -0
- oci/identity_domains/models/settings_certificate_validation.py +566 -0
- oci/identity_domains/models/settings_cloud_gate_cors_settings.py +318 -0
- oci/identity_domains/models/settings_company_names.py +135 -0
- oci/identity_domains/models/settings_default_company_names.py +143 -0
- oci/identity_domains/models/settings_default_images.py +188 -0
- oci/identity_domains/models/settings_default_login_texts.py +145 -0
- oci/identity_domains/models/settings_images.py +176 -0
- oci/identity_domains/models/settings_login_texts.py +137 -0
- oci/identity_domains/models/settings_purge_configs.py +139 -0
- oci/identity_domains/models/settings_search_request.py +171 -0
- oci/identity_domains/models/settings_tenant_custom_claims.py +438 -0
- oci/identity_domains/models/user_ext_risk_scores.py +4 -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_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +23 -23
- oci/log_analytics/log_analytics_client.py +388 -192
- oci/log_analytics/models/export_details.py +15 -17
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +23 -23
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/media_services/media_services_client.py +48 -48
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +13 -13
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +6 -6
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +80 -80
- oci/network_load_balancer/network_load_balancer_client.py +34 -34
- oci/nosql/nosql_client.py +24 -24
- oci/object_storage/object_storage_client.py +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/__init__.py +4 -2
- oci/ocvp/cluster_client.py +732 -0
- oci/ocvp/cluster_client_composite_operations.py +160 -0
- oci/ocvp/esxi_host_client.py +262 -14
- oci/ocvp/esxi_host_client_composite_operations.py +84 -1
- oci/ocvp/models/__init__.py +29 -7
- oci/ocvp/models/change_sddc_compartment_details.py +1 -1
- oci/ocvp/models/cluster.py +1026 -0
- oci/ocvp/models/cluster_collection.py +72 -0
- oci/ocvp/models/cluster_summary.py +671 -0
- oci/ocvp/models/create_cluster_details.py +658 -0
- oci/ocvp/models/create_esxi_host_details.py +112 -161
- oci/ocvp/models/create_sddc_details.py +86 -814
- oci/ocvp/models/datastore_details.py +154 -0
- oci/ocvp/models/datastore_info.py +6 -6
- oci/ocvp/models/downgrade_hcx_details.py +1 -1
- oci/ocvp/models/esxi_host.py +132 -64
- oci/ocvp/models/esxi_host_collection.py +1 -1
- oci/ocvp/models/esxi_host_summary.py +100 -63
- oci/ocvp/models/hcx_license_summary.py +1 -1
- oci/ocvp/models/initial_cluster_configuration.py +518 -0
- oci/ocvp/models/initial_configuration.py +72 -0
- oci/ocvp/models/network_configuration.py +635 -0
- oci/ocvp/models/replace_host_details.py +78 -0
- oci/ocvp/models/sddc.py +176 -1269
- oci/ocvp/models/sddc_collection.py +1 -1
- oci/ocvp/models/sddc_password.py +123 -0
- oci/ocvp/models/sddc_summary.py +55 -161
- oci/ocvp/models/supported_commitment_summary.py +96 -0
- oci/ocvp/models/supported_commitment_summary_collection.py +72 -0
- oci/ocvp/models/supported_esxi_software_version_summary.py +135 -0
- oci/ocvp/models/supported_host_shape_collection.py +1 -1
- oci/ocvp/models/supported_host_shape_summary.py +54 -54
- oci/ocvp/models/supported_vmware_software_version_collection.py +1 -1
- oci/ocvp/models/supported_vmware_software_version_summary.py +34 -3
- oci/ocvp/models/update_cluster_details.py +265 -0
- oci/ocvp/models/update_esxi_host_details.py +32 -32
- oci/ocvp/models/update_sddc_details.py +42 -377
- oci/ocvp/models/vsphere_license.py +1 -1
- oci/ocvp/models/vsphere_upgrade_object.py +1 -1
- oci/ocvp/models/work_request.py +20 -4
- oci/ocvp/models/work_request_collection.py +1 -1
- oci/ocvp/models/work_request_error.py +1 -1
- oci/ocvp/models/work_request_error_collection.py +1 -1
- oci/ocvp/models/work_request_log_entry.py +1 -1
- oci/ocvp/models/work_request_log_entry_collection.py +1 -1
- oci/ocvp/models/work_request_resource.py +1 -1
- oci/ocvp/sddc_client.py +212 -68
- oci/ocvp/sddc_client_composite_operations.py +1 -1
- oci/ocvp/work_request_client.py +10 -10
- oci/ocvp/work_request_client_composite_operations.py +1 -1
- oci/oda/management_client.py +56 -56
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +11 -11
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +9 -9
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +6 -6
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/models/__init__.py +22 -0
- oci/opsi/models/awr_hub_objects.py +72 -0
- oci/opsi/models/awr_hub_source.py +904 -0
- oci/opsi/models/awr_hub_source_summary.py +904 -0
- oci/opsi/models/awr_hub_source_summary_collection.py +72 -0
- oci/opsi/models/awr_hub_sources.py +72 -0
- oci/opsi/models/change_awr_hub_source_compartment_details.py +72 -0
- oci/opsi/models/change_operations_insights_warehouse_compartment_details.py +76 -0
- oci/opsi/models/create_awr_hub_details.py +1 -1
- oci/opsi/models/create_awr_hub_source_details.py +377 -0
- oci/opsi/models/list_objects.py +134 -0
- oci/opsi/models/object_summary.py +329 -0
- oci/opsi/models/update_awr_hub_source_details.py +210 -0
- oci/opsi/models/work_request.py +27 -3
- oci/opsi/operations_insights_client.py +3221 -1507
- oci/opsi/operations_insights_client_composite_operations.py +283 -0
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/lifecycle_environment_client.py +11 -11
- oci/os_management_hub/managed_instance_client.py +22 -22
- oci/os_management_hub/managed_instance_group_client.py +22 -22
- oci/os_management_hub/management_station_client.py +8 -8
- oci/os_management_hub/onboarding_client.py +5 -5
- oci/os_management_hub/reporting_managed_instance_client.py +3 -3
- oci/os_management_hub/scheduled_job_client.py +6 -6
- oci/os_management_hub/software_source_client.py +22 -22
- oci/os_management_hub/work_request_client.py +4 -4
- oci/osp_gateway/address_rule_service_client.py +1 -1
- oci/osp_gateway/address_service_client.py +2 -2
- oci/osp_gateway/invoice_service_client.py +5 -5
- oci/osp_gateway/subscription_service_client.py +5 -5
- oci/osub_billing_schedule/billing_schedule_client.py +1 -1
- oci/osub_organization_subscription/organization_subscription_client.py +1 -1
- oci/osub_subscription/commitment_client.py +2 -2
- oci/osub_subscription/ratecard_client.py +1 -1
- oci/osub_subscription/subscription_client.py +1 -1
- oci/osub_usage/computed_usage_client.py +3 -3
- oci/psql/__init__.py +14 -0
- oci/psql/models/__init__.py +166 -0
- oci/psql/models/backup.py +645 -0
- oci/psql/models/backup_collection.py +72 -0
- oci/psql/models/backup_policy.py +156 -0
- oci/psql/models/backup_source_details.py +113 -0
- oci/psql/models/backup_summary.py +481 -0
- oci/psql/models/change_backup_compartment_details.py +74 -0
- oci/psql/models/change_configuration_compartment_details.py +74 -0
- oci/psql/models/change_db_system_compartment_details.py +78 -0
- oci/psql/models/config_overrides.py +103 -0
- oci/psql/models/config_params.py +289 -0
- oci/psql/models/configuration.py +532 -0
- oci/psql/models/configuration_collection.py +72 -0
- oci/psql/models/configuration_details.py +72 -0
- oci/psql/models/configuration_summary.py +450 -0
- oci/psql/models/connection_details.py +134 -0
- oci/psql/models/create_backup_details.py +262 -0
- oci/psql/models/create_configuration_details.py +384 -0
- oci/psql/models/create_db_instance_details.py +136 -0
- oci/psql/models/create_db_system_details.py +585 -0
- oci/psql/models/credentials.py +100 -0
- oci/psql/models/daily_backup_policy.py +89 -0
- oci/psql/models/db_configuration_override_collection.py +72 -0
- oci/psql/models/db_instance.py +325 -0
- oci/psql/models/db_instance_endpoint.py +99 -0
- oci/psql/models/db_system.py +827 -0
- oci/psql/models/db_system_collection.py +72 -0
- oci/psql/models/db_system_details.py +103 -0
- oci/psql/models/db_system_summary.py +574 -0
- oci/psql/models/default_config_params.py +258 -0
- oci/psql/models/default_configuration.py +406 -0
- oci/psql/models/default_configuration_collection.py +72 -0
- oci/psql/models/default_configuration_details.py +72 -0
- oci/psql/models/default_configuration_summary.py +320 -0
- oci/psql/models/endpoint.py +134 -0
- oci/psql/models/failover_db_system_details.py +107 -0
- oci/psql/models/management_policy.py +99 -0
- oci/psql/models/management_policy_details.py +99 -0
- oci/psql/models/monthly_backup_policy.py +122 -0
- oci/psql/models/network_details.py +136 -0
- oci/psql/models/none_backup_policy.py +58 -0
- oci/psql/models/none_source_details.py +51 -0
- oci/psql/models/oci_optimized_storage_details.py +95 -0
- oci/psql/models/password_details.py +110 -0
- oci/psql/models/patch_db_system_details.py +74 -0
- oci/psql/models/patch_insert_instruction.py +171 -0
- oci/psql/models/patch_instruction.py +184 -0
- oci/psql/models/patch_merge_instruction.py +97 -0
- oci/psql/models/patch_move_instruction.py +147 -0
- oci/psql/models/patch_prohibit_instruction.py +100 -0
- oci/psql/models/patch_remove_instruction.py +59 -0
- oci/psql/models/patch_replace_instruction.py +92 -0
- oci/psql/models/patch_require_instruction.py +99 -0
- oci/psql/models/plain_text_password_details.py +82 -0
- oci/psql/models/primary_db_instance_details.py +72 -0
- oci/psql/models/reset_master_user_password_details.py +69 -0
- oci/psql/models/restart_db_instance_in_db_system_details.py +119 -0
- oci/psql/models/restore_db_system_details.py +105 -0
- oci/psql/models/shape_collection.py +72 -0
- oci/psql/models/shape_summary.py +165 -0
- oci/psql/models/source_details.py +109 -0
- oci/psql/models/storage_details.py +161 -0
- oci/psql/models/update_backup_details.py +200 -0
- oci/psql/models/update_configuration_details.py +103 -0
- oci/psql/models/update_db_config_params.py +121 -0
- oci/psql/models/update_db_system_db_instance_details.py +103 -0
- oci/psql/models/update_db_system_details.py +250 -0
- oci/psql/models/update_storage_details_params.py +74 -0
- oci/psql/models/vault_secret_password_details.py +113 -0
- oci/psql/models/weekly_backup_policy.py +157 -0
- oci/psql/models/work_request.py +412 -0
- oci/psql/models/work_request_error.py +136 -0
- oci/psql/models/work_request_error_collection.py +72 -0
- oci/psql/models/work_request_log_entry.py +103 -0
- oci/psql/models/work_request_log_entry_collection.py +72 -0
- oci/psql/models/work_request_resource.py +228 -0
- oci/psql/models/work_request_summary.py +412 -0
- oci/psql/models/work_request_summary_collection.py +72 -0
- oci/psql/postgresql_client.py +3980 -0
- oci/psql/postgresql_client_composite_operations.py +807 -0
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +23 -23
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +12 -4
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +58 -58
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +19 -19
- oci/vault/vaults_client.py +11 -11
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/METADATA +1 -1
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/RECORD +593 -334
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/WHEEL +0 -0
- {oci-2.115.1.dist-info → oci-2.117.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,160 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Copyright (c) 2016, 2023, 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: 20230701
|
6
|
+
|
7
|
+
import oci # noqa: F401
|
8
|
+
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
9
|
+
|
10
|
+
|
11
|
+
class ClusterClientCompositeOperations(object):
|
12
|
+
"""
|
13
|
+
This class provides a wrapper around :py:class:`~oci.ocvp.ClusterClient` and offers convenience methods
|
14
|
+
for operations that would otherwise need to be chained together. For example, instead of performing an action
|
15
|
+
on a resource (e.g. launching an instance, creating a load balancer) and then using a waiter to wait for the resource
|
16
|
+
to enter a given state, you can call a single method in this class to accomplish the same functionality
|
17
|
+
"""
|
18
|
+
|
19
|
+
def __init__(self, client, **kwargs):
|
20
|
+
"""
|
21
|
+
Creates a new ClusterClientCompositeOperations object
|
22
|
+
|
23
|
+
:param ClusterClient client:
|
24
|
+
The service client which will be wrapped by this object
|
25
|
+
"""
|
26
|
+
self.client = client
|
27
|
+
|
28
|
+
def create_cluster_and_wait_for_state(self, create_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
29
|
+
"""
|
30
|
+
Calls :py:func:`~oci.ocvp.ClusterClient.create_cluster` and waits for the :py:class:`~oci.ocvp.models.WorkRequest`
|
31
|
+
to enter the given state(s).
|
32
|
+
|
33
|
+
:param oci.ocvp.models.CreateClusterDetails create_cluster_details: (required)
|
34
|
+
Details for the Cluster.
|
35
|
+
|
36
|
+
:param list[str] wait_for_states:
|
37
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.ocvp.models.WorkRequest.status`
|
38
|
+
|
39
|
+
:param dict operation_kwargs:
|
40
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.ocvp.ClusterClient.create_cluster`
|
41
|
+
|
42
|
+
:param dict waiter_kwargs:
|
43
|
+
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``
|
44
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
45
|
+
"""
|
46
|
+
operation_result = self.client.create_cluster(create_cluster_details, **operation_kwargs)
|
47
|
+
if not wait_for_states:
|
48
|
+
return operation_result
|
49
|
+
|
50
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
51
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
52
|
+
|
53
|
+
try:
|
54
|
+
waiter_result = oci.wait_until(
|
55
|
+
self.client,
|
56
|
+
self.client.get_work_request(wait_for_resource_id),
|
57
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
58
|
+
**waiter_kwargs
|
59
|
+
)
|
60
|
+
result_to_return = waiter_result
|
61
|
+
|
62
|
+
return result_to_return
|
63
|
+
except Exception as e:
|
64
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
65
|
+
|
66
|
+
def delete_cluster_and_wait_for_state(self, cluster_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
67
|
+
"""
|
68
|
+
Calls :py:func:`~oci.ocvp.ClusterClient.delete_cluster` and waits for the :py:class:`~oci.ocvp.models.WorkRequest`
|
69
|
+
to enter the given state(s).
|
70
|
+
|
71
|
+
:param str cluster_id: (required)
|
72
|
+
The `OCID`__ of the Cluster.
|
73
|
+
|
74
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
75
|
+
|
76
|
+
:param list[str] wait_for_states:
|
77
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.ocvp.models.WorkRequest.status`
|
78
|
+
|
79
|
+
:param dict operation_kwargs:
|
80
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.ocvp.ClusterClient.delete_cluster`
|
81
|
+
|
82
|
+
:param dict waiter_kwargs:
|
83
|
+
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``
|
84
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
85
|
+
"""
|
86
|
+
operation_result = None
|
87
|
+
try:
|
88
|
+
operation_result = self.client.delete_cluster(cluster_id, **operation_kwargs)
|
89
|
+
except oci.exceptions.ServiceError as e:
|
90
|
+
if e.status == 404:
|
91
|
+
return WAIT_RESOURCE_NOT_FOUND
|
92
|
+
else:
|
93
|
+
raise e
|
94
|
+
|
95
|
+
if not wait_for_states:
|
96
|
+
return operation_result
|
97
|
+
|
98
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
99
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
100
|
+
|
101
|
+
try:
|
102
|
+
waiter_result = oci.wait_until(
|
103
|
+
self.client,
|
104
|
+
self.client.get_work_request(wait_for_resource_id),
|
105
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
106
|
+
**waiter_kwargs
|
107
|
+
)
|
108
|
+
result_to_return = waiter_result
|
109
|
+
|
110
|
+
return result_to_return
|
111
|
+
except Exception as e:
|
112
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
113
|
+
|
114
|
+
def update_cluster_and_wait_for_state(self, cluster_id, update_cluster_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
115
|
+
"""
|
116
|
+
Calls :py:func:`~oci.ocvp.ClusterClient.update_cluster` and waits for the :py:class:`~oci.ocvp.models.Cluster` acted upon
|
117
|
+
to enter the given state(s).
|
118
|
+
|
119
|
+
:param str cluster_id: (required)
|
120
|
+
The `OCID`__ of the Cluster.
|
121
|
+
|
122
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
123
|
+
|
124
|
+
:param oci.ocvp.models.UpdateClusterDetails update_cluster_details: (required)
|
125
|
+
The information to be updated.
|
126
|
+
|
127
|
+
:param list[str] wait_for_states:
|
128
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.ocvp.models.Cluster.lifecycle_state`
|
129
|
+
|
130
|
+
:param dict operation_kwargs:
|
131
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.ocvp.ClusterClient.update_cluster`
|
132
|
+
|
133
|
+
:param dict waiter_kwargs:
|
134
|
+
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``
|
135
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
136
|
+
"""
|
137
|
+
operation_result = self.client.update_cluster(cluster_id, update_cluster_details, **operation_kwargs)
|
138
|
+
if not wait_for_states:
|
139
|
+
return operation_result
|
140
|
+
|
141
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
142
|
+
cluster_id = operation_result.data.id
|
143
|
+
|
144
|
+
try:
|
145
|
+
waiter_result = oci.wait_until(
|
146
|
+
self.client,
|
147
|
+
self.client.get_cluster(cluster_id), # noqa: F821
|
148
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
149
|
+
**waiter_kwargs
|
150
|
+
)
|
151
|
+
result_to_return = waiter_result
|
152
|
+
|
153
|
+
return result_to_return
|
154
|
+
except (NameError, TypeError) as e:
|
155
|
+
if not e.args:
|
156
|
+
e.args = ('',)
|
157
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
158
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
159
|
+
except Exception as e:
|
160
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
oci/ocvp/esxi_host_client.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
|
3
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
4
|
|
5
|
-
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version:
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230701
|
6
6
|
|
7
7
|
from __future__ import absolute_import
|
8
8
|
|
@@ -100,7 +100,7 @@ class EsxiHostClient(object):
|
|
100
100
|
base_client_init_kwargs = {
|
101
101
|
'regional_client': True,
|
102
102
|
'service_endpoint': kwargs.get('service_endpoint'),
|
103
|
-
'base_path': '/
|
103
|
+
'base_path': '/20230701',
|
104
104
|
'service_endpoint_template': 'https://ocvps.{region}.oci.{secondLevelDomain}',
|
105
105
|
'service_endpoint_template_per_realm': { }, # noqa: E201 E202
|
106
106
|
'skip_deserialization': kwargs.get('skip_deserialization', False),
|
@@ -157,14 +157,14 @@ class EsxiHostClient(object):
|
|
157
157
|
:rtype: :class:`~oci.response.Response`
|
158
158
|
|
159
159
|
:example:
|
160
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
160
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/create_esxi_host.py.html>`__ to see an example of how to use create_esxi_host API.
|
161
161
|
"""
|
162
162
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
163
163
|
required_arguments = []
|
164
164
|
resource_path = "/esxiHosts"
|
165
165
|
method = "POST"
|
166
166
|
operation_name = "create_esxi_host"
|
167
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
167
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/CreateEsxiHost"
|
168
168
|
|
169
169
|
# Don't accept unknown kwargs
|
170
170
|
expected_kwargs = [
|
@@ -269,14 +269,14 @@ class EsxiHostClient(object):
|
|
269
269
|
:rtype: :class:`~oci.response.Response`
|
270
270
|
|
271
271
|
:example:
|
272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
272
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/delete_esxi_host.py.html>`__ to see an example of how to use delete_esxi_host API.
|
273
273
|
"""
|
274
274
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
275
275
|
required_arguments = ['esxiHostId']
|
276
276
|
resource_path = "/esxiHosts/{esxiHostId}"
|
277
277
|
method = "DELETE"
|
278
278
|
operation_name = "delete_esxi_host"
|
279
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
279
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/DeleteEsxiHost"
|
280
280
|
|
281
281
|
# Don't accept unknown kwargs
|
282
282
|
expected_kwargs = [
|
@@ -370,14 +370,14 @@ class EsxiHostClient(object):
|
|
370
370
|
:rtype: :class:`~oci.response.Response`
|
371
371
|
|
372
372
|
:example:
|
373
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
373
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/get_esxi_host.py.html>`__ to see an example of how to use get_esxi_host API.
|
374
374
|
"""
|
375
375
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
376
376
|
required_arguments = ['esxiHostId']
|
377
377
|
resource_path = "/esxiHosts/{esxiHostId}"
|
378
378
|
method = "GET"
|
379
379
|
operation_name = "get_esxi_host"
|
380
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
380
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/GetEsxiHost"
|
381
381
|
|
382
382
|
# Don't accept unknown kwargs
|
383
383
|
expected_kwargs = [
|
@@ -441,6 +441,124 @@ class EsxiHostClient(object):
|
|
441
441
|
api_reference_link=api_reference_link,
|
442
442
|
required_arguments=required_arguments)
|
443
443
|
|
444
|
+
def inplace_upgrade(self, esxi_host_id, **kwargs):
|
445
|
+
"""
|
446
|
+
In-place upgrade a ESXi host.
|
447
|
+
|
448
|
+
|
449
|
+
:param str esxi_host_id: (required)
|
450
|
+
The `OCID`__ of the ESXi host.
|
451
|
+
|
452
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
453
|
+
|
454
|
+
:param str opc_retry_token: (optional)
|
455
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
456
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
457
|
+
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
458
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
459
|
+
may be rejected).
|
460
|
+
|
461
|
+
:param str if_match: (optional)
|
462
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
463
|
+
for a resource, set the `if-match` parameter to the value of the
|
464
|
+
etag from a previous GET or POST response for that resource.
|
465
|
+
The resource will be updated or deleted only if the etag you
|
466
|
+
provide matches the resource's current etag value.
|
467
|
+
|
468
|
+
:param str opc_request_id: (optional)
|
469
|
+
Unique identifier for the request. If you need to contact Oracle about a particular
|
470
|
+
request, please provide the request ID.
|
471
|
+
|
472
|
+
:param obj retry_strategy: (optional)
|
473
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
474
|
+
|
475
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
476
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
477
|
+
|
478
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
479
|
+
|
480
|
+
:param bool allow_control_chars: (optional)
|
481
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
482
|
+
By default, the response will not allow control characters in strings
|
483
|
+
|
484
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
485
|
+
:rtype: :class:`~oci.response.Response`
|
486
|
+
|
487
|
+
:example:
|
488
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/inplace_upgrade.py.html>`__ to see an example of how to use inplace_upgrade API.
|
489
|
+
"""
|
490
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
491
|
+
required_arguments = ['esxiHostId']
|
492
|
+
resource_path = "/esxiHosts/{esxiHostId}/actions/inplaceUpgrade"
|
493
|
+
method = "POST"
|
494
|
+
operation_name = "inplace_upgrade"
|
495
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/InplaceUpgrade"
|
496
|
+
|
497
|
+
# Don't accept unknown kwargs
|
498
|
+
expected_kwargs = [
|
499
|
+
"allow_control_chars",
|
500
|
+
"retry_strategy",
|
501
|
+
"opc_retry_token",
|
502
|
+
"if_match",
|
503
|
+
"opc_request_id"
|
504
|
+
]
|
505
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
506
|
+
if extra_kwargs:
|
507
|
+
raise ValueError(
|
508
|
+
f"inplace_upgrade got unknown kwargs: {extra_kwargs!r}")
|
509
|
+
|
510
|
+
path_params = {
|
511
|
+
"esxiHostId": esxi_host_id
|
512
|
+
}
|
513
|
+
|
514
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
515
|
+
|
516
|
+
for (k, v) in six.iteritems(path_params):
|
517
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
518
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
519
|
+
|
520
|
+
header_params = {
|
521
|
+
"accept": "application/json",
|
522
|
+
"content-type": "application/json",
|
523
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
524
|
+
"if-match": kwargs.get("if_match", missing),
|
525
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
526
|
+
}
|
527
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
528
|
+
|
529
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
530
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
531
|
+
client_retry_strategy=self.retry_strategy
|
532
|
+
)
|
533
|
+
if retry_strategy is None:
|
534
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
535
|
+
|
536
|
+
if retry_strategy:
|
537
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
538
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
539
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
540
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
541
|
+
return retry_strategy.make_retrying_call(
|
542
|
+
self.base_client.call_api,
|
543
|
+
resource_path=resource_path,
|
544
|
+
method=method,
|
545
|
+
path_params=path_params,
|
546
|
+
header_params=header_params,
|
547
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
548
|
+
operation_name=operation_name,
|
549
|
+
api_reference_link=api_reference_link,
|
550
|
+
required_arguments=required_arguments)
|
551
|
+
else:
|
552
|
+
return self.base_client.call_api(
|
553
|
+
resource_path=resource_path,
|
554
|
+
method=method,
|
555
|
+
path_params=path_params,
|
556
|
+
header_params=header_params,
|
557
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
558
|
+
operation_name=operation_name,
|
559
|
+
api_reference_link=api_reference_link,
|
560
|
+
required_arguments=required_arguments)
|
561
|
+
|
444
562
|
def list_esxi_hosts(self, **kwargs):
|
445
563
|
"""
|
446
564
|
Lists the ESXi hosts in the specified SDDC. The list can be filtered
|
@@ -459,6 +577,11 @@ class EsxiHostClient(object):
|
|
459
577
|
|
460
578
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
461
579
|
|
580
|
+
:param str cluster_id: (optional)
|
581
|
+
The `OCID`__ of the Cluster.
|
582
|
+
|
583
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
584
|
+
|
462
585
|
:param str compute_instance_id: (optional)
|
463
586
|
The `OCID`__ of the Compute instance.
|
464
587
|
|
@@ -535,20 +658,21 @@ class EsxiHostClient(object):
|
|
535
658
|
:rtype: :class:`~oci.response.Response`
|
536
659
|
|
537
660
|
:example:
|
538
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
661
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/list_esxi_hosts.py.html>`__ to see an example of how to use list_esxi_hosts API.
|
539
662
|
"""
|
540
663
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
541
664
|
required_arguments = []
|
542
665
|
resource_path = "/esxiHosts"
|
543
666
|
method = "GET"
|
544
667
|
operation_name = "list_esxi_hosts"
|
545
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
668
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHostSummary/ListEsxiHosts"
|
546
669
|
|
547
670
|
# Don't accept unknown kwargs
|
548
671
|
expected_kwargs = [
|
549
672
|
"allow_control_chars",
|
550
673
|
"retry_strategy",
|
551
674
|
"sddc_id",
|
675
|
+
"cluster_id",
|
552
676
|
"compute_instance_id",
|
553
677
|
"display_name",
|
554
678
|
"limit",
|
@@ -589,6 +713,7 @@ class EsxiHostClient(object):
|
|
589
713
|
|
590
714
|
query_params = {
|
591
715
|
"sddcId": kwargs.get("sddc_id", missing),
|
716
|
+
"clusterId": kwargs.get("cluster_id", missing),
|
592
717
|
"computeInstanceId": kwargs.get("compute_instance_id", missing),
|
593
718
|
"displayName": kwargs.get("display_name", missing),
|
594
719
|
"limit": kwargs.get("limit", missing),
|
@@ -643,6 +768,129 @@ class EsxiHostClient(object):
|
|
643
768
|
api_reference_link=api_reference_link,
|
644
769
|
required_arguments=required_arguments)
|
645
770
|
|
771
|
+
def replace_host(self, esxi_host_id, replace_host_details, **kwargs):
|
772
|
+
"""
|
773
|
+
Replace a faulty ESXi host whose underlying bare metal is broken
|
774
|
+
|
775
|
+
|
776
|
+
:param str esxi_host_id: (required)
|
777
|
+
The `OCID`__ of the ESXi host.
|
778
|
+
|
779
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
780
|
+
|
781
|
+
:param oci.ocvp.models.ReplaceHostDetails replace_host_details: (required)
|
782
|
+
The details for replacing ESXi host
|
783
|
+
|
784
|
+
:param str opc_retry_token: (optional)
|
785
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
786
|
+
server error without risk of executing that same action again. Retry tokens expire after 24
|
787
|
+
hours, but can be invalidated before then due to conflicting operations (for example, if a resource
|
788
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
789
|
+
may be rejected).
|
790
|
+
|
791
|
+
:param str if_match: (optional)
|
792
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
793
|
+
for a resource, set the `if-match` parameter to the value of the
|
794
|
+
etag from a previous GET or POST response for that resource.
|
795
|
+
The resource will be updated or deleted only if the etag you
|
796
|
+
provide matches the resource's current etag value.
|
797
|
+
|
798
|
+
:param str opc_request_id: (optional)
|
799
|
+
Unique identifier for the request. If you need to contact Oracle about a particular
|
800
|
+
request, please provide the request ID.
|
801
|
+
|
802
|
+
:param obj retry_strategy: (optional)
|
803
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
804
|
+
|
805
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
806
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
807
|
+
|
808
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
809
|
+
|
810
|
+
:param bool allow_control_chars: (optional)
|
811
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
812
|
+
By default, the response will not allow control characters in strings
|
813
|
+
|
814
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
815
|
+
:rtype: :class:`~oci.response.Response`
|
816
|
+
|
817
|
+
:example:
|
818
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/replace_host.py.html>`__ to see an example of how to use replace_host API.
|
819
|
+
"""
|
820
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
821
|
+
required_arguments = ['esxiHostId']
|
822
|
+
resource_path = "/esxiHosts/{esxiHostId}/actions/replaceHost"
|
823
|
+
method = "POST"
|
824
|
+
operation_name = "replace_host"
|
825
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/ReplaceHost"
|
826
|
+
|
827
|
+
# Don't accept unknown kwargs
|
828
|
+
expected_kwargs = [
|
829
|
+
"allow_control_chars",
|
830
|
+
"retry_strategy",
|
831
|
+
"opc_retry_token",
|
832
|
+
"if_match",
|
833
|
+
"opc_request_id"
|
834
|
+
]
|
835
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
836
|
+
if extra_kwargs:
|
837
|
+
raise ValueError(
|
838
|
+
f"replace_host got unknown kwargs: {extra_kwargs!r}")
|
839
|
+
|
840
|
+
path_params = {
|
841
|
+
"esxiHostId": esxi_host_id
|
842
|
+
}
|
843
|
+
|
844
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
845
|
+
|
846
|
+
for (k, v) in six.iteritems(path_params):
|
847
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
848
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
849
|
+
|
850
|
+
header_params = {
|
851
|
+
"accept": "application/json",
|
852
|
+
"content-type": "application/json",
|
853
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
854
|
+
"if-match": kwargs.get("if_match", missing),
|
855
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
856
|
+
}
|
857
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
858
|
+
|
859
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
860
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
861
|
+
client_retry_strategy=self.retry_strategy
|
862
|
+
)
|
863
|
+
if retry_strategy is None:
|
864
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
865
|
+
|
866
|
+
if retry_strategy:
|
867
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
868
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
869
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
870
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
871
|
+
return retry_strategy.make_retrying_call(
|
872
|
+
self.base_client.call_api,
|
873
|
+
resource_path=resource_path,
|
874
|
+
method=method,
|
875
|
+
path_params=path_params,
|
876
|
+
header_params=header_params,
|
877
|
+
body=replace_host_details,
|
878
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
879
|
+
operation_name=operation_name,
|
880
|
+
api_reference_link=api_reference_link,
|
881
|
+
required_arguments=required_arguments)
|
882
|
+
else:
|
883
|
+
return self.base_client.call_api(
|
884
|
+
resource_path=resource_path,
|
885
|
+
method=method,
|
886
|
+
path_params=path_params,
|
887
|
+
header_params=header_params,
|
888
|
+
body=replace_host_details,
|
889
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
890
|
+
operation_name=operation_name,
|
891
|
+
api_reference_link=api_reference_link,
|
892
|
+
required_arguments=required_arguments)
|
893
|
+
|
646
894
|
def swap_billing(self, esxi_host_id, swap_billing_host_id, **kwargs):
|
647
895
|
"""
|
648
896
|
Swap billing between two Active ESXi hosts.
|
@@ -692,14 +940,14 @@ class EsxiHostClient(object):
|
|
692
940
|
:rtype: :class:`~oci.response.Response`
|
693
941
|
|
694
942
|
:example:
|
695
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
943
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/swap_billing.py.html>`__ to see an example of how to use swap_billing API.
|
696
944
|
"""
|
697
945
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
698
946
|
required_arguments = ['esxiHostId', 'swapBillingHostId']
|
699
947
|
resource_path = "/esxiHosts/{esxiHostId}/actions/swapBilling"
|
700
948
|
method = "POST"
|
701
949
|
operation_name = "swap_billing"
|
702
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
950
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/SwapBilling"
|
703
951
|
|
704
952
|
# Don't accept unknown kwargs
|
705
953
|
expected_kwargs = [
|
@@ -813,14 +1061,14 @@ class EsxiHostClient(object):
|
|
813
1061
|
:rtype: :class:`~oci.response.Response`
|
814
1062
|
|
815
1063
|
:example:
|
816
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1064
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.117.0/ocvp/update_esxi_host.py.html>`__ to see an example of how to use update_esxi_host API.
|
817
1065
|
"""
|
818
1066
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
819
1067
|
required_arguments = ['esxiHostId']
|
820
1068
|
resource_path = "/esxiHosts/{esxiHostId}"
|
821
1069
|
method = "PUT"
|
822
1070
|
operation_name = "update_esxi_host"
|
823
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/
|
1071
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/vmware/20230701/EsxiHost/UpdateEsxiHost"
|
824
1072
|
|
825
1073
|
# Don't accept unknown kwargs
|
826
1074
|
expected_kwargs = [
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# Copyright (c) 2016, 2023, Oracle and/or its affiliates. All rights reserved.
|
3
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
4
|
|
5
|
-
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version:
|
5
|
+
# NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230701
|
6
6
|
|
7
7
|
import oci # noqa: F401
|
8
8
|
from oci.util import WAIT_RESOURCE_NOT_FOUND # noqa: F401
|
@@ -111,6 +111,89 @@ class EsxiHostClientCompositeOperations(object):
|
|
111
111
|
except Exception as e:
|
112
112
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
113
113
|
|
114
|
+
def inplace_upgrade_and_wait_for_state(self, esxi_host_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
115
|
+
"""
|
116
|
+
Calls :py:func:`~oci.ocvp.EsxiHostClient.inplace_upgrade` and waits for the :py:class:`~oci.ocvp.models.WorkRequest`
|
117
|
+
to enter the given state(s).
|
118
|
+
|
119
|
+
:param str esxi_host_id: (required)
|
120
|
+
The `OCID`__ of the ESXi host.
|
121
|
+
|
122
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
123
|
+
|
124
|
+
:param list[str] wait_for_states:
|
125
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.ocvp.models.WorkRequest.status`
|
126
|
+
|
127
|
+
:param dict operation_kwargs:
|
128
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.ocvp.EsxiHostClient.inplace_upgrade`
|
129
|
+
|
130
|
+
:param dict waiter_kwargs:
|
131
|
+
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``
|
132
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
133
|
+
"""
|
134
|
+
operation_result = self.client.inplace_upgrade(esxi_host_id, **operation_kwargs)
|
135
|
+
if not wait_for_states:
|
136
|
+
return operation_result
|
137
|
+
|
138
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
139
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
140
|
+
|
141
|
+
try:
|
142
|
+
waiter_result = oci.wait_until(
|
143
|
+
self.client,
|
144
|
+
self.client.get_work_request(wait_for_resource_id),
|
145
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
146
|
+
**waiter_kwargs
|
147
|
+
)
|
148
|
+
result_to_return = waiter_result
|
149
|
+
|
150
|
+
return result_to_return
|
151
|
+
except Exception as e:
|
152
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
153
|
+
|
154
|
+
def replace_host_and_wait_for_state(self, esxi_host_id, replace_host_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
155
|
+
"""
|
156
|
+
Calls :py:func:`~oci.ocvp.EsxiHostClient.replace_host` and waits for the :py:class:`~oci.ocvp.models.WorkRequest`
|
157
|
+
to enter the given state(s).
|
158
|
+
|
159
|
+
:param str esxi_host_id: (required)
|
160
|
+
The `OCID`__ of the ESXi host.
|
161
|
+
|
162
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
163
|
+
|
164
|
+
:param oci.ocvp.models.ReplaceHostDetails replace_host_details: (required)
|
165
|
+
The details for replacing ESXi host
|
166
|
+
|
167
|
+
:param list[str] wait_for_states:
|
168
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.ocvp.models.WorkRequest.status`
|
169
|
+
|
170
|
+
:param dict operation_kwargs:
|
171
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.ocvp.EsxiHostClient.replace_host`
|
172
|
+
|
173
|
+
:param dict waiter_kwargs:
|
174
|
+
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``
|
175
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
176
|
+
"""
|
177
|
+
operation_result = self.client.replace_host(esxi_host_id, replace_host_details, **operation_kwargs)
|
178
|
+
if not wait_for_states:
|
179
|
+
return operation_result
|
180
|
+
|
181
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
182
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
183
|
+
|
184
|
+
try:
|
185
|
+
waiter_result = oci.wait_until(
|
186
|
+
self.client,
|
187
|
+
self.client.get_work_request(wait_for_resource_id),
|
188
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
189
|
+
**waiter_kwargs
|
190
|
+
)
|
191
|
+
result_to_return = waiter_result
|
192
|
+
|
193
|
+
return result_to_return
|
194
|
+
except Exception as e:
|
195
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
196
|
+
|
114
197
|
def swap_billing_and_wait_for_state(self, esxi_host_id, swap_billing_host_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
115
198
|
"""
|
116
199
|
Calls :py:func:`~oci.ocvp.EsxiHostClient.swap_billing` and waits for the :py:class:`~oci.ocvp.models.WorkRequest`
|