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
oci/bds/bds_client.py
CHANGED
@@ -163,7 +163,7 @@ class BdsClient(object):
|
|
163
163
|
:rtype: :class:`~oci.response.Response`
|
164
164
|
|
165
165
|
:example:
|
166
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
166
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/activate_bds_metastore_configuration.py.html>`__ to see an example of how to use activate_bds_metastore_configuration API.
|
167
167
|
"""
|
168
168
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
169
169
|
required_arguments = ['bdsInstanceId', 'metastoreConfigId']
|
@@ -282,7 +282,7 @@ class BdsClient(object):
|
|
282
282
|
:rtype: :class:`~oci.response.Response`
|
283
283
|
|
284
284
|
:example:
|
285
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
285
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_auto_scaling_configuration.py.html>`__ to see an example of how to use add_auto_scaling_configuration API.
|
286
286
|
"""
|
287
287
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
288
288
|
required_arguments = ['bdsInstanceId']
|
@@ -400,7 +400,7 @@ class BdsClient(object):
|
|
400
400
|
:rtype: :class:`~oci.response.Response`
|
401
401
|
|
402
402
|
:example:
|
403
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
403
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_block_storage.py.html>`__ to see an example of how to use add_block_storage API.
|
404
404
|
"""
|
405
405
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
406
406
|
required_arguments = ['bdsInstanceId']
|
@@ -518,7 +518,7 @@ class BdsClient(object):
|
|
518
518
|
:rtype: :class:`~oci.response.Response`
|
519
519
|
|
520
520
|
:example:
|
521
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
521
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_cloud_sql.py.html>`__ to see an example of how to use add_cloud_sql API.
|
522
522
|
"""
|
523
523
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
524
524
|
required_arguments = ['bdsInstanceId']
|
@@ -636,7 +636,7 @@ class BdsClient(object):
|
|
636
636
|
:rtype: :class:`~oci.response.Response`
|
637
637
|
|
638
638
|
:example:
|
639
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
639
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_kafka.py.html>`__ to see an example of how to use add_kafka API.
|
640
640
|
"""
|
641
641
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
642
642
|
required_arguments = ['bdsInstanceId']
|
@@ -754,7 +754,7 @@ class BdsClient(object):
|
|
754
754
|
:rtype: :class:`~oci.response.Response`
|
755
755
|
|
756
756
|
:example:
|
757
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
757
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_master_nodes.py.html>`__ to see an example of how to use add_master_nodes API.
|
758
758
|
"""
|
759
759
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
760
760
|
required_arguments = ['bdsInstanceId']
|
@@ -872,7 +872,7 @@ class BdsClient(object):
|
|
872
872
|
:rtype: :class:`~oci.response.Response`
|
873
873
|
|
874
874
|
:example:
|
875
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
875
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_utility_nodes.py.html>`__ to see an example of how to use add_utility_nodes API.
|
876
876
|
"""
|
877
877
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
878
878
|
required_arguments = ['bdsInstanceId']
|
@@ -990,7 +990,7 @@ class BdsClient(object):
|
|
990
990
|
:rtype: :class:`~oci.response.Response`
|
991
991
|
|
992
992
|
:example:
|
993
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
993
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/add_worker_nodes.py.html>`__ to see an example of how to use add_worker_nodes API.
|
994
994
|
"""
|
995
995
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
996
996
|
required_arguments = ['bdsInstanceId']
|
@@ -1064,6 +1064,124 @@ class BdsClient(object):
|
|
1064
1064
|
api_reference_link=api_reference_link,
|
1065
1065
|
required_arguments=required_arguments)
|
1066
1066
|
|
1067
|
+
def backup_node(self, bds_instance_id, backup_node_details, **kwargs):
|
1068
|
+
"""
|
1069
|
+
Takes a backup of of given nodes.
|
1070
|
+
|
1071
|
+
|
1072
|
+
:param str bds_instance_id: (required)
|
1073
|
+
The OCID of the cluster.
|
1074
|
+
|
1075
|
+
:param oci.bds.models.BackupNodeDetails backup_node_details: (required)
|
1076
|
+
Details for Taking the node's backup
|
1077
|
+
|
1078
|
+
:param str opc_request_id: (optional)
|
1079
|
+
The client request ID for tracing.
|
1080
|
+
|
1081
|
+
:param str if_match: (optional)
|
1082
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
1083
|
+
for a resource, set the `if-match` parameter to the value of the
|
1084
|
+
etag from a previous GET or POST response for that resource.
|
1085
|
+
The resource will be updated or deleted only if the etag you
|
1086
|
+
provide matches the resource's current etag value.
|
1087
|
+
|
1088
|
+
:param str opc_retry_token: (optional)
|
1089
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1090
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
1091
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
1092
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1093
|
+
might be rejected.
|
1094
|
+
|
1095
|
+
:param obj retry_strategy: (optional)
|
1096
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1097
|
+
|
1098
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
1099
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1100
|
+
|
1101
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1102
|
+
|
1103
|
+
:param bool allow_control_chars: (optional)
|
1104
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1105
|
+
By default, the response will not allow control characters in strings
|
1106
|
+
|
1107
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1108
|
+
:rtype: :class:`~oci.response.Response`
|
1109
|
+
|
1110
|
+
:example:
|
1111
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/backup_node.py.html>`__ to see an example of how to use backup_node API.
|
1112
|
+
"""
|
1113
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1114
|
+
required_arguments = ['bdsInstanceId']
|
1115
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/backupNodes"
|
1116
|
+
method = "POST"
|
1117
|
+
operation_name = "backup_node"
|
1118
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/BackupNode"
|
1119
|
+
|
1120
|
+
# Don't accept unknown kwargs
|
1121
|
+
expected_kwargs = [
|
1122
|
+
"allow_control_chars",
|
1123
|
+
"retry_strategy",
|
1124
|
+
"opc_request_id",
|
1125
|
+
"if_match",
|
1126
|
+
"opc_retry_token"
|
1127
|
+
]
|
1128
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1129
|
+
if extra_kwargs:
|
1130
|
+
raise ValueError(
|
1131
|
+
f"backup_node got unknown kwargs: {extra_kwargs!r}")
|
1132
|
+
|
1133
|
+
path_params = {
|
1134
|
+
"bdsInstanceId": bds_instance_id
|
1135
|
+
}
|
1136
|
+
|
1137
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1138
|
+
|
1139
|
+
for (k, v) in six.iteritems(path_params):
|
1140
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1141
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1142
|
+
|
1143
|
+
header_params = {
|
1144
|
+
"accept": "application/json",
|
1145
|
+
"content-type": "application/json",
|
1146
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1147
|
+
"if-match": kwargs.get("if_match", missing),
|
1148
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1149
|
+
}
|
1150
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1151
|
+
|
1152
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1153
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1154
|
+
client_retry_strategy=self.retry_strategy
|
1155
|
+
)
|
1156
|
+
|
1157
|
+
if retry_strategy:
|
1158
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1159
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1160
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1161
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1162
|
+
return retry_strategy.make_retrying_call(
|
1163
|
+
self.base_client.call_api,
|
1164
|
+
resource_path=resource_path,
|
1165
|
+
method=method,
|
1166
|
+
path_params=path_params,
|
1167
|
+
header_params=header_params,
|
1168
|
+
body=backup_node_details,
|
1169
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1170
|
+
operation_name=operation_name,
|
1171
|
+
api_reference_link=api_reference_link,
|
1172
|
+
required_arguments=required_arguments)
|
1173
|
+
else:
|
1174
|
+
return self.base_client.call_api(
|
1175
|
+
resource_path=resource_path,
|
1176
|
+
method=method,
|
1177
|
+
path_params=path_params,
|
1178
|
+
header_params=header_params,
|
1179
|
+
body=backup_node_details,
|
1180
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1181
|
+
operation_name=operation_name,
|
1182
|
+
api_reference_link=api_reference_link,
|
1183
|
+
required_arguments=required_arguments)
|
1184
|
+
|
1067
1185
|
def certificate_service_info(self, bds_instance_id, certificate_service_info_details, **kwargs):
|
1068
1186
|
"""
|
1069
1187
|
A list of services and their certificate details.
|
@@ -1108,7 +1226,7 @@ class BdsClient(object):
|
|
1108
1226
|
:rtype: :class:`~oci.response.Response`
|
1109
1227
|
|
1110
1228
|
:example:
|
1111
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1229
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/certificate_service_info.py.html>`__ to see an example of how to use certificate_service_info API.
|
1112
1230
|
"""
|
1113
1231
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1114
1232
|
required_arguments = ['bdsInstanceId']
|
@@ -1228,7 +1346,7 @@ class BdsClient(object):
|
|
1228
1346
|
:rtype: :class:`~oci.response.Response`
|
1229
1347
|
|
1230
1348
|
:example:
|
1231
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1349
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/change_bds_instance_compartment.py.html>`__ to see an example of how to use change_bds_instance_compartment API.
|
1232
1350
|
"""
|
1233
1351
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1234
1352
|
required_arguments = ['bdsInstanceId']
|
@@ -1346,7 +1464,7 @@ class BdsClient(object):
|
|
1346
1464
|
:rtype: :class:`~oci.response.Response`
|
1347
1465
|
|
1348
1466
|
:example:
|
1349
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1467
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/change_shape.py.html>`__ to see an example of how to use change_shape API.
|
1350
1468
|
"""
|
1351
1469
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1352
1470
|
required_arguments = ['bdsInstanceId']
|
@@ -1457,7 +1575,7 @@ class BdsClient(object):
|
|
1457
1575
|
:rtype: :class:`~oci.response.Response`
|
1458
1576
|
|
1459
1577
|
:example:
|
1460
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1578
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/create_bds_api_key.py.html>`__ to see an example of how to use create_bds_api_key API.
|
1461
1579
|
"""
|
1462
1580
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1463
1581
|
required_arguments = ['bdsInstanceId']
|
@@ -1563,7 +1681,7 @@ class BdsClient(object):
|
|
1563
1681
|
:rtype: :class:`~oci.response.Response`
|
1564
1682
|
|
1565
1683
|
:example:
|
1566
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1684
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/create_bds_instance.py.html>`__ to see an example of how to use create_bds_instance API.
|
1567
1685
|
"""
|
1568
1686
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1569
1687
|
required_arguments = []
|
@@ -1660,7 +1778,7 @@ class BdsClient(object):
|
|
1660
1778
|
:rtype: :class:`~oci.response.Response`
|
1661
1779
|
|
1662
1780
|
:example:
|
1663
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1781
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/create_bds_metastore_configuration.py.html>`__ to see an example of how to use create_bds_metastore_configuration API.
|
1664
1782
|
"""
|
1665
1783
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1666
1784
|
required_arguments = ['bdsInstanceId']
|
@@ -1732,26 +1850,26 @@ class BdsClient(object):
|
|
1732
1850
|
api_reference_link=api_reference_link,
|
1733
1851
|
required_arguments=required_arguments)
|
1734
1852
|
|
1735
|
-
def
|
1853
|
+
def create_node_backup_configuration(self, bds_instance_id, create_node_backup_configuration_details, **kwargs):
|
1736
1854
|
"""
|
1737
|
-
|
1855
|
+
Add a node volume backup configuration to the cluster for an indicated node type or node.
|
1738
1856
|
|
1739
1857
|
|
1740
1858
|
:param str bds_instance_id: (required)
|
1741
1859
|
The OCID of the cluster.
|
1742
1860
|
|
1743
|
-
:param
|
1744
|
-
|
1861
|
+
:param oci.bds.models.CreateNodeBackupConfigurationDetails create_node_backup_configuration_details: (required)
|
1862
|
+
Details for adding nodeBackupConfiguration to the BDS cluster.
|
1745
1863
|
|
1746
1864
|
:param str opc_request_id: (optional)
|
1747
1865
|
The client request ID for tracing.
|
1748
1866
|
|
1749
|
-
:param str
|
1750
|
-
|
1751
|
-
|
1752
|
-
|
1753
|
-
|
1754
|
-
|
1867
|
+
:param str opc_retry_token: (optional)
|
1868
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1869
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
1870
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
1871
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1872
|
+
might be rejected.
|
1755
1873
|
|
1756
1874
|
:param obj retry_strategy: (optional)
|
1757
1875
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -1769,30 +1887,29 @@ class BdsClient(object):
|
|
1769
1887
|
:rtype: :class:`~oci.response.Response`
|
1770
1888
|
|
1771
1889
|
:example:
|
1772
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1890
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/create_node_backup_configuration.py.html>`__ to see an example of how to use create_node_backup_configuration API.
|
1773
1891
|
"""
|
1774
1892
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1775
|
-
required_arguments = ['bdsInstanceId'
|
1776
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
1777
|
-
method = "
|
1778
|
-
operation_name = "
|
1779
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
1893
|
+
required_arguments = ['bdsInstanceId']
|
1894
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackupConfigurations"
|
1895
|
+
method = "POST"
|
1896
|
+
operation_name = "create_node_backup_configuration"
|
1897
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeBackupConfiguration"
|
1780
1898
|
|
1781
1899
|
# Don't accept unknown kwargs
|
1782
1900
|
expected_kwargs = [
|
1783
1901
|
"allow_control_chars",
|
1784
1902
|
"retry_strategy",
|
1785
1903
|
"opc_request_id",
|
1786
|
-
"
|
1904
|
+
"opc_retry_token"
|
1787
1905
|
]
|
1788
1906
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1789
1907
|
if extra_kwargs:
|
1790
1908
|
raise ValueError(
|
1791
|
-
f"
|
1909
|
+
f"create_node_backup_configuration got unknown kwargs: {extra_kwargs!r}")
|
1792
1910
|
|
1793
1911
|
path_params = {
|
1794
|
-
"bdsInstanceId": bds_instance_id
|
1795
|
-
"apiKeyId": api_key_id
|
1912
|
+
"bdsInstanceId": bds_instance_id
|
1796
1913
|
}
|
1797
1914
|
|
1798
1915
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -1805,7 +1922,7 @@ class BdsClient(object):
|
|
1805
1922
|
"accept": "application/json",
|
1806
1923
|
"content-type": "application/json",
|
1807
1924
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1808
|
-
"
|
1925
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1809
1926
|
}
|
1810
1927
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1811
1928
|
|
@@ -1816,6 +1933,7 @@ class BdsClient(object):
|
|
1816
1933
|
|
1817
1934
|
if retry_strategy:
|
1818
1935
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1936
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1819
1937
|
self.base_client.add_opc_client_retries_header(header_params)
|
1820
1938
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1821
1939
|
return retry_strategy.make_retrying_call(
|
@@ -1824,6 +1942,7 @@ class BdsClient(object):
|
|
1824
1942
|
method=method,
|
1825
1943
|
path_params=path_params,
|
1826
1944
|
header_params=header_params,
|
1945
|
+
body=create_node_backup_configuration_details,
|
1827
1946
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1828
1947
|
operation_name=operation_name,
|
1829
1948
|
api_reference_link=api_reference_link,
|
@@ -1834,28 +1953,32 @@ class BdsClient(object):
|
|
1834
1953
|
method=method,
|
1835
1954
|
path_params=path_params,
|
1836
1955
|
header_params=header_params,
|
1956
|
+
body=create_node_backup_configuration_details,
|
1837
1957
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1838
1958
|
operation_name=operation_name,
|
1839
1959
|
api_reference_link=api_reference_link,
|
1840
1960
|
required_arguments=required_arguments)
|
1841
1961
|
|
1842
|
-
def
|
1962
|
+
def create_node_replace_configuration(self, bds_instance_id, create_node_replace_configuration_details, **kwargs):
|
1843
1963
|
"""
|
1844
|
-
|
1964
|
+
Add a nodeReplaceConfigurations to the cluster.
|
1845
1965
|
|
1846
1966
|
|
1847
1967
|
:param str bds_instance_id: (required)
|
1848
1968
|
The OCID of the cluster.
|
1849
1969
|
|
1970
|
+
:param oci.bds.models.CreateNodeReplaceConfigurationDetails create_node_replace_configuration_details: (required)
|
1971
|
+
Details for adding nodeReplaceConfiguration to the BDS cluster.
|
1972
|
+
|
1850
1973
|
:param str opc_request_id: (optional)
|
1851
1974
|
The client request ID for tracing.
|
1852
1975
|
|
1853
|
-
:param str
|
1854
|
-
|
1855
|
-
|
1856
|
-
|
1857
|
-
|
1858
|
-
|
1976
|
+
:param str opc_retry_token: (optional)
|
1977
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
1978
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
1979
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
1980
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
1981
|
+
might be rejected.
|
1859
1982
|
|
1860
1983
|
:param obj retry_strategy: (optional)
|
1861
1984
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -1873,26 +1996,26 @@ class BdsClient(object):
|
|
1873
1996
|
:rtype: :class:`~oci.response.Response`
|
1874
1997
|
|
1875
1998
|
:example:
|
1876
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
1999
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/create_node_replace_configuration.py.html>`__ to see an example of how to use create_node_replace_configuration API.
|
1877
2000
|
"""
|
1878
2001
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1879
2002
|
required_arguments = ['bdsInstanceId']
|
1880
|
-
resource_path = "/bdsInstances/{bdsInstanceId}"
|
1881
|
-
method = "
|
1882
|
-
operation_name = "
|
1883
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
2003
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeReplaceConfigurations"
|
2004
|
+
method = "POST"
|
2005
|
+
operation_name = "create_node_replace_configuration"
|
2006
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/CreateNodeReplaceConfiguration"
|
1884
2007
|
|
1885
2008
|
# Don't accept unknown kwargs
|
1886
2009
|
expected_kwargs = [
|
1887
2010
|
"allow_control_chars",
|
1888
2011
|
"retry_strategy",
|
1889
2012
|
"opc_request_id",
|
1890
|
-
"
|
2013
|
+
"opc_retry_token"
|
1891
2014
|
]
|
1892
2015
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1893
2016
|
if extra_kwargs:
|
1894
2017
|
raise ValueError(
|
1895
|
-
f"
|
2018
|
+
f"create_node_replace_configuration got unknown kwargs: {extra_kwargs!r}")
|
1896
2019
|
|
1897
2020
|
path_params = {
|
1898
2021
|
"bdsInstanceId": bds_instance_id
|
@@ -1908,7 +2031,7 @@ class BdsClient(object):
|
|
1908
2031
|
"accept": "application/json",
|
1909
2032
|
"content-type": "application/json",
|
1910
2033
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1911
|
-
"
|
2034
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1912
2035
|
}
|
1913
2036
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1914
2037
|
|
@@ -1919,6 +2042,7 @@ class BdsClient(object):
|
|
1919
2042
|
|
1920
2043
|
if retry_strategy:
|
1921
2044
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2045
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1922
2046
|
self.base_client.add_opc_client_retries_header(header_params)
|
1923
2047
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1924
2048
|
return retry_strategy.make_retrying_call(
|
@@ -1927,6 +2051,7 @@ class BdsClient(object):
|
|
1927
2051
|
method=method,
|
1928
2052
|
path_params=path_params,
|
1929
2053
|
header_params=header_params,
|
2054
|
+
body=create_node_replace_configuration_details,
|
1930
2055
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1931
2056
|
operation_name=operation_name,
|
1932
2057
|
api_reference_link=api_reference_link,
|
@@ -1937,21 +2062,22 @@ class BdsClient(object):
|
|
1937
2062
|
method=method,
|
1938
2063
|
path_params=path_params,
|
1939
2064
|
header_params=header_params,
|
2065
|
+
body=create_node_replace_configuration_details,
|
1940
2066
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
1941
2067
|
operation_name=operation_name,
|
1942
2068
|
api_reference_link=api_reference_link,
|
1943
2069
|
required_arguments=required_arguments)
|
1944
2070
|
|
1945
|
-
def
|
2071
|
+
def delete_bds_api_key(self, bds_instance_id, api_key_id, **kwargs):
|
1946
2072
|
"""
|
1947
|
-
|
2073
|
+
Deletes the user's API key represented by the provided ID.
|
1948
2074
|
|
1949
2075
|
|
1950
2076
|
:param str bds_instance_id: (required)
|
1951
2077
|
The OCID of the cluster.
|
1952
2078
|
|
1953
|
-
:param str
|
1954
|
-
The
|
2079
|
+
:param str api_key_id: (required)
|
2080
|
+
The API key identifier.
|
1955
2081
|
|
1956
2082
|
:param str opc_request_id: (optional)
|
1957
2083
|
The client request ID for tracing.
|
@@ -1979,14 +2105,14 @@ class BdsClient(object):
|
|
1979
2105
|
:rtype: :class:`~oci.response.Response`
|
1980
2106
|
|
1981
2107
|
:example:
|
1982
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2108
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/delete_bds_api_key.py.html>`__ to see an example of how to use delete_bds_api_key API.
|
1983
2109
|
"""
|
1984
2110
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1985
|
-
required_arguments = ['bdsInstanceId', '
|
1986
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2111
|
+
required_arguments = ['bdsInstanceId', 'apiKeyId']
|
2112
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}"
|
1987
2113
|
method = "DELETE"
|
1988
|
-
operation_name = "
|
1989
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2114
|
+
operation_name = "delete_bds_api_key"
|
2115
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsApiKey/DeleteBdsApiKey"
|
1990
2116
|
|
1991
2117
|
# Don't accept unknown kwargs
|
1992
2118
|
expected_kwargs = [
|
@@ -1998,11 +2124,11 @@ class BdsClient(object):
|
|
1998
2124
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1999
2125
|
if extra_kwargs:
|
2000
2126
|
raise ValueError(
|
2001
|
-
f"
|
2127
|
+
f"delete_bds_api_key got unknown kwargs: {extra_kwargs!r}")
|
2002
2128
|
|
2003
2129
|
path_params = {
|
2004
2130
|
"bdsInstanceId": bds_instance_id,
|
2005
|
-
"
|
2131
|
+
"apiKeyId": api_key_id
|
2006
2132
|
}
|
2007
2133
|
|
2008
2134
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2049,17 +2175,14 @@ class BdsClient(object):
|
|
2049
2175
|
api_reference_link=api_reference_link,
|
2050
2176
|
required_arguments=required_arguments)
|
2051
2177
|
|
2052
|
-
def
|
2178
|
+
def delete_bds_instance(self, bds_instance_id, **kwargs):
|
2053
2179
|
"""
|
2054
|
-
|
2180
|
+
Deletes the cluster identified by the given ID.
|
2055
2181
|
|
2056
2182
|
|
2057
2183
|
:param str bds_instance_id: (required)
|
2058
2184
|
The OCID of the cluster.
|
2059
2185
|
|
2060
|
-
:param oci.bds.models.DisableCertificateDetails disable_certificate_details: (required)
|
2061
|
-
Details for disabling certificate.
|
2062
|
-
|
2063
2186
|
:param str opc_request_id: (optional)
|
2064
2187
|
The client request ID for tracing.
|
2065
2188
|
|
@@ -2070,13 +2193,6 @@ class BdsClient(object):
|
|
2070
2193
|
The resource will be updated or deleted only if the etag you
|
2071
2194
|
provide matches the resource's current etag value.
|
2072
2195
|
|
2073
|
-
:param str opc_retry_token: (optional)
|
2074
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2075
|
-
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2076
|
-
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2077
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
2078
|
-
might be rejected.
|
2079
|
-
|
2080
2196
|
:param obj retry_strategy: (optional)
|
2081
2197
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2082
2198
|
|
@@ -2093,27 +2209,26 @@ class BdsClient(object):
|
|
2093
2209
|
:rtype: :class:`~oci.response.Response`
|
2094
2210
|
|
2095
2211
|
:example:
|
2096
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2212
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/delete_bds_instance.py.html>`__ to see an example of how to use delete_bds_instance API.
|
2097
2213
|
"""
|
2098
2214
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2099
2215
|
required_arguments = ['bdsInstanceId']
|
2100
|
-
resource_path = "/bdsInstances/{bdsInstanceId}
|
2101
|
-
method = "
|
2102
|
-
operation_name = "
|
2103
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
2216
|
+
resource_path = "/bdsInstances/{bdsInstanceId}"
|
2217
|
+
method = "DELETE"
|
2218
|
+
operation_name = "delete_bds_instance"
|
2219
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/DeleteBdsInstance"
|
2104
2220
|
|
2105
2221
|
# Don't accept unknown kwargs
|
2106
2222
|
expected_kwargs = [
|
2107
2223
|
"allow_control_chars",
|
2108
2224
|
"retry_strategy",
|
2109
2225
|
"opc_request_id",
|
2110
|
-
"if_match"
|
2111
|
-
"opc_retry_token"
|
2226
|
+
"if_match"
|
2112
2227
|
]
|
2113
2228
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2114
2229
|
if extra_kwargs:
|
2115
2230
|
raise ValueError(
|
2116
|
-
f"
|
2231
|
+
f"delete_bds_instance got unknown kwargs: {extra_kwargs!r}")
|
2117
2232
|
|
2118
2233
|
path_params = {
|
2119
2234
|
"bdsInstanceId": bds_instance_id
|
@@ -2129,8 +2244,7 @@ class BdsClient(object):
|
|
2129
2244
|
"accept": "application/json",
|
2130
2245
|
"content-type": "application/json",
|
2131
2246
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2132
|
-
"if-match": kwargs.get("if_match", missing)
|
2133
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2247
|
+
"if-match": kwargs.get("if_match", missing)
|
2134
2248
|
}
|
2135
2249
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2136
2250
|
|
@@ -2141,7 +2255,6 @@ class BdsClient(object):
|
|
2141
2255
|
|
2142
2256
|
if retry_strategy:
|
2143
2257
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2144
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2145
2258
|
self.base_client.add_opc_client_retries_header(header_params)
|
2146
2259
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2147
2260
|
return retry_strategy.make_retrying_call(
|
@@ -2150,7 +2263,6 @@ class BdsClient(object):
|
|
2150
2263
|
method=method,
|
2151
2264
|
path_params=path_params,
|
2152
2265
|
header_params=header_params,
|
2153
|
-
body=disable_certificate_details,
|
2154
2266
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2155
2267
|
operation_name=operation_name,
|
2156
2268
|
api_reference_link=api_reference_link,
|
@@ -2161,22 +2273,21 @@ class BdsClient(object):
|
|
2161
2273
|
method=method,
|
2162
2274
|
path_params=path_params,
|
2163
2275
|
header_params=header_params,
|
2164
|
-
body=disable_certificate_details,
|
2165
2276
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2166
2277
|
operation_name=operation_name,
|
2167
2278
|
api_reference_link=api_reference_link,
|
2168
2279
|
required_arguments=required_arguments)
|
2169
2280
|
|
2170
|
-
def
|
2281
|
+
def delete_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, **kwargs):
|
2171
2282
|
"""
|
2172
|
-
|
2283
|
+
Delete the BDS metastore configuration represented by the provided ID.
|
2173
2284
|
|
2174
2285
|
|
2175
2286
|
:param str bds_instance_id: (required)
|
2176
2287
|
The OCID of the cluster.
|
2177
2288
|
|
2178
|
-
:param
|
2179
|
-
|
2289
|
+
:param str metastore_config_id: (required)
|
2290
|
+
The metastore configuration ID
|
2180
2291
|
|
2181
2292
|
:param str opc_request_id: (optional)
|
2182
2293
|
The client request ID for tracing.
|
@@ -2188,13 +2299,6 @@ class BdsClient(object):
|
|
2188
2299
|
The resource will be updated or deleted only if the etag you
|
2189
2300
|
provide matches the resource's current etag value.
|
2190
2301
|
|
2191
|
-
:param str opc_retry_token: (optional)
|
2192
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2193
|
-
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2194
|
-
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2195
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
2196
|
-
might be rejected.
|
2197
|
-
|
2198
2302
|
:param obj retry_strategy: (optional)
|
2199
2303
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2200
2304
|
|
@@ -2211,30 +2315,30 @@ class BdsClient(object):
|
|
2211
2315
|
:rtype: :class:`~oci.response.Response`
|
2212
2316
|
|
2213
2317
|
:example:
|
2214
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2318
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/delete_bds_metastore_configuration.py.html>`__ to see an example of how to use delete_bds_metastore_configuration API.
|
2215
2319
|
"""
|
2216
2320
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2217
|
-
required_arguments = ['bdsInstanceId']
|
2218
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2219
|
-
method = "
|
2220
|
-
operation_name = "
|
2221
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2321
|
+
required_arguments = ['bdsInstanceId', 'metastoreConfigId']
|
2322
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}"
|
2323
|
+
method = "DELETE"
|
2324
|
+
operation_name = "delete_bds_metastore_configuration"
|
2325
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsMetastoreConfiguration/DeleteBdsMetastoreConfiguration"
|
2222
2326
|
|
2223
2327
|
# Don't accept unknown kwargs
|
2224
2328
|
expected_kwargs = [
|
2225
2329
|
"allow_control_chars",
|
2226
2330
|
"retry_strategy",
|
2227
2331
|
"opc_request_id",
|
2228
|
-
"if_match"
|
2229
|
-
"opc_retry_token"
|
2332
|
+
"if_match"
|
2230
2333
|
]
|
2231
2334
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2232
2335
|
if extra_kwargs:
|
2233
2336
|
raise ValueError(
|
2234
|
-
f"
|
2337
|
+
f"delete_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}")
|
2235
2338
|
|
2236
2339
|
path_params = {
|
2237
|
-
"bdsInstanceId": bds_instance_id
|
2340
|
+
"bdsInstanceId": bds_instance_id,
|
2341
|
+
"metastoreConfigId": metastore_config_id
|
2238
2342
|
}
|
2239
2343
|
|
2240
2344
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2247,8 +2351,7 @@ class BdsClient(object):
|
|
2247
2351
|
"accept": "application/json",
|
2248
2352
|
"content-type": "application/json",
|
2249
2353
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2250
|
-
"if-match": kwargs.get("if_match", missing)
|
2251
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2354
|
+
"if-match": kwargs.get("if_match", missing)
|
2252
2355
|
}
|
2253
2356
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2254
2357
|
|
@@ -2259,7 +2362,6 @@ class BdsClient(object):
|
|
2259
2362
|
|
2260
2363
|
if retry_strategy:
|
2261
2364
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2262
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2263
2365
|
self.base_client.add_opc_client_retries_header(header_params)
|
2264
2366
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2265
2367
|
return retry_strategy.make_retrying_call(
|
@@ -2268,7 +2370,6 @@ class BdsClient(object):
|
|
2268
2370
|
method=method,
|
2269
2371
|
path_params=path_params,
|
2270
2372
|
header_params=header_params,
|
2271
|
-
body=enable_certificate_details,
|
2272
2373
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2273
2374
|
operation_name=operation_name,
|
2274
2375
|
api_reference_link=api_reference_link,
|
@@ -2279,22 +2380,21 @@ class BdsClient(object):
|
|
2279
2380
|
method=method,
|
2280
2381
|
path_params=path_params,
|
2281
2382
|
header_params=header_params,
|
2282
|
-
body=enable_certificate_details,
|
2283
2383
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2284
2384
|
operation_name=operation_name,
|
2285
2385
|
api_reference_link=api_reference_link,
|
2286
2386
|
required_arguments=required_arguments)
|
2287
2387
|
|
2288
|
-
def
|
2388
|
+
def delete_node_backup(self, bds_instance_id, node_backup_id, **kwargs):
|
2289
2389
|
"""
|
2290
|
-
|
2390
|
+
Delete the NodeBackup represented by the provided ID.
|
2291
2391
|
|
2292
2392
|
|
2293
2393
|
:param str bds_instance_id: (required)
|
2294
2394
|
The OCID of the cluster.
|
2295
2395
|
|
2296
|
-
:param
|
2297
|
-
|
2396
|
+
:param str node_backup_id: (required)
|
2397
|
+
Unique assigned identifier of the nodeBackupId.
|
2298
2398
|
|
2299
2399
|
:param str opc_request_id: (optional)
|
2300
2400
|
The client request ID for tracing.
|
@@ -2306,13 +2406,6 @@ class BdsClient(object):
|
|
2306
2406
|
The resource will be updated or deleted only if the etag you
|
2307
2407
|
provide matches the resource's current etag value.
|
2308
2408
|
|
2309
|
-
:param str opc_retry_token: (optional)
|
2310
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2311
|
-
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2312
|
-
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2313
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
2314
|
-
might be rejected.
|
2315
|
-
|
2316
2409
|
:param obj retry_strategy: (optional)
|
2317
2410
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2318
2411
|
|
@@ -2329,30 +2422,30 @@ class BdsClient(object):
|
|
2329
2422
|
:rtype: :class:`~oci.response.Response`
|
2330
2423
|
|
2331
2424
|
:example:
|
2332
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2425
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/delete_node_backup.py.html>`__ to see an example of how to use delete_node_backup API.
|
2333
2426
|
"""
|
2334
2427
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2335
|
-
required_arguments = ['bdsInstanceId']
|
2336
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2337
|
-
method = "
|
2338
|
-
operation_name = "
|
2339
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2428
|
+
required_arguments = ['bdsInstanceId', 'nodeBackupId']
|
2429
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackups/{nodeBackupId}"
|
2430
|
+
method = "DELETE"
|
2431
|
+
operation_name = "delete_node_backup"
|
2432
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackup/DeleteNodeBackup"
|
2340
2433
|
|
2341
2434
|
# Don't accept unknown kwargs
|
2342
2435
|
expected_kwargs = [
|
2343
2436
|
"allow_control_chars",
|
2344
2437
|
"retry_strategy",
|
2345
2438
|
"opc_request_id",
|
2346
|
-
"if_match"
|
2347
|
-
"opc_retry_token"
|
2439
|
+
"if_match"
|
2348
2440
|
]
|
2349
2441
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2350
2442
|
if extra_kwargs:
|
2351
2443
|
raise ValueError(
|
2352
|
-
f"
|
2444
|
+
f"delete_node_backup got unknown kwargs: {extra_kwargs!r}")
|
2353
2445
|
|
2354
2446
|
path_params = {
|
2355
|
-
"bdsInstanceId": bds_instance_id
|
2447
|
+
"bdsInstanceId": bds_instance_id,
|
2448
|
+
"nodeBackupId": node_backup_id
|
2356
2449
|
}
|
2357
2450
|
|
2358
2451
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2365,8 +2458,7 @@ class BdsClient(object):
|
|
2365
2458
|
"accept": "application/json",
|
2366
2459
|
"content-type": "application/json",
|
2367
2460
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2368
|
-
"if-match": kwargs.get("if_match", missing)
|
2369
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2461
|
+
"if-match": kwargs.get("if_match", missing)
|
2370
2462
|
}
|
2371
2463
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2372
2464
|
|
@@ -2377,7 +2469,6 @@ class BdsClient(object):
|
|
2377
2469
|
|
2378
2470
|
if retry_strategy:
|
2379
2471
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2380
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2381
2472
|
self.base_client.add_opc_client_retries_header(header_params)
|
2382
2473
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2383
2474
|
return retry_strategy.make_retrying_call(
|
@@ -2386,7 +2477,6 @@ class BdsClient(object):
|
|
2386
2477
|
method=method,
|
2387
2478
|
path_params=path_params,
|
2388
2479
|
header_params=header_params,
|
2389
|
-
body=execute_bootstrap_script_details,
|
2390
2480
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2391
2481
|
operation_name=operation_name,
|
2392
2482
|
api_reference_link=api_reference_link,
|
@@ -2397,26 +2487,32 @@ class BdsClient(object):
|
|
2397
2487
|
method=method,
|
2398
2488
|
path_params=path_params,
|
2399
2489
|
header_params=header_params,
|
2400
|
-
body=execute_bootstrap_script_details,
|
2401
2490
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2402
2491
|
operation_name=operation_name,
|
2403
2492
|
api_reference_link=api_reference_link,
|
2404
2493
|
required_arguments=required_arguments)
|
2405
2494
|
|
2406
|
-
def
|
2495
|
+
def delete_node_backup_configuration(self, bds_instance_id, node_backup_configuration_id, **kwargs):
|
2407
2496
|
"""
|
2408
|
-
|
2497
|
+
Delete the NodeBackupConfiguration represented by the provided ID.
|
2409
2498
|
|
2410
2499
|
|
2411
2500
|
:param str bds_instance_id: (required)
|
2412
2501
|
The OCID of the cluster.
|
2413
2502
|
|
2414
|
-
:param str
|
2415
|
-
Unique Oracle-assigned identifier of the
|
2503
|
+
:param str node_backup_configuration_id: (required)
|
2504
|
+
Unique Oracle-assigned identifier of the NodeBackupConfiguration.
|
2416
2505
|
|
2417
2506
|
:param str opc_request_id: (optional)
|
2418
2507
|
The client request ID for tracing.
|
2419
2508
|
|
2509
|
+
:param str if_match: (optional)
|
2510
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2511
|
+
for a resource, set the `if-match` parameter to the value of the
|
2512
|
+
etag from a previous GET or POST response for that resource.
|
2513
|
+
The resource will be updated or deleted only if the etag you
|
2514
|
+
provide matches the resource's current etag value.
|
2515
|
+
|
2420
2516
|
:param obj retry_strategy: (optional)
|
2421
2517
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2422
2518
|
|
@@ -2429,33 +2525,34 @@ class BdsClient(object):
|
|
2429
2525
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2430
2526
|
By default, the response will not allow control characters in strings
|
2431
2527
|
|
2432
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
2528
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2433
2529
|
:rtype: :class:`~oci.response.Response`
|
2434
2530
|
|
2435
2531
|
:example:
|
2436
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2532
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/delete_node_backup_configuration.py.html>`__ to see an example of how to use delete_node_backup_configuration API.
|
2437
2533
|
"""
|
2438
2534
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2439
|
-
required_arguments = ['bdsInstanceId', '
|
2440
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2441
|
-
method = "
|
2442
|
-
operation_name = "
|
2443
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2535
|
+
required_arguments = ['bdsInstanceId', 'nodeBackupConfigurationId']
|
2536
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackupConfigurations/{nodeBackupConfigurationId}"
|
2537
|
+
method = "DELETE"
|
2538
|
+
operation_name = "delete_node_backup_configuration"
|
2539
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeBackupConfiguration/DeleteNodeBackupConfiguration"
|
2444
2540
|
|
2445
2541
|
# Don't accept unknown kwargs
|
2446
2542
|
expected_kwargs = [
|
2447
2543
|
"allow_control_chars",
|
2448
2544
|
"retry_strategy",
|
2449
|
-
"opc_request_id"
|
2545
|
+
"opc_request_id",
|
2546
|
+
"if_match"
|
2450
2547
|
]
|
2451
2548
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2452
2549
|
if extra_kwargs:
|
2453
2550
|
raise ValueError(
|
2454
|
-
f"
|
2551
|
+
f"delete_node_backup_configuration got unknown kwargs: {extra_kwargs!r}")
|
2455
2552
|
|
2456
2553
|
path_params = {
|
2457
2554
|
"bdsInstanceId": bds_instance_id,
|
2458
|
-
"
|
2555
|
+
"nodeBackupConfigurationId": node_backup_configuration_id
|
2459
2556
|
}
|
2460
2557
|
|
2461
2558
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2467,7 +2564,8 @@ class BdsClient(object):
|
|
2467
2564
|
header_params = {
|
2468
2565
|
"accept": "application/json",
|
2469
2566
|
"content-type": "application/json",
|
2470
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2567
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2568
|
+
"if-match": kwargs.get("if_match", missing)
|
2471
2569
|
}
|
2472
2570
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2473
2571
|
|
@@ -2486,7 +2584,6 @@ class BdsClient(object):
|
|
2486
2584
|
method=method,
|
2487
2585
|
path_params=path_params,
|
2488
2586
|
header_params=header_params,
|
2489
|
-
response_type="AutoScalingConfiguration",
|
2490
2587
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2491
2588
|
operation_name=operation_name,
|
2492
2589
|
api_reference_link=api_reference_link,
|
@@ -2497,26 +2594,39 @@ class BdsClient(object):
|
|
2497
2594
|
method=method,
|
2498
2595
|
path_params=path_params,
|
2499
2596
|
header_params=header_params,
|
2500
|
-
response_type="AutoScalingConfiguration",
|
2501
2597
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2502
2598
|
operation_name=operation_name,
|
2503
2599
|
api_reference_link=api_reference_link,
|
2504
2600
|
required_arguments=required_arguments)
|
2505
2601
|
|
2506
|
-
def
|
2602
|
+
def disable_certificate(self, bds_instance_id, disable_certificate_details, **kwargs):
|
2507
2603
|
"""
|
2508
|
-
|
2604
|
+
Disabling TLS/SSL for various ODH services running on the BDS cluster.
|
2509
2605
|
|
2510
2606
|
|
2511
2607
|
:param str bds_instance_id: (required)
|
2512
2608
|
The OCID of the cluster.
|
2513
2609
|
|
2514
|
-
:param
|
2515
|
-
|
2610
|
+
:param oci.bds.models.DisableCertificateDetails disable_certificate_details: (required)
|
2611
|
+
Details for disabling certificate.
|
2516
2612
|
|
2517
2613
|
:param str opc_request_id: (optional)
|
2518
2614
|
The client request ID for tracing.
|
2519
2615
|
|
2616
|
+
:param str if_match: (optional)
|
2617
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2618
|
+
for a resource, set the `if-match` parameter to the value of the
|
2619
|
+
etag from a previous GET or POST response for that resource.
|
2620
|
+
The resource will be updated or deleted only if the etag you
|
2621
|
+
provide matches the resource's current etag value.
|
2622
|
+
|
2623
|
+
:param str opc_retry_token: (optional)
|
2624
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2625
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2626
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2627
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2628
|
+
might be rejected.
|
2629
|
+
|
2520
2630
|
:param obj retry_strategy: (optional)
|
2521
2631
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2522
2632
|
|
@@ -2529,33 +2639,34 @@ class BdsClient(object):
|
|
2529
2639
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2530
2640
|
By default, the response will not allow control characters in strings
|
2531
2641
|
|
2532
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
2642
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2533
2643
|
:rtype: :class:`~oci.response.Response`
|
2534
2644
|
|
2535
2645
|
:example:
|
2536
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2646
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/disable_certificate.py.html>`__ to see an example of how to use disable_certificate API.
|
2537
2647
|
"""
|
2538
2648
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2539
|
-
required_arguments = ['bdsInstanceId'
|
2540
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2541
|
-
method = "
|
2542
|
-
operation_name = "
|
2543
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2649
|
+
required_arguments = ['bdsInstanceId']
|
2650
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/disableOdhServiceCertificate"
|
2651
|
+
method = "POST"
|
2652
|
+
operation_name = "disable_certificate"
|
2653
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/DisableCertificate"
|
2544
2654
|
|
2545
2655
|
# Don't accept unknown kwargs
|
2546
2656
|
expected_kwargs = [
|
2547
2657
|
"allow_control_chars",
|
2548
2658
|
"retry_strategy",
|
2549
|
-
"opc_request_id"
|
2659
|
+
"opc_request_id",
|
2660
|
+
"if_match",
|
2661
|
+
"opc_retry_token"
|
2550
2662
|
]
|
2551
2663
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2552
2664
|
if extra_kwargs:
|
2553
2665
|
raise ValueError(
|
2554
|
-
f"
|
2666
|
+
f"disable_certificate got unknown kwargs: {extra_kwargs!r}")
|
2555
2667
|
|
2556
2668
|
path_params = {
|
2557
|
-
"bdsInstanceId": bds_instance_id
|
2558
|
-
"apiKeyId": api_key_id
|
2669
|
+
"bdsInstanceId": bds_instance_id
|
2559
2670
|
}
|
2560
2671
|
|
2561
2672
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2567,7 +2678,9 @@ class BdsClient(object):
|
|
2567
2678
|
header_params = {
|
2568
2679
|
"accept": "application/json",
|
2569
2680
|
"content-type": "application/json",
|
2570
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2681
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2682
|
+
"if-match": kwargs.get("if_match", missing),
|
2683
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2571
2684
|
}
|
2572
2685
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2573
2686
|
|
@@ -2578,6 +2691,7 @@ class BdsClient(object):
|
|
2578
2691
|
|
2579
2692
|
if retry_strategy:
|
2580
2693
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2694
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2581
2695
|
self.base_client.add_opc_client_retries_header(header_params)
|
2582
2696
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2583
2697
|
return retry_strategy.make_retrying_call(
|
@@ -2586,7 +2700,7 @@ class BdsClient(object):
|
|
2586
2700
|
method=method,
|
2587
2701
|
path_params=path_params,
|
2588
2702
|
header_params=header_params,
|
2589
|
-
|
2703
|
+
body=disable_certificate_details,
|
2590
2704
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2591
2705
|
operation_name=operation_name,
|
2592
2706
|
api_reference_link=api_reference_link,
|
@@ -2597,23 +2711,40 @@ class BdsClient(object):
|
|
2597
2711
|
method=method,
|
2598
2712
|
path_params=path_params,
|
2599
2713
|
header_params=header_params,
|
2600
|
-
|
2714
|
+
body=disable_certificate_details,
|
2601
2715
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2602
2716
|
operation_name=operation_name,
|
2603
2717
|
api_reference_link=api_reference_link,
|
2604
2718
|
required_arguments=required_arguments)
|
2605
2719
|
|
2606
|
-
def
|
2720
|
+
def enable_certificate(self, bds_instance_id, enable_certificate_details, **kwargs):
|
2607
2721
|
"""
|
2608
|
-
|
2722
|
+
Configuring TLS/SSL for various ODH services running on the BDS cluster.
|
2609
2723
|
|
2610
2724
|
|
2611
2725
|
:param str bds_instance_id: (required)
|
2612
2726
|
The OCID of the cluster.
|
2613
2727
|
|
2728
|
+
:param oci.bds.models.EnableCertificateDetails enable_certificate_details: (required)
|
2729
|
+
Details for configuring certificate.
|
2730
|
+
|
2614
2731
|
:param str opc_request_id: (optional)
|
2615
2732
|
The client request ID for tracing.
|
2616
2733
|
|
2734
|
+
:param str if_match: (optional)
|
2735
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2736
|
+
for a resource, set the `if-match` parameter to the value of the
|
2737
|
+
etag from a previous GET or POST response for that resource.
|
2738
|
+
The resource will be updated or deleted only if the etag you
|
2739
|
+
provide matches the resource's current etag value.
|
2740
|
+
|
2741
|
+
:param str opc_retry_token: (optional)
|
2742
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2743
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2744
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2745
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2746
|
+
might be rejected.
|
2747
|
+
|
2617
2748
|
:param obj retry_strategy: (optional)
|
2618
2749
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2619
2750
|
|
@@ -2626,29 +2757,31 @@ class BdsClient(object):
|
|
2626
2757
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2627
2758
|
By default, the response will not allow control characters in strings
|
2628
2759
|
|
2629
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
2760
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2630
2761
|
:rtype: :class:`~oci.response.Response`
|
2631
2762
|
|
2632
2763
|
:example:
|
2633
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2764
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/enable_certificate.py.html>`__ to see an example of how to use enable_certificate API.
|
2634
2765
|
"""
|
2635
2766
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2636
2767
|
required_arguments = ['bdsInstanceId']
|
2637
|
-
resource_path = "/bdsInstances/{bdsInstanceId}"
|
2638
|
-
method = "
|
2639
|
-
operation_name = "
|
2640
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
2768
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/enableOdhServiceCertificate"
|
2769
|
+
method = "POST"
|
2770
|
+
operation_name = "enable_certificate"
|
2771
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/EnableCertificate"
|
2641
2772
|
|
2642
2773
|
# Don't accept unknown kwargs
|
2643
2774
|
expected_kwargs = [
|
2644
2775
|
"allow_control_chars",
|
2645
2776
|
"retry_strategy",
|
2646
|
-
"opc_request_id"
|
2777
|
+
"opc_request_id",
|
2778
|
+
"if_match",
|
2779
|
+
"opc_retry_token"
|
2647
2780
|
]
|
2648
2781
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2649
2782
|
if extra_kwargs:
|
2650
2783
|
raise ValueError(
|
2651
|
-
f"
|
2784
|
+
f"enable_certificate got unknown kwargs: {extra_kwargs!r}")
|
2652
2785
|
|
2653
2786
|
path_params = {
|
2654
2787
|
"bdsInstanceId": bds_instance_id
|
@@ -2663,7 +2796,9 @@ class BdsClient(object):
|
|
2663
2796
|
header_params = {
|
2664
2797
|
"accept": "application/json",
|
2665
2798
|
"content-type": "application/json",
|
2666
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2799
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2800
|
+
"if-match": kwargs.get("if_match", missing),
|
2801
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2667
2802
|
}
|
2668
2803
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2669
2804
|
|
@@ -2674,6 +2809,7 @@ class BdsClient(object):
|
|
2674
2809
|
|
2675
2810
|
if retry_strategy:
|
2676
2811
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2812
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2677
2813
|
self.base_client.add_opc_client_retries_header(header_params)
|
2678
2814
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2679
2815
|
return retry_strategy.make_retrying_call(
|
@@ -2682,7 +2818,7 @@ class BdsClient(object):
|
|
2682
2818
|
method=method,
|
2683
2819
|
path_params=path_params,
|
2684
2820
|
header_params=header_params,
|
2685
|
-
|
2821
|
+
body=enable_certificate_details,
|
2686
2822
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2687
2823
|
operation_name=operation_name,
|
2688
2824
|
api_reference_link=api_reference_link,
|
@@ -2693,26 +2829,40 @@ class BdsClient(object):
|
|
2693
2829
|
method=method,
|
2694
2830
|
path_params=path_params,
|
2695
2831
|
header_params=header_params,
|
2696
|
-
|
2832
|
+
body=enable_certificate_details,
|
2697
2833
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2698
2834
|
operation_name=operation_name,
|
2699
2835
|
api_reference_link=api_reference_link,
|
2700
2836
|
required_arguments=required_arguments)
|
2701
2837
|
|
2702
|
-
def
|
2838
|
+
def execute_bootstrap_script(self, bds_instance_id, execute_bootstrap_script_details, **kwargs):
|
2703
2839
|
"""
|
2704
|
-
|
2840
|
+
Execute bootstrap script.
|
2705
2841
|
|
2706
2842
|
|
2707
2843
|
:param str bds_instance_id: (required)
|
2708
2844
|
The OCID of the cluster.
|
2709
2845
|
|
2710
|
-
:param
|
2711
|
-
|
2846
|
+
:param oci.bds.models.ExecuteBootstrapScriptDetails execute_bootstrap_script_details: (required)
|
2847
|
+
Details of the bootstrap script to execute on this cluster.
|
2712
2848
|
|
2713
2849
|
:param str opc_request_id: (optional)
|
2714
2850
|
The client request ID for tracing.
|
2715
2851
|
|
2852
|
+
:param str if_match: (optional)
|
2853
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
2854
|
+
for a resource, set the `if-match` parameter to the value of the
|
2855
|
+
etag from a previous GET or POST response for that resource.
|
2856
|
+
The resource will be updated or deleted only if the etag you
|
2857
|
+
provide matches the resource's current etag value.
|
2858
|
+
|
2859
|
+
:param str opc_retry_token: (optional)
|
2860
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2861
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2862
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2863
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
2864
|
+
might be rejected.
|
2865
|
+
|
2716
2866
|
:param obj retry_strategy: (optional)
|
2717
2867
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2718
2868
|
|
@@ -2725,33 +2875,34 @@ class BdsClient(object):
|
|
2725
2875
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2726
2876
|
By default, the response will not allow control characters in strings
|
2727
2877
|
|
2728
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
2878
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2729
2879
|
:rtype: :class:`~oci.response.Response`
|
2730
2880
|
|
2731
2881
|
:example:
|
2732
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2882
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/execute_bootstrap_script.py.html>`__ to see an example of how to use execute_bootstrap_script API.
|
2733
2883
|
"""
|
2734
2884
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2735
|
-
required_arguments = ['bdsInstanceId'
|
2736
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2737
|
-
method = "
|
2738
|
-
operation_name = "
|
2739
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
2885
|
+
required_arguments = ['bdsInstanceId']
|
2886
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/executeBootstrapScript"
|
2887
|
+
method = "POST"
|
2888
|
+
operation_name = "execute_bootstrap_script"
|
2889
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ExecuteBootstrapScript"
|
2740
2890
|
|
2741
2891
|
# Don't accept unknown kwargs
|
2742
2892
|
expected_kwargs = [
|
2743
2893
|
"allow_control_chars",
|
2744
2894
|
"retry_strategy",
|
2745
|
-
"opc_request_id"
|
2895
|
+
"opc_request_id",
|
2896
|
+
"if_match",
|
2897
|
+
"opc_retry_token"
|
2746
2898
|
]
|
2747
2899
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2748
2900
|
if extra_kwargs:
|
2749
2901
|
raise ValueError(
|
2750
|
-
f"
|
2902
|
+
f"execute_bootstrap_script got unknown kwargs: {extra_kwargs!r}")
|
2751
2903
|
|
2752
2904
|
path_params = {
|
2753
|
-
"bdsInstanceId": bds_instance_id
|
2754
|
-
"metastoreConfigId": metastore_config_id
|
2905
|
+
"bdsInstanceId": bds_instance_id
|
2755
2906
|
}
|
2756
2907
|
|
2757
2908
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2763,7 +2914,9 @@ class BdsClient(object):
|
|
2763
2914
|
header_params = {
|
2764
2915
|
"accept": "application/json",
|
2765
2916
|
"content-type": "application/json",
|
2766
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2917
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
2918
|
+
"if-match": kwargs.get("if_match", missing),
|
2919
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
2767
2920
|
}
|
2768
2921
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2769
2922
|
|
@@ -2774,6 +2927,7 @@ class BdsClient(object):
|
|
2774
2927
|
|
2775
2928
|
if retry_strategy:
|
2776
2929
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2930
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2777
2931
|
self.base_client.add_opc_client_retries_header(header_params)
|
2778
2932
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2779
2933
|
return retry_strategy.make_retrying_call(
|
@@ -2782,7 +2936,7 @@ class BdsClient(object):
|
|
2782
2936
|
method=method,
|
2783
2937
|
path_params=path_params,
|
2784
2938
|
header_params=header_params,
|
2785
|
-
|
2939
|
+
body=execute_bootstrap_script_details,
|
2786
2940
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2787
2941
|
operation_name=operation_name,
|
2788
2942
|
api_reference_link=api_reference_link,
|
@@ -2793,40 +2947,26 @@ class BdsClient(object):
|
|
2793
2947
|
method=method,
|
2794
2948
|
path_params=path_params,
|
2795
2949
|
header_params=header_params,
|
2796
|
-
|
2950
|
+
body=execute_bootstrap_script_details,
|
2797
2951
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2798
2952
|
operation_name=operation_name,
|
2799
2953
|
api_reference_link=api_reference_link,
|
2800
2954
|
required_arguments=required_arguments)
|
2801
2955
|
|
2802
|
-
def
|
2956
|
+
def get_auto_scaling_configuration(self, bds_instance_id, auto_scaling_configuration_id, **kwargs):
|
2803
2957
|
"""
|
2804
|
-
|
2958
|
+
Returns details of the autoscale configuration identified by the given ID.
|
2805
2959
|
|
2806
2960
|
|
2807
2961
|
:param str bds_instance_id: (required)
|
2808
2962
|
The OCID of the cluster.
|
2809
2963
|
|
2810
|
-
:param str
|
2811
|
-
|
2964
|
+
:param str auto_scaling_configuration_id: (required)
|
2965
|
+
Unique Oracle-assigned identifier of the autoscale configuration.
|
2812
2966
|
|
2813
2967
|
:param str opc_request_id: (optional)
|
2814
2968
|
The client request ID for tracing.
|
2815
2969
|
|
2816
|
-
:param str if_match: (optional)
|
2817
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
2818
|
-
for a resource, set the `if-match` parameter to the value of the
|
2819
|
-
etag from a previous GET or POST response for that resource.
|
2820
|
-
The resource will be updated or deleted only if the etag you
|
2821
|
-
provide matches the resource's current etag value.
|
2822
|
-
|
2823
|
-
:param str opc_retry_token: (optional)
|
2824
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
2825
|
-
server error, without risk of executing that same action again. Retry tokens expire after 24
|
2826
|
-
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
2827
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
2828
|
-
might be rejected.
|
2829
|
-
|
2830
2970
|
:param obj retry_strategy: (optional)
|
2831
2971
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2832
2972
|
|
@@ -2839,34 +2979,33 @@ class BdsClient(object):
|
|
2839
2979
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2840
2980
|
By default, the response will not allow control characters in strings
|
2841
2981
|
|
2842
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.
|
2982
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.AutoScalingConfiguration`
|
2843
2983
|
:rtype: :class:`~oci.response.Response`
|
2844
2984
|
|
2845
2985
|
:example:
|
2846
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
2986
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_auto_scaling_configuration.py.html>`__ to see an example of how to use get_auto_scaling_configuration API.
|
2847
2987
|
"""
|
2848
2988
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2849
|
-
required_arguments = ['bdsInstanceId', '
|
2850
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
2851
|
-
method = "
|
2852
|
-
operation_name = "
|
2853
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
2989
|
+
required_arguments = ['bdsInstanceId', 'autoScalingConfigurationId']
|
2990
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/autoScalingConfiguration/{autoScalingConfigurationId}"
|
2991
|
+
method = "GET"
|
2992
|
+
operation_name = "get_auto_scaling_configuration"
|
2993
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetAutoScalingConfiguration"
|
2854
2994
|
|
2855
2995
|
# Don't accept unknown kwargs
|
2856
2996
|
expected_kwargs = [
|
2857
2997
|
"allow_control_chars",
|
2858
2998
|
"retry_strategy",
|
2859
|
-
"opc_request_id"
|
2860
|
-
"if_match",
|
2861
|
-
"opc_retry_token"
|
2999
|
+
"opc_request_id"
|
2862
3000
|
]
|
2863
3001
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2864
3002
|
if extra_kwargs:
|
2865
3003
|
raise ValueError(
|
2866
|
-
f"
|
3004
|
+
f"get_auto_scaling_configuration got unknown kwargs: {extra_kwargs!r}")
|
2867
3005
|
|
2868
3006
|
path_params = {
|
2869
|
-
"bdsInstanceId": bds_instance_id
|
3007
|
+
"bdsInstanceId": bds_instance_id,
|
3008
|
+
"autoScalingConfigurationId": auto_scaling_configuration_id
|
2870
3009
|
}
|
2871
3010
|
|
2872
3011
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2875,17 +3014,10 @@ class BdsClient(object):
|
|
2875
3014
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2876
3015
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2877
3016
|
|
2878
|
-
query_params = {
|
2879
|
-
"osPatchVersion": os_patch_version
|
2880
|
-
}
|
2881
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
2882
|
-
|
2883
3017
|
header_params = {
|
2884
3018
|
"accept": "application/json",
|
2885
3019
|
"content-type": "application/json",
|
2886
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2887
|
-
"if-match": kwargs.get("if_match", missing),
|
2888
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3020
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2889
3021
|
}
|
2890
3022
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2891
3023
|
|
@@ -2896,7 +3028,6 @@ class BdsClient(object):
|
|
2896
3028
|
|
2897
3029
|
if retry_strategy:
|
2898
3030
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2899
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2900
3031
|
self.base_client.add_opc_client_retries_header(header_params)
|
2901
3032
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2902
3033
|
return retry_strategy.make_retrying_call(
|
@@ -2904,9 +3035,8 @@ class BdsClient(object):
|
|
2904
3035
|
resource_path=resource_path,
|
2905
3036
|
method=method,
|
2906
3037
|
path_params=path_params,
|
2907
|
-
query_params=query_params,
|
2908
3038
|
header_params=header_params,
|
2909
|
-
response_type="
|
3039
|
+
response_type="AutoScalingConfiguration",
|
2910
3040
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2911
3041
|
operation_name=operation_name,
|
2912
3042
|
api_reference_link=api_reference_link,
|
@@ -2916,21 +3046,23 @@ class BdsClient(object):
|
|
2916
3046
|
resource_path=resource_path,
|
2917
3047
|
method=method,
|
2918
3048
|
path_params=path_params,
|
2919
|
-
query_params=query_params,
|
2920
3049
|
header_params=header_params,
|
2921
|
-
response_type="
|
3050
|
+
response_type="AutoScalingConfiguration",
|
2922
3051
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2923
3052
|
operation_name=operation_name,
|
2924
3053
|
api_reference_link=api_reference_link,
|
2925
3054
|
required_arguments=required_arguments)
|
2926
3055
|
|
2927
|
-
def
|
3056
|
+
def get_bds_api_key(self, bds_instance_id, api_key_id, **kwargs):
|
2928
3057
|
"""
|
2929
|
-
Returns the
|
3058
|
+
Returns the user's API key information for the given ID.
|
2930
3059
|
|
2931
3060
|
|
2932
|
-
:param str
|
2933
|
-
The
|
3061
|
+
:param str bds_instance_id: (required)
|
3062
|
+
The OCID of the cluster.
|
3063
|
+
|
3064
|
+
:param str api_key_id: (required)
|
3065
|
+
The API key identifier.
|
2934
3066
|
|
2935
3067
|
:param str opc_request_id: (optional)
|
2936
3068
|
The client request ID for tracing.
|
@@ -2947,18 +3079,18 @@ class BdsClient(object):
|
|
2947
3079
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2948
3080
|
By default, the response will not allow control characters in strings
|
2949
3081
|
|
2950
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.
|
3082
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.BdsApiKey`
|
2951
3083
|
:rtype: :class:`~oci.response.Response`
|
2952
3084
|
|
2953
3085
|
:example:
|
2954
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
3086
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_bds_api_key.py.html>`__ to see an example of how to use get_bds_api_key API.
|
2955
3087
|
"""
|
2956
3088
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2957
|
-
required_arguments = ['
|
2958
|
-
resource_path = "/
|
3089
|
+
required_arguments = ['bdsInstanceId', 'apiKeyId']
|
3090
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/apiKeys/{apiKeyId}"
|
2959
3091
|
method = "GET"
|
2960
|
-
operation_name = "
|
2961
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
3092
|
+
operation_name = "get_bds_api_key"
|
3093
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsApiKey/GetBdsApiKey"
|
2962
3094
|
|
2963
3095
|
# Don't accept unknown kwargs
|
2964
3096
|
expected_kwargs = [
|
@@ -2969,10 +3101,11 @@ class BdsClient(object):
|
|
2969
3101
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2970
3102
|
if extra_kwargs:
|
2971
3103
|
raise ValueError(
|
2972
|
-
f"
|
3104
|
+
f"get_bds_api_key got unknown kwargs: {extra_kwargs!r}")
|
2973
3105
|
|
2974
3106
|
path_params = {
|
2975
|
-
"
|
3107
|
+
"bdsInstanceId": bds_instance_id,
|
3108
|
+
"apiKeyId": api_key_id
|
2976
3109
|
}
|
2977
3110
|
|
2978
3111
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -3003,7 +3136,7 @@ class BdsClient(object):
|
|
3003
3136
|
method=method,
|
3004
3137
|
path_params=path_params,
|
3005
3138
|
header_params=header_params,
|
3006
|
-
response_type="
|
3139
|
+
response_type="BdsApiKey",
|
3007
3140
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3008
3141
|
operation_name=operation_name,
|
3009
3142
|
api_reference_link=api_reference_link,
|
@@ -3014,40 +3147,23 @@ class BdsClient(object):
|
|
3014
3147
|
method=method,
|
3015
3148
|
path_params=path_params,
|
3016
3149
|
header_params=header_params,
|
3017
|
-
response_type="
|
3150
|
+
response_type="BdsApiKey",
|
3018
3151
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3019
3152
|
operation_name=operation_name,
|
3020
3153
|
api_reference_link=api_reference_link,
|
3021
3154
|
required_arguments=required_arguments)
|
3022
3155
|
|
3023
|
-
def
|
3156
|
+
def get_bds_instance(self, bds_instance_id, **kwargs):
|
3024
3157
|
"""
|
3025
|
-
|
3158
|
+
Returns information about the Big Data Service cluster identified by the given ID.
|
3026
3159
|
|
3027
3160
|
|
3028
3161
|
:param str bds_instance_id: (required)
|
3029
3162
|
The OCID of the cluster.
|
3030
3163
|
|
3031
|
-
:param oci.bds.models.InstallOsPatchDetails install_os_patch_details: (required)
|
3032
|
-
Details of the target os patch that will be installed
|
3033
|
-
|
3034
3164
|
:param str opc_request_id: (optional)
|
3035
3165
|
The client request ID for tracing.
|
3036
3166
|
|
3037
|
-
:param str if_match: (optional)
|
3038
|
-
For optimistic concurrency control. In the PUT or DELETE call
|
3039
|
-
for a resource, set the `if-match` parameter to the value of the
|
3040
|
-
etag from a previous GET or POST response for that resource.
|
3041
|
-
The resource will be updated or deleted only if the etag you
|
3042
|
-
provide matches the resource's current etag value.
|
3043
|
-
|
3044
|
-
:param str opc_retry_token: (optional)
|
3045
|
-
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3046
|
-
server error, without risk of executing that same action again. Retry tokens expire after 24
|
3047
|
-
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
3048
|
-
has been deleted and purged from the system, then a retry of the original creation request
|
3049
|
-
might be rejected.
|
3050
|
-
|
3051
3167
|
:param obj retry_strategy: (optional)
|
3052
3168
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3053
3169
|
|
@@ -3060,31 +3176,29 @@ class BdsClient(object):
|
|
3060
3176
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3061
3177
|
By default, the response will not allow control characters in strings
|
3062
3178
|
|
3063
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3179
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.BdsInstance`
|
3064
3180
|
:rtype: :class:`~oci.response.Response`
|
3065
3181
|
|
3066
3182
|
:example:
|
3067
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
3183
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_bds_instance.py.html>`__ to see an example of how to use get_bds_instance API.
|
3068
3184
|
"""
|
3069
3185
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3070
3186
|
required_arguments = ['bdsInstanceId']
|
3071
|
-
resource_path = "/bdsInstances/{bdsInstanceId}
|
3072
|
-
method = "
|
3073
|
-
operation_name = "
|
3074
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
3187
|
+
resource_path = "/bdsInstances/{bdsInstanceId}"
|
3188
|
+
method = "GET"
|
3189
|
+
operation_name = "get_bds_instance"
|
3190
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetBdsInstance"
|
3075
3191
|
|
3076
3192
|
# Don't accept unknown kwargs
|
3077
3193
|
expected_kwargs = [
|
3078
3194
|
"allow_control_chars",
|
3079
3195
|
"retry_strategy",
|
3080
|
-
"opc_request_id"
|
3081
|
-
"if_match",
|
3082
|
-
"opc_retry_token"
|
3196
|
+
"opc_request_id"
|
3083
3197
|
]
|
3084
3198
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3085
3199
|
if extra_kwargs:
|
3086
3200
|
raise ValueError(
|
3087
|
-
f"
|
3201
|
+
f"get_bds_instance got unknown kwargs: {extra_kwargs!r}")
|
3088
3202
|
|
3089
3203
|
path_params = {
|
3090
3204
|
"bdsInstanceId": bds_instance_id
|
@@ -3099,9 +3213,7 @@ class BdsClient(object):
|
|
3099
3213
|
header_params = {
|
3100
3214
|
"accept": "application/json",
|
3101
3215
|
"content-type": "application/json",
|
3102
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3103
|
-
"if-match": kwargs.get("if_match", missing),
|
3104
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3216
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3105
3217
|
}
|
3106
3218
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3107
3219
|
|
@@ -3112,7 +3224,6 @@ class BdsClient(object):
|
|
3112
3224
|
|
3113
3225
|
if retry_strategy:
|
3114
3226
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3115
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3116
3227
|
self.base_client.add_opc_client_retries_header(header_params)
|
3117
3228
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3118
3229
|
return retry_strategy.make_retrying_call(
|
@@ -3121,7 +3232,7 @@ class BdsClient(object):
|
|
3121
3232
|
method=method,
|
3122
3233
|
path_params=path_params,
|
3123
3234
|
header_params=header_params,
|
3124
|
-
|
3235
|
+
response_type="BdsInstance",
|
3125
3236
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3126
3237
|
operation_name=operation_name,
|
3127
3238
|
api_reference_link=api_reference_link,
|
@@ -3132,39 +3243,125 @@ class BdsClient(object):
|
|
3132
3243
|
method=method,
|
3133
3244
|
path_params=path_params,
|
3134
3245
|
header_params=header_params,
|
3135
|
-
|
3246
|
+
response_type="BdsInstance",
|
3136
3247
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3137
3248
|
operation_name=operation_name,
|
3138
3249
|
api_reference_link=api_reference_link,
|
3139
3250
|
required_arguments=required_arguments)
|
3140
3251
|
|
3141
|
-
def
|
3252
|
+
def get_bds_metastore_configuration(self, bds_instance_id, metastore_config_id, **kwargs):
|
3142
3253
|
"""
|
3143
|
-
|
3254
|
+
Returns the BDS Metastore configuration information for the given ID.
|
3144
3255
|
|
3145
3256
|
|
3146
3257
|
:param str bds_instance_id: (required)
|
3147
3258
|
The OCID of the cluster.
|
3148
3259
|
|
3149
|
-
:param
|
3150
|
-
|
3260
|
+
:param str metastore_config_id: (required)
|
3261
|
+
The metastore configuration ID
|
3151
3262
|
|
3152
3263
|
:param str opc_request_id: (optional)
|
3153
3264
|
The client request ID for tracing.
|
3154
3265
|
|
3155
|
-
:param
|
3156
|
-
|
3157
|
-
for a resource, set the `if-match` parameter to the value of the
|
3158
|
-
etag from a previous GET or POST response for that resource.
|
3159
|
-
The resource will be updated or deleted only if the etag you
|
3160
|
-
provide matches the resource's current etag value.
|
3266
|
+
:param obj retry_strategy: (optional)
|
3267
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3161
3268
|
|
3162
|
-
|
3163
|
-
|
3164
|
-
|
3165
|
-
|
3166
|
-
|
3167
|
-
|
3269
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3270
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3271
|
+
|
3272
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3273
|
+
|
3274
|
+
:param bool allow_control_chars: (optional)
|
3275
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3276
|
+
By default, the response will not allow control characters in strings
|
3277
|
+
|
3278
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.BdsMetastoreConfiguration`
|
3279
|
+
:rtype: :class:`~oci.response.Response`
|
3280
|
+
|
3281
|
+
:example:
|
3282
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_bds_metastore_configuration.py.html>`__ to see an example of how to use get_bds_metastore_configuration API.
|
3283
|
+
"""
|
3284
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3285
|
+
required_arguments = ['bdsInstanceId', 'metastoreConfigId']
|
3286
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/metastoreConfigs/{metastoreConfigId}"
|
3287
|
+
method = "GET"
|
3288
|
+
operation_name = "get_bds_metastore_configuration"
|
3289
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsMetastoreConfiguration/GetBdsMetastoreConfiguration"
|
3290
|
+
|
3291
|
+
# Don't accept unknown kwargs
|
3292
|
+
expected_kwargs = [
|
3293
|
+
"allow_control_chars",
|
3294
|
+
"retry_strategy",
|
3295
|
+
"opc_request_id"
|
3296
|
+
]
|
3297
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3298
|
+
if extra_kwargs:
|
3299
|
+
raise ValueError(
|
3300
|
+
f"get_bds_metastore_configuration got unknown kwargs: {extra_kwargs!r}")
|
3301
|
+
|
3302
|
+
path_params = {
|
3303
|
+
"bdsInstanceId": bds_instance_id,
|
3304
|
+
"metastoreConfigId": metastore_config_id
|
3305
|
+
}
|
3306
|
+
|
3307
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3308
|
+
|
3309
|
+
for (k, v) in six.iteritems(path_params):
|
3310
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3311
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3312
|
+
|
3313
|
+
header_params = {
|
3314
|
+
"accept": "application/json",
|
3315
|
+
"content-type": "application/json",
|
3316
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3317
|
+
}
|
3318
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3319
|
+
|
3320
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3321
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3322
|
+
client_retry_strategy=self.retry_strategy
|
3323
|
+
)
|
3324
|
+
|
3325
|
+
if retry_strategy:
|
3326
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3327
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3328
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3329
|
+
return retry_strategy.make_retrying_call(
|
3330
|
+
self.base_client.call_api,
|
3331
|
+
resource_path=resource_path,
|
3332
|
+
method=method,
|
3333
|
+
path_params=path_params,
|
3334
|
+
header_params=header_params,
|
3335
|
+
response_type="BdsMetastoreConfiguration",
|
3336
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3337
|
+
operation_name=operation_name,
|
3338
|
+
api_reference_link=api_reference_link,
|
3339
|
+
required_arguments=required_arguments)
|
3340
|
+
else:
|
3341
|
+
return self.base_client.call_api(
|
3342
|
+
resource_path=resource_path,
|
3343
|
+
method=method,
|
3344
|
+
path_params=path_params,
|
3345
|
+
header_params=header_params,
|
3346
|
+
response_type="BdsMetastoreConfiguration",
|
3347
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3348
|
+
operation_name=operation_name,
|
3349
|
+
api_reference_link=api_reference_link,
|
3350
|
+
required_arguments=required_arguments)
|
3351
|
+
|
3352
|
+
def get_node_backup(self, bds_instance_id, node_backup_id, **kwargs):
|
3353
|
+
"""
|
3354
|
+
Returns details of NodeBackup identified by the given ID.
|
3355
|
+
|
3356
|
+
|
3357
|
+
:param str bds_instance_id: (required)
|
3358
|
+
The OCID of the cluster.
|
3359
|
+
|
3360
|
+
:param str node_backup_id: (required)
|
3361
|
+
Unique assigned identifier of the nodeBackupId.
|
3362
|
+
|
3363
|
+
:param str opc_request_id: (optional)
|
3364
|
+
The client request ID for tracing.
|
3168
3365
|
|
3169
3366
|
:param obj retry_strategy: (optional)
|
3170
3367
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -3178,48 +3375,1177 @@ class BdsClient(object):
|
|
3178
3375
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3179
3376
|
By default, the response will not allow control characters in strings
|
3180
3377
|
|
3181
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3378
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.NodeBackup`
|
3182
3379
|
:rtype: :class:`~oci.response.Response`
|
3183
3380
|
|
3184
3381
|
:example:
|
3185
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
3382
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_node_backup.py.html>`__ to see an example of how to use get_node_backup API.
|
3186
3383
|
"""
|
3187
3384
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3188
|
-
required_arguments = ['bdsInstanceId']
|
3189
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
3190
|
-
method = "
|
3191
|
-
operation_name = "
|
3192
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
3385
|
+
required_arguments = ['bdsInstanceId', 'nodeBackupId']
|
3386
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackups/{nodeBackupId}"
|
3387
|
+
method = "GET"
|
3388
|
+
operation_name = "get_node_backup"
|
3389
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackup"
|
3193
3390
|
|
3194
3391
|
# Don't accept unknown kwargs
|
3195
3392
|
expected_kwargs = [
|
3196
3393
|
"allow_control_chars",
|
3197
3394
|
"retry_strategy",
|
3198
|
-
"opc_request_id"
|
3199
|
-
|
3200
|
-
|
3395
|
+
"opc_request_id"
|
3396
|
+
]
|
3397
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3398
|
+
if extra_kwargs:
|
3399
|
+
raise ValueError(
|
3400
|
+
f"get_node_backup got unknown kwargs: {extra_kwargs!r}")
|
3401
|
+
|
3402
|
+
path_params = {
|
3403
|
+
"bdsInstanceId": bds_instance_id,
|
3404
|
+
"nodeBackupId": node_backup_id
|
3405
|
+
}
|
3406
|
+
|
3407
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3408
|
+
|
3409
|
+
for (k, v) in six.iteritems(path_params):
|
3410
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3411
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3412
|
+
|
3413
|
+
header_params = {
|
3414
|
+
"accept": "application/json",
|
3415
|
+
"content-type": "application/json",
|
3416
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3417
|
+
}
|
3418
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3419
|
+
|
3420
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3421
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3422
|
+
client_retry_strategy=self.retry_strategy
|
3423
|
+
)
|
3424
|
+
|
3425
|
+
if retry_strategy:
|
3426
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3427
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3428
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3429
|
+
return retry_strategy.make_retrying_call(
|
3430
|
+
self.base_client.call_api,
|
3431
|
+
resource_path=resource_path,
|
3432
|
+
method=method,
|
3433
|
+
path_params=path_params,
|
3434
|
+
header_params=header_params,
|
3435
|
+
response_type="NodeBackup",
|
3436
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3437
|
+
operation_name=operation_name,
|
3438
|
+
api_reference_link=api_reference_link,
|
3439
|
+
required_arguments=required_arguments)
|
3440
|
+
else:
|
3441
|
+
return self.base_client.call_api(
|
3442
|
+
resource_path=resource_path,
|
3443
|
+
method=method,
|
3444
|
+
path_params=path_params,
|
3445
|
+
header_params=header_params,
|
3446
|
+
response_type="NodeBackup",
|
3447
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3448
|
+
operation_name=operation_name,
|
3449
|
+
api_reference_link=api_reference_link,
|
3450
|
+
required_arguments=required_arguments)
|
3451
|
+
|
3452
|
+
def get_node_backup_configuration(self, bds_instance_id, node_backup_configuration_id, **kwargs):
|
3453
|
+
"""
|
3454
|
+
Returns details of the NodeBackupConfiguration identified by the given ID.
|
3455
|
+
|
3456
|
+
|
3457
|
+
:param str bds_instance_id: (required)
|
3458
|
+
The OCID of the cluster.
|
3459
|
+
|
3460
|
+
:param str node_backup_configuration_id: (required)
|
3461
|
+
Unique Oracle-assigned identifier of the NodeBackupConfiguration.
|
3462
|
+
|
3463
|
+
:param str opc_request_id: (optional)
|
3464
|
+
The client request ID for tracing.
|
3465
|
+
|
3466
|
+
:param obj retry_strategy: (optional)
|
3467
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3468
|
+
|
3469
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3470
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3471
|
+
|
3472
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3473
|
+
|
3474
|
+
:param bool allow_control_chars: (optional)
|
3475
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3476
|
+
By default, the response will not allow control characters in strings
|
3477
|
+
|
3478
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.NodeBackupConfiguration`
|
3479
|
+
:rtype: :class:`~oci.response.Response`
|
3480
|
+
|
3481
|
+
:example:
|
3482
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_node_backup_configuration.py.html>`__ to see an example of how to use get_node_backup_configuration API.
|
3483
|
+
"""
|
3484
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3485
|
+
required_arguments = ['bdsInstanceId', 'nodeBackupConfigurationId']
|
3486
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackupConfigurations/{nodeBackupConfigurationId}"
|
3487
|
+
method = "GET"
|
3488
|
+
operation_name = "get_node_backup_configuration"
|
3489
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeBackupConfiguration"
|
3490
|
+
|
3491
|
+
# Don't accept unknown kwargs
|
3492
|
+
expected_kwargs = [
|
3493
|
+
"allow_control_chars",
|
3494
|
+
"retry_strategy",
|
3495
|
+
"opc_request_id"
|
3496
|
+
]
|
3497
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3498
|
+
if extra_kwargs:
|
3499
|
+
raise ValueError(
|
3500
|
+
f"get_node_backup_configuration got unknown kwargs: {extra_kwargs!r}")
|
3501
|
+
|
3502
|
+
path_params = {
|
3503
|
+
"bdsInstanceId": bds_instance_id,
|
3504
|
+
"nodeBackupConfigurationId": node_backup_configuration_id
|
3505
|
+
}
|
3506
|
+
|
3507
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3508
|
+
|
3509
|
+
for (k, v) in six.iteritems(path_params):
|
3510
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3511
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3512
|
+
|
3513
|
+
header_params = {
|
3514
|
+
"accept": "application/json",
|
3515
|
+
"content-type": "application/json",
|
3516
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3517
|
+
}
|
3518
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3519
|
+
|
3520
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3521
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3522
|
+
client_retry_strategy=self.retry_strategy
|
3523
|
+
)
|
3524
|
+
|
3525
|
+
if retry_strategy:
|
3526
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3527
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3528
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3529
|
+
return retry_strategy.make_retrying_call(
|
3530
|
+
self.base_client.call_api,
|
3531
|
+
resource_path=resource_path,
|
3532
|
+
method=method,
|
3533
|
+
path_params=path_params,
|
3534
|
+
header_params=header_params,
|
3535
|
+
response_type="NodeBackupConfiguration",
|
3536
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3537
|
+
operation_name=operation_name,
|
3538
|
+
api_reference_link=api_reference_link,
|
3539
|
+
required_arguments=required_arguments)
|
3540
|
+
else:
|
3541
|
+
return self.base_client.call_api(
|
3542
|
+
resource_path=resource_path,
|
3543
|
+
method=method,
|
3544
|
+
path_params=path_params,
|
3545
|
+
header_params=header_params,
|
3546
|
+
response_type="NodeBackupConfiguration",
|
3547
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3548
|
+
operation_name=operation_name,
|
3549
|
+
api_reference_link=api_reference_link,
|
3550
|
+
required_arguments=required_arguments)
|
3551
|
+
|
3552
|
+
def get_node_replace_configuration(self, bds_instance_id, node_replace_configuration_id, **kwargs):
|
3553
|
+
"""
|
3554
|
+
Returns details of the nodeReplaceConfiguration identified by the given ID.
|
3555
|
+
|
3556
|
+
|
3557
|
+
:param str bds_instance_id: (required)
|
3558
|
+
The OCID of the cluster.
|
3559
|
+
|
3560
|
+
:param str node_replace_configuration_id: (required)
|
3561
|
+
Unique Oracle-assigned identifier of the NodeReplaceConfiguration.
|
3562
|
+
|
3563
|
+
:param str opc_request_id: (optional)
|
3564
|
+
The client request ID for tracing.
|
3565
|
+
|
3566
|
+
:param obj retry_strategy: (optional)
|
3567
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3568
|
+
|
3569
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3570
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3571
|
+
|
3572
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3573
|
+
|
3574
|
+
:param bool allow_control_chars: (optional)
|
3575
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3576
|
+
By default, the response will not allow control characters in strings
|
3577
|
+
|
3578
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.NodeReplaceConfiguration`
|
3579
|
+
:rtype: :class:`~oci.response.Response`
|
3580
|
+
|
3581
|
+
:example:
|
3582
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_node_replace_configuration.py.html>`__ to see an example of how to use get_node_replace_configuration API.
|
3583
|
+
"""
|
3584
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3585
|
+
required_arguments = ['bdsInstanceId', 'nodeReplaceConfigurationId']
|
3586
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeReplaceConfigurations/{nodeReplaceConfigurationId}"
|
3587
|
+
method = "GET"
|
3588
|
+
operation_name = "get_node_replace_configuration"
|
3589
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetNodeReplaceConfiguration"
|
3590
|
+
|
3591
|
+
# Don't accept unknown kwargs
|
3592
|
+
expected_kwargs = [
|
3593
|
+
"allow_control_chars",
|
3594
|
+
"retry_strategy",
|
3595
|
+
"opc_request_id"
|
3596
|
+
]
|
3597
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3598
|
+
if extra_kwargs:
|
3599
|
+
raise ValueError(
|
3600
|
+
f"get_node_replace_configuration got unknown kwargs: {extra_kwargs!r}")
|
3601
|
+
|
3602
|
+
path_params = {
|
3603
|
+
"bdsInstanceId": bds_instance_id,
|
3604
|
+
"nodeReplaceConfigurationId": node_replace_configuration_id
|
3605
|
+
}
|
3606
|
+
|
3607
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3608
|
+
|
3609
|
+
for (k, v) in six.iteritems(path_params):
|
3610
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3611
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3612
|
+
|
3613
|
+
header_params = {
|
3614
|
+
"accept": "application/json",
|
3615
|
+
"content-type": "application/json",
|
3616
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3617
|
+
}
|
3618
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3619
|
+
|
3620
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3621
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3622
|
+
client_retry_strategy=self.retry_strategy
|
3623
|
+
)
|
3624
|
+
|
3625
|
+
if retry_strategy:
|
3626
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3627
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3628
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3629
|
+
return retry_strategy.make_retrying_call(
|
3630
|
+
self.base_client.call_api,
|
3631
|
+
resource_path=resource_path,
|
3632
|
+
method=method,
|
3633
|
+
path_params=path_params,
|
3634
|
+
header_params=header_params,
|
3635
|
+
response_type="NodeReplaceConfiguration",
|
3636
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3637
|
+
operation_name=operation_name,
|
3638
|
+
api_reference_link=api_reference_link,
|
3639
|
+
required_arguments=required_arguments)
|
3640
|
+
else:
|
3641
|
+
return self.base_client.call_api(
|
3642
|
+
resource_path=resource_path,
|
3643
|
+
method=method,
|
3644
|
+
path_params=path_params,
|
3645
|
+
header_params=header_params,
|
3646
|
+
response_type="NodeReplaceConfiguration",
|
3647
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3648
|
+
operation_name=operation_name,
|
3649
|
+
api_reference_link=api_reference_link,
|
3650
|
+
required_arguments=required_arguments)
|
3651
|
+
|
3652
|
+
def get_os_patch_details(self, bds_instance_id, os_patch_version, **kwargs):
|
3653
|
+
"""
|
3654
|
+
Get the details of an os patch
|
3655
|
+
|
3656
|
+
|
3657
|
+
:param str bds_instance_id: (required)
|
3658
|
+
The OCID of the cluster.
|
3659
|
+
|
3660
|
+
:param str os_patch_version: (required)
|
3661
|
+
The version of the OS patch.
|
3662
|
+
|
3663
|
+
:param str opc_request_id: (optional)
|
3664
|
+
The client request ID for tracing.
|
3665
|
+
|
3666
|
+
:param str if_match: (optional)
|
3667
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
3668
|
+
for a resource, set the `if-match` parameter to the value of the
|
3669
|
+
etag from a previous GET or POST response for that resource.
|
3670
|
+
The resource will be updated or deleted only if the etag you
|
3671
|
+
provide matches the resource's current etag value.
|
3672
|
+
|
3673
|
+
:param str opc_retry_token: (optional)
|
3674
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3675
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
3676
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
3677
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
3678
|
+
might be rejected.
|
3679
|
+
|
3680
|
+
:param obj retry_strategy: (optional)
|
3681
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3682
|
+
|
3683
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3684
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3685
|
+
|
3686
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3687
|
+
|
3688
|
+
:param bool allow_control_chars: (optional)
|
3689
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3690
|
+
By default, the response will not allow control characters in strings
|
3691
|
+
|
3692
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.OsPatchDetails`
|
3693
|
+
:rtype: :class:`~oci.response.Response`
|
3694
|
+
|
3695
|
+
:example:
|
3696
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_os_patch_details.py.html>`__ to see an example of how to use get_os_patch_details API.
|
3697
|
+
"""
|
3698
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3699
|
+
required_arguments = ['bdsInstanceId', 'osPatchVersion']
|
3700
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/getOsPatch"
|
3701
|
+
method = "POST"
|
3702
|
+
operation_name = "get_os_patch_details"
|
3703
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/GetOsPatchDetails"
|
3704
|
+
|
3705
|
+
# Don't accept unknown kwargs
|
3706
|
+
expected_kwargs = [
|
3707
|
+
"allow_control_chars",
|
3708
|
+
"retry_strategy",
|
3709
|
+
"opc_request_id",
|
3710
|
+
"if_match",
|
3711
|
+
"opc_retry_token"
|
3712
|
+
]
|
3713
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3714
|
+
if extra_kwargs:
|
3715
|
+
raise ValueError(
|
3716
|
+
f"get_os_patch_details got unknown kwargs: {extra_kwargs!r}")
|
3717
|
+
|
3718
|
+
path_params = {
|
3719
|
+
"bdsInstanceId": bds_instance_id
|
3720
|
+
}
|
3721
|
+
|
3722
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3723
|
+
|
3724
|
+
for (k, v) in six.iteritems(path_params):
|
3725
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3726
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3727
|
+
|
3728
|
+
query_params = {
|
3729
|
+
"osPatchVersion": os_patch_version
|
3730
|
+
}
|
3731
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3732
|
+
|
3733
|
+
header_params = {
|
3734
|
+
"accept": "application/json",
|
3735
|
+
"content-type": "application/json",
|
3736
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
3737
|
+
"if-match": kwargs.get("if_match", missing),
|
3738
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3739
|
+
}
|
3740
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3741
|
+
|
3742
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3743
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3744
|
+
client_retry_strategy=self.retry_strategy
|
3745
|
+
)
|
3746
|
+
|
3747
|
+
if retry_strategy:
|
3748
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3749
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3750
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3751
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3752
|
+
return retry_strategy.make_retrying_call(
|
3753
|
+
self.base_client.call_api,
|
3754
|
+
resource_path=resource_path,
|
3755
|
+
method=method,
|
3756
|
+
path_params=path_params,
|
3757
|
+
query_params=query_params,
|
3758
|
+
header_params=header_params,
|
3759
|
+
response_type="OsPatchDetails",
|
3760
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3761
|
+
operation_name=operation_name,
|
3762
|
+
api_reference_link=api_reference_link,
|
3763
|
+
required_arguments=required_arguments)
|
3764
|
+
else:
|
3765
|
+
return self.base_client.call_api(
|
3766
|
+
resource_path=resource_path,
|
3767
|
+
method=method,
|
3768
|
+
path_params=path_params,
|
3769
|
+
query_params=query_params,
|
3770
|
+
header_params=header_params,
|
3771
|
+
response_type="OsPatchDetails",
|
3772
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3773
|
+
operation_name=operation_name,
|
3774
|
+
api_reference_link=api_reference_link,
|
3775
|
+
required_arguments=required_arguments)
|
3776
|
+
|
3777
|
+
def get_work_request(self, work_request_id, **kwargs):
|
3778
|
+
"""
|
3779
|
+
Returns the status of the work request identified by the given ID.
|
3780
|
+
|
3781
|
+
|
3782
|
+
:param str work_request_id: (required)
|
3783
|
+
The ID of the asynchronous request.
|
3784
|
+
|
3785
|
+
:param str opc_request_id: (optional)
|
3786
|
+
The client request ID for tracing.
|
3787
|
+
|
3788
|
+
:param obj retry_strategy: (optional)
|
3789
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3790
|
+
|
3791
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3792
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3793
|
+
|
3794
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3795
|
+
|
3796
|
+
:param bool allow_control_chars: (optional)
|
3797
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3798
|
+
By default, the response will not allow control characters in strings
|
3799
|
+
|
3800
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.bds.models.WorkRequest`
|
3801
|
+
:rtype: :class:`~oci.response.Response`
|
3802
|
+
|
3803
|
+
:example:
|
3804
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
3805
|
+
"""
|
3806
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3807
|
+
required_arguments = ['workRequestId']
|
3808
|
+
resource_path = "/workRequests/{workRequestId}"
|
3809
|
+
method = "GET"
|
3810
|
+
operation_name = "get_work_request"
|
3811
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/WorkRequest/GetWorkRequest"
|
3812
|
+
|
3813
|
+
# Don't accept unknown kwargs
|
3814
|
+
expected_kwargs = [
|
3815
|
+
"allow_control_chars",
|
3816
|
+
"retry_strategy",
|
3817
|
+
"opc_request_id"
|
3818
|
+
]
|
3819
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3820
|
+
if extra_kwargs:
|
3821
|
+
raise ValueError(
|
3822
|
+
f"get_work_request got unknown kwargs: {extra_kwargs!r}")
|
3823
|
+
|
3824
|
+
path_params = {
|
3825
|
+
"workRequestId": work_request_id
|
3826
|
+
}
|
3827
|
+
|
3828
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3829
|
+
|
3830
|
+
for (k, v) in six.iteritems(path_params):
|
3831
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3832
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3833
|
+
|
3834
|
+
header_params = {
|
3835
|
+
"accept": "application/json",
|
3836
|
+
"content-type": "application/json",
|
3837
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3838
|
+
}
|
3839
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3840
|
+
|
3841
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3842
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3843
|
+
client_retry_strategy=self.retry_strategy
|
3844
|
+
)
|
3845
|
+
|
3846
|
+
if retry_strategy:
|
3847
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3848
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3849
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3850
|
+
return retry_strategy.make_retrying_call(
|
3851
|
+
self.base_client.call_api,
|
3852
|
+
resource_path=resource_path,
|
3853
|
+
method=method,
|
3854
|
+
path_params=path_params,
|
3855
|
+
header_params=header_params,
|
3856
|
+
response_type="WorkRequest",
|
3857
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3858
|
+
operation_name=operation_name,
|
3859
|
+
api_reference_link=api_reference_link,
|
3860
|
+
required_arguments=required_arguments)
|
3861
|
+
else:
|
3862
|
+
return self.base_client.call_api(
|
3863
|
+
resource_path=resource_path,
|
3864
|
+
method=method,
|
3865
|
+
path_params=path_params,
|
3866
|
+
header_params=header_params,
|
3867
|
+
response_type="WorkRequest",
|
3868
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3869
|
+
operation_name=operation_name,
|
3870
|
+
api_reference_link=api_reference_link,
|
3871
|
+
required_arguments=required_arguments)
|
3872
|
+
|
3873
|
+
def install_os_patch(self, bds_instance_id, install_os_patch_details, **kwargs):
|
3874
|
+
"""
|
3875
|
+
Install an os patch on a cluster
|
3876
|
+
|
3877
|
+
|
3878
|
+
:param str bds_instance_id: (required)
|
3879
|
+
The OCID of the cluster.
|
3880
|
+
|
3881
|
+
:param oci.bds.models.InstallOsPatchDetails install_os_patch_details: (required)
|
3882
|
+
Details of the target os patch that will be installed
|
3883
|
+
|
3884
|
+
:param str opc_request_id: (optional)
|
3885
|
+
The client request ID for tracing.
|
3886
|
+
|
3887
|
+
:param str if_match: (optional)
|
3888
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
3889
|
+
for a resource, set the `if-match` parameter to the value of the
|
3890
|
+
etag from a previous GET or POST response for that resource.
|
3891
|
+
The resource will be updated or deleted only if the etag you
|
3892
|
+
provide matches the resource's current etag value.
|
3893
|
+
|
3894
|
+
:param str opc_retry_token: (optional)
|
3895
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
3896
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
3897
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
3898
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
3899
|
+
might be rejected.
|
3900
|
+
|
3901
|
+
:param obj retry_strategy: (optional)
|
3902
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3903
|
+
|
3904
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
3905
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3906
|
+
|
3907
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3908
|
+
|
3909
|
+
:param bool allow_control_chars: (optional)
|
3910
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3911
|
+
By default, the response will not allow control characters in strings
|
3912
|
+
|
3913
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
3914
|
+
:rtype: :class:`~oci.response.Response`
|
3915
|
+
|
3916
|
+
:example:
|
3917
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/install_os_patch.py.html>`__ to see an example of how to use install_os_patch API.
|
3918
|
+
"""
|
3919
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3920
|
+
required_arguments = ['bdsInstanceId']
|
3921
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/installOsPatch"
|
3922
|
+
method = "POST"
|
3923
|
+
operation_name = "install_os_patch"
|
3924
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/InstallOsPatch"
|
3925
|
+
|
3926
|
+
# Don't accept unknown kwargs
|
3927
|
+
expected_kwargs = [
|
3928
|
+
"allow_control_chars",
|
3929
|
+
"retry_strategy",
|
3930
|
+
"opc_request_id",
|
3931
|
+
"if_match",
|
3932
|
+
"opc_retry_token"
|
3933
|
+
]
|
3934
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3935
|
+
if extra_kwargs:
|
3936
|
+
raise ValueError(
|
3937
|
+
f"install_os_patch got unknown kwargs: {extra_kwargs!r}")
|
3938
|
+
|
3939
|
+
path_params = {
|
3940
|
+
"bdsInstanceId": bds_instance_id
|
3941
|
+
}
|
3942
|
+
|
3943
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3944
|
+
|
3945
|
+
for (k, v) in six.iteritems(path_params):
|
3946
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3947
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3948
|
+
|
3949
|
+
header_params = {
|
3950
|
+
"accept": "application/json",
|
3951
|
+
"content-type": "application/json",
|
3952
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
3953
|
+
"if-match": kwargs.get("if_match", missing),
|
3954
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3955
|
+
}
|
3956
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3957
|
+
|
3958
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3959
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3960
|
+
client_retry_strategy=self.retry_strategy
|
3961
|
+
)
|
3962
|
+
|
3963
|
+
if retry_strategy:
|
3964
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3965
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3966
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
3967
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3968
|
+
return retry_strategy.make_retrying_call(
|
3969
|
+
self.base_client.call_api,
|
3970
|
+
resource_path=resource_path,
|
3971
|
+
method=method,
|
3972
|
+
path_params=path_params,
|
3973
|
+
header_params=header_params,
|
3974
|
+
body=install_os_patch_details,
|
3975
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3976
|
+
operation_name=operation_name,
|
3977
|
+
api_reference_link=api_reference_link,
|
3978
|
+
required_arguments=required_arguments)
|
3979
|
+
else:
|
3980
|
+
return self.base_client.call_api(
|
3981
|
+
resource_path=resource_path,
|
3982
|
+
method=method,
|
3983
|
+
path_params=path_params,
|
3984
|
+
header_params=header_params,
|
3985
|
+
body=install_os_patch_details,
|
3986
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3987
|
+
operation_name=operation_name,
|
3988
|
+
api_reference_link=api_reference_link,
|
3989
|
+
required_arguments=required_arguments)
|
3990
|
+
|
3991
|
+
def install_patch(self, bds_instance_id, install_patch_details, **kwargs):
|
3992
|
+
"""
|
3993
|
+
Install the specified patch to this cluster.
|
3994
|
+
|
3995
|
+
|
3996
|
+
:param str bds_instance_id: (required)
|
3997
|
+
The OCID of the cluster.
|
3998
|
+
|
3999
|
+
:param oci.bds.models.InstallPatchDetails install_patch_details: (required)
|
4000
|
+
Details of the patch to be installed.
|
4001
|
+
|
4002
|
+
:param str opc_request_id: (optional)
|
4003
|
+
The client request ID for tracing.
|
4004
|
+
|
4005
|
+
:param str if_match: (optional)
|
4006
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
4007
|
+
for a resource, set the `if-match` parameter to the value of the
|
4008
|
+
etag from a previous GET or POST response for that resource.
|
4009
|
+
The resource will be updated or deleted only if the etag you
|
4010
|
+
provide matches the resource's current etag value.
|
4011
|
+
|
4012
|
+
:param str opc_retry_token: (optional)
|
4013
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
4014
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
4015
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
4016
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
4017
|
+
might be rejected.
|
4018
|
+
|
4019
|
+
:param obj retry_strategy: (optional)
|
4020
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4021
|
+
|
4022
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4023
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4024
|
+
|
4025
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4026
|
+
|
4027
|
+
:param bool allow_control_chars: (optional)
|
4028
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4029
|
+
By default, the response will not allow control characters in strings
|
4030
|
+
|
4031
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
4032
|
+
:rtype: :class:`~oci.response.Response`
|
4033
|
+
|
4034
|
+
:example:
|
4035
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/install_patch.py.html>`__ to see an example of how to use install_patch API.
|
4036
|
+
"""
|
4037
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4038
|
+
required_arguments = ['bdsInstanceId']
|
4039
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/installPatch"
|
4040
|
+
method = "POST"
|
4041
|
+
operation_name = "install_patch"
|
4042
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/InstallPatch"
|
4043
|
+
|
4044
|
+
# Don't accept unknown kwargs
|
4045
|
+
expected_kwargs = [
|
4046
|
+
"allow_control_chars",
|
4047
|
+
"retry_strategy",
|
4048
|
+
"opc_request_id",
|
4049
|
+
"if_match",
|
4050
|
+
"opc_retry_token"
|
4051
|
+
]
|
4052
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4053
|
+
if extra_kwargs:
|
4054
|
+
raise ValueError(
|
4055
|
+
f"install_patch got unknown kwargs: {extra_kwargs!r}")
|
4056
|
+
|
4057
|
+
path_params = {
|
4058
|
+
"bdsInstanceId": bds_instance_id
|
4059
|
+
}
|
4060
|
+
|
4061
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4062
|
+
|
4063
|
+
for (k, v) in six.iteritems(path_params):
|
4064
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4065
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4066
|
+
|
4067
|
+
header_params = {
|
4068
|
+
"accept": "application/json",
|
4069
|
+
"content-type": "application/json",
|
4070
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
4071
|
+
"if-match": kwargs.get("if_match", missing),
|
4072
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
4073
|
+
}
|
4074
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4075
|
+
|
4076
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4077
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4078
|
+
client_retry_strategy=self.retry_strategy
|
4079
|
+
)
|
4080
|
+
|
4081
|
+
if retry_strategy:
|
4082
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4083
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
4084
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4085
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4086
|
+
return retry_strategy.make_retrying_call(
|
4087
|
+
self.base_client.call_api,
|
4088
|
+
resource_path=resource_path,
|
4089
|
+
method=method,
|
4090
|
+
path_params=path_params,
|
4091
|
+
header_params=header_params,
|
4092
|
+
body=install_patch_details,
|
4093
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4094
|
+
operation_name=operation_name,
|
4095
|
+
api_reference_link=api_reference_link,
|
4096
|
+
required_arguments=required_arguments)
|
4097
|
+
else:
|
4098
|
+
return self.base_client.call_api(
|
4099
|
+
resource_path=resource_path,
|
4100
|
+
method=method,
|
4101
|
+
path_params=path_params,
|
4102
|
+
header_params=header_params,
|
4103
|
+
body=install_patch_details,
|
4104
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4105
|
+
operation_name=operation_name,
|
4106
|
+
api_reference_link=api_reference_link,
|
4107
|
+
required_arguments=required_arguments)
|
4108
|
+
|
4109
|
+
def list_auto_scaling_configurations(self, compartment_id, bds_instance_id, **kwargs):
|
4110
|
+
"""
|
4111
|
+
Returns information about the autoscaling configurations for a cluster.
|
4112
|
+
|
4113
|
+
|
4114
|
+
:param str compartment_id: (required)
|
4115
|
+
The OCID of the compartment.
|
4116
|
+
|
4117
|
+
:param str bds_instance_id: (required)
|
4118
|
+
The OCID of the cluster.
|
4119
|
+
|
4120
|
+
:param str page: (optional)
|
4121
|
+
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
4122
|
+
|
4123
|
+
:param int limit: (optional)
|
4124
|
+
The maximum number of items to return.
|
4125
|
+
|
4126
|
+
:param str sort_by: (optional)
|
4127
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
|
4128
|
+
|
4129
|
+
Allowed values are: "timeCreated", "displayName"
|
4130
|
+
|
4131
|
+
:param str sort_order: (optional)
|
4132
|
+
The sort order to use, either 'asc' or 'desc'.
|
4133
|
+
|
4134
|
+
Allowed values are: "ASC", "DESC"
|
4135
|
+
|
4136
|
+
:param str display_name: (optional)
|
4137
|
+
A filter to return only resources that match the entire display name given.
|
4138
|
+
|
4139
|
+
:param str lifecycle_state: (optional)
|
4140
|
+
The state of the autoscale configuration.
|
4141
|
+
|
4142
|
+
Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
4143
|
+
|
4144
|
+
:param str opc_request_id: (optional)
|
4145
|
+
The client request ID for tracing.
|
4146
|
+
|
4147
|
+
:param obj retry_strategy: (optional)
|
4148
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4149
|
+
|
4150
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4151
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4152
|
+
|
4153
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4154
|
+
|
4155
|
+
:param bool allow_control_chars: (optional)
|
4156
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4157
|
+
By default, the response will not allow control characters in strings
|
4158
|
+
|
4159
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.AutoScalingConfigurationSummary`
|
4160
|
+
:rtype: :class:`~oci.response.Response`
|
4161
|
+
|
4162
|
+
:example:
|
4163
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_auto_scaling_configurations.py.html>`__ to see an example of how to use list_auto_scaling_configurations API.
|
4164
|
+
"""
|
4165
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4166
|
+
required_arguments = ['bdsInstanceId', 'compartmentId']
|
4167
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/autoScalingConfiguration"
|
4168
|
+
method = "GET"
|
4169
|
+
operation_name = "list_auto_scaling_configurations"
|
4170
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListAutoScalingConfigurations"
|
4171
|
+
|
4172
|
+
# Don't accept unknown kwargs
|
4173
|
+
expected_kwargs = [
|
4174
|
+
"allow_control_chars",
|
4175
|
+
"retry_strategy",
|
4176
|
+
"page",
|
4177
|
+
"limit",
|
4178
|
+
"sort_by",
|
4179
|
+
"sort_order",
|
4180
|
+
"display_name",
|
4181
|
+
"lifecycle_state",
|
4182
|
+
"opc_request_id"
|
4183
|
+
]
|
4184
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4185
|
+
if extra_kwargs:
|
4186
|
+
raise ValueError(
|
4187
|
+
f"list_auto_scaling_configurations got unknown kwargs: {extra_kwargs!r}")
|
4188
|
+
|
4189
|
+
path_params = {
|
4190
|
+
"bdsInstanceId": bds_instance_id
|
4191
|
+
}
|
4192
|
+
|
4193
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4194
|
+
|
4195
|
+
for (k, v) in six.iteritems(path_params):
|
4196
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4197
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4198
|
+
|
4199
|
+
if 'sort_by' in kwargs:
|
4200
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
4201
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
4202
|
+
raise ValueError(
|
4203
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
4204
|
+
)
|
4205
|
+
|
4206
|
+
if 'sort_order' in kwargs:
|
4207
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
4208
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
4209
|
+
raise ValueError(
|
4210
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
4211
|
+
)
|
4212
|
+
|
4213
|
+
if 'lifecycle_state' in kwargs:
|
4214
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
4215
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4216
|
+
raise ValueError(
|
4217
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4218
|
+
)
|
4219
|
+
|
4220
|
+
query_params = {
|
4221
|
+
"compartmentId": compartment_id,
|
4222
|
+
"page": kwargs.get("page", missing),
|
4223
|
+
"limit": kwargs.get("limit", missing),
|
4224
|
+
"sortBy": kwargs.get("sort_by", missing),
|
4225
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
4226
|
+
"displayName": kwargs.get("display_name", missing),
|
4227
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
4228
|
+
}
|
4229
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
4230
|
+
|
4231
|
+
header_params = {
|
4232
|
+
"accept": "application/json",
|
4233
|
+
"content-type": "application/json",
|
4234
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4235
|
+
}
|
4236
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4237
|
+
|
4238
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4239
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4240
|
+
client_retry_strategy=self.retry_strategy
|
4241
|
+
)
|
4242
|
+
|
4243
|
+
if retry_strategy:
|
4244
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4245
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4246
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4247
|
+
return retry_strategy.make_retrying_call(
|
4248
|
+
self.base_client.call_api,
|
4249
|
+
resource_path=resource_path,
|
4250
|
+
method=method,
|
4251
|
+
path_params=path_params,
|
4252
|
+
query_params=query_params,
|
4253
|
+
header_params=header_params,
|
4254
|
+
response_type="list[AutoScalingConfigurationSummary]",
|
4255
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4256
|
+
operation_name=operation_name,
|
4257
|
+
api_reference_link=api_reference_link,
|
4258
|
+
required_arguments=required_arguments)
|
4259
|
+
else:
|
4260
|
+
return self.base_client.call_api(
|
4261
|
+
resource_path=resource_path,
|
4262
|
+
method=method,
|
4263
|
+
path_params=path_params,
|
4264
|
+
query_params=query_params,
|
4265
|
+
header_params=header_params,
|
4266
|
+
response_type="list[AutoScalingConfigurationSummary]",
|
4267
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4268
|
+
operation_name=operation_name,
|
4269
|
+
api_reference_link=api_reference_link,
|
4270
|
+
required_arguments=required_arguments)
|
4271
|
+
|
4272
|
+
def list_bds_api_keys(self, bds_instance_id, **kwargs):
|
4273
|
+
"""
|
4274
|
+
Returns a list of all API keys associated with this Big Data Service cluster.
|
4275
|
+
|
4276
|
+
|
4277
|
+
:param str bds_instance_id: (required)
|
4278
|
+
The OCID of the cluster.
|
4279
|
+
|
4280
|
+
:param str lifecycle_state: (optional)
|
4281
|
+
The state of the API key.
|
4282
|
+
|
4283
|
+
Allowed values are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
|
4284
|
+
|
4285
|
+
:param str user_id: (optional)
|
4286
|
+
The OCID of the user for whom the API key belongs.
|
4287
|
+
|
4288
|
+
:param str page: (optional)
|
4289
|
+
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
4290
|
+
|
4291
|
+
:param int limit: (optional)
|
4292
|
+
The maximum number of items to return.
|
4293
|
+
|
4294
|
+
:param str sort_by: (optional)
|
4295
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
|
4296
|
+
|
4297
|
+
Allowed values are: "timeCreated", "displayName"
|
4298
|
+
|
4299
|
+
:param str sort_order: (optional)
|
4300
|
+
The sort order to use, either 'asc' or 'desc'.
|
4301
|
+
|
4302
|
+
Allowed values are: "ASC", "DESC"
|
4303
|
+
|
4304
|
+
:param str display_name: (optional)
|
4305
|
+
A filter to return only resources that match the entire display name given.
|
4306
|
+
|
4307
|
+
:param str opc_request_id: (optional)
|
4308
|
+
The client request ID for tracing.
|
4309
|
+
|
4310
|
+
:param obj retry_strategy: (optional)
|
4311
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4312
|
+
|
4313
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4314
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4315
|
+
|
4316
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4317
|
+
|
4318
|
+
:param bool allow_control_chars: (optional)
|
4319
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4320
|
+
By default, the response will not allow control characters in strings
|
4321
|
+
|
4322
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.BdsApiKeySummary`
|
4323
|
+
:rtype: :class:`~oci.response.Response`
|
4324
|
+
|
4325
|
+
:example:
|
4326
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_bds_api_keys.py.html>`__ to see an example of how to use list_bds_api_keys API.
|
4327
|
+
"""
|
4328
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4329
|
+
required_arguments = ['bdsInstanceId']
|
4330
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/apiKeys"
|
4331
|
+
method = "GET"
|
4332
|
+
operation_name = "list_bds_api_keys"
|
4333
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsApiKey/ListBdsApiKeys"
|
4334
|
+
|
4335
|
+
# Don't accept unknown kwargs
|
4336
|
+
expected_kwargs = [
|
4337
|
+
"allow_control_chars",
|
4338
|
+
"retry_strategy",
|
4339
|
+
"lifecycle_state",
|
4340
|
+
"user_id",
|
4341
|
+
"page",
|
4342
|
+
"limit",
|
4343
|
+
"sort_by",
|
4344
|
+
"sort_order",
|
4345
|
+
"display_name",
|
4346
|
+
"opc_request_id"
|
4347
|
+
]
|
4348
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4349
|
+
if extra_kwargs:
|
4350
|
+
raise ValueError(
|
4351
|
+
f"list_bds_api_keys got unknown kwargs: {extra_kwargs!r}")
|
4352
|
+
|
4353
|
+
path_params = {
|
4354
|
+
"bdsInstanceId": bds_instance_id
|
4355
|
+
}
|
4356
|
+
|
4357
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4358
|
+
|
4359
|
+
for (k, v) in six.iteritems(path_params):
|
4360
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4361
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4362
|
+
|
4363
|
+
if 'lifecycle_state' in kwargs:
|
4364
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
|
4365
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4366
|
+
raise ValueError(
|
4367
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4368
|
+
)
|
4369
|
+
|
4370
|
+
if 'sort_by' in kwargs:
|
4371
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
4372
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
4373
|
+
raise ValueError(
|
4374
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
4375
|
+
)
|
4376
|
+
|
4377
|
+
if 'sort_order' in kwargs:
|
4378
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
4379
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
4380
|
+
raise ValueError(
|
4381
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
4382
|
+
)
|
4383
|
+
|
4384
|
+
query_params = {
|
4385
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
4386
|
+
"userId": kwargs.get("user_id", missing),
|
4387
|
+
"page": kwargs.get("page", missing),
|
4388
|
+
"limit": kwargs.get("limit", missing),
|
4389
|
+
"sortBy": kwargs.get("sort_by", missing),
|
4390
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
4391
|
+
"displayName": kwargs.get("display_name", missing)
|
4392
|
+
}
|
4393
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
4394
|
+
|
4395
|
+
header_params = {
|
4396
|
+
"accept": "application/json",
|
4397
|
+
"content-type": "application/json",
|
4398
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4399
|
+
}
|
4400
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4401
|
+
|
4402
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4403
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4404
|
+
client_retry_strategy=self.retry_strategy
|
4405
|
+
)
|
4406
|
+
|
4407
|
+
if retry_strategy:
|
4408
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4409
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4410
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4411
|
+
return retry_strategy.make_retrying_call(
|
4412
|
+
self.base_client.call_api,
|
4413
|
+
resource_path=resource_path,
|
4414
|
+
method=method,
|
4415
|
+
path_params=path_params,
|
4416
|
+
query_params=query_params,
|
4417
|
+
header_params=header_params,
|
4418
|
+
response_type="list[BdsApiKeySummary]",
|
4419
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4420
|
+
operation_name=operation_name,
|
4421
|
+
api_reference_link=api_reference_link,
|
4422
|
+
required_arguments=required_arguments)
|
4423
|
+
else:
|
4424
|
+
return self.base_client.call_api(
|
4425
|
+
resource_path=resource_path,
|
4426
|
+
method=method,
|
4427
|
+
path_params=path_params,
|
4428
|
+
query_params=query_params,
|
4429
|
+
header_params=header_params,
|
4430
|
+
response_type="list[BdsApiKeySummary]",
|
4431
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4432
|
+
operation_name=operation_name,
|
4433
|
+
api_reference_link=api_reference_link,
|
4434
|
+
required_arguments=required_arguments)
|
4435
|
+
|
4436
|
+
def list_bds_instances(self, compartment_id, **kwargs):
|
4437
|
+
"""
|
4438
|
+
Returns a list of all Big Data Service clusters in a compartment.
|
4439
|
+
|
4440
|
+
|
4441
|
+
:param str compartment_id: (required)
|
4442
|
+
The OCID of the compartment.
|
4443
|
+
|
4444
|
+
:param str lifecycle_state: (optional)
|
4445
|
+
The state of the cluster.
|
4446
|
+
|
4447
|
+
Allowed values are: "CREATING", "ACTIVE", "UPDATING", "SUSPENDING", "SUSPENDED", "RESUMING", "DELETING", "DELETED", "FAILED", "INACTIVE"
|
4448
|
+
|
4449
|
+
:param str page: (optional)
|
4450
|
+
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
4451
|
+
|
4452
|
+
:param int limit: (optional)
|
4453
|
+
The maximum number of items to return.
|
4454
|
+
|
4455
|
+
:param str sort_by: (optional)
|
4456
|
+
The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
|
4457
|
+
|
4458
|
+
Allowed values are: "timeCreated", "displayName"
|
4459
|
+
|
4460
|
+
:param str sort_order: (optional)
|
4461
|
+
The sort order to use, either 'asc' or 'desc'.
|
4462
|
+
|
4463
|
+
Allowed values are: "ASC", "DESC"
|
4464
|
+
|
4465
|
+
:param str display_name: (optional)
|
4466
|
+
A filter to return only resources that match the entire display name given.
|
4467
|
+
|
4468
|
+
:param str opc_request_id: (optional)
|
4469
|
+
The client request ID for tracing.
|
4470
|
+
|
4471
|
+
:param obj retry_strategy: (optional)
|
4472
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4473
|
+
|
4474
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
4475
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4476
|
+
|
4477
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4478
|
+
|
4479
|
+
:param bool allow_control_chars: (optional)
|
4480
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4481
|
+
By default, the response will not allow control characters in strings
|
4482
|
+
|
4483
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.BdsInstanceSummary`
|
4484
|
+
:rtype: :class:`~oci.response.Response`
|
4485
|
+
|
4486
|
+
:example:
|
4487
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_bds_instances.py.html>`__ to see an example of how to use list_bds_instances API.
|
4488
|
+
"""
|
4489
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4490
|
+
required_arguments = ['compartmentId']
|
4491
|
+
resource_path = "/bdsInstances"
|
4492
|
+
method = "GET"
|
4493
|
+
operation_name = "list_bds_instances"
|
4494
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstanceSummary/ListBdsInstances"
|
4495
|
+
|
4496
|
+
# Don't accept unknown kwargs
|
4497
|
+
expected_kwargs = [
|
4498
|
+
"allow_control_chars",
|
4499
|
+
"retry_strategy",
|
4500
|
+
"lifecycle_state",
|
4501
|
+
"page",
|
4502
|
+
"limit",
|
4503
|
+
"sort_by",
|
4504
|
+
"sort_order",
|
4505
|
+
"display_name",
|
4506
|
+
"opc_request_id"
|
3201
4507
|
]
|
3202
4508
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3203
4509
|
if extra_kwargs:
|
3204
4510
|
raise ValueError(
|
3205
|
-
f"
|
4511
|
+
f"list_bds_instances got unknown kwargs: {extra_kwargs!r}")
|
3206
4512
|
|
3207
|
-
|
3208
|
-
"
|
3209
|
-
|
4513
|
+
if 'lifecycle_state' in kwargs:
|
4514
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "SUSPENDING", "SUSPENDED", "RESUMING", "DELETING", "DELETED", "FAILED", "INACTIVE"]
|
4515
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4516
|
+
raise ValueError(
|
4517
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4518
|
+
)
|
3210
4519
|
|
3211
|
-
|
4520
|
+
if 'sort_by' in kwargs:
|
4521
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
4522
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
4523
|
+
raise ValueError(
|
4524
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
4525
|
+
)
|
3212
4526
|
|
3213
|
-
|
3214
|
-
|
3215
|
-
|
4527
|
+
if 'sort_order' in kwargs:
|
4528
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
4529
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
4530
|
+
raise ValueError(
|
4531
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
4532
|
+
)
|
4533
|
+
|
4534
|
+
query_params = {
|
4535
|
+
"compartmentId": compartment_id,
|
4536
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
4537
|
+
"page": kwargs.get("page", missing),
|
4538
|
+
"limit": kwargs.get("limit", missing),
|
4539
|
+
"sortBy": kwargs.get("sort_by", missing),
|
4540
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
4541
|
+
"displayName": kwargs.get("display_name", missing)
|
4542
|
+
}
|
4543
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3216
4544
|
|
3217
4545
|
header_params = {
|
3218
4546
|
"accept": "application/json",
|
3219
4547
|
"content-type": "application/json",
|
3220
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3221
|
-
"if-match": kwargs.get("if_match", missing),
|
3222
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
4548
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
3223
4549
|
}
|
3224
4550
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3225
4551
|
|
@@ -3230,16 +4556,15 @@ class BdsClient(object):
|
|
3230
4556
|
|
3231
4557
|
if retry_strategy:
|
3232
4558
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3233
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
3234
4559
|
self.base_client.add_opc_client_retries_header(header_params)
|
3235
4560
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
3236
4561
|
return retry_strategy.make_retrying_call(
|
3237
4562
|
self.base_client.call_api,
|
3238
4563
|
resource_path=resource_path,
|
3239
4564
|
method=method,
|
3240
|
-
|
4565
|
+
query_params=query_params,
|
3241
4566
|
header_params=header_params,
|
3242
|
-
|
4567
|
+
response_type="list[BdsInstanceSummary]",
|
3243
4568
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3244
4569
|
operation_name=operation_name,
|
3245
4570
|
api_reference_link=api_reference_link,
|
@@ -3248,25 +4573,38 @@ class BdsClient(object):
|
|
3248
4573
|
return self.base_client.call_api(
|
3249
4574
|
resource_path=resource_path,
|
3250
4575
|
method=method,
|
3251
|
-
|
4576
|
+
query_params=query_params,
|
3252
4577
|
header_params=header_params,
|
3253
|
-
|
4578
|
+
response_type="list[BdsInstanceSummary]",
|
3254
4579
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3255
4580
|
operation_name=operation_name,
|
3256
4581
|
api_reference_link=api_reference_link,
|
3257
4582
|
required_arguments=required_arguments)
|
3258
4583
|
|
3259
|
-
def
|
4584
|
+
def list_bds_metastore_configurations(self, bds_instance_id, **kwargs):
|
3260
4585
|
"""
|
3261
|
-
Returns
|
3262
|
-
|
4586
|
+
Returns a list of metastore configurations ssociated with this Big Data Service cluster.
|
3263
4587
|
|
3264
|
-
:param str compartment_id: (required)
|
3265
|
-
The OCID of the compartment.
|
3266
4588
|
|
3267
4589
|
:param str bds_instance_id: (required)
|
3268
4590
|
The OCID of the cluster.
|
3269
4591
|
|
4592
|
+
:param str metastore_type: (optional)
|
4593
|
+
The type of the metastore in the metastore configuration
|
4594
|
+
|
4595
|
+
Allowed values are: "LOCAL", "EXTERNAL"
|
4596
|
+
|
4597
|
+
:param str metastore_id: (optional)
|
4598
|
+
The OCID of the Data Catalog metastore in the metastore configuration
|
4599
|
+
|
4600
|
+
:param str lifecycle_state: (optional)
|
4601
|
+
The lifecycle state of the metastore in the metastore configuration
|
4602
|
+
|
4603
|
+
Allowed values are: "CREATING", "ACTIVATING", "ACTIVE", "INACTIVE", "UPDATING", "FAILED", "DELETING", "DELETED"
|
4604
|
+
|
4605
|
+
:param str bds_api_key_id: (optional)
|
4606
|
+
The ID of the API key that is associated with the external metastore in the metastore configuration
|
4607
|
+
|
3270
4608
|
:param str page: (optional)
|
3271
4609
|
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
3272
4610
|
|
@@ -3286,11 +4624,6 @@ class BdsClient(object):
|
|
3286
4624
|
:param str display_name: (optional)
|
3287
4625
|
A filter to return only resources that match the entire display name given.
|
3288
4626
|
|
3289
|
-
:param str lifecycle_state: (optional)
|
3290
|
-
The state of the autoscale configuration.
|
3291
|
-
|
3292
|
-
Allowed values are: "CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
3293
|
-
|
3294
4627
|
:param str opc_request_id: (optional)
|
3295
4628
|
The client request ID for tracing.
|
3296
4629
|
|
@@ -3306,35 +4639,38 @@ class BdsClient(object):
|
|
3306
4639
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3307
4640
|
By default, the response will not allow control characters in strings
|
3308
4641
|
|
3309
|
-
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.
|
4642
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.BdsMetastoreConfigurationSummary`
|
3310
4643
|
:rtype: :class:`~oci.response.Response`
|
3311
4644
|
|
3312
4645
|
:example:
|
3313
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
4646
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_bds_metastore_configurations.py.html>`__ to see an example of how to use list_bds_metastore_configurations API.
|
3314
4647
|
"""
|
3315
4648
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3316
|
-
required_arguments = ['bdsInstanceId'
|
3317
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
4649
|
+
required_arguments = ['bdsInstanceId']
|
4650
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/metastoreConfigs"
|
3318
4651
|
method = "GET"
|
3319
|
-
operation_name = "
|
3320
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
4652
|
+
operation_name = "list_bds_metastore_configurations"
|
4653
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsMetastoreConfiguration/ListBdsMetastoreConfigurations"
|
3321
4654
|
|
3322
4655
|
# Don't accept unknown kwargs
|
3323
4656
|
expected_kwargs = [
|
3324
4657
|
"allow_control_chars",
|
3325
4658
|
"retry_strategy",
|
4659
|
+
"metastore_type",
|
4660
|
+
"metastore_id",
|
4661
|
+
"lifecycle_state",
|
4662
|
+
"bds_api_key_id",
|
3326
4663
|
"page",
|
3327
4664
|
"limit",
|
3328
4665
|
"sort_by",
|
3329
4666
|
"sort_order",
|
3330
4667
|
"display_name",
|
3331
|
-
"lifecycle_state",
|
3332
4668
|
"opc_request_id"
|
3333
4669
|
]
|
3334
4670
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3335
4671
|
if extra_kwargs:
|
3336
4672
|
raise ValueError(
|
3337
|
-
f"
|
4673
|
+
f"list_bds_metastore_configurations got unknown kwargs: {extra_kwargs!r}")
|
3338
4674
|
|
3339
4675
|
path_params = {
|
3340
4676
|
"bdsInstanceId": bds_instance_id
|
@@ -3346,6 +4682,20 @@ class BdsClient(object):
|
|
3346
4682
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3347
4683
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3348
4684
|
|
4685
|
+
if 'metastore_type' in kwargs:
|
4686
|
+
metastore_type_allowed_values = ["LOCAL", "EXTERNAL"]
|
4687
|
+
if kwargs['metastore_type'] not in metastore_type_allowed_values:
|
4688
|
+
raise ValueError(
|
4689
|
+
f"Invalid value for `metastore_type`, must be one of { metastore_type_allowed_values }"
|
4690
|
+
)
|
4691
|
+
|
4692
|
+
if 'lifecycle_state' in kwargs:
|
4693
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVATING", "ACTIVE", "INACTIVE", "UPDATING", "FAILED", "DELETING", "DELETED"]
|
4694
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4695
|
+
raise ValueError(
|
4696
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4697
|
+
)
|
4698
|
+
|
3349
4699
|
if 'sort_by' in kwargs:
|
3350
4700
|
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3351
4701
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
@@ -3360,21 +4710,16 @@ class BdsClient(object):
|
|
3360
4710
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3361
4711
|
)
|
3362
4712
|
|
3363
|
-
if 'lifecycle_state' in kwargs:
|
3364
|
-
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "INACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
3365
|
-
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
3366
|
-
raise ValueError(
|
3367
|
-
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
3368
|
-
)
|
3369
|
-
|
3370
4713
|
query_params = {
|
3371
|
-
"
|
4714
|
+
"metastoreType": kwargs.get("metastore_type", missing),
|
4715
|
+
"metastoreId": kwargs.get("metastore_id", missing),
|
4716
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
4717
|
+
"bdsApiKeyId": kwargs.get("bds_api_key_id", missing),
|
3372
4718
|
"page": kwargs.get("page", missing),
|
3373
4719
|
"limit": kwargs.get("limit", missing),
|
3374
4720
|
"sortBy": kwargs.get("sort_by", missing),
|
3375
4721
|
"sortOrder": kwargs.get("sort_order", missing),
|
3376
|
-
"displayName": kwargs.get("display_name", missing)
|
3377
|
-
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
4722
|
+
"displayName": kwargs.get("display_name", missing)
|
3378
4723
|
}
|
3379
4724
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3380
4725
|
|
@@ -3401,7 +4746,7 @@ class BdsClient(object):
|
|
3401
4746
|
path_params=path_params,
|
3402
4747
|
query_params=query_params,
|
3403
4748
|
header_params=header_params,
|
3404
|
-
response_type="list[
|
4749
|
+
response_type="list[BdsMetastoreConfigurationSummary]",
|
3405
4750
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3406
4751
|
operation_name=operation_name,
|
3407
4752
|
api_reference_link=api_reference_link,
|
@@ -3413,28 +4758,20 @@ class BdsClient(object):
|
|
3413
4758
|
path_params=path_params,
|
3414
4759
|
query_params=query_params,
|
3415
4760
|
header_params=header_params,
|
3416
|
-
response_type="list[
|
4761
|
+
response_type="list[BdsMetastoreConfigurationSummary]",
|
3417
4762
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3418
4763
|
operation_name=operation_name,
|
3419
4764
|
api_reference_link=api_reference_link,
|
3420
4765
|
required_arguments=required_arguments)
|
3421
4766
|
|
3422
|
-
def
|
4767
|
+
def list_node_backup_configurations(self, bds_instance_id, **kwargs):
|
3423
4768
|
"""
|
3424
|
-
Returns
|
4769
|
+
Returns information about the NodeBackupConfigurations.
|
3425
4770
|
|
3426
4771
|
|
3427
4772
|
:param str bds_instance_id: (required)
|
3428
4773
|
The OCID of the cluster.
|
3429
4774
|
|
3430
|
-
:param str lifecycle_state: (optional)
|
3431
|
-
The state of the API key.
|
3432
|
-
|
3433
|
-
Allowed values are: "CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
|
3434
|
-
|
3435
|
-
:param str user_id: (optional)
|
3436
|
-
The OCID of the user for whom the API key belongs.
|
3437
|
-
|
3438
4775
|
:param str page: (optional)
|
3439
4776
|
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
3440
4777
|
|
@@ -3454,6 +4791,11 @@ class BdsClient(object):
|
|
3454
4791
|
:param str display_name: (optional)
|
3455
4792
|
A filter to return only resources that match the entire display name given.
|
3456
4793
|
|
4794
|
+
:param str lifecycle_state: (optional)
|
4795
|
+
The state of the NodeBackupConfiguration configuration.
|
4796
|
+
|
4797
|
+
Allowed values are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
4798
|
+
|
3457
4799
|
:param str opc_request_id: (optional)
|
3458
4800
|
The client request ID for tracing.
|
3459
4801
|
|
@@ -3469,36 +4811,35 @@ class BdsClient(object):
|
|
3469
4811
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3470
4812
|
By default, the response will not allow control characters in strings
|
3471
4813
|
|
3472
|
-
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.
|
4814
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.NodeBackupConfigurationSummary`
|
3473
4815
|
:rtype: :class:`~oci.response.Response`
|
3474
4816
|
|
3475
4817
|
:example:
|
3476
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
4818
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_node_backup_configurations.py.html>`__ to see an example of how to use list_node_backup_configurations API.
|
3477
4819
|
"""
|
3478
4820
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3479
4821
|
required_arguments = ['bdsInstanceId']
|
3480
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
4822
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackupConfigurations"
|
3481
4823
|
method = "GET"
|
3482
|
-
operation_name = "
|
3483
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
4824
|
+
operation_name = "list_node_backup_configurations"
|
4825
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackupConfigurations"
|
3484
4826
|
|
3485
4827
|
# Don't accept unknown kwargs
|
3486
4828
|
expected_kwargs = [
|
3487
4829
|
"allow_control_chars",
|
3488
4830
|
"retry_strategy",
|
3489
|
-
"lifecycle_state",
|
3490
|
-
"user_id",
|
3491
4831
|
"page",
|
3492
4832
|
"limit",
|
3493
4833
|
"sort_by",
|
3494
4834
|
"sort_order",
|
3495
4835
|
"display_name",
|
4836
|
+
"lifecycle_state",
|
3496
4837
|
"opc_request_id"
|
3497
4838
|
]
|
3498
4839
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3499
4840
|
if extra_kwargs:
|
3500
4841
|
raise ValueError(
|
3501
|
-
f"
|
4842
|
+
f"list_node_backup_configurations got unknown kwargs: {extra_kwargs!r}")
|
3502
4843
|
|
3503
4844
|
path_params = {
|
3504
4845
|
"bdsInstanceId": bds_instance_id
|
@@ -3510,13 +4851,6 @@ class BdsClient(object):
|
|
3510
4851
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3511
4852
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3512
4853
|
|
3513
|
-
if 'lifecycle_state' in kwargs:
|
3514
|
-
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
|
3515
|
-
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
3516
|
-
raise ValueError(
|
3517
|
-
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
3518
|
-
)
|
3519
|
-
|
3520
4854
|
if 'sort_by' in kwargs:
|
3521
4855
|
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3522
4856
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
@@ -3531,14 +4865,20 @@ class BdsClient(object):
|
|
3531
4865
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3532
4866
|
)
|
3533
4867
|
|
4868
|
+
if 'lifecycle_state' in kwargs:
|
4869
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
4870
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
4871
|
+
raise ValueError(
|
4872
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
4873
|
+
)
|
4874
|
+
|
3534
4875
|
query_params = {
|
3535
|
-
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3536
|
-
"userId": kwargs.get("user_id", missing),
|
3537
4876
|
"page": kwargs.get("page", missing),
|
3538
4877
|
"limit": kwargs.get("limit", missing),
|
3539
4878
|
"sortBy": kwargs.get("sort_by", missing),
|
3540
4879
|
"sortOrder": kwargs.get("sort_order", missing),
|
3541
|
-
"displayName": kwargs.get("display_name", missing)
|
4880
|
+
"displayName": kwargs.get("display_name", missing),
|
4881
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
3542
4882
|
}
|
3543
4883
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3544
4884
|
|
@@ -3565,7 +4905,7 @@ class BdsClient(object):
|
|
3565
4905
|
path_params=path_params,
|
3566
4906
|
query_params=query_params,
|
3567
4907
|
header_params=header_params,
|
3568
|
-
response_type="list[
|
4908
|
+
response_type="list[NodeBackupConfigurationSummary]",
|
3569
4909
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3570
4910
|
operation_name=operation_name,
|
3571
4911
|
api_reference_link=api_reference_link,
|
@@ -3577,24 +4917,19 @@ class BdsClient(object):
|
|
3577
4917
|
path_params=path_params,
|
3578
4918
|
query_params=query_params,
|
3579
4919
|
header_params=header_params,
|
3580
|
-
response_type="list[
|
4920
|
+
response_type="list[NodeBackupConfigurationSummary]",
|
3581
4921
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3582
4922
|
operation_name=operation_name,
|
3583
4923
|
api_reference_link=api_reference_link,
|
3584
4924
|
required_arguments=required_arguments)
|
3585
4925
|
|
3586
|
-
def
|
4926
|
+
def list_node_backups(self, bds_instance_id, **kwargs):
|
3587
4927
|
"""
|
3588
|
-
Returns
|
3589
|
-
|
3590
|
-
|
3591
|
-
:param str compartment_id: (required)
|
3592
|
-
The OCID of the compartment.
|
4928
|
+
Returns information about the node Backups.
|
3593
4929
|
|
3594
|
-
:param str lifecycle_state: (optional)
|
3595
|
-
The state of the cluster.
|
3596
4930
|
|
3597
|
-
|
4931
|
+
:param str bds_instance_id: (required)
|
4932
|
+
The OCID of the cluster.
|
3598
4933
|
|
3599
4934
|
:param str page: (optional)
|
3600
4935
|
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
@@ -3612,12 +4947,20 @@ class BdsClient(object):
|
|
3612
4947
|
|
3613
4948
|
Allowed values are: "ASC", "DESC"
|
3614
4949
|
|
3615
|
-
:param str
|
3616
|
-
|
4950
|
+
:param str node_host_name: (optional)
|
4951
|
+
The node host name belonged to a node that has a node backup.
|
4952
|
+
|
4953
|
+
:param str lifecycle_state: (optional)
|
4954
|
+
The state of the Node's Backup.
|
4955
|
+
|
4956
|
+
Allowed values are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "PARTIAL"
|
3617
4957
|
|
3618
4958
|
:param str opc_request_id: (optional)
|
3619
4959
|
The client request ID for tracing.
|
3620
4960
|
|
4961
|
+
:param str display_name: (optional)
|
4962
|
+
The display name belonged to the node backup.
|
4963
|
+
|
3621
4964
|
:param obj retry_strategy: (optional)
|
3622
4965
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3623
4966
|
|
@@ -3630,42 +4973,46 @@ class BdsClient(object):
|
|
3630
4973
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3631
4974
|
By default, the response will not allow control characters in strings
|
3632
4975
|
|
3633
|
-
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.
|
4976
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.NodeBackupSummary`
|
3634
4977
|
:rtype: :class:`~oci.response.Response`
|
3635
4978
|
|
3636
4979
|
:example:
|
3637
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
4980
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_node_backups.py.html>`__ to see an example of how to use list_node_backups API.
|
3638
4981
|
"""
|
3639
4982
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3640
|
-
required_arguments = ['
|
3641
|
-
resource_path = "/bdsInstances"
|
4983
|
+
required_arguments = ['bdsInstanceId']
|
4984
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackups"
|
3642
4985
|
method = "GET"
|
3643
|
-
operation_name = "
|
3644
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
4986
|
+
operation_name = "list_node_backups"
|
4987
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeBackups"
|
3645
4988
|
|
3646
4989
|
# Don't accept unknown kwargs
|
3647
4990
|
expected_kwargs = [
|
3648
4991
|
"allow_control_chars",
|
3649
4992
|
"retry_strategy",
|
3650
|
-
"lifecycle_state",
|
3651
4993
|
"page",
|
3652
4994
|
"limit",
|
3653
4995
|
"sort_by",
|
3654
4996
|
"sort_order",
|
3655
|
-
"
|
3656
|
-
"
|
4997
|
+
"node_host_name",
|
4998
|
+
"lifecycle_state",
|
4999
|
+
"opc_request_id",
|
5000
|
+
"display_name"
|
3657
5001
|
]
|
3658
5002
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3659
5003
|
if extra_kwargs:
|
3660
5004
|
raise ValueError(
|
3661
|
-
f"
|
5005
|
+
f"list_node_backups got unknown kwargs: {extra_kwargs!r}")
|
3662
5006
|
|
3663
|
-
|
3664
|
-
|
3665
|
-
|
3666
|
-
|
3667
|
-
|
3668
|
-
|
5007
|
+
path_params = {
|
5008
|
+
"bdsInstanceId": bds_instance_id
|
5009
|
+
}
|
5010
|
+
|
5011
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
5012
|
+
|
5013
|
+
for (k, v) in six.iteritems(path_params):
|
5014
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
5015
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3669
5016
|
|
3670
5017
|
if 'sort_by' in kwargs:
|
3671
5018
|
sort_by_allowed_values = ["timeCreated", "displayName"]
|
@@ -3681,13 +5028,20 @@ class BdsClient(object):
|
|
3681
5028
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3682
5029
|
)
|
3683
5030
|
|
5031
|
+
if 'lifecycle_state' in kwargs:
|
5032
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED", "PARTIAL"]
|
5033
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
5034
|
+
raise ValueError(
|
5035
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
5036
|
+
)
|
5037
|
+
|
3684
5038
|
query_params = {
|
3685
|
-
"compartmentId": compartment_id,
|
3686
|
-
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3687
5039
|
"page": kwargs.get("page", missing),
|
3688
5040
|
"limit": kwargs.get("limit", missing),
|
3689
5041
|
"sortBy": kwargs.get("sort_by", missing),
|
3690
5042
|
"sortOrder": kwargs.get("sort_order", missing),
|
5043
|
+
"nodeHostName": kwargs.get("node_host_name", missing),
|
5044
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3691
5045
|
"displayName": kwargs.get("display_name", missing)
|
3692
5046
|
}
|
3693
5047
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
@@ -3712,9 +5066,10 @@ class BdsClient(object):
|
|
3712
5066
|
self.base_client.call_api,
|
3713
5067
|
resource_path=resource_path,
|
3714
5068
|
method=method,
|
5069
|
+
path_params=path_params,
|
3715
5070
|
query_params=query_params,
|
3716
5071
|
header_params=header_params,
|
3717
|
-
response_type="list[
|
5072
|
+
response_type="list[NodeBackupSummary]",
|
3718
5073
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3719
5074
|
operation_name=operation_name,
|
3720
5075
|
api_reference_link=api_reference_link,
|
@@ -3723,37 +5078,22 @@ class BdsClient(object):
|
|
3723
5078
|
return self.base_client.call_api(
|
3724
5079
|
resource_path=resource_path,
|
3725
5080
|
method=method,
|
5081
|
+
path_params=path_params,
|
3726
5082
|
query_params=query_params,
|
3727
5083
|
header_params=header_params,
|
3728
|
-
response_type="list[
|
5084
|
+
response_type="list[NodeBackupSummary]",
|
3729
5085
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3730
5086
|
operation_name=operation_name,
|
3731
5087
|
api_reference_link=api_reference_link,
|
3732
5088
|
required_arguments=required_arguments)
|
3733
5089
|
|
3734
|
-
def
|
5090
|
+
def list_node_replace_configurations(self, bds_instance_id, **kwargs):
|
3735
5091
|
"""
|
3736
|
-
Returns
|
5092
|
+
Returns information about the NodeReplaceConfiguration.
|
3737
5093
|
|
3738
5094
|
|
3739
5095
|
:param str bds_instance_id: (required)
|
3740
|
-
The OCID of the cluster.
|
3741
|
-
|
3742
|
-
:param str metastore_type: (optional)
|
3743
|
-
The type of the metastore in the metastore configuration
|
3744
|
-
|
3745
|
-
Allowed values are: "LOCAL", "EXTERNAL"
|
3746
|
-
|
3747
|
-
:param str metastore_id: (optional)
|
3748
|
-
The OCID of the Data Catalog metastore in the metastore configuration
|
3749
|
-
|
3750
|
-
:param str lifecycle_state: (optional)
|
3751
|
-
The lifecycle state of the metastore in the metastore configuration
|
3752
|
-
|
3753
|
-
Allowed values are: "CREATING", "ACTIVATING", "ACTIVE", "INACTIVE", "UPDATING", "FAILED", "DELETING", "DELETED"
|
3754
|
-
|
3755
|
-
:param str bds_api_key_id: (optional)
|
3756
|
-
The ID of the API key that is associated with the external metastore in the metastore configuration
|
5096
|
+
The OCID of the cluster.
|
3757
5097
|
|
3758
5098
|
:param str page: (optional)
|
3759
5099
|
The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
|
@@ -3774,6 +5114,11 @@ class BdsClient(object):
|
|
3774
5114
|
:param str display_name: (optional)
|
3775
5115
|
A filter to return only resources that match the entire display name given.
|
3776
5116
|
|
5117
|
+
:param str lifecycle_state: (optional)
|
5118
|
+
The state of the NodeReplaceConfiguration.
|
5119
|
+
|
5120
|
+
Allowed values are: "CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"
|
5121
|
+
|
3777
5122
|
:param str opc_request_id: (optional)
|
3778
5123
|
The client request ID for tracing.
|
3779
5124
|
|
@@ -3789,38 +5134,35 @@ class BdsClient(object):
|
|
3789
5134
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3790
5135
|
By default, the response will not allow control characters in strings
|
3791
5136
|
|
3792
|
-
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.
|
5137
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.bds.models.NodeReplaceConfigurationSummary`
|
3793
5138
|
:rtype: :class:`~oci.response.Response`
|
3794
5139
|
|
3795
5140
|
:example:
|
3796
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5141
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_node_replace_configurations.py.html>`__ to see an example of how to use list_node_replace_configurations API.
|
3797
5142
|
"""
|
3798
5143
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3799
5144
|
required_arguments = ['bdsInstanceId']
|
3800
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/
|
5145
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeReplaceConfigurations"
|
3801
5146
|
method = "GET"
|
3802
|
-
operation_name = "
|
3803
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/
|
5147
|
+
operation_name = "list_node_replace_configurations"
|
5148
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ListNodeReplaceConfigurations"
|
3804
5149
|
|
3805
5150
|
# Don't accept unknown kwargs
|
3806
5151
|
expected_kwargs = [
|
3807
5152
|
"allow_control_chars",
|
3808
5153
|
"retry_strategy",
|
3809
|
-
"metastore_type",
|
3810
|
-
"metastore_id",
|
3811
|
-
"lifecycle_state",
|
3812
|
-
"bds_api_key_id",
|
3813
5154
|
"page",
|
3814
5155
|
"limit",
|
3815
5156
|
"sort_by",
|
3816
5157
|
"sort_order",
|
3817
5158
|
"display_name",
|
5159
|
+
"lifecycle_state",
|
3818
5160
|
"opc_request_id"
|
3819
5161
|
]
|
3820
5162
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3821
5163
|
if extra_kwargs:
|
3822
5164
|
raise ValueError(
|
3823
|
-
f"
|
5165
|
+
f"list_node_replace_configurations got unknown kwargs: {extra_kwargs!r}")
|
3824
5166
|
|
3825
5167
|
path_params = {
|
3826
5168
|
"bdsInstanceId": bds_instance_id
|
@@ -3832,20 +5174,6 @@ class BdsClient(object):
|
|
3832
5174
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3833
5175
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3834
5176
|
|
3835
|
-
if 'metastore_type' in kwargs:
|
3836
|
-
metastore_type_allowed_values = ["LOCAL", "EXTERNAL"]
|
3837
|
-
if kwargs['metastore_type'] not in metastore_type_allowed_values:
|
3838
|
-
raise ValueError(
|
3839
|
-
f"Invalid value for `metastore_type`, must be one of { metastore_type_allowed_values }"
|
3840
|
-
)
|
3841
|
-
|
3842
|
-
if 'lifecycle_state' in kwargs:
|
3843
|
-
lifecycle_state_allowed_values = ["CREATING", "ACTIVATING", "ACTIVE", "INACTIVE", "UPDATING", "FAILED", "DELETING", "DELETED"]
|
3844
|
-
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
3845
|
-
raise ValueError(
|
3846
|
-
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
3847
|
-
)
|
3848
|
-
|
3849
5177
|
if 'sort_by' in kwargs:
|
3850
5178
|
sort_by_allowed_values = ["timeCreated", "displayName"]
|
3851
5179
|
if kwargs['sort_by'] not in sort_by_allowed_values:
|
@@ -3860,16 +5188,20 @@ class BdsClient(object):
|
|
3860
5188
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
3861
5189
|
)
|
3862
5190
|
|
5191
|
+
if 'lifecycle_state' in kwargs:
|
5192
|
+
lifecycle_state_allowed_values = ["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]
|
5193
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
5194
|
+
raise ValueError(
|
5195
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
5196
|
+
)
|
5197
|
+
|
3863
5198
|
query_params = {
|
3864
|
-
"metastoreType": kwargs.get("metastore_type", missing),
|
3865
|
-
"metastoreId": kwargs.get("metastore_id", missing),
|
3866
|
-
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
3867
|
-
"bdsApiKeyId": kwargs.get("bds_api_key_id", missing),
|
3868
5199
|
"page": kwargs.get("page", missing),
|
3869
5200
|
"limit": kwargs.get("limit", missing),
|
3870
5201
|
"sortBy": kwargs.get("sort_by", missing),
|
3871
5202
|
"sortOrder": kwargs.get("sort_order", missing),
|
3872
|
-
"displayName": kwargs.get("display_name", missing)
|
5203
|
+
"displayName": kwargs.get("display_name", missing),
|
5204
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing)
|
3873
5205
|
}
|
3874
5206
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3875
5207
|
|
@@ -3896,7 +5228,7 @@ class BdsClient(object):
|
|
3896
5228
|
path_params=path_params,
|
3897
5229
|
query_params=query_params,
|
3898
5230
|
header_params=header_params,
|
3899
|
-
response_type="list[
|
5231
|
+
response_type="list[NodeReplaceConfigurationSummary]",
|
3900
5232
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3901
5233
|
operation_name=operation_name,
|
3902
5234
|
api_reference_link=api_reference_link,
|
@@ -3908,7 +5240,7 @@ class BdsClient(object):
|
|
3908
5240
|
path_params=path_params,
|
3909
5241
|
query_params=query_params,
|
3910
5242
|
header_params=header_params,
|
3911
|
-
response_type="list[
|
5243
|
+
response_type="list[NodeReplaceConfigurationSummary]",
|
3912
5244
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3913
5245
|
operation_name=operation_name,
|
3914
5246
|
api_reference_link=api_reference_link,
|
@@ -3971,7 +5303,7 @@ class BdsClient(object):
|
|
3971
5303
|
:rtype: :class:`~oci.response.Response`
|
3972
5304
|
|
3973
5305
|
:example:
|
3974
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5306
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_os_patches.py.html>`__ to see an example of how to use list_os_patches API.
|
3975
5307
|
"""
|
3976
5308
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3977
5309
|
required_arguments = ['bdsInstanceId']
|
@@ -4129,7 +5461,7 @@ class BdsClient(object):
|
|
4129
5461
|
:rtype: :class:`~oci.response.Response`
|
4130
5462
|
|
4131
5463
|
:example:
|
4132
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5464
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_patch_histories.py.html>`__ to see an example of how to use list_patch_histories API.
|
4133
5465
|
"""
|
4134
5466
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4135
5467
|
required_arguments = ['bdsInstanceId']
|
@@ -4279,7 +5611,7 @@ class BdsClient(object):
|
|
4279
5611
|
:rtype: :class:`~oci.response.Response`
|
4280
5612
|
|
4281
5613
|
:example:
|
4282
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5614
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_patches.py.html>`__ to see an example of how to use list_patches API.
|
4283
5615
|
"""
|
4284
5616
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4285
5617
|
required_arguments = ['bdsInstanceId']
|
@@ -4401,7 +5733,7 @@ class BdsClient(object):
|
|
4401
5733
|
:rtype: :class:`~oci.response.Response`
|
4402
5734
|
|
4403
5735
|
:example:
|
4404
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5736
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
4405
5737
|
"""
|
4406
5738
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4407
5739
|
required_arguments = ['workRequestId']
|
@@ -4541,7 +5873,7 @@ class BdsClient(object):
|
|
4541
5873
|
:rtype: :class:`~oci.response.Response`
|
4542
5874
|
|
4543
5875
|
:example:
|
4544
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
5876
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
4545
5877
|
"""
|
4546
5878
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4547
5879
|
required_arguments = ['workRequestId']
|
@@ -4684,7 +6016,7 @@ class BdsClient(object):
|
|
4684
6016
|
:rtype: :class:`~oci.response.Response`
|
4685
6017
|
|
4686
6018
|
:example:
|
4687
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6019
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
4688
6020
|
"""
|
4689
6021
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4690
6022
|
required_arguments = ['compartmentId']
|
@@ -4819,7 +6151,7 @@ class BdsClient(object):
|
|
4819
6151
|
:rtype: :class:`~oci.response.Response`
|
4820
6152
|
|
4821
6153
|
:example:
|
4822
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6154
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/remove_auto_scaling_configuration.py.html>`__ to see an example of how to use remove_auto_scaling_configuration API.
|
4823
6155
|
"""
|
4824
6156
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4825
6157
|
required_arguments = ['bdsInstanceId', 'autoScalingConfigurationId']
|
@@ -4938,7 +6270,7 @@ class BdsClient(object):
|
|
4938
6270
|
:rtype: :class:`~oci.response.Response`
|
4939
6271
|
|
4940
6272
|
:example:
|
4941
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6273
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/remove_cloud_sql.py.html>`__ to see an example of how to use remove_cloud_sql API.
|
4942
6274
|
"""
|
4943
6275
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4944
6276
|
required_arguments = ['bdsInstanceId']
|
@@ -5056,7 +6388,7 @@ class BdsClient(object):
|
|
5056
6388
|
:rtype: :class:`~oci.response.Response`
|
5057
6389
|
|
5058
6390
|
:example:
|
5059
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6391
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/remove_kafka.py.html>`__ to see an example of how to use remove_kafka API.
|
5060
6392
|
"""
|
5061
6393
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5062
6394
|
required_arguments = ['bdsInstanceId']
|
@@ -5167,26 +6499,264 @@ class BdsClient(object):
|
|
5167
6499
|
:rtype: :class:`~oci.response.Response`
|
5168
6500
|
|
5169
6501
|
:example:
|
5170
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6502
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/remove_node.py.html>`__ to see an example of how to use remove_node API.
|
6503
|
+
"""
|
6504
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6505
|
+
required_arguments = ['bdsInstanceId']
|
6506
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/removeNode"
|
6507
|
+
method = "POST"
|
6508
|
+
operation_name = "remove_node"
|
6509
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/RemoveNode"
|
6510
|
+
|
6511
|
+
# Don't accept unknown kwargs
|
6512
|
+
expected_kwargs = [
|
6513
|
+
"allow_control_chars",
|
6514
|
+
"retry_strategy",
|
6515
|
+
"opc_request_id",
|
6516
|
+
"if_match"
|
6517
|
+
]
|
6518
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6519
|
+
if extra_kwargs:
|
6520
|
+
raise ValueError(
|
6521
|
+
f"remove_node got unknown kwargs: {extra_kwargs!r}")
|
6522
|
+
|
6523
|
+
path_params = {
|
6524
|
+
"bdsInstanceId": bds_instance_id
|
6525
|
+
}
|
6526
|
+
|
6527
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6528
|
+
|
6529
|
+
for (k, v) in six.iteritems(path_params):
|
6530
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6531
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6532
|
+
|
6533
|
+
header_params = {
|
6534
|
+
"accept": "application/json",
|
6535
|
+
"content-type": "application/json",
|
6536
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
6537
|
+
"if-match": kwargs.get("if_match", missing)
|
6538
|
+
}
|
6539
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6540
|
+
|
6541
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6542
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6543
|
+
client_retry_strategy=self.retry_strategy
|
6544
|
+
)
|
6545
|
+
|
6546
|
+
if retry_strategy:
|
6547
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6548
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6549
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6550
|
+
return retry_strategy.make_retrying_call(
|
6551
|
+
self.base_client.call_api,
|
6552
|
+
resource_path=resource_path,
|
6553
|
+
method=method,
|
6554
|
+
path_params=path_params,
|
6555
|
+
header_params=header_params,
|
6556
|
+
body=remove_node_details,
|
6557
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6558
|
+
operation_name=operation_name,
|
6559
|
+
api_reference_link=api_reference_link,
|
6560
|
+
required_arguments=required_arguments)
|
6561
|
+
else:
|
6562
|
+
return self.base_client.call_api(
|
6563
|
+
resource_path=resource_path,
|
6564
|
+
method=method,
|
6565
|
+
path_params=path_params,
|
6566
|
+
header_params=header_params,
|
6567
|
+
body=remove_node_details,
|
6568
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6569
|
+
operation_name=operation_name,
|
6570
|
+
api_reference_link=api_reference_link,
|
6571
|
+
required_arguments=required_arguments)
|
6572
|
+
|
6573
|
+
def remove_node_replace_configuration(self, bds_instance_id, node_replace_configuration_id, remove_node_replace_configuration_details, **kwargs):
|
6574
|
+
"""
|
6575
|
+
Deletes a nodeReplaceConfiguration
|
6576
|
+
|
6577
|
+
|
6578
|
+
:param str bds_instance_id: (required)
|
6579
|
+
The OCID of the cluster.
|
6580
|
+
|
6581
|
+
:param str node_replace_configuration_id: (required)
|
6582
|
+
Unique Oracle-assigned identifier of the NodeReplaceConfiguration.
|
6583
|
+
|
6584
|
+
:param oci.bds.models.RemoveNodeReplaceConfigurationDetails remove_node_replace_configuration_details: (required)
|
6585
|
+
Details for removing NodeReplaceConfiguration
|
6586
|
+
|
6587
|
+
:param str opc_request_id: (optional)
|
6588
|
+
The client request ID for tracing.
|
6589
|
+
|
6590
|
+
:param str if_match: (optional)
|
6591
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
6592
|
+
for a resource, set the `if-match` parameter to the value of the
|
6593
|
+
etag from a previous GET or POST response for that resource.
|
6594
|
+
The resource will be updated or deleted only if the etag you
|
6595
|
+
provide matches the resource's current etag value.
|
6596
|
+
|
6597
|
+
:param str opc_retry_token: (optional)
|
6598
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
6599
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
6600
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
6601
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
6602
|
+
might be rejected.
|
6603
|
+
|
6604
|
+
:param obj retry_strategy: (optional)
|
6605
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6606
|
+
|
6607
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
6608
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6609
|
+
|
6610
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6611
|
+
|
6612
|
+
:param bool allow_control_chars: (optional)
|
6613
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6614
|
+
By default, the response will not allow control characters in strings
|
6615
|
+
|
6616
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
6617
|
+
:rtype: :class:`~oci.response.Response`
|
6618
|
+
|
6619
|
+
:example:
|
6620
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/remove_node_replace_configuration.py.html>`__ to see an example of how to use remove_node_replace_configuration API.
|
6621
|
+
"""
|
6622
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6623
|
+
required_arguments = ['bdsInstanceId', 'nodeReplaceConfigurationId']
|
6624
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeReplaceConfigurations/{nodeReplaceConfigurationId}/actions/remove"
|
6625
|
+
method = "POST"
|
6626
|
+
operation_name = "remove_node_replace_configuration"
|
6627
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/NodeReplaceConfiguration/RemoveNodeReplaceConfiguration"
|
6628
|
+
|
6629
|
+
# Don't accept unknown kwargs
|
6630
|
+
expected_kwargs = [
|
6631
|
+
"allow_control_chars",
|
6632
|
+
"retry_strategy",
|
6633
|
+
"opc_request_id",
|
6634
|
+
"if_match",
|
6635
|
+
"opc_retry_token"
|
6636
|
+
]
|
6637
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6638
|
+
if extra_kwargs:
|
6639
|
+
raise ValueError(
|
6640
|
+
f"remove_node_replace_configuration got unknown kwargs: {extra_kwargs!r}")
|
6641
|
+
|
6642
|
+
path_params = {
|
6643
|
+
"bdsInstanceId": bds_instance_id,
|
6644
|
+
"nodeReplaceConfigurationId": node_replace_configuration_id
|
6645
|
+
}
|
6646
|
+
|
6647
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6648
|
+
|
6649
|
+
for (k, v) in six.iteritems(path_params):
|
6650
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6651
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6652
|
+
|
6653
|
+
header_params = {
|
6654
|
+
"accept": "application/json",
|
6655
|
+
"content-type": "application/json",
|
6656
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
6657
|
+
"if-match": kwargs.get("if_match", missing),
|
6658
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
6659
|
+
}
|
6660
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6661
|
+
|
6662
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
6663
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
6664
|
+
client_retry_strategy=self.retry_strategy
|
6665
|
+
)
|
6666
|
+
|
6667
|
+
if retry_strategy:
|
6668
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6669
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
6670
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
6671
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6672
|
+
return retry_strategy.make_retrying_call(
|
6673
|
+
self.base_client.call_api,
|
6674
|
+
resource_path=resource_path,
|
6675
|
+
method=method,
|
6676
|
+
path_params=path_params,
|
6677
|
+
header_params=header_params,
|
6678
|
+
body=remove_node_replace_configuration_details,
|
6679
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6680
|
+
operation_name=operation_name,
|
6681
|
+
api_reference_link=api_reference_link,
|
6682
|
+
required_arguments=required_arguments)
|
6683
|
+
else:
|
6684
|
+
return self.base_client.call_api(
|
6685
|
+
resource_path=resource_path,
|
6686
|
+
method=method,
|
6687
|
+
path_params=path_params,
|
6688
|
+
header_params=header_params,
|
6689
|
+
body=remove_node_replace_configuration_details,
|
6690
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
6691
|
+
operation_name=operation_name,
|
6692
|
+
api_reference_link=api_reference_link,
|
6693
|
+
required_arguments=required_arguments)
|
6694
|
+
|
6695
|
+
def renew_certificate(self, bds_instance_id, renew_certificate_details, **kwargs):
|
6696
|
+
"""
|
6697
|
+
Renewing TLS/SSL for various ODH services running on the BDS cluster.
|
6698
|
+
|
6699
|
+
|
6700
|
+
:param str bds_instance_id: (required)
|
6701
|
+
The OCID of the cluster.
|
6702
|
+
|
6703
|
+
:param oci.bds.models.RenewCertificateDetails renew_certificate_details: (required)
|
6704
|
+
Details for renewing certificate.
|
6705
|
+
|
6706
|
+
:param str opc_request_id: (optional)
|
6707
|
+
The client request ID for tracing.
|
6708
|
+
|
6709
|
+
:param str if_match: (optional)
|
6710
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
6711
|
+
for a resource, set the `if-match` parameter to the value of the
|
6712
|
+
etag from a previous GET or POST response for that resource.
|
6713
|
+
The resource will be updated or deleted only if the etag you
|
6714
|
+
provide matches the resource's current etag value.
|
6715
|
+
|
6716
|
+
:param str opc_retry_token: (optional)
|
6717
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
6718
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
6719
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
6720
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
6721
|
+
might be rejected.
|
6722
|
+
|
6723
|
+
:param obj retry_strategy: (optional)
|
6724
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6725
|
+
|
6726
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
6727
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
6728
|
+
|
6729
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
6730
|
+
|
6731
|
+
:param bool allow_control_chars: (optional)
|
6732
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6733
|
+
By default, the response will not allow control characters in strings
|
6734
|
+
|
6735
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
6736
|
+
:rtype: :class:`~oci.response.Response`
|
6737
|
+
|
6738
|
+
:example:
|
6739
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/renew_certificate.py.html>`__ to see an example of how to use renew_certificate API.
|
5171
6740
|
"""
|
5172
6741
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5173
6742
|
required_arguments = ['bdsInstanceId']
|
5174
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/actions/
|
6743
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/renewOdhServiceCertificate"
|
5175
6744
|
method = "POST"
|
5176
|
-
operation_name = "
|
5177
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
6745
|
+
operation_name = "renew_certificate"
|
6746
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/RenewCertificate"
|
5178
6747
|
|
5179
6748
|
# Don't accept unknown kwargs
|
5180
6749
|
expected_kwargs = [
|
5181
6750
|
"allow_control_chars",
|
5182
6751
|
"retry_strategy",
|
5183
6752
|
"opc_request_id",
|
5184
|
-
"if_match"
|
6753
|
+
"if_match",
|
6754
|
+
"opc_retry_token"
|
5185
6755
|
]
|
5186
6756
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
5187
6757
|
if extra_kwargs:
|
5188
6758
|
raise ValueError(
|
5189
|
-
f"
|
6759
|
+
f"renew_certificate got unknown kwargs: {extra_kwargs!r}")
|
5190
6760
|
|
5191
6761
|
path_params = {
|
5192
6762
|
"bdsInstanceId": bds_instance_id
|
@@ -5202,7 +6772,8 @@ class BdsClient(object):
|
|
5202
6772
|
"accept": "application/json",
|
5203
6773
|
"content-type": "application/json",
|
5204
6774
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
5205
|
-
"if-match": kwargs.get("if_match", missing)
|
6775
|
+
"if-match": kwargs.get("if_match", missing),
|
6776
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
5206
6777
|
}
|
5207
6778
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
5208
6779
|
|
@@ -5213,6 +6784,7 @@ class BdsClient(object):
|
|
5213
6784
|
|
5214
6785
|
if retry_strategy:
|
5215
6786
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
6787
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
5216
6788
|
self.base_client.add_opc_client_retries_header(header_params)
|
5217
6789
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
5218
6790
|
return retry_strategy.make_retrying_call(
|
@@ -5221,7 +6793,7 @@ class BdsClient(object):
|
|
5221
6793
|
method=method,
|
5222
6794
|
path_params=path_params,
|
5223
6795
|
header_params=header_params,
|
5224
|
-
body=
|
6796
|
+
body=renew_certificate_details,
|
5225
6797
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5226
6798
|
operation_name=operation_name,
|
5227
6799
|
api_reference_link=api_reference_link,
|
@@ -5232,32 +6804,32 @@ class BdsClient(object):
|
|
5232
6804
|
method=method,
|
5233
6805
|
path_params=path_params,
|
5234
6806
|
header_params=header_params,
|
5235
|
-
body=
|
6807
|
+
body=renew_certificate_details,
|
5236
6808
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5237
6809
|
operation_name=operation_name,
|
5238
6810
|
api_reference_link=api_reference_link,
|
5239
6811
|
required_arguments=required_arguments)
|
5240
6812
|
|
5241
|
-
def
|
6813
|
+
def replace_node(self, bds_instance_id, replace_node_details, **kwargs):
|
5242
6814
|
"""
|
5243
|
-
|
6815
|
+
Replaces a node of a Big Data Service cluster from backup.
|
5244
6816
|
|
5245
6817
|
|
5246
6818
|
:param str bds_instance_id: (required)
|
5247
6819
|
The OCID of the cluster.
|
5248
6820
|
|
5249
|
-
:param oci.bds.models.
|
5250
|
-
Details for
|
6821
|
+
:param oci.bds.models.ReplaceNodeDetails replace_node_details: (required)
|
6822
|
+
Details for Replacing the node.
|
5251
6823
|
|
5252
6824
|
:param str opc_request_id: (optional)
|
5253
6825
|
The client request ID for tracing.
|
5254
6826
|
|
5255
6827
|
:param str if_match: (optional)
|
5256
|
-
|
5257
|
-
for a resource, set the `if-match`
|
5258
|
-
etag from a previous GET or POST response
|
5259
|
-
The resource will be updated or deleted only if
|
5260
|
-
provide matches the resource's current etag value.
|
6828
|
+
This if-match is for the BdsInstance. For optimistic concurrency
|
6829
|
+
control. In the PUT or DELETE call for a resource, set the `if-match`
|
6830
|
+
parameter to the value of the etag from a previous GET or POST response
|
6831
|
+
for that resource. The resource will be updated or deleted only if
|
6832
|
+
the etag you provide matches the resource's current etag value.
|
5261
6833
|
|
5262
6834
|
:param str opc_retry_token: (optional)
|
5263
6835
|
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
@@ -5282,14 +6854,14 @@ class BdsClient(object):
|
|
5282
6854
|
:rtype: :class:`~oci.response.Response`
|
5283
6855
|
|
5284
6856
|
:example:
|
5285
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6857
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/replace_node.py.html>`__ to see an example of how to use replace_node API.
|
5286
6858
|
"""
|
5287
6859
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5288
6860
|
required_arguments = ['bdsInstanceId']
|
5289
|
-
resource_path = "/bdsInstances/{bdsInstanceId}/actions/
|
6861
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/actions/replaceNode"
|
5290
6862
|
method = "POST"
|
5291
|
-
operation_name = "
|
5292
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/
|
6863
|
+
operation_name = "replace_node"
|
6864
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/ReplaceNode"
|
5293
6865
|
|
5294
6866
|
# Don't accept unknown kwargs
|
5295
6867
|
expected_kwargs = [
|
@@ -5302,7 +6874,7 @@ class BdsClient(object):
|
|
5302
6874
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
5303
6875
|
if extra_kwargs:
|
5304
6876
|
raise ValueError(
|
5305
|
-
f"
|
6877
|
+
f"replace_node got unknown kwargs: {extra_kwargs!r}")
|
5306
6878
|
|
5307
6879
|
path_params = {
|
5308
6880
|
"bdsInstanceId": bds_instance_id
|
@@ -5339,7 +6911,7 @@ class BdsClient(object):
|
|
5339
6911
|
method=method,
|
5340
6912
|
path_params=path_params,
|
5341
6913
|
header_params=header_params,
|
5342
|
-
body=
|
6914
|
+
body=replace_node_details,
|
5343
6915
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5344
6916
|
operation_name=operation_name,
|
5345
6917
|
api_reference_link=api_reference_link,
|
@@ -5350,7 +6922,7 @@ class BdsClient(object):
|
|
5350
6922
|
method=method,
|
5351
6923
|
path_params=path_params,
|
5352
6924
|
header_params=header_params,
|
5353
|
-
body=
|
6925
|
+
body=replace_node_details,
|
5354
6926
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
5355
6927
|
operation_name=operation_name,
|
5356
6928
|
api_reference_link=api_reference_link,
|
@@ -5400,7 +6972,7 @@ class BdsClient(object):
|
|
5400
6972
|
:rtype: :class:`~oci.response.Response`
|
5401
6973
|
|
5402
6974
|
:example:
|
5403
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
6975
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/restart_node.py.html>`__ to see an example of how to use restart_node API.
|
5404
6976
|
"""
|
5405
6977
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5406
6978
|
required_arguments = ['bdsInstanceId']
|
@@ -5511,7 +7083,7 @@ class BdsClient(object):
|
|
5511
7083
|
:rtype: :class:`~oci.response.Response`
|
5512
7084
|
|
5513
7085
|
:example:
|
5514
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7086
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/start_bds_instance.py.html>`__ to see an example of how to use start_bds_instance API.
|
5515
7087
|
"""
|
5516
7088
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5517
7089
|
required_arguments = ['bdsInstanceId']
|
@@ -5619,7 +7191,7 @@ class BdsClient(object):
|
|
5619
7191
|
:rtype: :class:`~oci.response.Response`
|
5620
7192
|
|
5621
7193
|
:example:
|
5622
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7194
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/stop_bds_instance.py.html>`__ to see an example of how to use stop_bds_instance API.
|
5623
7195
|
"""
|
5624
7196
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5625
7197
|
required_arguments = ['bdsInstanceId']
|
@@ -5730,7 +7302,7 @@ class BdsClient(object):
|
|
5730
7302
|
:rtype: :class:`~oci.response.Response`
|
5731
7303
|
|
5732
7304
|
:example:
|
5733
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7305
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/test_bds_metastore_configuration.py.html>`__ to see an example of how to use test_bds_metastore_configuration API.
|
5734
7306
|
"""
|
5735
7307
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5736
7308
|
required_arguments = ['bdsInstanceId', 'metastoreConfigId']
|
@@ -5835,7 +7407,7 @@ class BdsClient(object):
|
|
5835
7407
|
:rtype: :class:`~oci.response.Response`
|
5836
7408
|
|
5837
7409
|
:example:
|
5838
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7410
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/test_bds_object_storage_connection.py.html>`__ to see an example of how to use test_bds_object_storage_connection API.
|
5839
7411
|
"""
|
5840
7412
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5841
7413
|
required_arguments = ['bdsInstanceId', 'apiKeyId']
|
@@ -5952,7 +7524,7 @@ class BdsClient(object):
|
|
5952
7524
|
:rtype: :class:`~oci.response.Response`
|
5953
7525
|
|
5954
7526
|
:example:
|
5955
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7527
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/update_auto_scaling_configuration.py.html>`__ to see an example of how to use update_auto_scaling_configuration API.
|
5956
7528
|
"""
|
5957
7529
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5958
7530
|
required_arguments = ['bdsInstanceId', 'autoScalingConfigurationId']
|
@@ -6064,7 +7636,7 @@ class BdsClient(object):
|
|
6064
7636
|
:rtype: :class:`~oci.response.Response`
|
6065
7637
|
|
6066
7638
|
:example:
|
6067
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7639
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/update_bds_instance.py.html>`__ to see an example of how to use update_bds_instance API.
|
6068
7640
|
"""
|
6069
7641
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6070
7642
|
required_arguments = ['bdsInstanceId']
|
@@ -6175,7 +7747,7 @@ class BdsClient(object):
|
|
6175
7747
|
:rtype: :class:`~oci.response.Response`
|
6176
7748
|
|
6177
7749
|
:example:
|
6178
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.
|
7750
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/update_bds_metastore_configuration.py.html>`__ to see an example of how to use update_bds_metastore_configuration API.
|
6179
7751
|
"""
|
6180
7752
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6181
7753
|
required_arguments = ['bdsInstanceId', 'metastoreConfigId']
|
@@ -6246,3 +7818,247 @@ class BdsClient(object):
|
|
6246
7818
|
operation_name=operation_name,
|
6247
7819
|
api_reference_link=api_reference_link,
|
6248
7820
|
required_arguments=required_arguments)
|
7821
|
+
|
7822
|
+
def update_node_backup_configuration(self, bds_instance_id, node_backup_configuration_id, update_node_backup_configuration_details, **kwargs):
|
7823
|
+
"""
|
7824
|
+
Updates fields on NodeBackupConfiguration, including the name, the schedule.
|
7825
|
+
|
7826
|
+
|
7827
|
+
:param str bds_instance_id: (required)
|
7828
|
+
The OCID of the cluster.
|
7829
|
+
|
7830
|
+
:param str node_backup_configuration_id: (required)
|
7831
|
+
Unique Oracle-assigned identifier of the NodeBackupConfiguration.
|
7832
|
+
|
7833
|
+
:param oci.bds.models.UpdateNodeBackupConfigurationDetails update_node_backup_configuration_details: (required)
|
7834
|
+
Details for updating the NodeBackupConfiguration.
|
7835
|
+
|
7836
|
+
:param str opc_request_id: (optional)
|
7837
|
+
The client request ID for tracing.
|
7838
|
+
|
7839
|
+
:param str if_match: (optional)
|
7840
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
7841
|
+
for a resource, set the `if-match` parameter to the value of the
|
7842
|
+
etag from a previous GET or POST response for that resource.
|
7843
|
+
The resource will be updated or deleted only if the etag you
|
7844
|
+
provide matches the resource's current etag value.
|
7845
|
+
|
7846
|
+
:param str opc_retry_token: (optional)
|
7847
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
7848
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
7849
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
7850
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
7851
|
+
might be rejected.
|
7852
|
+
|
7853
|
+
:param obj retry_strategy: (optional)
|
7854
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7855
|
+
|
7856
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
7857
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7858
|
+
|
7859
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7860
|
+
|
7861
|
+
:param bool allow_control_chars: (optional)
|
7862
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7863
|
+
By default, the response will not allow control characters in strings
|
7864
|
+
|
7865
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7866
|
+
:rtype: :class:`~oci.response.Response`
|
7867
|
+
|
7868
|
+
:example:
|
7869
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/update_node_backup_configuration.py.html>`__ to see an example of how to use update_node_backup_configuration API.
|
7870
|
+
"""
|
7871
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7872
|
+
required_arguments = ['bdsInstanceId', 'nodeBackupConfigurationId']
|
7873
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeBackupConfigurations/{nodeBackupConfigurationId}"
|
7874
|
+
method = "PUT"
|
7875
|
+
operation_name = "update_node_backup_configuration"
|
7876
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeBackupConfiguration"
|
7877
|
+
|
7878
|
+
# Don't accept unknown kwargs
|
7879
|
+
expected_kwargs = [
|
7880
|
+
"allow_control_chars",
|
7881
|
+
"retry_strategy",
|
7882
|
+
"opc_request_id",
|
7883
|
+
"if_match",
|
7884
|
+
"opc_retry_token"
|
7885
|
+
]
|
7886
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7887
|
+
if extra_kwargs:
|
7888
|
+
raise ValueError(
|
7889
|
+
f"update_node_backup_configuration got unknown kwargs: {extra_kwargs!r}")
|
7890
|
+
|
7891
|
+
path_params = {
|
7892
|
+
"bdsInstanceId": bds_instance_id,
|
7893
|
+
"nodeBackupConfigurationId": node_backup_configuration_id
|
7894
|
+
}
|
7895
|
+
|
7896
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7897
|
+
|
7898
|
+
for (k, v) in six.iteritems(path_params):
|
7899
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7900
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7901
|
+
|
7902
|
+
header_params = {
|
7903
|
+
"accept": "application/json",
|
7904
|
+
"content-type": "application/json",
|
7905
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
7906
|
+
"if-match": kwargs.get("if_match", missing),
|
7907
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
7908
|
+
}
|
7909
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7910
|
+
|
7911
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7912
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7913
|
+
client_retry_strategy=self.retry_strategy
|
7914
|
+
)
|
7915
|
+
|
7916
|
+
if retry_strategy:
|
7917
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7918
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
7919
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7920
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7921
|
+
return retry_strategy.make_retrying_call(
|
7922
|
+
self.base_client.call_api,
|
7923
|
+
resource_path=resource_path,
|
7924
|
+
method=method,
|
7925
|
+
path_params=path_params,
|
7926
|
+
header_params=header_params,
|
7927
|
+
body=update_node_backup_configuration_details,
|
7928
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7929
|
+
operation_name=operation_name,
|
7930
|
+
api_reference_link=api_reference_link,
|
7931
|
+
required_arguments=required_arguments)
|
7932
|
+
else:
|
7933
|
+
return self.base_client.call_api(
|
7934
|
+
resource_path=resource_path,
|
7935
|
+
method=method,
|
7936
|
+
path_params=path_params,
|
7937
|
+
header_params=header_params,
|
7938
|
+
body=update_node_backup_configuration_details,
|
7939
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7940
|
+
operation_name=operation_name,
|
7941
|
+
api_reference_link=api_reference_link,
|
7942
|
+
required_arguments=required_arguments)
|
7943
|
+
|
7944
|
+
def update_node_replace_configuration(self, bds_instance_id, node_replace_configuration_id, update_node_replace_configuration_details, **kwargs):
|
7945
|
+
"""
|
7946
|
+
Updates fields on nodeReplaceConfigurations, including the name, the schedule
|
7947
|
+
|
7948
|
+
|
7949
|
+
:param str bds_instance_id: (required)
|
7950
|
+
The OCID of the cluster.
|
7951
|
+
|
7952
|
+
:param str node_replace_configuration_id: (required)
|
7953
|
+
Unique Oracle-assigned identifier of the NodeReplaceConfiguration.
|
7954
|
+
|
7955
|
+
:param oci.bds.models.UpdateNodeReplaceConfigurationDetails update_node_replace_configuration_details: (required)
|
7956
|
+
Details for updating the nodeReplaceConfiguration.
|
7957
|
+
|
7958
|
+
:param str opc_request_id: (optional)
|
7959
|
+
The client request ID for tracing.
|
7960
|
+
|
7961
|
+
:param str if_match: (optional)
|
7962
|
+
For optimistic concurrency control. In the PUT or DELETE call
|
7963
|
+
for a resource, set the `if-match` parameter to the value of the
|
7964
|
+
etag from a previous GET or POST response for that resource.
|
7965
|
+
The resource will be updated or deleted only if the etag you
|
7966
|
+
provide matches the resource's current etag value.
|
7967
|
+
|
7968
|
+
:param str opc_retry_token: (optional)
|
7969
|
+
A token that uniquely identifies a request so it can be retried in case of a timeout or
|
7970
|
+
server error, without risk of executing that same action again. Retry tokens expire after 24
|
7971
|
+
hours but can be invalidated before then due to conflicting operations. For example, if a resource
|
7972
|
+
has been deleted and purged from the system, then a retry of the original creation request
|
7973
|
+
might be rejected.
|
7974
|
+
|
7975
|
+
:param obj retry_strategy: (optional)
|
7976
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7977
|
+
|
7978
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation will not retry by default, users can also use the convenient :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` provided by the SDK to enable retries for it.
|
7979
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7980
|
+
|
7981
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7982
|
+
|
7983
|
+
:param bool allow_control_chars: (optional)
|
7984
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7985
|
+
By default, the response will not allow control characters in strings
|
7986
|
+
|
7987
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7988
|
+
:rtype: :class:`~oci.response.Response`
|
7989
|
+
|
7990
|
+
:example:
|
7991
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.126.4/bds/update_node_replace_configuration.py.html>`__ to see an example of how to use update_node_replace_configuration API.
|
7992
|
+
"""
|
7993
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7994
|
+
required_arguments = ['bdsInstanceId', 'nodeReplaceConfigurationId']
|
7995
|
+
resource_path = "/bdsInstances/{bdsInstanceId}/nodeReplaceConfigurations/{nodeReplaceConfigurationId}"
|
7996
|
+
method = "PUT"
|
7997
|
+
operation_name = "update_node_replace_configuration"
|
7998
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/bigdata/20190531/BdsInstance/UpdateNodeReplaceConfiguration"
|
7999
|
+
|
8000
|
+
# Don't accept unknown kwargs
|
8001
|
+
expected_kwargs = [
|
8002
|
+
"allow_control_chars",
|
8003
|
+
"retry_strategy",
|
8004
|
+
"opc_request_id",
|
8005
|
+
"if_match",
|
8006
|
+
"opc_retry_token"
|
8007
|
+
]
|
8008
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8009
|
+
if extra_kwargs:
|
8010
|
+
raise ValueError(
|
8011
|
+
f"update_node_replace_configuration got unknown kwargs: {extra_kwargs!r}")
|
8012
|
+
|
8013
|
+
path_params = {
|
8014
|
+
"bdsInstanceId": bds_instance_id,
|
8015
|
+
"nodeReplaceConfigurationId": node_replace_configuration_id
|
8016
|
+
}
|
8017
|
+
|
8018
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
8019
|
+
|
8020
|
+
for (k, v) in six.iteritems(path_params):
|
8021
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
8022
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
8023
|
+
|
8024
|
+
header_params = {
|
8025
|
+
"accept": "application/json",
|
8026
|
+
"content-type": "application/json",
|
8027
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
8028
|
+
"if-match": kwargs.get("if_match", missing),
|
8029
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
8030
|
+
}
|
8031
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8032
|
+
|
8033
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8034
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8035
|
+
client_retry_strategy=self.retry_strategy
|
8036
|
+
)
|
8037
|
+
|
8038
|
+
if retry_strategy:
|
8039
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8040
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
8041
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8042
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8043
|
+
return retry_strategy.make_retrying_call(
|
8044
|
+
self.base_client.call_api,
|
8045
|
+
resource_path=resource_path,
|
8046
|
+
method=method,
|
8047
|
+
path_params=path_params,
|
8048
|
+
header_params=header_params,
|
8049
|
+
body=update_node_replace_configuration_details,
|
8050
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8051
|
+
operation_name=operation_name,
|
8052
|
+
api_reference_link=api_reference_link,
|
8053
|
+
required_arguments=required_arguments)
|
8054
|
+
else:
|
8055
|
+
return self.base_client.call_api(
|
8056
|
+
resource_path=resource_path,
|
8057
|
+
method=method,
|
8058
|
+
path_params=path_params,
|
8059
|
+
header_params=header_params,
|
8060
|
+
body=update_node_replace_configuration_details,
|
8061
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8062
|
+
operation_name=operation_name,
|
8063
|
+
api_reference_link=api_reference_link,
|
8064
|
+
required_arguments=required_arguments)
|