oci 2.139.0__py3-none-any.whl → 2.141.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +26 -26
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_language/models/__init__.py +6 -0
- oci/ai_language/models/batch_detect_dominant_language_details.py +31 -0
- oci/ai_language/models/batch_detect_health_entity_details.py +31 -0
- oci/ai_language/models/batch_detect_language_entities_details.py +31 -0
- oci/ai_language/models/batch_detect_language_key_phrases_details.py +31 -0
- oci/ai_language/models/batch_detect_language_pii_entities_details.py +31 -0
- oci/ai_language/models/batch_detect_language_sentiments_details.py +31 -0
- oci/ai_language/models/batch_detect_language_text_classification_details.py +31 -0
- oci/ai_language/models/batch_language_translation_details.py +93 -0
- oci/ai_language/models/create_endpoint_details.py +78 -0
- oci/ai_language/models/endpoint.py +78 -0
- oci/ai_language/models/endpoint_summary.py +78 -0
- oci/ai_language/models/health_nlu_model_details.py +91 -0
- oci/ai_language/models/hierarchical_entity.py +27 -0
- oci/ai_language/models/meta_info.py +196 -0
- oci/ai_language/models/model_details.py +35 -23
- oci/ai_language/models/named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pii_entity_mask.py +14 -0
- oci/ai_language/models/pii_entity_masking.py +64 -2
- oci/ai_language/models/pii_entity_remove.py +16 -2
- oci/ai_language/models/pii_entity_replace.py +14 -0
- oci/ai_language/models/pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_health_nlu_model_details.py +1 -1
- oci/ai_language/models/pre_trained_key_phrase_extraction_model_details.py +1 -1
- oci/ai_language/models/pre_trained_language_detection_model_details.py +1 -1
- oci/ai_language/models/pre_trained_named_entity_recognition_model_details.py +1 -1
- oci/ai_language/models/pre_trained_pii_model_details.py +1 -1
- oci/ai_language/models/pre_trained_sentiment_analysis_model_details.py +1 -1
- oci/ai_language/models/pre_trained_summarization.py +1 -1
- oci/ai_language/models/pre_trained_text_classification_model_details.py +1 -1
- oci/ai_language/models/pre_trained_translation_model_details.py +91 -0
- oci/ai_language/models/pre_trained_universal_model.py +1 -1
- oci/ai_language/models/text_classification_model_details.py +1 -1
- oci/ai_language/models/update_endpoint_details.py +31 -0
- oci/ai_speech/ai_service_speech_client.py +19 -19
- oci/ai_vision/ai_service_vision_client.py +320 -25
- oci/ai_vision/ai_service_vision_client_composite_operations.py +42 -0
- oci/ai_vision/models/__init__.py +54 -0
- oci/ai_vision/models/analyze_video_result.py +440 -0
- oci/ai_vision/models/create_video_job_details.py +254 -0
- oci/ai_vision/models/object_property.py +130 -0
- oci/ai_vision/models/video_face.py +72 -0
- oci/ai_vision/models/video_face_detection_feature.py +146 -0
- oci/ai_vision/models/video_face_frame.py +192 -0
- oci/ai_vision/models/video_face_segment.py +130 -0
- oci/ai_vision/models/video_feature.py +145 -0
- oci/ai_vision/models/video_job.py +552 -0
- oci/ai_vision/models/video_label.py +103 -0
- oci/ai_vision/models/video_label_detection_feature.py +146 -0
- oci/ai_vision/models/video_label_segment.py +99 -0
- oci/ai_vision/models/video_metadata.py +165 -0
- oci/ai_vision/models/video_object.py +103 -0
- oci/ai_vision/models/video_object_detection_feature.py +146 -0
- oci/ai_vision/models/video_object_frame.py +130 -0
- oci/ai_vision/models/video_object_segment.py +130 -0
- oci/ai_vision/models/video_object_tracking_feature.py +146 -0
- oci/ai_vision/models/video_segment.py +103 -0
- oci/ai_vision/models/video_text.py +103 -0
- oci/ai_vision/models/video_text_detection_feature.py +84 -0
- oci/ai_vision/models/video_text_frame.py +130 -0
- oci/ai_vision/models/video_text_segment.py +130 -0
- oci/ai_vision/models/video_tracked_object.py +161 -0
- oci/ai_vision/models/video_tracked_object_properties.py +72 -0
- oci/ai_vision/models/video_tracked_object_segment.py +130 -0
- oci/ai_vision/models/video_tracking_frame.py +161 -0
- oci/analytics/analytics_client.py +24 -24
- oci/announcements_service/announcement_client.py +5 -5
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/announcements_service/service_client.py +1 -1
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/auth/certificate_retriever.py +2 -5
- oci/auth/signers/instance_principals_security_token_signer.py +32 -29
- oci/auth/signers/oke_workload_identity_resource_principal_signer.py +12 -5
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +2516 -1014
- oci/bds/bds_client_composite_operations.py +407 -0
- oci/bds/models/__init__.py +34 -0
- oci/bds/models/activate_iam_user_sync_configuration_details.py +103 -0
- oci/bds/models/activate_upst_configuration_details.py +134 -0
- oci/bds/models/batching_based_odh_patching_config.py +33 -2
- oci/bds/models/bds_api_key.py +33 -2
- oci/bds/models/bds_cluster_version_summary.py +103 -0
- oci/bds/models/bds_instance.py +29 -2
- oci/bds/models/create_bds_api_key_details.py +33 -2
- oci/bds/models/create_bds_instance_details.py +29 -2
- oci/bds/models/create_identity_configuration_details.py +219 -0
- oci/bds/models/deactivate_iam_user_sync_configuration_details.py +72 -0
- oci/bds/models/deactivate_upst_configuration_details.py +72 -0
- oci/bds/models/domain_based_odh_patching_config.py +33 -2
- oci/bds/models/iam_user_sync_configuration.py +197 -0
- oci/bds/models/iam_user_sync_configuration_details.py +72 -0
- oci/bds/models/identity_configuration.py +328 -0
- oci/bds/models/identity_configuration_summary.py +134 -0
- oci/bds/models/node_type_shape_config.py +105 -0
- oci/bds/models/refresh_confidential_application_details.py +72 -0
- oci/bds/models/refresh_upst_token_exchange_keytab_details.py +72 -0
- oci/bds/models/start_bds_instance_details.py +29 -2
- oci/bds/models/start_cluster_shape_configs.py +72 -0
- oci/bds/models/update_bds_instance_details.py +29 -2
- oci/bds/models/update_identity_configuration_details.py +126 -0
- oci/bds/models/upst_configuration.py +352 -0
- oci/bds/models/upst_configuration_details.py +103 -0
- oci/bds/models/work_request.py +39 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/blockchain/models/blockchain_platform.py +17 -5
- oci/blockchain/models/work_request.py +7 -3
- oci/blockchain/models/work_request_summary.py +7 -3
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +32 -32
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +6 -6
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +15 -15
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/models/__init__.py +6 -0
- oci/cloud_bridge/models/asset_source_credentials.py +2 -2
- oci/cloud_bridge/models/aws_ebs_asset_details.py +68 -0
- oci/cloud_bridge/models/aws_ec2_asset_details.py +176 -0
- oci/cloud_bridge/models/disk.py +33 -2
- oci/cloud_bridge/models/monthly_cost_summary.py +2 -2
- oci/cloud_bridge/models/update_plugin_details.py +72 -0
- oci/cloud_bridge/models/work_request.py +7 -3
- oci/cloud_bridge/models/work_request_summary.py +7 -3
- oci/cloud_bridge/ocb_agent_svc_client.py +136 -22
- oci/cloud_bridge/ocb_agent_svc_client_composite_operations.py +45 -0
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/models/__init__.py +10 -0
- oci/core/models/instance.py +33 -2
- oci/core/models/instance_configuration_launch_instance_details.py +33 -2
- oci/core/models/launch_instance_details.py +33 -2
- oci/core/models/launch_instance_licensing_config.py +152 -0
- oci/core/models/launch_instance_windows_licensing_config.py +59 -0
- oci/core/models/licensing_config.py +166 -0
- oci/core/models/update_instance_details.py +33 -2
- oci/core/models/update_instance_licensing_config.py +152 -0
- oci/core/models/update_instance_windows_licensing_config.py +59 -0
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +146 -44
- oci/data_flow/data_flow_client_composite_operations.py +39 -0
- oci/data_flow/models/application.py +7 -3
- oci/data_flow/models/application_summary.py +7 -3
- 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 +292 -292
- oci/data_science/data_science_client.py +94 -94
- oci/data_science/models/create_data_science_private_endpoint_details.py +7 -3
- oci/data_science/models/create_job_run_details.py +4 -4
- oci/data_science/models/data_science_private_endpoint.py +7 -3
- oci/data_science/models/data_science_private_endpoint_summary.py +7 -3
- oci/data_science/models/instance_configuration.py +33 -2
- oci/data_science/models/job_run.py +6 -6
- oci/data_science/models/job_run_summary.py +9 -9
- oci/data_science/models/job_summary.py +1 -1
- oci/data_science/models/metadata.py +4 -4
- oci/database/database_client.py +411 -399
- oci/database/models/__init__.py +4 -0
- oci/database/models/autonomous_database.py +31 -0
- oci/database/models/autonomous_database_summary.py +31 -0
- oci/database/models/create_autonomous_database_base.py +31 -0
- oci/database/models/create_autonomous_database_clone_details.py +7 -0
- oci/database/models/create_autonomous_database_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_details.py +7 -0
- oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +7 -0
- oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +7 -0
- oci/database/models/create_cross_region_disaster_recovery_details.py +7 -0
- oci/database/models/create_cross_tenancy_disaster_recovery_details.py +7 -0
- oci/database/models/create_refreshable_autonomous_database_clone_details.py +7 -0
- oci/database/models/rotate_autonomous_container_database_encryption_key_details.py +76 -0
- oci/database/models/rotate_autonomous_database_encryption_key_details.py +76 -0
- oci/database/models/undelete_autonomous_database_details.py +7 -0
- oci/database/models/update_autonomous_database_details.py +31 -0
- oci/database_management/db_management_client.py +211 -211
- 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 +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/delegate_access_control/delegate_access_control_client.py +26 -26
- oci/delegate_access_control/work_request_client.py +4 -4
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +141 -141
- oci/disaster_recovery/disaster_recovery_client.py +289 -31
- oci/disaster_recovery/disaster_recovery_client_composite_operations.py +88 -0
- oci/disaster_recovery/models/__init__.py +8 -0
- oci/disaster_recovery/models/create_dr_plan_details.py +35 -0
- oci/disaster_recovery/models/dr_plan.py +92 -0
- oci/disaster_recovery/models/dr_plan_group.py +55 -0
- oci/disaster_recovery/models/dr_plan_step.py +51 -0
- oci/disaster_recovery/models/dr_plan_summary.py +59 -0
- oci/disaster_recovery/models/refresh_dr_plan_default_details.py +51 -0
- oci/disaster_recovery/models/refresh_dr_plan_details.py +101 -0
- oci/disaster_recovery/models/verify_dr_plan_default_details.py +51 -0
- oci/disaster_recovery/models/verify_dr_plan_details.py +101 -0
- oci/disaster_recovery/models/work_request.py +11 -3
- oci/disaster_recovery/models/work_request_summary.py +11 -3
- oci/dns/dns_client.py +54 -54
- 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_warehouse_client.py +13 -13
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +68 -68
- oci/fleet_apps_management/fleet_apps_management_admin_client.py +25 -25
- oci/fleet_apps_management/fleet_apps_management_client.py +35 -35
- oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +5 -5
- oci/fleet_apps_management/fleet_apps_management_operations_client.py +26 -26
- oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +12 -12
- oci/fleet_software_update/fleet_software_update_client.py +48 -48
- oci/fleet_software_update/models/__init__.py +12 -0
- oci/fleet_software_update/models/apply_action.py +1 -1
- oci/fleet_software_update/models/apply_action_summary.py +1 -1
- oci/fleet_software_update/models/apply_fsu_job.py +1 -1
- oci/fleet_software_update/models/apply_fsu_job_summary.py +1 -1
- oci/fleet_software_update/models/cleanup_action.py +1 -1
- oci/fleet_software_update/models/cleanup_action_summary.py +1 -1
- oci/fleet_software_update/models/cleanup_fsu_job.py +1 -1
- oci/fleet_software_update/models/cleanup_fsu_job_summary.py +1 -1
- oci/fleet_software_update/models/create_apply_action_details.py +1 -1
- oci/fleet_software_update/models/create_cleanup_action_details.py +1 -1
- oci/fleet_software_update/models/create_fsu_action_details.py +11 -3
- oci/fleet_software_update/models/create_precheck_action_details.py +1 -1
- oci/fleet_software_update/models/create_rollback_action_details.py +1 -1
- oci/fleet_software_update/models/create_rollback_cycle_apply_action_details.py +111 -0
- oci/fleet_software_update/models/create_stage_action_details.py +1 -1
- oci/fleet_software_update/models/db_collection.py +7 -0
- oci/fleet_software_update/models/db_fsu_collection_summary.py +7 -0
- oci/fleet_software_update/models/fsu_action.py +11 -3
- oci/fleet_software_update/models/fsu_action_summary.py +11 -3
- oci/fleet_software_update/models/fsu_collection.py +35 -0
- oci/fleet_software_update/models/fsu_collection_summary.py +35 -0
- oci/fleet_software_update/models/fsu_cycle.py +105 -3
- oci/fleet_software_update/models/fsu_cycle_summary.py +101 -3
- oci/fleet_software_update/models/fsu_job.py +11 -3
- oci/fleet_software_update/models/fsu_job_summary.py +11 -3
- oci/fleet_software_update/models/gi_collection.py +7 -0
- oci/fleet_software_update/models/gi_fsu_collection_summary.py +7 -0
- oci/fleet_software_update/models/next_action_to_execute_details.py +7 -3
- oci/fleet_software_update/models/patch_fsu_cycle.py +16 -1
- oci/fleet_software_update/models/precheck_action.py +1 -1
- oci/fleet_software_update/models/precheck_action_summary.py +1 -1
- oci/fleet_software_update/models/precheck_fsu_job.py +1 -1
- oci/fleet_software_update/models/precheck_fsu_job_summary.py +1 -1
- oci/fleet_software_update/models/rollback_action.py +1 -1
- oci/fleet_software_update/models/rollback_action_summary.py +1 -1
- oci/fleet_software_update/models/rollback_cycle_action.py +226 -0
- oci/fleet_software_update/models/rollback_cycle_action_summary.py +225 -0
- oci/fleet_software_update/models/rollback_cycle_fsu_job.py +278 -0
- oci/fleet_software_update/models/rollback_cycle_fsu_job_summary.py +251 -0
- oci/fleet_software_update/models/rollback_fsu_job.py +1 -1
- oci/fleet_software_update/models/rollback_fsu_job_summary.py +1 -1
- oci/fleet_software_update/models/stage_action.py +1 -1
- oci/fleet_software_update/models/stage_action_summary.py +1 -1
- oci/fleet_software_update/models/stage_fsu_job.py +1 -1
- oci/fleet_software_update/models/stage_fsu_job_summary.py +1 -1
- oci/fleet_software_update/models/update_apply_action_details.py +1 -1
- oci/fleet_software_update/models/update_cleanup_action_details.py +1 -1
- oci/fleet_software_update/models/update_fsu_action_details.py +11 -3
- oci/fleet_software_update/models/update_precheck_action_details.py +1 -1
- oci/fleet_software_update/models/update_rollback_action_details.py +1 -1
- oci/fleet_software_update/models/update_rollback_cycle_action_details.py +72 -0
- oci/fleet_software_update/models/update_stage_action_details.py +1 -1
- oci/fleet_software_update/models/work_request.py +7 -3
- oci/fleet_software_update/models/work_request_summary.py +7 -3
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_agent/generative_ai_agent_client.py +33 -102
- oci/generative_ai_agent/models/__init__.py +2 -0
- oci/generative_ai_agent/models/agent.py +0 -2
- oci/generative_ai_agent/models/agent_collection.py +0 -2
- oci/generative_ai_agent/models/agent_endpoint.py +0 -2
- oci/generative_ai_agent/models/agent_endpoint_collection.py +0 -2
- oci/generative_ai_agent/models/agent_endpoint_summary.py +0 -2
- oci/generative_ai_agent/models/agent_summary.py +0 -2
- oci/generative_ai_agent/models/basic_auth_secret.py +0 -2
- oci/generative_ai_agent/models/change_agent_compartment_details.py +0 -2
- oci/generative_ai_agent/models/change_agent_endpoint_compartment_details.py +0 -2
- oci/generative_ai_agent/models/change_knowledge_base_compartment_details.py +0 -2
- oci/generative_ai_agent/models/create_agent_details.py +0 -2
- oci/generative_ai_agent/models/create_agent_endpoint_details.py +0 -2
- oci/generative_ai_agent/models/create_data_ingestion_job_details.py +0 -2
- oci/generative_ai_agent/models/create_data_source_details.py +0 -2
- oci/generative_ai_agent/models/create_knowledge_base_details.py +0 -2
- oci/generative_ai_agent/models/data_ingestion_job.py +35 -2
- oci/generative_ai_agent/models/data_ingestion_job_collection.py +0 -2
- oci/generative_ai_agent/models/data_ingestion_job_statistics.py +0 -2
- oci/generative_ai_agent/models/data_ingestion_job_summary.py +0 -2
- oci/generative_ai_agent/models/data_source.py +0 -2
- oci/generative_ai_agent/models/data_source_collection.py +0 -2
- oci/generative_ai_agent/models/data_source_config.py +31 -2
- oci/generative_ai_agent/models/data_source_summary.py +0 -2
- oci/generative_ai_agent/models/database_connection.py +0 -2
- oci/generative_ai_agent/models/database_function.py +0 -2
- oci/generative_ai_agent/models/database_tool_connection.py +0 -2
- oci/generative_ai_agent/models/default_index_config.py +0 -2
- oci/generative_ai_agent/models/idcs_secret.py +0 -2
- oci/generative_ai_agent/models/index.py +0 -2
- oci/generative_ai_agent/models/index_config.py +0 -2
- oci/generative_ai_agent/models/index_schema.py +0 -2
- oci/generative_ai_agent/models/knowledge_base.py +27 -2
- oci/generative_ai_agent/models/knowledge_base_collection.py +0 -2
- oci/generative_ai_agent/models/knowledge_base_statistics.py +72 -0
- oci/generative_ai_agent/models/knowledge_base_summary.py +0 -2
- oci/generative_ai_agent/models/object_storage_prefix.py +0 -2
- oci/generative_ai_agent/models/oci_database_config.py +0 -2
- oci/generative_ai_agent/models/oci_object_storage_data_source_config.py +8 -3
- oci/generative_ai_agent/models/oci_open_search_index_config.py +0 -2
- oci/generative_ai_agent/models/secret_detail.py +0 -2
- oci/generative_ai_agent/models/session_config.py +0 -2
- oci/generative_ai_agent/models/update_agent_details.py +0 -2
- oci/generative_ai_agent/models/update_agent_endpoint_details.py +0 -2
- oci/generative_ai_agent/models/update_data_source_details.py +0 -2
- oci/generative_ai_agent/models/update_knowledge_base_details.py +0 -2
- oci/generative_ai_agent/models/work_request.py +15 -5
- oci/generative_ai_agent/models/work_request_error.py +0 -2
- oci/generative_ai_agent/models/work_request_error_collection.py +0 -2
- oci/generative_ai_agent/models/work_request_log_entry.py +0 -2
- oci/generative_ai_agent/models/work_request_log_entry_collection.py +0 -2
- oci/generative_ai_agent/models/work_request_resource.py +0 -2
- oci/generative_ai_agent/models/work_request_summary.py +15 -5
- oci/generative_ai_agent/models/work_request_summary_collection.py +0 -2
- oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +6 -6
- oci/generative_ai_agent_runtime/models/chat_details.py +1 -1
- oci/generative_ai_agent_runtime/models/citation.py +95 -2
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +2343 -499
- oci/golden_gate/golden_gate_client_composite_operations.py +264 -0
- oci/golden_gate/models/__init__.py +71 -1
- oci/golden_gate/models/change_pipeline_compartment_details.py +76 -0
- oci/golden_gate/models/create_mysql_connection_details.py +2 -2
- oci/golden_gate/models/create_pipeline_details.py +402 -0
- oci/golden_gate/models/create_zero_etl_pipeline_details.py +142 -0
- oci/golden_gate/models/default_start_pipeline_details.py +51 -0
- oci/golden_gate/models/default_stop_pipeline_details.py +51 -0
- oci/golden_gate/models/default_test_pipeline_connection_details.py +88 -0
- oci/golden_gate/models/initial_data_load.py +143 -0
- oci/golden_gate/models/mapping_rule.py +152 -0
- oci/golden_gate/models/pipeline.py +775 -0
- oci/golden_gate/models/pipeline_collection.py +72 -0
- oci/golden_gate/models/pipeline_initialization_step.py +263 -0
- oci/golden_gate/models/pipeline_initialization_steps.py +72 -0
- oci/golden_gate/models/pipeline_running_process_collection.py +72 -0
- oci/golden_gate/models/pipeline_running_process_summary.py +238 -0
- oci/golden_gate/models/pipeline_schema_collection.py +72 -0
- oci/golden_gate/models/pipeline_schema_summary.py +105 -0
- oci/golden_gate/models/pipeline_schema_table_collection.py +134 -0
- oci/golden_gate/models/pipeline_schema_table_summary.py +105 -0
- oci/golden_gate/models/pipeline_summary.py +739 -0
- oci/golden_gate/models/process_options.py +142 -0
- oci/golden_gate/models/recipe_summary.py +239 -0
- oci/golden_gate/models/recipe_summary_collection.py +72 -0
- oci/golden_gate/models/replicate_schema_change.py +190 -0
- oci/golden_gate/models/source_pipeline_connection_details.py +78 -0
- oci/golden_gate/models/start_pipeline_details.py +101 -0
- oci/golden_gate/models/step_message.py +197 -0
- oci/golden_gate/models/stop_pipeline_details.py +101 -0
- oci/golden_gate/models/target_pipeline_connection_details.py +78 -0
- oci/golden_gate/models/test_pipeline_connection_details.py +101 -0
- oci/golden_gate/models/test_pipeline_connection_error.py +165 -0
- oci/golden_gate/models/test_pipeline_connection_result.py +119 -0
- oci/golden_gate/models/update_mysql_connection_details.py +2 -2
- oci/golden_gate/models/update_pipeline_details.py +282 -0
- oci/golden_gate/models/update_zero_etl_pipeline_details.py +145 -0
- oci/golden_gate/models/work_request.py +27 -3
- oci/golden_gate/models/zero_etl_pipeline.py +275 -0
- oci/golden_gate/models/zero_etl_pipeline_summary.py +243 -0
- 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 +311 -311
- oci/integration/integration_instance_client.py +19 -19
- oci/jms/java_management_service_client.py +75 -75
- oci/jms_java_downloads/java_download_client.py +25 -25
- oci/key_management/ekm_client.py +5 -5
- oci/key_management/kms_crypto_client.py +6 -6
- oci/key_management/kms_hsm_cluster_client.py +12 -12
- oci/key_management/kms_management_client.py +21 -21
- oci/key_management/kms_vault_client.py +14 -14
- oci/license_manager/license_manager_client.py +18 -18
- oci/limits/limits_client.py +4 -4
- oci/limits/quotas_client.py +7 -7
- oci/load_balancer/load_balancer_client.py +61 -61
- oci/lockbox/lockbox_client.py +24 -24
- oci/log_analytics/log_analytics_client.py +193 -193
- oci/logging/logging_management_client.py +30 -30
- oci/loggingingestion/logging_client.py +1 -1
- oci/loggingsearch/log_search_client.py +1 -1
- oci/management_agent/management_agent_client.py +28 -28
- oci/management_dashboard/dashx_apis_client.py +14 -14
- oci/marketplace/account_client.py +2 -2
- oci/marketplace/marketplace_client.py +30 -30
- oci/marketplace_private_offer/attachment_client.py +5 -5
- oci/marketplace_private_offer/offer_client.py +6 -6
- oci/marketplace_publisher/attachment_client.py +5 -5
- oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
- oci/marketplace_publisher/offer_client.py +6 -6
- oci/media_services/media_services_client.py +60 -60
- oci/media_services/media_stream_client.py +2 -2
- oci/monitoring/monitoring_client.py +18 -18
- oci/mysql/channels_client.py +7 -7
- oci/mysql/db_backups_client.py +7 -7
- oci/mysql/db_system_client.py +17 -17
- oci/mysql/mysqlaas_client.py +7 -7
- oci/mysql/replicas_client.py +5 -5
- oci/mysql/work_requests_client.py +4 -4
- oci/network_firewall/network_firewall_client.py +86 -86
- 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 +55 -55
- oci/object_storage/transfer/internal/multipart_object_assembler.py +15 -0
- 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 +180 -180
- 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 +26 -26
- oci/redis/redis_cluster_client.py +12 -12
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/retry/__init__.py +0 -1
- 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/security_attribute/security_attribute_client.py +18 -18
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/models/__init__.py +8 -0
- oci/stack_monitoring/models/http_query_properties.py +212 -0
- oci/stack_monitoring/models/http_script_file_details.py +103 -0
- oci/stack_monitoring/models/http_update_query_properties.py +211 -0
- oci/stack_monitoring/models/jmx_query_properties.py +1 -1
- oci/stack_monitoring/models/jmx_update_query_properties.py +1 -1
- oci/stack_monitoring/models/metric_extension_query_properties.py +11 -3
- oci/stack_monitoring/models/metric_extension_summary.py +7 -3
- oci/stack_monitoring/models/metric_extension_update_query_properties.py +11 -3
- oci/stack_monitoring/models/os_command_query_properties.py +1 -1
- oci/stack_monitoring/models/os_command_update_query_properties.py +1 -1
- oci/stack_monitoring/models/script_file_details.py +1 -1
- oci/stack_monitoring/models/sql_out_param_details.py +44 -9
- oci/stack_monitoring/models/sql_query_properties.py +1 -1
- oci/stack_monitoring/models/sql_update_query_properties.py +1 -1
- oci/stack_monitoring/models/update_http_script_file_details.py +103 -0
- oci/stack_monitoring/stack_monitoring_client.py +86 -80
- 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/models/__init__.py +8 -4
- oci/visual_builder/models/create_vb_instance_details.py +29 -2
- oci/visual_builder/models/network_endpoint_details.py +102 -0
- oci/visual_builder/models/private_endpoint_details.py +144 -0
- oci/visual_builder/models/update_network_endpoint_details.py +102 -0
- oci/visual_builder/models/update_private_endpoint_details.py +113 -0
- oci/visual_builder/models/update_vb_instance_details.py +29 -2
- oci/visual_builder/models/vb_instance.py +29 -60
- oci/visual_builder/models/vb_instance_summary.py +29 -2
- oci/visual_builder/vb_instance_client.py +129 -13
- oci/visual_builder/vb_instance_client_composite_operations.py +39 -0
- 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/zpr/zpr_client.py +15 -15
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/METADATA +1 -1
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/RECORD +595 -486
- oci/visual_builder/models/attachment_details.py +0 -218
- oci/visual_builder/models/idcs_info_details.py +0 -198
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/WHEEL +0 -0
- {oci-2.139.0.dist-info → oci-2.141.0.dist-info}/top_level.txt +0 -0
@@ -154,7 +154,7 @@ class GoldenGateClient(object):
|
|
154
154
|
:rtype: :class:`~oci.response.Response`
|
155
155
|
|
156
156
|
:example:
|
157
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
157
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/add_connection_lock.py.html>`__ to see an example of how to use add_connection_lock API.
|
158
158
|
"""
|
159
159
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
160
160
|
required_arguments = ['connectionId']
|
@@ -265,7 +265,7 @@ class GoldenGateClient(object):
|
|
265
265
|
:rtype: :class:`~oci.response.Response`
|
266
266
|
|
267
267
|
:example:
|
268
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
268
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/add_deployment_backup_lock.py.html>`__ to see an example of how to use add_deployment_backup_lock API.
|
269
269
|
"""
|
270
270
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
271
271
|
required_arguments = ['deploymentBackupId']
|
@@ -376,7 +376,7 @@ class GoldenGateClient(object):
|
|
376
376
|
:rtype: :class:`~oci.response.Response`
|
377
377
|
|
378
378
|
:example:
|
379
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
379
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/add_deployment_lock.py.html>`__ to see an example of how to use add_deployment_lock API.
|
380
380
|
"""
|
381
381
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
382
382
|
required_arguments = ['deploymentId']
|
@@ -496,7 +496,7 @@ class GoldenGateClient(object):
|
|
496
496
|
:rtype: :class:`~oci.response.Response`
|
497
497
|
|
498
498
|
:example:
|
499
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
499
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/cancel_deployment_backup.py.html>`__ to see an example of how to use cancel_deployment_backup API.
|
500
500
|
"""
|
501
501
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
502
502
|
required_arguments = ['deploymentBackupId']
|
@@ -622,7 +622,7 @@ class GoldenGateClient(object):
|
|
622
622
|
:rtype: :class:`~oci.response.Response`
|
623
623
|
|
624
624
|
:example:
|
625
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
625
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/cancel_deployment_upgrade.py.html>`__ to see an example of how to use cancel_deployment_upgrade API.
|
626
626
|
"""
|
627
627
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
628
628
|
required_arguments = ['deploymentUpgradeId']
|
@@ -742,7 +742,7 @@ class GoldenGateClient(object):
|
|
742
742
|
:rtype: :class:`~oci.response.Response`
|
743
743
|
|
744
744
|
:example:
|
745
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
745
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/cancel_snooze_deployment_upgrade.py.html>`__ to see an example of how to use cancel_snooze_deployment_upgrade API.
|
746
746
|
"""
|
747
747
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
748
748
|
required_arguments = ['deploymentUpgradeId']
|
@@ -864,7 +864,7 @@ class GoldenGateClient(object):
|
|
864
864
|
:rtype: :class:`~oci.response.Response`
|
865
865
|
|
866
866
|
:example:
|
867
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
867
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/change_connection_compartment.py.html>`__ to see an example of how to use change_connection_compartment API.
|
868
868
|
"""
|
869
869
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
870
870
|
required_arguments = ['connectionId']
|
@@ -993,7 +993,7 @@ class GoldenGateClient(object):
|
|
993
993
|
:rtype: :class:`~oci.response.Response`
|
994
994
|
|
995
995
|
:example:
|
996
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
996
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/change_database_registration_compartment.py.html>`__ to see an example of how to use change_database_registration_compartment API.
|
997
997
|
"""
|
998
998
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
999
999
|
required_arguments = ['databaseRegistrationId']
|
@@ -1119,7 +1119,7 @@ class GoldenGateClient(object):
|
|
1119
1119
|
:rtype: :class:`~oci.response.Response`
|
1120
1120
|
|
1121
1121
|
:example:
|
1122
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1122
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/change_deployment_backup_compartment.py.html>`__ to see an example of how to use change_deployment_backup_compartment API.
|
1123
1123
|
"""
|
1124
1124
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1125
1125
|
required_arguments = ['deploymentBackupId']
|
@@ -1253,7 +1253,7 @@ class GoldenGateClient(object):
|
|
1253
1253
|
:rtype: :class:`~oci.response.Response`
|
1254
1254
|
|
1255
1255
|
:example:
|
1256
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1256
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/change_deployment_compartment.py.html>`__ to see an example of how to use change_deployment_compartment API.
|
1257
1257
|
"""
|
1258
1258
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1259
1259
|
required_arguments = ['deploymentId']
|
@@ -1337,6 +1337,142 @@ class GoldenGateClient(object):
|
|
1337
1337
|
api_reference_link=api_reference_link,
|
1338
1338
|
required_arguments=required_arguments)
|
1339
1339
|
|
1340
|
+
def change_pipeline_compartment(self, pipeline_id, change_pipeline_compartment_details, **kwargs):
|
1341
|
+
"""
|
1342
|
+
Moves the Pipeline into a different compartment within the same tenancy. When
|
1343
|
+
provided, If-Match is checked against ETag values of the resource. For information about
|
1344
|
+
moving resources between compartments, see `Moving Resources Between
|
1345
|
+
Compartments`__.
|
1346
|
+
|
1347
|
+
__ https://docs.cloud.oracle.com/iaas/Content/Identity/Tasks/managingcompartments.htm#moveRes
|
1348
|
+
|
1349
|
+
|
1350
|
+
:param str pipeline_id: (required)
|
1351
|
+
The `OCID`__ of the pipeline created.
|
1352
|
+
|
1353
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
1354
|
+
|
1355
|
+
:param oci.golden_gate.models.ChangePipelineCompartmentDetails change_pipeline_compartment_details: (required)
|
1356
|
+
Properties to change the compartment of a Pipeline.
|
1357
|
+
|
1358
|
+
:param str if_match: (optional)
|
1359
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
1360
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
1361
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
1362
|
+
resource's current etag value.
|
1363
|
+
|
1364
|
+
:param str opc_request_id: (optional)
|
1365
|
+
The client request ID for tracing.
|
1366
|
+
|
1367
|
+
:param bool is_lock_override: (optional)
|
1368
|
+
Whether to override locks (if any exist).
|
1369
|
+
|
1370
|
+
:param str opc_retry_token: (optional)
|
1371
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
1372
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
1373
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
1374
|
+
from the system, then a retry of the original creation request is rejected.
|
1375
|
+
|
1376
|
+
:param obj retry_strategy: (optional)
|
1377
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
1378
|
+
|
1379
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
1380
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
1381
|
+
|
1382
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
1383
|
+
|
1384
|
+
:param bool allow_control_chars: (optional)
|
1385
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
1386
|
+
By default, the response will not allow control characters in strings
|
1387
|
+
|
1388
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
1389
|
+
:rtype: :class:`~oci.response.Response`
|
1390
|
+
|
1391
|
+
:example:
|
1392
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/change_pipeline_compartment.py.html>`__ to see an example of how to use change_pipeline_compartment API.
|
1393
|
+
"""
|
1394
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1395
|
+
required_arguments = ['pipelineId']
|
1396
|
+
resource_path = "/pipelines/{pipelineId}/actions/changeCompartment"
|
1397
|
+
method = "POST"
|
1398
|
+
operation_name = "change_pipeline_compartment"
|
1399
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ChangePipelineCompartment"
|
1400
|
+
|
1401
|
+
# Don't accept unknown kwargs
|
1402
|
+
expected_kwargs = [
|
1403
|
+
"allow_control_chars",
|
1404
|
+
"retry_strategy",
|
1405
|
+
"if_match",
|
1406
|
+
"opc_request_id",
|
1407
|
+
"is_lock_override",
|
1408
|
+
"opc_retry_token"
|
1409
|
+
]
|
1410
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
1411
|
+
if extra_kwargs:
|
1412
|
+
raise ValueError(
|
1413
|
+
f"change_pipeline_compartment got unknown kwargs: {extra_kwargs!r}")
|
1414
|
+
|
1415
|
+
path_params = {
|
1416
|
+
"pipelineId": pipeline_id
|
1417
|
+
}
|
1418
|
+
|
1419
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
1420
|
+
|
1421
|
+
for (k, v) in six.iteritems(path_params):
|
1422
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
1423
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
1424
|
+
|
1425
|
+
query_params = {
|
1426
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
1427
|
+
}
|
1428
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
1429
|
+
|
1430
|
+
header_params = {
|
1431
|
+
"accept": "application/json",
|
1432
|
+
"content-type": "application/json",
|
1433
|
+
"if-match": kwargs.get("if_match", missing),
|
1434
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
1435
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
1436
|
+
}
|
1437
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
1438
|
+
|
1439
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
1440
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
1441
|
+
client_retry_strategy=self.retry_strategy
|
1442
|
+
)
|
1443
|
+
if retry_strategy is None:
|
1444
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
1445
|
+
|
1446
|
+
if retry_strategy:
|
1447
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
1448
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
1449
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
1450
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
1451
|
+
return retry_strategy.make_retrying_call(
|
1452
|
+
self.base_client.call_api,
|
1453
|
+
resource_path=resource_path,
|
1454
|
+
method=method,
|
1455
|
+
path_params=path_params,
|
1456
|
+
query_params=query_params,
|
1457
|
+
header_params=header_params,
|
1458
|
+
body=change_pipeline_compartment_details,
|
1459
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1460
|
+
operation_name=operation_name,
|
1461
|
+
api_reference_link=api_reference_link,
|
1462
|
+
required_arguments=required_arguments)
|
1463
|
+
else:
|
1464
|
+
return self.base_client.call_api(
|
1465
|
+
resource_path=resource_path,
|
1466
|
+
method=method,
|
1467
|
+
path_params=path_params,
|
1468
|
+
query_params=query_params,
|
1469
|
+
header_params=header_params,
|
1470
|
+
body=change_pipeline_compartment_details,
|
1471
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
1472
|
+
operation_name=operation_name,
|
1473
|
+
api_reference_link=api_reference_link,
|
1474
|
+
required_arguments=required_arguments)
|
1475
|
+
|
1340
1476
|
def collect_deployment_diagnostic(self, deployment_id, collect_deployment_diagnostic_details, **kwargs):
|
1341
1477
|
"""
|
1342
1478
|
Collects the diagnostic of a Deployment. When provided, If-Match is checked against ETag values of the resource.
|
@@ -1379,7 +1515,7 @@ class GoldenGateClient(object):
|
|
1379
1515
|
:rtype: :class:`~oci.response.Response`
|
1380
1516
|
|
1381
1517
|
:example:
|
1382
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1518
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/collect_deployment_diagnostic.py.html>`__ to see an example of how to use collect_deployment_diagnostic API.
|
1383
1519
|
"""
|
1384
1520
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1385
1521
|
required_arguments = ['deploymentId']
|
@@ -1497,7 +1633,7 @@ class GoldenGateClient(object):
|
|
1497
1633
|
:rtype: :class:`~oci.response.Response`
|
1498
1634
|
|
1499
1635
|
:example:
|
1500
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1636
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/copy_deployment_backup.py.html>`__ to see an example of how to use copy_deployment_backup API.
|
1501
1637
|
"""
|
1502
1638
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1503
1639
|
required_arguments = ['deploymentBackupId']
|
@@ -1614,7 +1750,7 @@ class GoldenGateClient(object):
|
|
1614
1750
|
:rtype: :class:`~oci.response.Response`
|
1615
1751
|
|
1616
1752
|
:example:
|
1617
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1753
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_certificate.py.html>`__ to see an example of how to use create_certificate API.
|
1618
1754
|
"""
|
1619
1755
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1620
1756
|
required_arguments = ['deploymentId']
|
@@ -1729,7 +1865,7 @@ class GoldenGateClient(object):
|
|
1729
1865
|
:rtype: :class:`~oci.response.Response`
|
1730
1866
|
|
1731
1867
|
:example:
|
1732
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1868
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_connection.py.html>`__ to see an example of how to use create_connection API.
|
1733
1869
|
"""
|
1734
1870
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1735
1871
|
required_arguments = []
|
@@ -1829,7 +1965,7 @@ class GoldenGateClient(object):
|
|
1829
1965
|
:rtype: :class:`~oci.response.Response`
|
1830
1966
|
|
1831
1967
|
:example:
|
1832
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
1968
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_connection_assignment.py.html>`__ to see an example of how to use create_connection_assignment API.
|
1833
1969
|
"""
|
1834
1970
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1835
1971
|
required_arguments = []
|
@@ -1935,7 +2071,7 @@ class GoldenGateClient(object):
|
|
1935
2071
|
:rtype: :class:`~oci.response.Response`
|
1936
2072
|
|
1937
2073
|
:example:
|
1938
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2074
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_database_registration.py.html>`__ to see an example of how to use create_database_registration API.
|
1939
2075
|
"""
|
1940
2076
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
1941
2077
|
required_arguments = []
|
@@ -2032,7 +2168,7 @@ class GoldenGateClient(object):
|
|
2032
2168
|
:rtype: :class:`~oci.response.Response`
|
2033
2169
|
|
2034
2170
|
:example:
|
2035
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2171
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_deployment.py.html>`__ to see an example of how to use create_deployment API.
|
2036
2172
|
"""
|
2037
2173
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2038
2174
|
required_arguments = []
|
@@ -2129,7 +2265,7 @@ class GoldenGateClient(object):
|
|
2129
2265
|
:rtype: :class:`~oci.response.Response`
|
2130
2266
|
|
2131
2267
|
:example:
|
2132
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2268
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_deployment_backup.py.html>`__ to see an example of how to use create_deployment_backup API.
|
2133
2269
|
"""
|
2134
2270
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2135
2271
|
required_arguments = []
|
@@ -2193,6 +2329,103 @@ class GoldenGateClient(object):
|
|
2193
2329
|
api_reference_link=api_reference_link,
|
2194
2330
|
required_arguments=required_arguments)
|
2195
2331
|
|
2332
|
+
def create_pipeline(self, create_pipeline_details, **kwargs):
|
2333
|
+
"""
|
2334
|
+
Creates a new Pipeline.
|
2335
|
+
|
2336
|
+
|
2337
|
+
:param oci.golden_gate.models.CreatePipelineDetails create_pipeline_details: (required)
|
2338
|
+
Specification of the pipeline to create.
|
2339
|
+
|
2340
|
+
:param str opc_retry_token: (optional)
|
2341
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
2342
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
2343
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
2344
|
+
from the system, then a retry of the original creation request is rejected.
|
2345
|
+
|
2346
|
+
:param str opc_request_id: (optional)
|
2347
|
+
The client request ID for tracing.
|
2348
|
+
|
2349
|
+
:param obj retry_strategy: (optional)
|
2350
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
2351
|
+
|
2352
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
2353
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
2354
|
+
|
2355
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
2356
|
+
|
2357
|
+
:param bool allow_control_chars: (optional)
|
2358
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2359
|
+
By default, the response will not allow control characters in strings
|
2360
|
+
|
2361
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.Pipeline`
|
2362
|
+
:rtype: :class:`~oci.response.Response`
|
2363
|
+
|
2364
|
+
:example:
|
2365
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/create_pipeline.py.html>`__ to see an example of how to use create_pipeline API.
|
2366
|
+
"""
|
2367
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2368
|
+
required_arguments = []
|
2369
|
+
resource_path = "/pipelines"
|
2370
|
+
method = "POST"
|
2371
|
+
operation_name = "create_pipeline"
|
2372
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/CreatePipeline"
|
2373
|
+
|
2374
|
+
# Don't accept unknown kwargs
|
2375
|
+
expected_kwargs = [
|
2376
|
+
"allow_control_chars",
|
2377
|
+
"retry_strategy",
|
2378
|
+
"opc_retry_token",
|
2379
|
+
"opc_request_id"
|
2380
|
+
]
|
2381
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2382
|
+
if extra_kwargs:
|
2383
|
+
raise ValueError(
|
2384
|
+
f"create_pipeline got unknown kwargs: {extra_kwargs!r}")
|
2385
|
+
|
2386
|
+
header_params = {
|
2387
|
+
"accept": "application/json",
|
2388
|
+
"content-type": "application/json",
|
2389
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing),
|
2390
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2391
|
+
}
|
2392
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2393
|
+
|
2394
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
2395
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
2396
|
+
client_retry_strategy=self.retry_strategy
|
2397
|
+
)
|
2398
|
+
if retry_strategy is None:
|
2399
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
2400
|
+
|
2401
|
+
if retry_strategy:
|
2402
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2403
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2404
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
2405
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2406
|
+
return retry_strategy.make_retrying_call(
|
2407
|
+
self.base_client.call_api,
|
2408
|
+
resource_path=resource_path,
|
2409
|
+
method=method,
|
2410
|
+
header_params=header_params,
|
2411
|
+
body=create_pipeline_details,
|
2412
|
+
response_type="Pipeline",
|
2413
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2414
|
+
operation_name=operation_name,
|
2415
|
+
api_reference_link=api_reference_link,
|
2416
|
+
required_arguments=required_arguments)
|
2417
|
+
else:
|
2418
|
+
return self.base_client.call_api(
|
2419
|
+
resource_path=resource_path,
|
2420
|
+
method=method,
|
2421
|
+
header_params=header_params,
|
2422
|
+
body=create_pipeline_details,
|
2423
|
+
response_type="Pipeline",
|
2424
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
2425
|
+
operation_name=operation_name,
|
2426
|
+
api_reference_link=api_reference_link,
|
2427
|
+
required_arguments=required_arguments)
|
2428
|
+
|
2196
2429
|
def delete_certificate(self, deployment_id, certificate_key, **kwargs):
|
2197
2430
|
"""
|
2198
2431
|
Deletes the certificate from truststore.
|
@@ -2232,7 +2465,7 @@ class GoldenGateClient(object):
|
|
2232
2465
|
:rtype: :class:`~oci.response.Response`
|
2233
2466
|
|
2234
2467
|
:example:
|
2235
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2468
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_certificate.py.html>`__ to see an example of how to use delete_certificate API.
|
2236
2469
|
"""
|
2237
2470
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2238
2471
|
required_arguments = ['deploymentId', 'certificateKey']
|
@@ -2350,7 +2583,7 @@ class GoldenGateClient(object):
|
|
2350
2583
|
:rtype: :class:`~oci.response.Response`
|
2351
2584
|
|
2352
2585
|
:example:
|
2353
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2586
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_connection.py.html>`__ to see an example of how to use delete_connection API.
|
2354
2587
|
"""
|
2355
2588
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2356
2589
|
required_arguments = ['connectionId']
|
@@ -2467,7 +2700,7 @@ class GoldenGateClient(object):
|
|
2467
2700
|
:rtype: :class:`~oci.response.Response`
|
2468
2701
|
|
2469
2702
|
:example:
|
2470
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2703
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_connection_assignment.py.html>`__ to see an example of how to use delete_connection_assignment API.
|
2471
2704
|
"""
|
2472
2705
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2473
2706
|
required_arguments = ['connectionAssignmentId']
|
@@ -2580,7 +2813,7 @@ class GoldenGateClient(object):
|
|
2580
2813
|
:rtype: :class:`~oci.response.Response`
|
2581
2814
|
|
2582
2815
|
:example:
|
2583
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2816
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_database_registration.py.html>`__ to see an example of how to use delete_database_registration API.
|
2584
2817
|
"""
|
2585
2818
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2586
2819
|
required_arguments = ['databaseRegistrationId']
|
@@ -2687,7 +2920,7 @@ class GoldenGateClient(object):
|
|
2687
2920
|
:rtype: :class:`~oci.response.Response`
|
2688
2921
|
|
2689
2922
|
:example:
|
2690
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
2923
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_deployment.py.html>`__ to see an example of how to use delete_deployment API.
|
2691
2924
|
"""
|
2692
2925
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2693
2926
|
required_arguments = ['deploymentId']
|
@@ -2802,7 +3035,7 @@ class GoldenGateClient(object):
|
|
2802
3035
|
:rtype: :class:`~oci.response.Response`
|
2803
3036
|
|
2804
3037
|
:example:
|
2805
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3038
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_deployment_backup.py.html>`__ to see an example of how to use delete_deployment_backup API.
|
2806
3039
|
"""
|
2807
3040
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2808
3041
|
required_arguments = ['deploymentBackupId']
|
@@ -2881,16 +3114,15 @@ class GoldenGateClient(object):
|
|
2881
3114
|
api_reference_link=api_reference_link,
|
2882
3115
|
required_arguments=required_arguments)
|
2883
3116
|
|
2884
|
-
def
|
3117
|
+
def delete_pipeline(self, pipeline_id, **kwargs):
|
2885
3118
|
"""
|
2886
|
-
|
3119
|
+
Deletes a Pipeline.
|
2887
3120
|
|
2888
3121
|
|
2889
|
-
:param str
|
2890
|
-
|
3122
|
+
:param str pipeline_id: (required)
|
3123
|
+
The `OCID`__ of the pipeline created.
|
2891
3124
|
|
2892
|
-
|
2893
|
-
A placeholder for any additional metadata to describe the deployment start.
|
3125
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
2894
3126
|
|
2895
3127
|
:param str if_match: (optional)
|
2896
3128
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -2901,11 +3133,8 @@ class GoldenGateClient(object):
|
|
2901
3133
|
:param str opc_request_id: (optional)
|
2902
3134
|
The client request ID for tracing.
|
2903
3135
|
|
2904
|
-
:param
|
2905
|
-
|
2906
|
-
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
2907
|
-
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
2908
|
-
from the system, then a retry of the original creation request is rejected.
|
3136
|
+
:param bool is_lock_override: (optional)
|
3137
|
+
Whether to override locks (if any exist).
|
2909
3138
|
|
2910
3139
|
:param obj retry_strategy: (optional)
|
2911
3140
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -2919,18 +3148,18 @@ class GoldenGateClient(object):
|
|
2919
3148
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
2920
3149
|
By default, the response will not allow control characters in strings
|
2921
3150
|
|
2922
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3151
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
2923
3152
|
:rtype: :class:`~oci.response.Response`
|
2924
3153
|
|
2925
3154
|
:example:
|
2926
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3155
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/delete_pipeline.py.html>`__ to see an example of how to use delete_pipeline API.
|
2927
3156
|
"""
|
2928
3157
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
2929
|
-
required_arguments = ['
|
2930
|
-
resource_path = "/
|
2931
|
-
method = "
|
2932
|
-
operation_name = "
|
2933
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
3158
|
+
required_arguments = ['pipelineId']
|
3159
|
+
resource_path = "/pipelines/{pipelineId}"
|
3160
|
+
method = "DELETE"
|
3161
|
+
operation_name = "delete_pipeline"
|
3162
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/DeletePipeline"
|
2934
3163
|
|
2935
3164
|
# Don't accept unknown kwargs
|
2936
3165
|
expected_kwargs = [
|
@@ -2938,15 +3167,15 @@ class GoldenGateClient(object):
|
|
2938
3167
|
"retry_strategy",
|
2939
3168
|
"if_match",
|
2940
3169
|
"opc_request_id",
|
2941
|
-
"
|
3170
|
+
"is_lock_override"
|
2942
3171
|
]
|
2943
3172
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
2944
3173
|
if extra_kwargs:
|
2945
3174
|
raise ValueError(
|
2946
|
-
f"
|
3175
|
+
f"delete_pipeline got unknown kwargs: {extra_kwargs!r}")
|
2947
3176
|
|
2948
3177
|
path_params = {
|
2949
|
-
"
|
3178
|
+
"pipelineId": pipeline_id
|
2950
3179
|
}
|
2951
3180
|
|
2952
3181
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -2955,12 +3184,16 @@ class GoldenGateClient(object):
|
|
2955
3184
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
2956
3185
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
2957
3186
|
|
3187
|
+
query_params = {
|
3188
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
3189
|
+
}
|
3190
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
3191
|
+
|
2958
3192
|
header_params = {
|
2959
3193
|
"accept": "application/json",
|
2960
3194
|
"content-type": "application/json",
|
2961
3195
|
"if-match": kwargs.get("if_match", missing),
|
2962
|
-
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2963
|
-
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3196
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
2964
3197
|
}
|
2965
3198
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
2966
3199
|
|
@@ -2973,7 +3206,6 @@ class GoldenGateClient(object):
|
|
2973
3206
|
|
2974
3207
|
if retry_strategy:
|
2975
3208
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
2976
|
-
self.base_client.add_opc_retry_token_if_needed(header_params)
|
2977
3209
|
self.base_client.add_opc_client_retries_header(header_params)
|
2978
3210
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
2979
3211
|
return retry_strategy.make_retrying_call(
|
@@ -2981,9 +3213,8 @@ class GoldenGateClient(object):
|
|
2981
3213
|
resource_path=resource_path,
|
2982
3214
|
method=method,
|
2983
3215
|
path_params=path_params,
|
3216
|
+
query_params=query_params,
|
2984
3217
|
header_params=header_params,
|
2985
|
-
body=deployment_wallet_exists_details,
|
2986
|
-
response_type="DeploymentWalletExistsResponseDetails",
|
2987
3218
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
2988
3219
|
operation_name=operation_name,
|
2989
3220
|
api_reference_link=api_reference_link,
|
@@ -2993,24 +3224,23 @@ class GoldenGateClient(object):
|
|
2993
3224
|
resource_path=resource_path,
|
2994
3225
|
method=method,
|
2995
3226
|
path_params=path_params,
|
3227
|
+
query_params=query_params,
|
2996
3228
|
header_params=header_params,
|
2997
|
-
body=deployment_wallet_exists_details,
|
2998
|
-
response_type="DeploymentWalletExistsResponseDetails",
|
2999
3229
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
3000
3230
|
operation_name=operation_name,
|
3001
3231
|
api_reference_link=api_reference_link,
|
3002
3232
|
required_arguments=required_arguments)
|
3003
3233
|
|
3004
|
-
def
|
3234
|
+
def deployment_wallet_exists(self, deployment_id, deployment_wallet_exists_details, **kwargs):
|
3005
3235
|
"""
|
3006
|
-
|
3236
|
+
Checks if a wallet is already present in the deployment. When provided, If-Match is checked against ETag values of the resource.
|
3007
3237
|
|
3008
3238
|
|
3009
3239
|
:param str deployment_id: (required)
|
3010
3240
|
A unique Deployment identifier.
|
3011
3241
|
|
3012
|
-
:param oci.golden_gate.models.
|
3013
|
-
|
3242
|
+
:param oci.golden_gate.models.DeploymentWalletExistsDetails deployment_wallet_exists_details: (required)
|
3243
|
+
A placeholder for any additional metadata to describe the deployment start.
|
3014
3244
|
|
3015
3245
|
:param str if_match: (optional)
|
3016
3246
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -3039,15 +3269,135 @@ class GoldenGateClient(object):
|
|
3039
3269
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3040
3270
|
By default, the response will not allow control characters in strings
|
3041
3271
|
|
3042
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
3272
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.DeploymentWalletExistsResponseDetails`
|
3043
3273
|
:rtype: :class:`~oci.response.Response`
|
3044
3274
|
|
3045
3275
|
:example:
|
3046
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3276
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/deployment_wallet_exists.py.html>`__ to see an example of how to use deployment_wallet_exists API.
|
3047
3277
|
"""
|
3048
3278
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3049
3279
|
required_arguments = ['deploymentId']
|
3050
|
-
resource_path = "/deployments/{deploymentId}/actions/
|
3280
|
+
resource_path = "/deployments/{deploymentId}/actions/walletExists"
|
3281
|
+
method = "POST"
|
3282
|
+
operation_name = "deployment_wallet_exists"
|
3283
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/DeploymentWalletExists"
|
3284
|
+
|
3285
|
+
# Don't accept unknown kwargs
|
3286
|
+
expected_kwargs = [
|
3287
|
+
"allow_control_chars",
|
3288
|
+
"retry_strategy",
|
3289
|
+
"if_match",
|
3290
|
+
"opc_request_id",
|
3291
|
+
"opc_retry_token"
|
3292
|
+
]
|
3293
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
3294
|
+
if extra_kwargs:
|
3295
|
+
raise ValueError(
|
3296
|
+
f"deployment_wallet_exists got unknown kwargs: {extra_kwargs!r}")
|
3297
|
+
|
3298
|
+
path_params = {
|
3299
|
+
"deploymentId": deployment_id
|
3300
|
+
}
|
3301
|
+
|
3302
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
3303
|
+
|
3304
|
+
for (k, v) in six.iteritems(path_params):
|
3305
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
3306
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
3307
|
+
|
3308
|
+
header_params = {
|
3309
|
+
"accept": "application/json",
|
3310
|
+
"content-type": "application/json",
|
3311
|
+
"if-match": kwargs.get("if_match", missing),
|
3312
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
3313
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
3314
|
+
}
|
3315
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
3316
|
+
|
3317
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
3318
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
3319
|
+
client_retry_strategy=self.retry_strategy
|
3320
|
+
)
|
3321
|
+
if retry_strategy is None:
|
3322
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
3323
|
+
|
3324
|
+
if retry_strategy:
|
3325
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
3326
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
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
|
+
body=deployment_wallet_exists_details,
|
3336
|
+
response_type="DeploymentWalletExistsResponseDetails",
|
3337
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3338
|
+
operation_name=operation_name,
|
3339
|
+
api_reference_link=api_reference_link,
|
3340
|
+
required_arguments=required_arguments)
|
3341
|
+
else:
|
3342
|
+
return self.base_client.call_api(
|
3343
|
+
resource_path=resource_path,
|
3344
|
+
method=method,
|
3345
|
+
path_params=path_params,
|
3346
|
+
header_params=header_params,
|
3347
|
+
body=deployment_wallet_exists_details,
|
3348
|
+
response_type="DeploymentWalletExistsResponseDetails",
|
3349
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
3350
|
+
operation_name=operation_name,
|
3351
|
+
api_reference_link=api_reference_link,
|
3352
|
+
required_arguments=required_arguments)
|
3353
|
+
|
3354
|
+
def export_deployment_wallet(self, deployment_id, export_deployment_wallet_details, **kwargs):
|
3355
|
+
"""
|
3356
|
+
Export the OGG wallet from the deployment to OCI vault. When provided, If-Match is checked against ETag values of the resource.
|
3357
|
+
|
3358
|
+
|
3359
|
+
:param str deployment_id: (required)
|
3360
|
+
A unique Deployment identifier.
|
3361
|
+
|
3362
|
+
:param oci.golden_gate.models.ExportDeploymentWalletDetails export_deployment_wallet_details: (required)
|
3363
|
+
Metadata to export the OGG wallet from deployment. This also includes the OCI vault information where the wallet will be exported to
|
3364
|
+
|
3365
|
+
:param str if_match: (optional)
|
3366
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
3367
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
3368
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
3369
|
+
resource's current etag value.
|
3370
|
+
|
3371
|
+
:param str opc_request_id: (optional)
|
3372
|
+
The client request ID for tracing.
|
3373
|
+
|
3374
|
+
:param str opc_retry_token: (optional)
|
3375
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
3376
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
3377
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
3378
|
+
from the system, then a retry of the original creation request is rejected.
|
3379
|
+
|
3380
|
+
:param obj retry_strategy: (optional)
|
3381
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
3382
|
+
|
3383
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
3384
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
3385
|
+
|
3386
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
3387
|
+
|
3388
|
+
:param bool allow_control_chars: (optional)
|
3389
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
3390
|
+
By default, the response will not allow control characters in strings
|
3391
|
+
|
3392
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
3393
|
+
:rtype: :class:`~oci.response.Response`
|
3394
|
+
|
3395
|
+
:example:
|
3396
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/export_deployment_wallet.py.html>`__ to see an example of how to use export_deployment_wallet API.
|
3397
|
+
"""
|
3398
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3399
|
+
required_arguments = ['deploymentId']
|
3400
|
+
resource_path = "/deployments/{deploymentId}/actions/exportWallet"
|
3051
3401
|
method = "POST"
|
3052
3402
|
operation_name = "export_deployment_wallet"
|
3053
3403
|
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/ExportDeploymentWallet"
|
@@ -3161,7 +3511,7 @@ class GoldenGateClient(object):
|
|
3161
3511
|
:rtype: :class:`~oci.response.Response`
|
3162
3512
|
|
3163
3513
|
:example:
|
3164
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3514
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/generate_library_url.py.html>`__ to see an example of how to use generate_library_url API.
|
3165
3515
|
"""
|
3166
3516
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3167
3517
|
required_arguments = ['deploymentId']
|
@@ -3269,7 +3619,7 @@ class GoldenGateClient(object):
|
|
3269
3619
|
:rtype: :class:`~oci.response.Response`
|
3270
3620
|
|
3271
3621
|
:example:
|
3272
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3622
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_certificate.py.html>`__ to see an example of how to use get_certificate API.
|
3273
3623
|
"""
|
3274
3624
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3275
3625
|
required_arguments = ['deploymentId', 'certificateKey']
|
@@ -3370,7 +3720,7 @@ class GoldenGateClient(object):
|
|
3370
3720
|
:rtype: :class:`~oci.response.Response`
|
3371
3721
|
|
3372
3722
|
:example:
|
3373
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3723
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_connection.py.html>`__ to see an example of how to use get_connection API.
|
3374
3724
|
"""
|
3375
3725
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3376
3726
|
required_arguments = ['connectionId']
|
@@ -3470,7 +3820,7 @@ class GoldenGateClient(object):
|
|
3470
3820
|
:rtype: :class:`~oci.response.Response`
|
3471
3821
|
|
3472
3822
|
:example:
|
3473
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3823
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_connection_assignment.py.html>`__ to see an example of how to use get_connection_assignment API.
|
3474
3824
|
"""
|
3475
3825
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3476
3826
|
required_arguments = ['connectionAssignmentId']
|
@@ -3569,7 +3919,7 @@ class GoldenGateClient(object):
|
|
3569
3919
|
:rtype: :class:`~oci.response.Response`
|
3570
3920
|
|
3571
3921
|
:example:
|
3572
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
3922
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_database_registration.py.html>`__ to see an example of how to use get_database_registration API.
|
3573
3923
|
"""
|
3574
3924
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3575
3925
|
required_arguments = ['databaseRegistrationId']
|
@@ -3667,7 +4017,7 @@ class GoldenGateClient(object):
|
|
3667
4017
|
:rtype: :class:`~oci.response.Response`
|
3668
4018
|
|
3669
4019
|
:example:
|
3670
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4020
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_deployment.py.html>`__ to see an example of how to use get_deployment API.
|
3671
4021
|
"""
|
3672
4022
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3673
4023
|
required_arguments = ['deploymentId']
|
@@ -3765,7 +4115,7 @@ class GoldenGateClient(object):
|
|
3765
4115
|
:rtype: :class:`~oci.response.Response`
|
3766
4116
|
|
3767
4117
|
:example:
|
3768
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4118
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_deployment_backup.py.html>`__ to see an example of how to use get_deployment_backup API.
|
3769
4119
|
"""
|
3770
4120
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3771
4121
|
required_arguments = ['deploymentBackupId']
|
@@ -3863,7 +4213,7 @@ class GoldenGateClient(object):
|
|
3863
4213
|
:rtype: :class:`~oci.response.Response`
|
3864
4214
|
|
3865
4215
|
:example:
|
3866
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4216
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_deployment_upgrade.py.html>`__ to see an example of how to use get_deployment_upgrade API.
|
3867
4217
|
"""
|
3868
4218
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3869
4219
|
required_arguments = ['deploymentUpgradeId']
|
@@ -3934,6 +4284,106 @@ class GoldenGateClient(object):
|
|
3934
4284
|
api_reference_link=api_reference_link,
|
3935
4285
|
required_arguments=required_arguments)
|
3936
4286
|
|
4287
|
+
def get_pipeline(self, pipeline_id, **kwargs):
|
4288
|
+
"""
|
4289
|
+
Retrieves a Pipeline details.
|
4290
|
+
|
4291
|
+
|
4292
|
+
:param str pipeline_id: (required)
|
4293
|
+
The `OCID`__ of the pipeline created.
|
4294
|
+
|
4295
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
4296
|
+
|
4297
|
+
:param str opc_request_id: (optional)
|
4298
|
+
The client request ID for tracing.
|
4299
|
+
|
4300
|
+
:param obj retry_strategy: (optional)
|
4301
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
4302
|
+
|
4303
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
4304
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
4305
|
+
|
4306
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
4307
|
+
|
4308
|
+
:param bool allow_control_chars: (optional)
|
4309
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
4310
|
+
By default, the response will not allow control characters in strings
|
4311
|
+
|
4312
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.Pipeline`
|
4313
|
+
:rtype: :class:`~oci.response.Response`
|
4314
|
+
|
4315
|
+
:example:
|
4316
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_pipeline.py.html>`__ to see an example of how to use get_pipeline API.
|
4317
|
+
"""
|
4318
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4319
|
+
required_arguments = ['pipelineId']
|
4320
|
+
resource_path = "/pipelines/{pipelineId}"
|
4321
|
+
method = "GET"
|
4322
|
+
operation_name = "get_pipeline"
|
4323
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/GetPipeline"
|
4324
|
+
|
4325
|
+
# Don't accept unknown kwargs
|
4326
|
+
expected_kwargs = [
|
4327
|
+
"allow_control_chars",
|
4328
|
+
"retry_strategy",
|
4329
|
+
"opc_request_id"
|
4330
|
+
]
|
4331
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
4332
|
+
if extra_kwargs:
|
4333
|
+
raise ValueError(
|
4334
|
+
f"get_pipeline got unknown kwargs: {extra_kwargs!r}")
|
4335
|
+
|
4336
|
+
path_params = {
|
4337
|
+
"pipelineId": pipeline_id
|
4338
|
+
}
|
4339
|
+
|
4340
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
4341
|
+
|
4342
|
+
for (k, v) in six.iteritems(path_params):
|
4343
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
4344
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
4345
|
+
|
4346
|
+
header_params = {
|
4347
|
+
"accept": "application/json",
|
4348
|
+
"content-type": "application/json",
|
4349
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
4350
|
+
}
|
4351
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
4352
|
+
|
4353
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
4354
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
4355
|
+
client_retry_strategy=self.retry_strategy
|
4356
|
+
)
|
4357
|
+
if retry_strategy is None:
|
4358
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
4359
|
+
|
4360
|
+
if retry_strategy:
|
4361
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
4362
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
4363
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
4364
|
+
return retry_strategy.make_retrying_call(
|
4365
|
+
self.base_client.call_api,
|
4366
|
+
resource_path=resource_path,
|
4367
|
+
method=method,
|
4368
|
+
path_params=path_params,
|
4369
|
+
header_params=header_params,
|
4370
|
+
response_type="Pipeline",
|
4371
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4372
|
+
operation_name=operation_name,
|
4373
|
+
api_reference_link=api_reference_link,
|
4374
|
+
required_arguments=required_arguments)
|
4375
|
+
else:
|
4376
|
+
return self.base_client.call_api(
|
4377
|
+
resource_path=resource_path,
|
4378
|
+
method=method,
|
4379
|
+
path_params=path_params,
|
4380
|
+
header_params=header_params,
|
4381
|
+
response_type="Pipeline",
|
4382
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
4383
|
+
operation_name=operation_name,
|
4384
|
+
api_reference_link=api_reference_link,
|
4385
|
+
required_arguments=required_arguments)
|
4386
|
+
|
3937
4387
|
def get_work_request(self, work_request_id, **kwargs):
|
3938
4388
|
"""
|
3939
4389
|
Retrieve the WorkRequest identified by the given OCID.
|
@@ -3963,7 +4413,7 @@ class GoldenGateClient(object):
|
|
3963
4413
|
:rtype: :class:`~oci.response.Response`
|
3964
4414
|
|
3965
4415
|
:example:
|
3966
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4416
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/get_work_request.py.html>`__ to see an example of how to use get_work_request API.
|
3967
4417
|
"""
|
3968
4418
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
3969
4419
|
required_arguments = ['workRequestId']
|
@@ -4079,7 +4529,7 @@ class GoldenGateClient(object):
|
|
4079
4529
|
:rtype: :class:`~oci.response.Response`
|
4080
4530
|
|
4081
4531
|
:example:
|
4082
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4532
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/import_deployment_wallet.py.html>`__ to see an example of how to use import_deployment_wallet API.
|
4083
4533
|
"""
|
4084
4534
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4085
4535
|
required_arguments = ['deploymentId']
|
@@ -4214,7 +4664,7 @@ class GoldenGateClient(object):
|
|
4214
4664
|
:rtype: :class:`~oci.response.Response`
|
4215
4665
|
|
4216
4666
|
:example:
|
4217
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4667
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_certificates.py.html>`__ to see an example of how to use list_certificates API.
|
4218
4668
|
"""
|
4219
4669
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4220
4670
|
required_arguments = ['deploymentId']
|
@@ -4389,7 +4839,7 @@ class GoldenGateClient(object):
|
|
4389
4839
|
:rtype: :class:`~oci.response.Response`
|
4390
4840
|
|
4391
4841
|
:example:
|
4392
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
4842
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_connection_assignments.py.html>`__ to see an example of how to use list_connection_assignments API.
|
4393
4843
|
"""
|
4394
4844
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4395
4845
|
required_arguments = ['compartmentId']
|
@@ -4570,7 +5020,7 @@ class GoldenGateClient(object):
|
|
4570
5020
|
:rtype: :class:`~oci.response.Response`
|
4571
5021
|
|
4572
5022
|
:example:
|
4573
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5023
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_connections.py.html>`__ to see an example of how to use list_connections API.
|
4574
5024
|
"""
|
4575
5025
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4576
5026
|
required_arguments = ['compartmentId']
|
@@ -4760,7 +5210,7 @@ class GoldenGateClient(object):
|
|
4760
5210
|
:rtype: :class:`~oci.response.Response`
|
4761
5211
|
|
4762
5212
|
:example:
|
4763
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5213
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_database_registrations.py.html>`__ to see an example of how to use list_database_registrations API.
|
4764
5214
|
"""
|
4765
5215
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4766
5216
|
required_arguments = ['compartmentId']
|
@@ -4921,7 +5371,7 @@ class GoldenGateClient(object):
|
|
4921
5371
|
:rtype: :class:`~oci.response.Response`
|
4922
5372
|
|
4923
5373
|
:example:
|
4924
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5374
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_backups.py.html>`__ to see an example of how to use list_deployment_backups API.
|
4925
5375
|
"""
|
4926
5376
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
4927
5377
|
required_arguments = ['compartmentId']
|
@@ -5071,7 +5521,7 @@ class GoldenGateClient(object):
|
|
5071
5521
|
:rtype: :class:`~oci.response.Response`
|
5072
5522
|
|
5073
5523
|
:example:
|
5074
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5524
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_environments.py.html>`__ to see an example of how to use list_deployment_environments API.
|
5075
5525
|
"""
|
5076
5526
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5077
5527
|
required_arguments = ['compartmentId']
|
@@ -5219,7 +5669,7 @@ class GoldenGateClient(object):
|
|
5219
5669
|
:rtype: :class:`~oci.response.Response`
|
5220
5670
|
|
5221
5671
|
:example:
|
5222
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5672
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_types.py.html>`__ to see an example of how to use list_deployment_types API.
|
5223
5673
|
"""
|
5224
5674
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5225
5675
|
required_arguments = ['compartmentId']
|
@@ -5382,7 +5832,7 @@ class GoldenGateClient(object):
|
|
5382
5832
|
:rtype: :class:`~oci.response.Response`
|
5383
5833
|
|
5384
5834
|
:example:
|
5385
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5835
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_upgrades.py.html>`__ to see an example of how to use list_deployment_upgrades API.
|
5386
5836
|
"""
|
5387
5837
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5388
5838
|
required_arguments = ['compartmentId']
|
@@ -5542,7 +5992,7 @@ class GoldenGateClient(object):
|
|
5542
5992
|
:rtype: :class:`~oci.response.Response`
|
5543
5993
|
|
5544
5994
|
:example:
|
5545
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
5995
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_versions.py.html>`__ to see an example of how to use list_deployment_versions API.
|
5546
5996
|
"""
|
5547
5997
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5548
5998
|
required_arguments = ['compartmentId']
|
@@ -5689,7 +6139,7 @@ class GoldenGateClient(object):
|
|
5689
6139
|
:rtype: :class:`~oci.response.Response`
|
5690
6140
|
|
5691
6141
|
:example:
|
5692
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6142
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployment_wallets_operations.py.html>`__ to see an example of how to use list_deployment_wallets_operations API.
|
5693
6143
|
"""
|
5694
6144
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5695
6145
|
required_arguments = ['deploymentId']
|
@@ -5866,7 +6316,7 @@ class GoldenGateClient(object):
|
|
5866
6316
|
:rtype: :class:`~oci.response.Response`
|
5867
6317
|
|
5868
6318
|
:example:
|
5869
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6319
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_deployments.py.html>`__ to see an example of how to use list_deployments API.
|
5870
6320
|
"""
|
5871
6321
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
5872
6322
|
required_arguments = ['compartmentId']
|
@@ -6023,7 +6473,7 @@ class GoldenGateClient(object):
|
|
6023
6473
|
:rtype: :class:`~oci.response.Response`
|
6024
6474
|
|
6025
6475
|
:example:
|
6026
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6476
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_messages.py.html>`__ to see an example of how to use list_messages API.
|
6027
6477
|
"""
|
6028
6478
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6029
6479
|
required_arguments = ['deploymentId']
|
@@ -6093,42 +6543,19 @@ class GoldenGateClient(object):
|
|
6093
6543
|
api_reference_link=api_reference_link,
|
6094
6544
|
required_arguments=required_arguments)
|
6095
6545
|
|
6096
|
-
def
|
6546
|
+
def list_pipeline_initialization_steps(self, pipeline_id, **kwargs):
|
6097
6547
|
"""
|
6098
|
-
|
6548
|
+
Retrieves a Pipeline recipe steps and its progress details.
|
6099
6549
|
|
6100
6550
|
|
6101
|
-
:param str
|
6102
|
-
|
6103
|
-
|
6104
|
-
:param str display_name: (optional)
|
6105
|
-
A filter to return only the resources that match the entire 'displayName' given.
|
6551
|
+
:param str pipeline_id: (required)
|
6552
|
+
The `OCID`__ of the pipeline created.
|
6106
6553
|
|
6107
|
-
|
6108
|
-
A Trail File identifier
|
6554
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
6109
6555
|
|
6110
6556
|
:param str opc_request_id: (optional)
|
6111
6557
|
The client request ID for tracing.
|
6112
6558
|
|
6113
|
-
:param int limit: (optional)
|
6114
|
-
The maximum number of items to return.
|
6115
|
-
|
6116
|
-
:param str page: (optional)
|
6117
|
-
The page token representing the page at which to start retrieving results. This is usually
|
6118
|
-
retrieved from a previous list call.
|
6119
|
-
|
6120
|
-
:param str sort_by: (optional)
|
6121
|
-
The field to sort by. Only one sort order can be provided. Default order for 'timeLastUpdated' is
|
6122
|
-
descending. Default order for 'displayName' is ascending. If no value is specified
|
6123
|
-
displayName is the default.
|
6124
|
-
|
6125
|
-
Allowed values are: "timeLastUpdated", "displayName"
|
6126
|
-
|
6127
|
-
:param str sort_order: (optional)
|
6128
|
-
The sort order to use, either 'asc' or 'desc'.
|
6129
|
-
|
6130
|
-
Allowed values are: "ASC", "DESC"
|
6131
|
-
|
6132
6559
|
:param obj retry_strategy: (optional)
|
6133
6560
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6134
6561
|
|
@@ -6141,60 +6568,39 @@ class GoldenGateClient(object):
|
|
6141
6568
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6142
6569
|
By default, the response will not allow control characters in strings
|
6143
6570
|
|
6144
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.
|
6571
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.PipelineInitializationSteps`
|
6145
6572
|
:rtype: :class:`~oci.response.Response`
|
6146
6573
|
|
6147
6574
|
:example:
|
6148
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6575
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_pipeline_initialization_steps.py.html>`__ to see an example of how to use list_pipeline_initialization_steps API.
|
6149
6576
|
"""
|
6150
6577
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6151
|
-
required_arguments = ['
|
6152
|
-
resource_path = "/
|
6578
|
+
required_arguments = ['pipelineId']
|
6579
|
+
resource_path = "/pipelines/{pipelineId}/initializationSteps"
|
6153
6580
|
method = "GET"
|
6154
|
-
operation_name = "
|
6155
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
6581
|
+
operation_name = "list_pipeline_initialization_steps"
|
6582
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineInitializationSteps"
|
6156
6583
|
|
6157
6584
|
# Don't accept unknown kwargs
|
6158
6585
|
expected_kwargs = [
|
6159
6586
|
"allow_control_chars",
|
6160
6587
|
"retry_strategy",
|
6161
|
-
"
|
6162
|
-
"trail_file_id",
|
6163
|
-
"opc_request_id",
|
6164
|
-
"limit",
|
6165
|
-
"page",
|
6166
|
-
"sort_by",
|
6167
|
-
"sort_order"
|
6588
|
+
"opc_request_id"
|
6168
6589
|
]
|
6169
6590
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6170
6591
|
if extra_kwargs:
|
6171
6592
|
raise ValueError(
|
6172
|
-
f"
|
6593
|
+
f"list_pipeline_initialization_steps got unknown kwargs: {extra_kwargs!r}")
|
6173
6594
|
|
6174
|
-
|
6175
|
-
|
6176
|
-
|
6177
|
-
raise ValueError(
|
6178
|
-
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
6179
|
-
)
|
6595
|
+
path_params = {
|
6596
|
+
"pipelineId": pipeline_id
|
6597
|
+
}
|
6180
6598
|
|
6181
|
-
|
6182
|
-
sort_order_allowed_values = ["ASC", "DESC"]
|
6183
|
-
if kwargs['sort_order'] not in sort_order_allowed_values:
|
6184
|
-
raise ValueError(
|
6185
|
-
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
6186
|
-
)
|
6599
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6187
6600
|
|
6188
|
-
|
6189
|
-
|
6190
|
-
|
6191
|
-
"trailFileId": kwargs.get("trail_file_id", missing),
|
6192
|
-
"limit": kwargs.get("limit", missing),
|
6193
|
-
"page": kwargs.get("page", missing),
|
6194
|
-
"sortBy": kwargs.get("sort_by", missing),
|
6195
|
-
"sortOrder": kwargs.get("sort_order", missing)
|
6196
|
-
}
|
6197
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6601
|
+
for (k, v) in six.iteritems(path_params):
|
6602
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6603
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6198
6604
|
|
6199
6605
|
header_params = {
|
6200
6606
|
"accept": "application/json",
|
@@ -6218,9 +6624,9 @@ class GoldenGateClient(object):
|
|
6218
6624
|
self.base_client.call_api,
|
6219
6625
|
resource_path=resource_path,
|
6220
6626
|
method=method,
|
6221
|
-
|
6627
|
+
path_params=path_params,
|
6222
6628
|
header_params=header_params,
|
6223
|
-
response_type="
|
6629
|
+
response_type="PipelineInitializationSteps",
|
6224
6630
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6225
6631
|
operation_name=operation_name,
|
6226
6632
|
api_reference_link=api_reference_link,
|
@@ -6229,33 +6635,23 @@ class GoldenGateClient(object):
|
|
6229
6635
|
return self.base_client.call_api(
|
6230
6636
|
resource_path=resource_path,
|
6231
6637
|
method=method,
|
6232
|
-
|
6638
|
+
path_params=path_params,
|
6233
6639
|
header_params=header_params,
|
6234
|
-
response_type="
|
6640
|
+
response_type="PipelineInitializationSteps",
|
6235
6641
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6236
6642
|
operation_name=operation_name,
|
6237
6643
|
api_reference_link=api_reference_link,
|
6238
6644
|
required_arguments=required_arguments)
|
6239
6645
|
|
6240
|
-
def
|
6646
|
+
def list_pipeline_running_processes(self, pipeline_id, **kwargs):
|
6241
6647
|
"""
|
6242
|
-
|
6243
|
-
|
6244
|
-
|
6245
|
-
:param str deployment_id: (required)
|
6246
|
-
A unique Deployment identifier.
|
6247
|
-
|
6248
|
-
:param str trail_file_id: (required)
|
6249
|
-
A Trail File identifier
|
6648
|
+
Retrieves a Pipeline's running replication process's status like extracts/replicats.
|
6250
6649
|
|
6251
|
-
:param str trail_sequence_id: (optional)
|
6252
|
-
A Trail Sequence identifier
|
6253
6650
|
|
6254
|
-
:param str
|
6255
|
-
|
6651
|
+
:param str pipeline_id: (required)
|
6652
|
+
The `OCID`__ of the pipeline created.
|
6256
6653
|
|
6257
|
-
|
6258
|
-
The client request ID for tracing.
|
6654
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
6259
6655
|
|
6260
6656
|
:param int limit: (optional)
|
6261
6657
|
The maximum number of items to return.
|
@@ -6264,18 +6660,21 @@ class GoldenGateClient(object):
|
|
6264
6660
|
The page token representing the page at which to start retrieving results. This is usually
|
6265
6661
|
retrieved from a previous list call.
|
6266
6662
|
|
6267
|
-
:param str sort_by: (optional)
|
6268
|
-
The field to sort by. Only one sort order can be provided. Default order for 'timeLastUpdated' is
|
6269
|
-
descending. Default order for 'displayName' is ascending. If no value is specified
|
6270
|
-
displayName is the default.
|
6271
|
-
|
6272
|
-
Allowed values are: "timeLastUpdated", "displayName"
|
6273
|
-
|
6274
6663
|
:param str sort_order: (optional)
|
6275
6664
|
The sort order to use, either 'asc' or 'desc'.
|
6276
6665
|
|
6277
6666
|
Allowed values are: "ASC", "DESC"
|
6278
6667
|
|
6668
|
+
:param str sort_by: (optional)
|
6669
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is
|
6670
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
6671
|
+
timeCreated is the default.
|
6672
|
+
|
6673
|
+
Allowed values are: "timeCreated", "displayName"
|
6674
|
+
|
6675
|
+
:param str opc_request_id: (optional)
|
6676
|
+
The client request ID for tracing.
|
6677
|
+
|
6279
6678
|
:param obj retry_strategy: (optional)
|
6280
6679
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
6281
6680
|
|
@@ -6288,42 +6687,43 @@ class GoldenGateClient(object):
|
|
6288
6687
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6289
6688
|
By default, the response will not allow control characters in strings
|
6290
6689
|
|
6291
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.
|
6690
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.PipelineRunningProcessCollection`
|
6292
6691
|
:rtype: :class:`~oci.response.Response`
|
6293
6692
|
|
6294
6693
|
:example:
|
6295
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6694
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_pipeline_running_processes.py.html>`__ to see an example of how to use list_pipeline_running_processes API.
|
6296
6695
|
"""
|
6297
6696
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6298
|
-
required_arguments = ['
|
6299
|
-
resource_path = "/
|
6697
|
+
required_arguments = ['pipelineId']
|
6698
|
+
resource_path = "/pipelines/{pipelineId}/runningProcesses"
|
6300
6699
|
method = "GET"
|
6301
|
-
operation_name = "
|
6302
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
6700
|
+
operation_name = "list_pipeline_running_processes"
|
6701
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineRunningProcesses"
|
6303
6702
|
|
6304
6703
|
# Don't accept unknown kwargs
|
6305
6704
|
expected_kwargs = [
|
6306
6705
|
"allow_control_chars",
|
6307
6706
|
"retry_strategy",
|
6308
|
-
"trail_sequence_id",
|
6309
|
-
"display_name",
|
6310
|
-
"opc_request_id",
|
6311
6707
|
"limit",
|
6312
6708
|
"page",
|
6709
|
+
"sort_order",
|
6313
6710
|
"sort_by",
|
6314
|
-
"
|
6711
|
+
"opc_request_id"
|
6315
6712
|
]
|
6316
6713
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6317
6714
|
if extra_kwargs:
|
6318
6715
|
raise ValueError(
|
6319
|
-
f"
|
6716
|
+
f"list_pipeline_running_processes got unknown kwargs: {extra_kwargs!r}")
|
6320
6717
|
|
6321
|
-
|
6322
|
-
|
6323
|
-
|
6324
|
-
|
6325
|
-
|
6326
|
-
|
6718
|
+
path_params = {
|
6719
|
+
"pipelineId": pipeline_id
|
6720
|
+
}
|
6721
|
+
|
6722
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
6723
|
+
|
6724
|
+
for (k, v) in six.iteritems(path_params):
|
6725
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6726
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6327
6727
|
|
6328
6728
|
if 'sort_order' in kwargs:
|
6329
6729
|
sort_order_allowed_values = ["ASC", "DESC"]
|
@@ -6332,15 +6732,18 @@ class GoldenGateClient(object):
|
|
6332
6732
|
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
6333
6733
|
)
|
6334
6734
|
|
6735
|
+
if 'sort_by' in kwargs:
|
6736
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
6737
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
6738
|
+
raise ValueError(
|
6739
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
6740
|
+
)
|
6741
|
+
|
6335
6742
|
query_params = {
|
6336
|
-
"deploymentId": deployment_id,
|
6337
|
-
"trailFileId": trail_file_id,
|
6338
|
-
"trailSequenceId": kwargs.get("trail_sequence_id", missing),
|
6339
|
-
"displayName": kwargs.get("display_name", missing),
|
6340
6743
|
"limit": kwargs.get("limit", missing),
|
6341
6744
|
"page": kwargs.get("page", missing),
|
6342
|
-
"
|
6343
|
-
"
|
6745
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
6746
|
+
"sortBy": kwargs.get("sort_by", missing)
|
6344
6747
|
}
|
6345
6748
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6346
6749
|
|
@@ -6366,9 +6769,10 @@ class GoldenGateClient(object):
|
|
6366
6769
|
self.base_client.call_api,
|
6367
6770
|
resource_path=resource_path,
|
6368
6771
|
method=method,
|
6772
|
+
path_params=path_params,
|
6369
6773
|
query_params=query_params,
|
6370
6774
|
header_params=header_params,
|
6371
|
-
response_type="
|
6775
|
+
response_type="PipelineRunningProcessCollection",
|
6372
6776
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6373
6777
|
operation_name=operation_name,
|
6374
6778
|
api_reference_link=api_reference_link,
|
@@ -6377,33 +6781,55 @@ class GoldenGateClient(object):
|
|
6377
6781
|
return self.base_client.call_api(
|
6378
6782
|
resource_path=resource_path,
|
6379
6783
|
method=method,
|
6784
|
+
path_params=path_params,
|
6380
6785
|
query_params=query_params,
|
6381
6786
|
header_params=header_params,
|
6382
|
-
response_type="
|
6787
|
+
response_type="PipelineRunningProcessCollection",
|
6383
6788
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6384
6789
|
operation_name=operation_name,
|
6385
6790
|
api_reference_link=api_reference_link,
|
6386
6791
|
required_arguments=required_arguments)
|
6387
6792
|
|
6388
|
-
def
|
6793
|
+
def list_pipeline_schema_tables(self, pipeline_id, source_schema_name, target_schema_name, **kwargs):
|
6389
6794
|
"""
|
6390
|
-
|
6795
|
+
Returns an array of tables under the given schemas of the pipeline for given source and target schemas passed as query params.
|
6391
6796
|
|
6392
6797
|
|
6393
|
-
:param str
|
6394
|
-
The `OCID`__ of the
|
6798
|
+
:param str pipeline_id: (required)
|
6799
|
+
The `OCID`__ of the pipeline created.
|
6395
6800
|
|
6396
6801
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
6397
6802
|
|
6803
|
+
:param str source_schema_name: (required)
|
6804
|
+
Name of the source schema obtained from get schema endpoint of the created pipeline.
|
6805
|
+
|
6806
|
+
:param str target_schema_name: (required)
|
6807
|
+
Name of the target schema obtained from get schema endpoint of the created pipeline.
|
6808
|
+
|
6809
|
+
:param str display_name: (optional)
|
6810
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
6811
|
+
|
6398
6812
|
:param str opc_request_id: (optional)
|
6399
6813
|
The client request ID for tracing.
|
6400
6814
|
|
6815
|
+
:param int limit: (optional)
|
6816
|
+
The maximum number of items to return.
|
6817
|
+
|
6401
6818
|
:param str page: (optional)
|
6402
6819
|
The page token representing the page at which to start retrieving results. This is usually
|
6403
6820
|
retrieved from a previous list call.
|
6404
6821
|
|
6405
|
-
:param
|
6406
|
-
The
|
6822
|
+
:param str sort_order: (optional)
|
6823
|
+
The sort order to use, either 'asc' or 'desc'.
|
6824
|
+
|
6825
|
+
Allowed values are: "ASC", "DESC"
|
6826
|
+
|
6827
|
+
:param str sort_by: (optional)
|
6828
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is
|
6829
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
6830
|
+
timeCreated is the default.
|
6831
|
+
|
6832
|
+
Allowed values are: "timeCreated", "displayName"
|
6407
6833
|
|
6408
6834
|
:param obj retry_strategy: (optional)
|
6409
6835
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -6417,34 +6843,37 @@ class GoldenGateClient(object):
|
|
6417
6843
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6418
6844
|
By default, the response will not allow control characters in strings
|
6419
6845
|
|
6420
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
6846
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.PipelineSchemaTableCollection`
|
6421
6847
|
:rtype: :class:`~oci.response.Response`
|
6422
6848
|
|
6423
6849
|
:example:
|
6424
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
6850
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_pipeline_schema_tables.py.html>`__ to see an example of how to use list_pipeline_schema_tables API.
|
6425
6851
|
"""
|
6426
6852
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6427
|
-
required_arguments = ['
|
6428
|
-
resource_path = "/
|
6853
|
+
required_arguments = ['pipelineId', 'sourceSchemaName', 'targetSchemaName']
|
6854
|
+
resource_path = "/pipelines/{pipelineId}/schemaTables"
|
6429
6855
|
method = "GET"
|
6430
|
-
operation_name = "
|
6431
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
6856
|
+
operation_name = "list_pipeline_schema_tables"
|
6857
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemaTables"
|
6432
6858
|
|
6433
6859
|
# Don't accept unknown kwargs
|
6434
6860
|
expected_kwargs = [
|
6435
6861
|
"allow_control_chars",
|
6436
6862
|
"retry_strategy",
|
6863
|
+
"display_name",
|
6437
6864
|
"opc_request_id",
|
6865
|
+
"limit",
|
6438
6866
|
"page",
|
6439
|
-
"
|
6867
|
+
"sort_order",
|
6868
|
+
"sort_by"
|
6440
6869
|
]
|
6441
6870
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6442
6871
|
if extra_kwargs:
|
6443
6872
|
raise ValueError(
|
6444
|
-
f"
|
6873
|
+
f"list_pipeline_schema_tables got unknown kwargs: {extra_kwargs!r}")
|
6445
6874
|
|
6446
6875
|
path_params = {
|
6447
|
-
"
|
6876
|
+
"pipelineId": pipeline_id
|
6448
6877
|
}
|
6449
6878
|
|
6450
6879
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -6453,9 +6882,28 @@ class GoldenGateClient(object):
|
|
6453
6882
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6454
6883
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6455
6884
|
|
6885
|
+
if 'sort_order' in kwargs:
|
6886
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
6887
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
6888
|
+
raise ValueError(
|
6889
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
6890
|
+
)
|
6891
|
+
|
6892
|
+
if 'sort_by' in kwargs:
|
6893
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
6894
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
6895
|
+
raise ValueError(
|
6896
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
6897
|
+
)
|
6898
|
+
|
6456
6899
|
query_params = {
|
6900
|
+
"sourceSchemaName": source_schema_name,
|
6901
|
+
"targetSchemaName": target_schema_name,
|
6902
|
+
"displayName": kwargs.get("display_name", missing),
|
6903
|
+
"limit": kwargs.get("limit", missing),
|
6457
6904
|
"page": kwargs.get("page", missing),
|
6458
|
-
"
|
6905
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
6906
|
+
"sortBy": kwargs.get("sort_by", missing)
|
6459
6907
|
}
|
6460
6908
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6461
6909
|
|
@@ -6484,7 +6932,7 @@ class GoldenGateClient(object):
|
|
6484
6932
|
path_params=path_params,
|
6485
6933
|
query_params=query_params,
|
6486
6934
|
header_params=header_params,
|
6487
|
-
response_type="
|
6935
|
+
response_type="PipelineSchemaTableCollection",
|
6488
6936
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6489
6937
|
operation_name=operation_name,
|
6490
6938
|
api_reference_link=api_reference_link,
|
@@ -6496,31 +6944,46 @@ class GoldenGateClient(object):
|
|
6496
6944
|
path_params=path_params,
|
6497
6945
|
query_params=query_params,
|
6498
6946
|
header_params=header_params,
|
6499
|
-
response_type="
|
6947
|
+
response_type="PipelineSchemaTableCollection",
|
6500
6948
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6501
6949
|
operation_name=operation_name,
|
6502
6950
|
api_reference_link=api_reference_link,
|
6503
6951
|
required_arguments=required_arguments)
|
6504
6952
|
|
6505
|
-
def
|
6953
|
+
def list_pipeline_schemas(self, pipeline_id, **kwargs):
|
6506
6954
|
"""
|
6507
|
-
|
6955
|
+
Returns an array of schemas based on mapping rules for a pipeline.
|
6508
6956
|
|
6509
6957
|
|
6510
|
-
:param str
|
6511
|
-
The `OCID`__ of the
|
6958
|
+
:param str pipeline_id: (required)
|
6959
|
+
The `OCID`__ of the pipeline created.
|
6512
6960
|
|
6513
6961
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
6514
6962
|
|
6963
|
+
:param str display_name: (optional)
|
6964
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
6965
|
+
|
6515
6966
|
:param str opc_request_id: (optional)
|
6516
6967
|
The client request ID for tracing.
|
6517
6968
|
|
6969
|
+
:param int limit: (optional)
|
6970
|
+
The maximum number of items to return.
|
6971
|
+
|
6518
6972
|
:param str page: (optional)
|
6519
6973
|
The page token representing the page at which to start retrieving results. This is usually
|
6520
6974
|
retrieved from a previous list call.
|
6521
6975
|
|
6522
|
-
:param
|
6523
|
-
The
|
6976
|
+
:param str sort_order: (optional)
|
6977
|
+
The sort order to use, either 'asc' or 'desc'.
|
6978
|
+
|
6979
|
+
Allowed values are: "ASC", "DESC"
|
6980
|
+
|
6981
|
+
:param str sort_by: (optional)
|
6982
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is
|
6983
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
6984
|
+
timeCreated is the default.
|
6985
|
+
|
6986
|
+
Allowed values are: "timeCreated", "displayName"
|
6524
6987
|
|
6525
6988
|
:param obj retry_strategy: (optional)
|
6526
6989
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -6534,34 +6997,37 @@ class GoldenGateClient(object):
|
|
6534
6997
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6535
6998
|
By default, the response will not allow control characters in strings
|
6536
6999
|
|
6537
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7000
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.PipelineSchemaCollection`
|
6538
7001
|
:rtype: :class:`~oci.response.Response`
|
6539
7002
|
|
6540
7003
|
:example:
|
6541
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7004
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_pipeline_schemas.py.html>`__ to see an example of how to use list_pipeline_schemas API.
|
6542
7005
|
"""
|
6543
7006
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6544
|
-
required_arguments = ['
|
6545
|
-
resource_path = "/
|
7007
|
+
required_arguments = ['pipelineId']
|
7008
|
+
resource_path = "/pipelines/{pipelineId}/schemas"
|
6546
7009
|
method = "GET"
|
6547
|
-
operation_name = "
|
6548
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
7010
|
+
operation_name = "list_pipeline_schemas"
|
7011
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelineSchemas"
|
6549
7012
|
|
6550
7013
|
# Don't accept unknown kwargs
|
6551
7014
|
expected_kwargs = [
|
6552
7015
|
"allow_control_chars",
|
6553
7016
|
"retry_strategy",
|
7017
|
+
"display_name",
|
6554
7018
|
"opc_request_id",
|
7019
|
+
"limit",
|
6555
7020
|
"page",
|
6556
|
-
"
|
7021
|
+
"sort_order",
|
7022
|
+
"sort_by"
|
6557
7023
|
]
|
6558
7024
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6559
7025
|
if extra_kwargs:
|
6560
7026
|
raise ValueError(
|
6561
|
-
f"
|
7027
|
+
f"list_pipeline_schemas got unknown kwargs: {extra_kwargs!r}")
|
6562
7028
|
|
6563
7029
|
path_params = {
|
6564
|
-
"
|
7030
|
+
"pipelineId": pipeline_id
|
6565
7031
|
}
|
6566
7032
|
|
6567
7033
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -6570,9 +7036,26 @@ class GoldenGateClient(object):
|
|
6570
7036
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6571
7037
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6572
7038
|
|
7039
|
+
if 'sort_order' in kwargs:
|
7040
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7041
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7042
|
+
raise ValueError(
|
7043
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7044
|
+
)
|
7045
|
+
|
7046
|
+
if 'sort_by' in kwargs:
|
7047
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
7048
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7049
|
+
raise ValueError(
|
7050
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7051
|
+
)
|
7052
|
+
|
6573
7053
|
query_params = {
|
7054
|
+
"displayName": kwargs.get("display_name", missing),
|
7055
|
+
"limit": kwargs.get("limit", missing),
|
6574
7056
|
"page": kwargs.get("page", missing),
|
6575
|
-
"
|
7057
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
7058
|
+
"sortBy": kwargs.get("sort_by", missing)
|
6576
7059
|
}
|
6577
7060
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6578
7061
|
|
@@ -6601,7 +7084,7 @@ class GoldenGateClient(object):
|
|
6601
7084
|
path_params=path_params,
|
6602
7085
|
query_params=query_params,
|
6603
7086
|
header_params=header_params,
|
6604
|
-
response_type="
|
7087
|
+
response_type="PipelineSchemaCollection",
|
6605
7088
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6606
7089
|
operation_name=operation_name,
|
6607
7090
|
api_reference_link=api_reference_link,
|
@@ -6613,15 +7096,15 @@ class GoldenGateClient(object):
|
|
6613
7096
|
path_params=path_params,
|
6614
7097
|
query_params=query_params,
|
6615
7098
|
header_params=header_params,
|
6616
|
-
response_type="
|
7099
|
+
response_type="PipelineSchemaCollection",
|
6617
7100
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6618
7101
|
operation_name=operation_name,
|
6619
7102
|
api_reference_link=api_reference_link,
|
6620
7103
|
required_arguments=required_arguments)
|
6621
7104
|
|
6622
|
-
def
|
7105
|
+
def list_pipelines(self, compartment_id, **kwargs):
|
6623
7106
|
"""
|
6624
|
-
Lists the
|
7107
|
+
Lists the Pipelines in the compartment.
|
6625
7108
|
|
6626
7109
|
|
6627
7110
|
:param str compartment_id: (required)
|
@@ -6630,20 +7113,40 @@ class GoldenGateClient(object):
|
|
6630
7113
|
multiple resources, and those resources are not in the same compartment, it is up to the service team
|
6631
7114
|
to pick the primary resource whose compartment should be used.
|
6632
7115
|
|
6633
|
-
:param str
|
6634
|
-
|
7116
|
+
:param str lifecycle_state: (optional)
|
7117
|
+
A filtered list of pipelines to return for a given lifecycleState.
|
6635
7118
|
|
6636
|
-
|
7119
|
+
Allowed values are: "CREATING", "UPDATING", "ACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"
|
6637
7120
|
|
6638
|
-
:param str
|
6639
|
-
|
7121
|
+
:param str lifecycle_sub_state: (optional)
|
7122
|
+
A filtered list of pipelines to return for a given lifecycleSubState.
|
7123
|
+
|
7124
|
+
Allowed values are: "STARTING", "STOPPING", "STOPPED", "MOVING", "RUNNING"
|
7125
|
+
|
7126
|
+
:param str display_name: (optional)
|
7127
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
7128
|
+
|
7129
|
+
:param int limit: (optional)
|
7130
|
+
The maximum number of items to return.
|
6640
7131
|
|
6641
7132
|
:param str page: (optional)
|
6642
7133
|
The page token representing the page at which to start retrieving results. This is usually
|
6643
7134
|
retrieved from a previous list call.
|
6644
7135
|
|
6645
|
-
:param
|
6646
|
-
The
|
7136
|
+
:param str sort_order: (optional)
|
7137
|
+
The sort order to use, either 'asc' or 'desc'.
|
7138
|
+
|
7139
|
+
Allowed values are: "ASC", "DESC"
|
7140
|
+
|
7141
|
+
:param str sort_by: (optional)
|
7142
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is
|
7143
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
7144
|
+
timeCreated is the default.
|
7145
|
+
|
7146
|
+
Allowed values are: "timeCreated", "displayName"
|
7147
|
+
|
7148
|
+
:param str opc_request_id: (optional)
|
7149
|
+
The client request ID for tracing.
|
6647
7150
|
|
6648
7151
|
:param obj retry_strategy: (optional)
|
6649
7152
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -6657,38 +7160,74 @@ class GoldenGateClient(object):
|
|
6657
7160
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6658
7161
|
By default, the response will not allow control characters in strings
|
6659
7162
|
|
6660
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7163
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.PipelineCollection`
|
6661
7164
|
:rtype: :class:`~oci.response.Response`
|
6662
7165
|
|
6663
7166
|
:example:
|
6664
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7167
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_pipelines.py.html>`__ to see an example of how to use list_pipelines API.
|
6665
7168
|
"""
|
6666
7169
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6667
7170
|
required_arguments = ['compartmentId']
|
6668
|
-
resource_path = "/
|
7171
|
+
resource_path = "/pipelines"
|
6669
7172
|
method = "GET"
|
6670
|
-
operation_name = "
|
6671
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
7173
|
+
operation_name = "list_pipelines"
|
7174
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/ListPipelines"
|
6672
7175
|
|
6673
7176
|
# Don't accept unknown kwargs
|
6674
7177
|
expected_kwargs = [
|
6675
7178
|
"allow_control_chars",
|
6676
7179
|
"retry_strategy",
|
6677
|
-
"
|
6678
|
-
"
|
6679
|
-
"
|
6680
|
-
"limit"
|
7180
|
+
"lifecycle_state",
|
7181
|
+
"lifecycle_sub_state",
|
7182
|
+
"display_name",
|
7183
|
+
"limit",
|
7184
|
+
"page",
|
7185
|
+
"sort_order",
|
7186
|
+
"sort_by",
|
7187
|
+
"opc_request_id"
|
6681
7188
|
]
|
6682
7189
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6683
7190
|
if extra_kwargs:
|
6684
7191
|
raise ValueError(
|
6685
|
-
f"
|
7192
|
+
f"list_pipelines got unknown kwargs: {extra_kwargs!r}")
|
7193
|
+
|
7194
|
+
if 'lifecycle_state' in kwargs:
|
7195
|
+
lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]
|
7196
|
+
if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
|
7197
|
+
raise ValueError(
|
7198
|
+
f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
|
7199
|
+
)
|
7200
|
+
|
7201
|
+
if 'lifecycle_sub_state' in kwargs:
|
7202
|
+
lifecycle_sub_state_allowed_values = ["STARTING", "STOPPING", "STOPPED", "MOVING", "RUNNING"]
|
7203
|
+
if kwargs['lifecycle_sub_state'] not in lifecycle_sub_state_allowed_values:
|
7204
|
+
raise ValueError(
|
7205
|
+
f"Invalid value for `lifecycle_sub_state`, must be one of { lifecycle_sub_state_allowed_values }"
|
7206
|
+
)
|
7207
|
+
|
7208
|
+
if 'sort_order' in kwargs:
|
7209
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7210
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7211
|
+
raise ValueError(
|
7212
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7213
|
+
)
|
7214
|
+
|
7215
|
+
if 'sort_by' in kwargs:
|
7216
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
7217
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7218
|
+
raise ValueError(
|
7219
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7220
|
+
)
|
6686
7221
|
|
6687
7222
|
query_params = {
|
6688
7223
|
"compartmentId": compartment_id,
|
6689
|
-
"
|
7224
|
+
"lifecycleState": kwargs.get("lifecycle_state", missing),
|
7225
|
+
"lifecycleSubState": kwargs.get("lifecycle_sub_state", missing),
|
7226
|
+
"displayName": kwargs.get("display_name", missing),
|
7227
|
+
"limit": kwargs.get("limit", missing),
|
6690
7228
|
"page": kwargs.get("page", missing),
|
6691
|
-
"
|
7229
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
7230
|
+
"sortBy": kwargs.get("sort_by", missing)
|
6692
7231
|
}
|
6693
7232
|
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6694
7233
|
|
@@ -6716,7 +7255,7 @@ class GoldenGateClient(object):
|
|
6716
7255
|
method=method,
|
6717
7256
|
query_params=query_params,
|
6718
7257
|
header_params=header_params,
|
6719
|
-
response_type="
|
7258
|
+
response_type="PipelineCollection",
|
6720
7259
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6721
7260
|
operation_name=operation_name,
|
6722
7261
|
api_reference_link=api_reference_link,
|
@@ -6727,36 +7266,52 @@ class GoldenGateClient(object):
|
|
6727
7266
|
method=method,
|
6728
7267
|
query_params=query_params,
|
6729
7268
|
header_params=header_params,
|
6730
|
-
response_type="
|
7269
|
+
response_type="PipelineCollection",
|
6731
7270
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6732
7271
|
operation_name=operation_name,
|
6733
7272
|
api_reference_link=api_reference_link,
|
6734
7273
|
required_arguments=required_arguments)
|
6735
7274
|
|
6736
|
-
def
|
7275
|
+
def list_recipes(self, compartment_id, **kwargs):
|
6737
7276
|
"""
|
6738
|
-
|
7277
|
+
Returns an array of Recipe Summary.
|
6739
7278
|
|
6740
7279
|
|
6741
|
-
:param str
|
6742
|
-
The
|
7280
|
+
:param str compartment_id: (required)
|
7281
|
+
The OCID of the compartment that contains the work request. Work requests should be scoped
|
7282
|
+
to the same compartment as the resource the work request affects. If the work request concerns
|
7283
|
+
multiple resources, and those resources are not in the same compartment, it is up to the service team
|
7284
|
+
to pick the primary resource whose compartment should be used.
|
6743
7285
|
|
6744
|
-
|
7286
|
+
:param str recipe_type: (optional)
|
7287
|
+
The pipeline's recipe type. The default value is ZERO_ETL.
|
6745
7288
|
|
6746
|
-
|
6747
|
-
Details of refresh external Connection attributes.
|
7289
|
+
Allowed values are: "ZERO_ETL"
|
6748
7290
|
|
6749
|
-
:param str
|
6750
|
-
|
6751
|
-
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
6752
|
-
resource. The resource is updated or deleted only if the etag you provide matches the
|
6753
|
-
resource's current etag value.
|
7291
|
+
:param str display_name: (optional)
|
7292
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
6754
7293
|
|
6755
7294
|
:param str opc_request_id: (optional)
|
6756
7295
|
The client request ID for tracing.
|
6757
7296
|
|
6758
|
-
:param
|
6759
|
-
|
7297
|
+
:param int limit: (optional)
|
7298
|
+
The maximum number of items to return.
|
7299
|
+
|
7300
|
+
:param str page: (optional)
|
7301
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7302
|
+
retrieved from a previous list call.
|
7303
|
+
|
7304
|
+
:param str sort_order: (optional)
|
7305
|
+
The sort order to use, either 'asc' or 'desc'.
|
7306
|
+
|
7307
|
+
Allowed values are: "ASC", "DESC"
|
7308
|
+
|
7309
|
+
:param str sort_by: (optional)
|
7310
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeCreated' is
|
7311
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
7312
|
+
timeCreated is the default.
|
7313
|
+
|
7314
|
+
Allowed values are: "timeCreated", "displayName"
|
6760
7315
|
|
6761
7316
|
:param obj retry_strategy: (optional)
|
6762
7317
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -6770,34 +7325,1156 @@ class GoldenGateClient(object):
|
|
6770
7325
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6771
7326
|
By default, the response will not allow control characters in strings
|
6772
7327
|
|
6773
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
7328
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.RecipeSummaryCollection`
|
6774
7329
|
:rtype: :class:`~oci.response.Response`
|
6775
7330
|
|
6776
7331
|
:example:
|
6777
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
7332
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_recipes.py.html>`__ to see an example of how to use list_recipes API.
|
6778
7333
|
"""
|
6779
7334
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6780
|
-
required_arguments = ['
|
6781
|
-
resource_path = "/
|
6782
|
-
method = "
|
6783
|
-
operation_name = "
|
6784
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
7335
|
+
required_arguments = ['compartmentId']
|
7336
|
+
resource_path = "/recipes"
|
7337
|
+
method = "GET"
|
7338
|
+
operation_name = "list_recipes"
|
7339
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/RecipeSummaryCollection/ListRecipes"
|
6785
7340
|
|
6786
7341
|
# Don't accept unknown kwargs
|
6787
7342
|
expected_kwargs = [
|
6788
7343
|
"allow_control_chars",
|
6789
7344
|
"retry_strategy",
|
6790
|
-
"
|
7345
|
+
"recipe_type",
|
7346
|
+
"display_name",
|
6791
7347
|
"opc_request_id",
|
6792
|
-
"
|
7348
|
+
"limit",
|
7349
|
+
"page",
|
7350
|
+
"sort_order",
|
7351
|
+
"sort_by"
|
6793
7352
|
]
|
6794
7353
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6795
7354
|
if extra_kwargs:
|
6796
7355
|
raise ValueError(
|
6797
|
-
f"
|
7356
|
+
f"list_recipes got unknown kwargs: {extra_kwargs!r}")
|
6798
7357
|
|
6799
|
-
|
6800
|
-
"
|
7358
|
+
if 'recipe_type' in kwargs:
|
7359
|
+
recipe_type_allowed_values = ["ZERO_ETL"]
|
7360
|
+
if kwargs['recipe_type'] not in recipe_type_allowed_values:
|
7361
|
+
raise ValueError(
|
7362
|
+
f"Invalid value for `recipe_type`, must be one of { recipe_type_allowed_values }"
|
7363
|
+
)
|
7364
|
+
|
7365
|
+
if 'sort_order' in kwargs:
|
7366
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7367
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7368
|
+
raise ValueError(
|
7369
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7370
|
+
)
|
7371
|
+
|
7372
|
+
if 'sort_by' in kwargs:
|
7373
|
+
sort_by_allowed_values = ["timeCreated", "displayName"]
|
7374
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7375
|
+
raise ValueError(
|
7376
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7377
|
+
)
|
7378
|
+
|
7379
|
+
query_params = {
|
7380
|
+
"compartmentId": compartment_id,
|
7381
|
+
"recipeType": kwargs.get("recipe_type", missing),
|
7382
|
+
"displayName": kwargs.get("display_name", missing),
|
7383
|
+
"limit": kwargs.get("limit", missing),
|
7384
|
+
"page": kwargs.get("page", missing),
|
7385
|
+
"sortOrder": kwargs.get("sort_order", missing),
|
7386
|
+
"sortBy": kwargs.get("sort_by", missing)
|
7387
|
+
}
|
7388
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7389
|
+
|
7390
|
+
header_params = {
|
7391
|
+
"accept": "application/json",
|
7392
|
+
"content-type": "application/json",
|
7393
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7394
|
+
}
|
7395
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7396
|
+
|
7397
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7398
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7399
|
+
client_retry_strategy=self.retry_strategy
|
7400
|
+
)
|
7401
|
+
if retry_strategy is None:
|
7402
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7403
|
+
|
7404
|
+
if retry_strategy:
|
7405
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7406
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7407
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7408
|
+
return retry_strategy.make_retrying_call(
|
7409
|
+
self.base_client.call_api,
|
7410
|
+
resource_path=resource_path,
|
7411
|
+
method=method,
|
7412
|
+
query_params=query_params,
|
7413
|
+
header_params=header_params,
|
7414
|
+
response_type="RecipeSummaryCollection",
|
7415
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7416
|
+
operation_name=operation_name,
|
7417
|
+
api_reference_link=api_reference_link,
|
7418
|
+
required_arguments=required_arguments)
|
7419
|
+
else:
|
7420
|
+
return self.base_client.call_api(
|
7421
|
+
resource_path=resource_path,
|
7422
|
+
method=method,
|
7423
|
+
query_params=query_params,
|
7424
|
+
header_params=header_params,
|
7425
|
+
response_type="RecipeSummaryCollection",
|
7426
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7427
|
+
operation_name=operation_name,
|
7428
|
+
api_reference_link=api_reference_link,
|
7429
|
+
required_arguments=required_arguments)
|
7430
|
+
|
7431
|
+
def list_trail_files(self, deployment_id, **kwargs):
|
7432
|
+
"""
|
7433
|
+
Lists the TrailFiles for a deployment.
|
7434
|
+
Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c.
|
7435
|
+
|
7436
|
+
|
7437
|
+
:param str deployment_id: (required)
|
7438
|
+
A unique Deployment identifier.
|
7439
|
+
|
7440
|
+
:param str display_name: (optional)
|
7441
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
7442
|
+
|
7443
|
+
:param str trail_file_id: (optional)
|
7444
|
+
A Trail File identifier
|
7445
|
+
|
7446
|
+
:param str opc_request_id: (optional)
|
7447
|
+
The client request ID for tracing.
|
7448
|
+
|
7449
|
+
:param int limit: (optional)
|
7450
|
+
The maximum number of items to return.
|
7451
|
+
|
7452
|
+
:param str page: (optional)
|
7453
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7454
|
+
retrieved from a previous list call.
|
7455
|
+
|
7456
|
+
:param str sort_by: (optional)
|
7457
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeLastUpdated' is
|
7458
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
7459
|
+
displayName is the default.
|
7460
|
+
|
7461
|
+
Allowed values are: "timeLastUpdated", "displayName"
|
7462
|
+
|
7463
|
+
:param str sort_order: (optional)
|
7464
|
+
The sort order to use, either 'asc' or 'desc'.
|
7465
|
+
|
7466
|
+
Allowed values are: "ASC", "DESC"
|
7467
|
+
|
7468
|
+
:param obj retry_strategy: (optional)
|
7469
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7470
|
+
|
7471
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7472
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7473
|
+
|
7474
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7475
|
+
|
7476
|
+
:param bool allow_control_chars: (optional)
|
7477
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7478
|
+
By default, the response will not allow control characters in strings
|
7479
|
+
|
7480
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.TrailFileCollection`
|
7481
|
+
:rtype: :class:`~oci.response.Response`
|
7482
|
+
|
7483
|
+
:example:
|
7484
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_trail_files.py.html>`__ to see an example of how to use list_trail_files API.
|
7485
|
+
"""
|
7486
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7487
|
+
required_arguments = ['deploymentId']
|
7488
|
+
resource_path = "/trailFiles"
|
7489
|
+
method = "GET"
|
7490
|
+
operation_name = "list_trail_files"
|
7491
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/TrailFileSummary/ListTrailFiles"
|
7492
|
+
|
7493
|
+
# Don't accept unknown kwargs
|
7494
|
+
expected_kwargs = [
|
7495
|
+
"allow_control_chars",
|
7496
|
+
"retry_strategy",
|
7497
|
+
"display_name",
|
7498
|
+
"trail_file_id",
|
7499
|
+
"opc_request_id",
|
7500
|
+
"limit",
|
7501
|
+
"page",
|
7502
|
+
"sort_by",
|
7503
|
+
"sort_order"
|
7504
|
+
]
|
7505
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7506
|
+
if extra_kwargs:
|
7507
|
+
raise ValueError(
|
7508
|
+
f"list_trail_files got unknown kwargs: {extra_kwargs!r}")
|
7509
|
+
|
7510
|
+
if 'sort_by' in kwargs:
|
7511
|
+
sort_by_allowed_values = ["timeLastUpdated", "displayName"]
|
7512
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7513
|
+
raise ValueError(
|
7514
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7515
|
+
)
|
7516
|
+
|
7517
|
+
if 'sort_order' in kwargs:
|
7518
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7519
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7520
|
+
raise ValueError(
|
7521
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7522
|
+
)
|
7523
|
+
|
7524
|
+
query_params = {
|
7525
|
+
"deploymentId": deployment_id,
|
7526
|
+
"displayName": kwargs.get("display_name", missing),
|
7527
|
+
"trailFileId": kwargs.get("trail_file_id", missing),
|
7528
|
+
"limit": kwargs.get("limit", missing),
|
7529
|
+
"page": kwargs.get("page", missing),
|
7530
|
+
"sortBy": kwargs.get("sort_by", missing),
|
7531
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
7532
|
+
}
|
7533
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7534
|
+
|
7535
|
+
header_params = {
|
7536
|
+
"accept": "application/json",
|
7537
|
+
"content-type": "application/json",
|
7538
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7539
|
+
}
|
7540
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7541
|
+
|
7542
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7543
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7544
|
+
client_retry_strategy=self.retry_strategy
|
7545
|
+
)
|
7546
|
+
if retry_strategy is None:
|
7547
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7548
|
+
|
7549
|
+
if retry_strategy:
|
7550
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7551
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7552
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7553
|
+
return retry_strategy.make_retrying_call(
|
7554
|
+
self.base_client.call_api,
|
7555
|
+
resource_path=resource_path,
|
7556
|
+
method=method,
|
7557
|
+
query_params=query_params,
|
7558
|
+
header_params=header_params,
|
7559
|
+
response_type="TrailFileCollection",
|
7560
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7561
|
+
operation_name=operation_name,
|
7562
|
+
api_reference_link=api_reference_link,
|
7563
|
+
required_arguments=required_arguments)
|
7564
|
+
else:
|
7565
|
+
return self.base_client.call_api(
|
7566
|
+
resource_path=resource_path,
|
7567
|
+
method=method,
|
7568
|
+
query_params=query_params,
|
7569
|
+
header_params=header_params,
|
7570
|
+
response_type="TrailFileCollection",
|
7571
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7572
|
+
operation_name=operation_name,
|
7573
|
+
api_reference_link=api_reference_link,
|
7574
|
+
required_arguments=required_arguments)
|
7575
|
+
|
7576
|
+
def list_trail_sequences(self, deployment_id, trail_file_id, **kwargs):
|
7577
|
+
"""
|
7578
|
+
Lists the Trail Sequences for a TrailFile in a given deployment.
|
7579
|
+
Deprecated: Please access trail file management functions directly on OGG console which are available since version Oracle GoldenGate 23c.
|
7580
|
+
|
7581
|
+
|
7582
|
+
:param str deployment_id: (required)
|
7583
|
+
A unique Deployment identifier.
|
7584
|
+
|
7585
|
+
:param str trail_file_id: (required)
|
7586
|
+
A Trail File identifier
|
7587
|
+
|
7588
|
+
:param str trail_sequence_id: (optional)
|
7589
|
+
A Trail Sequence identifier
|
7590
|
+
|
7591
|
+
:param str display_name: (optional)
|
7592
|
+
A filter to return only the resources that match the entire 'displayName' given.
|
7593
|
+
|
7594
|
+
:param str opc_request_id: (optional)
|
7595
|
+
The client request ID for tracing.
|
7596
|
+
|
7597
|
+
:param int limit: (optional)
|
7598
|
+
The maximum number of items to return.
|
7599
|
+
|
7600
|
+
:param str page: (optional)
|
7601
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7602
|
+
retrieved from a previous list call.
|
7603
|
+
|
7604
|
+
:param str sort_by: (optional)
|
7605
|
+
The field to sort by. Only one sort order can be provided. Default order for 'timeLastUpdated' is
|
7606
|
+
descending. Default order for 'displayName' is ascending. If no value is specified
|
7607
|
+
displayName is the default.
|
7608
|
+
|
7609
|
+
Allowed values are: "timeLastUpdated", "displayName"
|
7610
|
+
|
7611
|
+
:param str sort_order: (optional)
|
7612
|
+
The sort order to use, either 'asc' or 'desc'.
|
7613
|
+
|
7614
|
+
Allowed values are: "ASC", "DESC"
|
7615
|
+
|
7616
|
+
:param obj retry_strategy: (optional)
|
7617
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7618
|
+
|
7619
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7620
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7621
|
+
|
7622
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7623
|
+
|
7624
|
+
:param bool allow_control_chars: (optional)
|
7625
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7626
|
+
By default, the response will not allow control characters in strings
|
7627
|
+
|
7628
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.TrailSequenceCollection`
|
7629
|
+
:rtype: :class:`~oci.response.Response`
|
7630
|
+
|
7631
|
+
:example:
|
7632
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_trail_sequences.py.html>`__ to see an example of how to use list_trail_sequences API.
|
7633
|
+
"""
|
7634
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7635
|
+
required_arguments = ['deploymentId', 'trailFileId']
|
7636
|
+
resource_path = "/trailSequences"
|
7637
|
+
method = "GET"
|
7638
|
+
operation_name = "list_trail_sequences"
|
7639
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/TrailSequenceSummary/ListTrailSequences"
|
7640
|
+
|
7641
|
+
# Don't accept unknown kwargs
|
7642
|
+
expected_kwargs = [
|
7643
|
+
"allow_control_chars",
|
7644
|
+
"retry_strategy",
|
7645
|
+
"trail_sequence_id",
|
7646
|
+
"display_name",
|
7647
|
+
"opc_request_id",
|
7648
|
+
"limit",
|
7649
|
+
"page",
|
7650
|
+
"sort_by",
|
7651
|
+
"sort_order"
|
7652
|
+
]
|
7653
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7654
|
+
if extra_kwargs:
|
7655
|
+
raise ValueError(
|
7656
|
+
f"list_trail_sequences got unknown kwargs: {extra_kwargs!r}")
|
7657
|
+
|
7658
|
+
if 'sort_by' in kwargs:
|
7659
|
+
sort_by_allowed_values = ["timeLastUpdated", "displayName"]
|
7660
|
+
if kwargs['sort_by'] not in sort_by_allowed_values:
|
7661
|
+
raise ValueError(
|
7662
|
+
f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
|
7663
|
+
)
|
7664
|
+
|
7665
|
+
if 'sort_order' in kwargs:
|
7666
|
+
sort_order_allowed_values = ["ASC", "DESC"]
|
7667
|
+
if kwargs['sort_order'] not in sort_order_allowed_values:
|
7668
|
+
raise ValueError(
|
7669
|
+
f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
|
7670
|
+
)
|
7671
|
+
|
7672
|
+
query_params = {
|
7673
|
+
"deploymentId": deployment_id,
|
7674
|
+
"trailFileId": trail_file_id,
|
7675
|
+
"trailSequenceId": kwargs.get("trail_sequence_id", missing),
|
7676
|
+
"displayName": kwargs.get("display_name", missing),
|
7677
|
+
"limit": kwargs.get("limit", missing),
|
7678
|
+
"page": kwargs.get("page", missing),
|
7679
|
+
"sortBy": kwargs.get("sort_by", missing),
|
7680
|
+
"sortOrder": kwargs.get("sort_order", missing)
|
7681
|
+
}
|
7682
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7683
|
+
|
7684
|
+
header_params = {
|
7685
|
+
"accept": "application/json",
|
7686
|
+
"content-type": "application/json",
|
7687
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7688
|
+
}
|
7689
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7690
|
+
|
7691
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7692
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7693
|
+
client_retry_strategy=self.retry_strategy
|
7694
|
+
)
|
7695
|
+
if retry_strategy is None:
|
7696
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7697
|
+
|
7698
|
+
if retry_strategy:
|
7699
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7700
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7701
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7702
|
+
return retry_strategy.make_retrying_call(
|
7703
|
+
self.base_client.call_api,
|
7704
|
+
resource_path=resource_path,
|
7705
|
+
method=method,
|
7706
|
+
query_params=query_params,
|
7707
|
+
header_params=header_params,
|
7708
|
+
response_type="TrailSequenceCollection",
|
7709
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7710
|
+
operation_name=operation_name,
|
7711
|
+
api_reference_link=api_reference_link,
|
7712
|
+
required_arguments=required_arguments)
|
7713
|
+
else:
|
7714
|
+
return self.base_client.call_api(
|
7715
|
+
resource_path=resource_path,
|
7716
|
+
method=method,
|
7717
|
+
query_params=query_params,
|
7718
|
+
header_params=header_params,
|
7719
|
+
response_type="TrailSequenceCollection",
|
7720
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7721
|
+
operation_name=operation_name,
|
7722
|
+
api_reference_link=api_reference_link,
|
7723
|
+
required_arguments=required_arguments)
|
7724
|
+
|
7725
|
+
def list_work_request_errors(self, work_request_id, **kwargs):
|
7726
|
+
"""
|
7727
|
+
Lists work request errors.
|
7728
|
+
|
7729
|
+
|
7730
|
+
:param str work_request_id: (required)
|
7731
|
+
The `OCID`__ of the asynchronous request.
|
7732
|
+
|
7733
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7734
|
+
|
7735
|
+
:param str opc_request_id: (optional)
|
7736
|
+
The client request ID for tracing.
|
7737
|
+
|
7738
|
+
:param str page: (optional)
|
7739
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7740
|
+
retrieved from a previous list call.
|
7741
|
+
|
7742
|
+
:param int limit: (optional)
|
7743
|
+
The maximum number of items to return.
|
7744
|
+
|
7745
|
+
:param obj retry_strategy: (optional)
|
7746
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7747
|
+
|
7748
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7749
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7750
|
+
|
7751
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7752
|
+
|
7753
|
+
:param bool allow_control_chars: (optional)
|
7754
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7755
|
+
By default, the response will not allow control characters in strings
|
7756
|
+
|
7757
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.golden_gate.models.WorkRequestError`
|
7758
|
+
:rtype: :class:`~oci.response.Response`
|
7759
|
+
|
7760
|
+
:example:
|
7761
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_work_request_errors.py.html>`__ to see an example of how to use list_work_request_errors API.
|
7762
|
+
"""
|
7763
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7764
|
+
required_arguments = ['workRequestId']
|
7765
|
+
resource_path = "/workRequests/{workRequestId}/errors"
|
7766
|
+
method = "GET"
|
7767
|
+
operation_name = "list_work_request_errors"
|
7768
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/WorkRequestError/ListWorkRequestErrors"
|
7769
|
+
|
7770
|
+
# Don't accept unknown kwargs
|
7771
|
+
expected_kwargs = [
|
7772
|
+
"allow_control_chars",
|
7773
|
+
"retry_strategy",
|
7774
|
+
"opc_request_id",
|
7775
|
+
"page",
|
7776
|
+
"limit"
|
7777
|
+
]
|
7778
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7779
|
+
if extra_kwargs:
|
7780
|
+
raise ValueError(
|
7781
|
+
f"list_work_request_errors got unknown kwargs: {extra_kwargs!r}")
|
7782
|
+
|
7783
|
+
path_params = {
|
7784
|
+
"workRequestId": work_request_id
|
7785
|
+
}
|
7786
|
+
|
7787
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7788
|
+
|
7789
|
+
for (k, v) in six.iteritems(path_params):
|
7790
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7791
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7792
|
+
|
7793
|
+
query_params = {
|
7794
|
+
"page": kwargs.get("page", missing),
|
7795
|
+
"limit": kwargs.get("limit", missing)
|
7796
|
+
}
|
7797
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7798
|
+
|
7799
|
+
header_params = {
|
7800
|
+
"accept": "application/json",
|
7801
|
+
"content-type": "application/json",
|
7802
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7803
|
+
}
|
7804
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7805
|
+
|
7806
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7807
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7808
|
+
client_retry_strategy=self.retry_strategy
|
7809
|
+
)
|
7810
|
+
if retry_strategy is None:
|
7811
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7812
|
+
|
7813
|
+
if retry_strategy:
|
7814
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7815
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7816
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7817
|
+
return retry_strategy.make_retrying_call(
|
7818
|
+
self.base_client.call_api,
|
7819
|
+
resource_path=resource_path,
|
7820
|
+
method=method,
|
7821
|
+
path_params=path_params,
|
7822
|
+
query_params=query_params,
|
7823
|
+
header_params=header_params,
|
7824
|
+
response_type="list[WorkRequestError]",
|
7825
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7826
|
+
operation_name=operation_name,
|
7827
|
+
api_reference_link=api_reference_link,
|
7828
|
+
required_arguments=required_arguments)
|
7829
|
+
else:
|
7830
|
+
return self.base_client.call_api(
|
7831
|
+
resource_path=resource_path,
|
7832
|
+
method=method,
|
7833
|
+
path_params=path_params,
|
7834
|
+
query_params=query_params,
|
7835
|
+
header_params=header_params,
|
7836
|
+
response_type="list[WorkRequestError]",
|
7837
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7838
|
+
operation_name=operation_name,
|
7839
|
+
api_reference_link=api_reference_link,
|
7840
|
+
required_arguments=required_arguments)
|
7841
|
+
|
7842
|
+
def list_work_request_logs(self, work_request_id, **kwargs):
|
7843
|
+
"""
|
7844
|
+
Lists work request logs.
|
7845
|
+
|
7846
|
+
|
7847
|
+
:param str work_request_id: (required)
|
7848
|
+
The `OCID`__ of the asynchronous request.
|
7849
|
+
|
7850
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7851
|
+
|
7852
|
+
:param str opc_request_id: (optional)
|
7853
|
+
The client request ID for tracing.
|
7854
|
+
|
7855
|
+
:param str page: (optional)
|
7856
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7857
|
+
retrieved from a previous list call.
|
7858
|
+
|
7859
|
+
:param int limit: (optional)
|
7860
|
+
The maximum number of items to return.
|
7861
|
+
|
7862
|
+
:param obj retry_strategy: (optional)
|
7863
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7864
|
+
|
7865
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7866
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7867
|
+
|
7868
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7869
|
+
|
7870
|
+
:param bool allow_control_chars: (optional)
|
7871
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7872
|
+
By default, the response will not allow control characters in strings
|
7873
|
+
|
7874
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.golden_gate.models.WorkRequestLogEntry`
|
7875
|
+
:rtype: :class:`~oci.response.Response`
|
7876
|
+
|
7877
|
+
:example:
|
7878
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_work_request_logs.py.html>`__ to see an example of how to use list_work_request_logs API.
|
7879
|
+
"""
|
7880
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7881
|
+
required_arguments = ['workRequestId']
|
7882
|
+
resource_path = "/workRequests/{workRequestId}/logs"
|
7883
|
+
method = "GET"
|
7884
|
+
operation_name = "list_work_request_logs"
|
7885
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/WorkRequestLogEntry/ListWorkRequestLogs"
|
7886
|
+
|
7887
|
+
# Don't accept unknown kwargs
|
7888
|
+
expected_kwargs = [
|
7889
|
+
"allow_control_chars",
|
7890
|
+
"retry_strategy",
|
7891
|
+
"opc_request_id",
|
7892
|
+
"page",
|
7893
|
+
"limit"
|
7894
|
+
]
|
7895
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7896
|
+
if extra_kwargs:
|
7897
|
+
raise ValueError(
|
7898
|
+
f"list_work_request_logs got unknown kwargs: {extra_kwargs!r}")
|
7899
|
+
|
7900
|
+
path_params = {
|
7901
|
+
"workRequestId": work_request_id
|
7902
|
+
}
|
7903
|
+
|
7904
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
7905
|
+
|
7906
|
+
for (k, v) in six.iteritems(path_params):
|
7907
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7908
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7909
|
+
|
7910
|
+
query_params = {
|
7911
|
+
"page": kwargs.get("page", missing),
|
7912
|
+
"limit": kwargs.get("limit", missing)
|
7913
|
+
}
|
7914
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7915
|
+
|
7916
|
+
header_params = {
|
7917
|
+
"accept": "application/json",
|
7918
|
+
"content-type": "application/json",
|
7919
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
7920
|
+
}
|
7921
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7922
|
+
|
7923
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
7924
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
7925
|
+
client_retry_strategy=self.retry_strategy
|
7926
|
+
)
|
7927
|
+
if retry_strategy is None:
|
7928
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
7929
|
+
|
7930
|
+
if retry_strategy:
|
7931
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
7932
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
7933
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7934
|
+
return retry_strategy.make_retrying_call(
|
7935
|
+
self.base_client.call_api,
|
7936
|
+
resource_path=resource_path,
|
7937
|
+
method=method,
|
7938
|
+
path_params=path_params,
|
7939
|
+
query_params=query_params,
|
7940
|
+
header_params=header_params,
|
7941
|
+
response_type="list[WorkRequestLogEntry]",
|
7942
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7943
|
+
operation_name=operation_name,
|
7944
|
+
api_reference_link=api_reference_link,
|
7945
|
+
required_arguments=required_arguments)
|
7946
|
+
else:
|
7947
|
+
return self.base_client.call_api(
|
7948
|
+
resource_path=resource_path,
|
7949
|
+
method=method,
|
7950
|
+
path_params=path_params,
|
7951
|
+
query_params=query_params,
|
7952
|
+
header_params=header_params,
|
7953
|
+
response_type="list[WorkRequestLogEntry]",
|
7954
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
7955
|
+
operation_name=operation_name,
|
7956
|
+
api_reference_link=api_reference_link,
|
7957
|
+
required_arguments=required_arguments)
|
7958
|
+
|
7959
|
+
def list_work_requests(self, compartment_id, **kwargs):
|
7960
|
+
"""
|
7961
|
+
Lists the work requests in the compartment.
|
7962
|
+
|
7963
|
+
|
7964
|
+
:param str compartment_id: (required)
|
7965
|
+
The OCID of the compartment that contains the work request. Work requests should be scoped
|
7966
|
+
to the same compartment as the resource the work request affects. If the work request concerns
|
7967
|
+
multiple resources, and those resources are not in the same compartment, it is up to the service team
|
7968
|
+
to pick the primary resource whose compartment should be used.
|
7969
|
+
|
7970
|
+
:param str resource_id: (optional)
|
7971
|
+
The `OCID`__ of the resource in which to list resources.
|
7972
|
+
|
7973
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7974
|
+
|
7975
|
+
:param str opc_request_id: (optional)
|
7976
|
+
The client request ID for tracing.
|
7977
|
+
|
7978
|
+
:param str page: (optional)
|
7979
|
+
The page token representing the page at which to start retrieving results. This is usually
|
7980
|
+
retrieved from a previous list call.
|
7981
|
+
|
7982
|
+
:param int limit: (optional)
|
7983
|
+
The maximum number of items to return.
|
7984
|
+
|
7985
|
+
:param obj retry_strategy: (optional)
|
7986
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7987
|
+
|
7988
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
7989
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
7990
|
+
|
7991
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
7992
|
+
|
7993
|
+
:param bool allow_control_chars: (optional)
|
7994
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7995
|
+
By default, the response will not allow control characters in strings
|
7996
|
+
|
7997
|
+
:return: A :class:`~oci.response.Response` object with data of type list of :class:`~oci.golden_gate.models.WorkRequest`
|
7998
|
+
:rtype: :class:`~oci.response.Response`
|
7999
|
+
|
8000
|
+
:example:
|
8001
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/list_work_requests.py.html>`__ to see an example of how to use list_work_requests API.
|
8002
|
+
"""
|
8003
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8004
|
+
required_arguments = ['compartmentId']
|
8005
|
+
resource_path = "/workRequests"
|
8006
|
+
method = "GET"
|
8007
|
+
operation_name = "list_work_requests"
|
8008
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/WorkRequest/ListWorkRequests"
|
8009
|
+
|
8010
|
+
# Don't accept unknown kwargs
|
8011
|
+
expected_kwargs = [
|
8012
|
+
"allow_control_chars",
|
8013
|
+
"retry_strategy",
|
8014
|
+
"resource_id",
|
8015
|
+
"opc_request_id",
|
8016
|
+
"page",
|
8017
|
+
"limit"
|
8018
|
+
]
|
8019
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8020
|
+
if extra_kwargs:
|
8021
|
+
raise ValueError(
|
8022
|
+
f"list_work_requests got unknown kwargs: {extra_kwargs!r}")
|
8023
|
+
|
8024
|
+
query_params = {
|
8025
|
+
"compartmentId": compartment_id,
|
8026
|
+
"resourceId": kwargs.get("resource_id", missing),
|
8027
|
+
"page": kwargs.get("page", missing),
|
8028
|
+
"limit": kwargs.get("limit", missing)
|
8029
|
+
}
|
8030
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
8031
|
+
|
8032
|
+
header_params = {
|
8033
|
+
"accept": "application/json",
|
8034
|
+
"content-type": "application/json",
|
8035
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
8036
|
+
}
|
8037
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8038
|
+
|
8039
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8040
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8041
|
+
client_retry_strategy=self.retry_strategy
|
8042
|
+
)
|
8043
|
+
if retry_strategy is None:
|
8044
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
8045
|
+
|
8046
|
+
if retry_strategy:
|
8047
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8048
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8049
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8050
|
+
return retry_strategy.make_retrying_call(
|
8051
|
+
self.base_client.call_api,
|
8052
|
+
resource_path=resource_path,
|
8053
|
+
method=method,
|
8054
|
+
query_params=query_params,
|
8055
|
+
header_params=header_params,
|
8056
|
+
response_type="list[WorkRequest]",
|
8057
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8058
|
+
operation_name=operation_name,
|
8059
|
+
api_reference_link=api_reference_link,
|
8060
|
+
required_arguments=required_arguments)
|
8061
|
+
else:
|
8062
|
+
return self.base_client.call_api(
|
8063
|
+
resource_path=resource_path,
|
8064
|
+
method=method,
|
8065
|
+
query_params=query_params,
|
8066
|
+
header_params=header_params,
|
8067
|
+
response_type="list[WorkRequest]",
|
8068
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8069
|
+
operation_name=operation_name,
|
8070
|
+
api_reference_link=api_reference_link,
|
8071
|
+
required_arguments=required_arguments)
|
8072
|
+
|
8073
|
+
def refresh_connection(self, connection_id, refresh_connection_details, **kwargs):
|
8074
|
+
"""
|
8075
|
+
Refresh the external Connection attributes.
|
8076
|
+
|
8077
|
+
|
8078
|
+
:param str connection_id: (required)
|
8079
|
+
The `OCID`__ of a Connection.
|
8080
|
+
|
8081
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
8082
|
+
|
8083
|
+
:param oci.golden_gate.models.RefreshConnectionDetails refresh_connection_details: (required)
|
8084
|
+
Details of refresh external Connection attributes.
|
8085
|
+
|
8086
|
+
:param str if_match: (optional)
|
8087
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
8088
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
8089
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
8090
|
+
resource's current etag value.
|
8091
|
+
|
8092
|
+
:param str opc_request_id: (optional)
|
8093
|
+
The client request ID for tracing.
|
8094
|
+
|
8095
|
+
:param bool is_lock_override: (optional)
|
8096
|
+
Whether to override locks (if any exist).
|
8097
|
+
|
8098
|
+
:param obj retry_strategy: (optional)
|
8099
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
8100
|
+
|
8101
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
8102
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
8103
|
+
|
8104
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
8105
|
+
|
8106
|
+
:param bool allow_control_chars: (optional)
|
8107
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
8108
|
+
By default, the response will not allow control characters in strings
|
8109
|
+
|
8110
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
8111
|
+
:rtype: :class:`~oci.response.Response`
|
8112
|
+
|
8113
|
+
:example:
|
8114
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/refresh_connection.py.html>`__ to see an example of how to use refresh_connection API.
|
8115
|
+
"""
|
8116
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8117
|
+
required_arguments = ['connectionId']
|
8118
|
+
resource_path = "/connections/{connectionId}/actions/refresh"
|
8119
|
+
method = "POST"
|
8120
|
+
operation_name = "refresh_connection"
|
8121
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/RefreshConnection"
|
8122
|
+
|
8123
|
+
# Don't accept unknown kwargs
|
8124
|
+
expected_kwargs = [
|
8125
|
+
"allow_control_chars",
|
8126
|
+
"retry_strategy",
|
8127
|
+
"if_match",
|
8128
|
+
"opc_request_id",
|
8129
|
+
"is_lock_override"
|
8130
|
+
]
|
8131
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8132
|
+
if extra_kwargs:
|
8133
|
+
raise ValueError(
|
8134
|
+
f"refresh_connection got unknown kwargs: {extra_kwargs!r}")
|
8135
|
+
|
8136
|
+
path_params = {
|
8137
|
+
"connectionId": connection_id
|
8138
|
+
}
|
8139
|
+
|
8140
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
8141
|
+
|
8142
|
+
for (k, v) in six.iteritems(path_params):
|
8143
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
8144
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
8145
|
+
|
8146
|
+
query_params = {
|
8147
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
8148
|
+
}
|
8149
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
8150
|
+
|
8151
|
+
header_params = {
|
8152
|
+
"accept": "application/json",
|
8153
|
+
"content-type": "application/json",
|
8154
|
+
"if-match": kwargs.get("if_match", missing),
|
8155
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
8156
|
+
}
|
8157
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8158
|
+
|
8159
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8160
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8161
|
+
client_retry_strategy=self.retry_strategy
|
8162
|
+
)
|
8163
|
+
if retry_strategy is None:
|
8164
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
8165
|
+
|
8166
|
+
if retry_strategy:
|
8167
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8168
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8169
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8170
|
+
return retry_strategy.make_retrying_call(
|
8171
|
+
self.base_client.call_api,
|
8172
|
+
resource_path=resource_path,
|
8173
|
+
method=method,
|
8174
|
+
path_params=path_params,
|
8175
|
+
query_params=query_params,
|
8176
|
+
header_params=header_params,
|
8177
|
+
body=refresh_connection_details,
|
8178
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8179
|
+
operation_name=operation_name,
|
8180
|
+
api_reference_link=api_reference_link,
|
8181
|
+
required_arguments=required_arguments)
|
8182
|
+
else:
|
8183
|
+
return self.base_client.call_api(
|
8184
|
+
resource_path=resource_path,
|
8185
|
+
method=method,
|
8186
|
+
path_params=path_params,
|
8187
|
+
query_params=query_params,
|
8188
|
+
header_params=header_params,
|
8189
|
+
body=refresh_connection_details,
|
8190
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8191
|
+
operation_name=operation_name,
|
8192
|
+
api_reference_link=api_reference_link,
|
8193
|
+
required_arguments=required_arguments)
|
8194
|
+
|
8195
|
+
def remove_connection_lock(self, connection_id, remove_resource_lock_details, **kwargs):
|
8196
|
+
"""
|
8197
|
+
Removes a lock from a Connection resource.
|
8198
|
+
|
8199
|
+
|
8200
|
+
:param str connection_id: (required)
|
8201
|
+
The `OCID`__ of a Connection.
|
8202
|
+
|
8203
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
8204
|
+
|
8205
|
+
:param oci.golden_gate.models.RemoveResourceLockDetails remove_resource_lock_details: (required)
|
8206
|
+
RemoveResourceLockDetails body parameter
|
8207
|
+
|
8208
|
+
:param str opc_request_id: (optional)
|
8209
|
+
Unique identifier for the request.
|
8210
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
8211
|
+
|
8212
|
+
:param str if_match: (optional)
|
8213
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
8214
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
8215
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
8216
|
+
|
8217
|
+
:param obj retry_strategy: (optional)
|
8218
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
8219
|
+
|
8220
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
8221
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
8222
|
+
|
8223
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
8224
|
+
|
8225
|
+
:param bool allow_control_chars: (optional)
|
8226
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
8227
|
+
By default, the response will not allow control characters in strings
|
8228
|
+
|
8229
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.Connection`
|
8230
|
+
:rtype: :class:`~oci.response.Response`
|
8231
|
+
|
8232
|
+
:example:
|
8233
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/remove_connection_lock.py.html>`__ to see an example of how to use remove_connection_lock API.
|
8234
|
+
"""
|
8235
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8236
|
+
required_arguments = ['connectionId']
|
8237
|
+
resource_path = "/connections/{connectionId}/actions/removeLock"
|
8238
|
+
method = "POST"
|
8239
|
+
operation_name = "remove_connection_lock"
|
8240
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Connection/RemoveConnectionLock"
|
8241
|
+
|
8242
|
+
# Don't accept unknown kwargs
|
8243
|
+
expected_kwargs = [
|
8244
|
+
"allow_control_chars",
|
8245
|
+
"retry_strategy",
|
8246
|
+
"opc_request_id",
|
8247
|
+
"if_match"
|
8248
|
+
]
|
8249
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8250
|
+
if extra_kwargs:
|
8251
|
+
raise ValueError(
|
8252
|
+
f"remove_connection_lock got unknown kwargs: {extra_kwargs!r}")
|
8253
|
+
|
8254
|
+
path_params = {
|
8255
|
+
"connectionId": connection_id
|
8256
|
+
}
|
8257
|
+
|
8258
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
8259
|
+
|
8260
|
+
for (k, v) in six.iteritems(path_params):
|
8261
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
8262
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
8263
|
+
|
8264
|
+
header_params = {
|
8265
|
+
"accept": "application/json",
|
8266
|
+
"content-type": "application/json",
|
8267
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
8268
|
+
"if-match": kwargs.get("if_match", missing)
|
8269
|
+
}
|
8270
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8271
|
+
|
8272
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8273
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8274
|
+
client_retry_strategy=self.retry_strategy
|
8275
|
+
)
|
8276
|
+
if retry_strategy is None:
|
8277
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
8278
|
+
|
8279
|
+
if retry_strategy:
|
8280
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8281
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8282
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8283
|
+
return retry_strategy.make_retrying_call(
|
8284
|
+
self.base_client.call_api,
|
8285
|
+
resource_path=resource_path,
|
8286
|
+
method=method,
|
8287
|
+
path_params=path_params,
|
8288
|
+
header_params=header_params,
|
8289
|
+
body=remove_resource_lock_details,
|
8290
|
+
response_type="Connection",
|
8291
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8292
|
+
operation_name=operation_name,
|
8293
|
+
api_reference_link=api_reference_link,
|
8294
|
+
required_arguments=required_arguments)
|
8295
|
+
else:
|
8296
|
+
return self.base_client.call_api(
|
8297
|
+
resource_path=resource_path,
|
8298
|
+
method=method,
|
8299
|
+
path_params=path_params,
|
8300
|
+
header_params=header_params,
|
8301
|
+
body=remove_resource_lock_details,
|
8302
|
+
response_type="Connection",
|
8303
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8304
|
+
operation_name=operation_name,
|
8305
|
+
api_reference_link=api_reference_link,
|
8306
|
+
required_arguments=required_arguments)
|
8307
|
+
|
8308
|
+
def remove_deployment_backup_lock(self, deployment_backup_id, remove_resource_lock_details, **kwargs):
|
8309
|
+
"""
|
8310
|
+
Removes a lock from a DeploymentBackup resource.
|
8311
|
+
|
8312
|
+
|
8313
|
+
:param str deployment_backup_id: (required)
|
8314
|
+
A unique DeploymentBackup identifier.
|
8315
|
+
|
8316
|
+
:param oci.golden_gate.models.RemoveResourceLockDetails remove_resource_lock_details: (required)
|
8317
|
+
RemoveResourceLockDetails body parameter
|
8318
|
+
|
8319
|
+
:param str opc_request_id: (optional)
|
8320
|
+
Unique identifier for the request.
|
8321
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
8322
|
+
|
8323
|
+
:param str if_match: (optional)
|
8324
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
8325
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
8326
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
8327
|
+
|
8328
|
+
:param obj retry_strategy: (optional)
|
8329
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
8330
|
+
|
8331
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
8332
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
8333
|
+
|
8334
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
8335
|
+
|
8336
|
+
:param bool allow_control_chars: (optional)
|
8337
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
8338
|
+
By default, the response will not allow control characters in strings
|
8339
|
+
|
8340
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.DeploymentBackup`
|
8341
|
+
:rtype: :class:`~oci.response.Response`
|
8342
|
+
|
8343
|
+
:example:
|
8344
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/remove_deployment_backup_lock.py.html>`__ to see an example of how to use remove_deployment_backup_lock API.
|
8345
|
+
"""
|
8346
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8347
|
+
required_arguments = ['deploymentBackupId']
|
8348
|
+
resource_path = "/deploymentBackups/{deploymentBackupId}/actions/removeLock"
|
8349
|
+
method = "POST"
|
8350
|
+
operation_name = "remove_deployment_backup_lock"
|
8351
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/RemoveDeploymentBackupLock"
|
8352
|
+
|
8353
|
+
# Don't accept unknown kwargs
|
8354
|
+
expected_kwargs = [
|
8355
|
+
"allow_control_chars",
|
8356
|
+
"retry_strategy",
|
8357
|
+
"opc_request_id",
|
8358
|
+
"if_match"
|
8359
|
+
]
|
8360
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8361
|
+
if extra_kwargs:
|
8362
|
+
raise ValueError(
|
8363
|
+
f"remove_deployment_backup_lock got unknown kwargs: {extra_kwargs!r}")
|
8364
|
+
|
8365
|
+
path_params = {
|
8366
|
+
"deploymentBackupId": deployment_backup_id
|
8367
|
+
}
|
8368
|
+
|
8369
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
8370
|
+
|
8371
|
+
for (k, v) in six.iteritems(path_params):
|
8372
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
8373
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
8374
|
+
|
8375
|
+
header_params = {
|
8376
|
+
"accept": "application/json",
|
8377
|
+
"content-type": "application/json",
|
8378
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
8379
|
+
"if-match": kwargs.get("if_match", missing)
|
8380
|
+
}
|
8381
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
8382
|
+
|
8383
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
8384
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
8385
|
+
client_retry_strategy=self.retry_strategy
|
8386
|
+
)
|
8387
|
+
if retry_strategy is None:
|
8388
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
8389
|
+
|
8390
|
+
if retry_strategy:
|
8391
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8392
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
8393
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
8394
|
+
return retry_strategy.make_retrying_call(
|
8395
|
+
self.base_client.call_api,
|
8396
|
+
resource_path=resource_path,
|
8397
|
+
method=method,
|
8398
|
+
path_params=path_params,
|
8399
|
+
header_params=header_params,
|
8400
|
+
body=remove_resource_lock_details,
|
8401
|
+
response_type="DeploymentBackup",
|
8402
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8403
|
+
operation_name=operation_name,
|
8404
|
+
api_reference_link=api_reference_link,
|
8405
|
+
required_arguments=required_arguments)
|
8406
|
+
else:
|
8407
|
+
return self.base_client.call_api(
|
8408
|
+
resource_path=resource_path,
|
8409
|
+
method=method,
|
8410
|
+
path_params=path_params,
|
8411
|
+
header_params=header_params,
|
8412
|
+
body=remove_resource_lock_details,
|
8413
|
+
response_type="DeploymentBackup",
|
8414
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
8415
|
+
operation_name=operation_name,
|
8416
|
+
api_reference_link=api_reference_link,
|
8417
|
+
required_arguments=required_arguments)
|
8418
|
+
|
8419
|
+
def remove_deployment_lock(self, deployment_id, remove_resource_lock_details, **kwargs):
|
8420
|
+
"""
|
8421
|
+
Removes a lock from a Deployment resource.
|
8422
|
+
|
8423
|
+
|
8424
|
+
:param str deployment_id: (required)
|
8425
|
+
A unique Deployment identifier.
|
8426
|
+
|
8427
|
+
:param oci.golden_gate.models.RemoveResourceLockDetails remove_resource_lock_details: (required)
|
8428
|
+
RemoveResourceLockDetails body parameter
|
8429
|
+
|
8430
|
+
:param str opc_request_id: (optional)
|
8431
|
+
Unique identifier for the request.
|
8432
|
+
If you need to contact Oracle about a particular request, please provide the request ID.
|
8433
|
+
|
8434
|
+
:param str if_match: (optional)
|
8435
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match`
|
8436
|
+
parameter to the value of the etag from a previous GET or POST response for that resource. The resource
|
8437
|
+
will be updated or deleted only if the etag you provide matches the resource's current etag value.
|
8438
|
+
|
8439
|
+
:param obj retry_strategy: (optional)
|
8440
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
8441
|
+
|
8442
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
8443
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
8444
|
+
|
8445
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
8446
|
+
|
8447
|
+
:param bool allow_control_chars: (optional)
|
8448
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
8449
|
+
By default, the response will not allow control characters in strings
|
8450
|
+
|
8451
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.Deployment`
|
8452
|
+
:rtype: :class:`~oci.response.Response`
|
8453
|
+
|
8454
|
+
:example:
|
8455
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/remove_deployment_lock.py.html>`__ to see an example of how to use remove_deployment_lock API.
|
8456
|
+
"""
|
8457
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8458
|
+
required_arguments = ['deploymentId']
|
8459
|
+
resource_path = "/deployments/{deploymentId}/actions/removeLock"
|
8460
|
+
method = "POST"
|
8461
|
+
operation_name = "remove_deployment_lock"
|
8462
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/RemoveDeploymentLock"
|
8463
|
+
|
8464
|
+
# Don't accept unknown kwargs
|
8465
|
+
expected_kwargs = [
|
8466
|
+
"allow_control_chars",
|
8467
|
+
"retry_strategy",
|
8468
|
+
"opc_request_id",
|
8469
|
+
"if_match"
|
8470
|
+
]
|
8471
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8472
|
+
if extra_kwargs:
|
8473
|
+
raise ValueError(
|
8474
|
+
f"remove_deployment_lock got unknown kwargs: {extra_kwargs!r}")
|
8475
|
+
|
8476
|
+
path_params = {
|
8477
|
+
"deploymentId": deployment_id
|
6801
8478
|
}
|
6802
8479
|
|
6803
8480
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -6806,16 +8483,11 @@ class GoldenGateClient(object):
|
|
6806
8483
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
6807
8484
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
6808
8485
|
|
6809
|
-
query_params = {
|
6810
|
-
"isLockOverride": kwargs.get("is_lock_override", missing)
|
6811
|
-
}
|
6812
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
6813
|
-
|
6814
8486
|
header_params = {
|
6815
8487
|
"accept": "application/json",
|
6816
8488
|
"content-type": "application/json",
|
6817
|
-
"
|
6818
|
-
"
|
8489
|
+
"opc-request-id": kwargs.get("opc_request_id", missing),
|
8490
|
+
"if-match": kwargs.get("if_match", missing)
|
6819
8491
|
}
|
6820
8492
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6821
8493
|
|
@@ -6835,9 +8507,9 @@ class GoldenGateClient(object):
|
|
6835
8507
|
resource_path=resource_path,
|
6836
8508
|
method=method,
|
6837
8509
|
path_params=path_params,
|
6838
|
-
query_params=query_params,
|
6839
8510
|
header_params=header_params,
|
6840
|
-
body=
|
8511
|
+
body=remove_resource_lock_details,
|
8512
|
+
response_type="Deployment",
|
6841
8513
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6842
8514
|
operation_name=operation_name,
|
6843
8515
|
api_reference_link=api_reference_link,
|
@@ -6847,35 +8519,39 @@ class GoldenGateClient(object):
|
|
6847
8519
|
resource_path=resource_path,
|
6848
8520
|
method=method,
|
6849
8521
|
path_params=path_params,
|
6850
|
-
query_params=query_params,
|
6851
8522
|
header_params=header_params,
|
6852
|
-
body=
|
8523
|
+
body=remove_resource_lock_details,
|
8524
|
+
response_type="Deployment",
|
6853
8525
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6854
8526
|
operation_name=operation_name,
|
6855
8527
|
api_reference_link=api_reference_link,
|
6856
8528
|
required_arguments=required_arguments)
|
6857
8529
|
|
6858
|
-
def
|
8530
|
+
def reschedule_deployment_upgrade(self, deployment_upgrade_id, reschedule_deployment_upgrade_details, **kwargs):
|
6859
8531
|
"""
|
6860
|
-
|
8532
|
+
Reschedules a DeploymentUpgrade, applicable only for DeploymentUpgrade in Waiting state. When provided, If-Match is checked against ETag values of the resource.
|
6861
8533
|
|
6862
8534
|
|
6863
|
-
:param str
|
6864
|
-
|
8535
|
+
:param str deployment_upgrade_id: (required)
|
8536
|
+
A unique Deployment Upgrade identifier.
|
6865
8537
|
|
6866
|
-
|
8538
|
+
:param oci.golden_gate.models.RescheduleDeploymentUpgradeDetails reschedule_deployment_upgrade_details: (required)
|
8539
|
+
Properties to reschedule DeploymentUpgrade.
|
6867
8540
|
|
6868
|
-
:param
|
6869
|
-
|
8541
|
+
:param str if_match: (optional)
|
8542
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
8543
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
8544
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
8545
|
+
resource's current etag value.
|
6870
8546
|
|
6871
8547
|
:param str opc_request_id: (optional)
|
6872
|
-
|
6873
|
-
If you need to contact Oracle about a particular request, please provide the request ID.
|
8548
|
+
The client request ID for tracing.
|
6874
8549
|
|
6875
|
-
:param str
|
6876
|
-
|
6877
|
-
|
6878
|
-
|
8550
|
+
:param str opc_retry_token: (optional)
|
8551
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
8552
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
8553
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
8554
|
+
from the system, then a retry of the original creation request is rejected.
|
6879
8555
|
|
6880
8556
|
:param obj retry_strategy: (optional)
|
6881
8557
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -6889,33 +8565,34 @@ class GoldenGateClient(object):
|
|
6889
8565
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
6890
8566
|
By default, the response will not allow control characters in strings
|
6891
8567
|
|
6892
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.
|
8568
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.DeploymentUpgrade`
|
6893
8569
|
:rtype: :class:`~oci.response.Response`
|
6894
8570
|
|
6895
8571
|
:example:
|
6896
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8572
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/reschedule_deployment_upgrade.py.html>`__ to see an example of how to use reschedule_deployment_upgrade API.
|
6897
8573
|
"""
|
6898
8574
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
6899
|
-
required_arguments = ['
|
6900
|
-
resource_path = "/
|
8575
|
+
required_arguments = ['deploymentUpgradeId']
|
8576
|
+
resource_path = "/deploymentUpgrades/{deploymentUpgradeId}/actions/reschedule"
|
6901
8577
|
method = "POST"
|
6902
|
-
operation_name = "
|
6903
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
8578
|
+
operation_name = "reschedule_deployment_upgrade"
|
8579
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentUpgrade/RescheduleDeploymentUpgrade"
|
6904
8580
|
|
6905
8581
|
# Don't accept unknown kwargs
|
6906
8582
|
expected_kwargs = [
|
6907
8583
|
"allow_control_chars",
|
6908
8584
|
"retry_strategy",
|
8585
|
+
"if_match",
|
6909
8586
|
"opc_request_id",
|
6910
|
-
"
|
8587
|
+
"opc_retry_token"
|
6911
8588
|
]
|
6912
8589
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
6913
8590
|
if extra_kwargs:
|
6914
8591
|
raise ValueError(
|
6915
|
-
f"
|
8592
|
+
f"reschedule_deployment_upgrade got unknown kwargs: {extra_kwargs!r}")
|
6916
8593
|
|
6917
8594
|
path_params = {
|
6918
|
-
"
|
8595
|
+
"deploymentUpgradeId": deployment_upgrade_id
|
6919
8596
|
}
|
6920
8597
|
|
6921
8598
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -6927,8 +8604,9 @@ class GoldenGateClient(object):
|
|
6927
8604
|
header_params = {
|
6928
8605
|
"accept": "application/json",
|
6929
8606
|
"content-type": "application/json",
|
8607
|
+
"if-match": kwargs.get("if_match", missing),
|
6930
8608
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
6931
|
-
"
|
8609
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
6932
8610
|
}
|
6933
8611
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
6934
8612
|
|
@@ -6941,6 +8619,7 @@ class GoldenGateClient(object):
|
|
6941
8619
|
|
6942
8620
|
if retry_strategy:
|
6943
8621
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8622
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
6944
8623
|
self.base_client.add_opc_client_retries_header(header_params)
|
6945
8624
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
6946
8625
|
return retry_strategy.make_retrying_call(
|
@@ -6949,8 +8628,8 @@ class GoldenGateClient(object):
|
|
6949
8628
|
method=method,
|
6950
8629
|
path_params=path_params,
|
6951
8630
|
header_params=header_params,
|
6952
|
-
body=
|
6953
|
-
response_type="
|
8631
|
+
body=reschedule_deployment_upgrade_details,
|
8632
|
+
response_type="DeploymentUpgrade",
|
6954
8633
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6955
8634
|
operation_name=operation_name,
|
6956
8635
|
api_reference_link=api_reference_link,
|
@@ -6961,32 +8640,41 @@ class GoldenGateClient(object):
|
|
6961
8640
|
method=method,
|
6962
8641
|
path_params=path_params,
|
6963
8642
|
header_params=header_params,
|
6964
|
-
body=
|
6965
|
-
response_type="
|
8643
|
+
body=reschedule_deployment_upgrade_details,
|
8644
|
+
response_type="DeploymentUpgrade",
|
6966
8645
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
6967
8646
|
operation_name=operation_name,
|
6968
8647
|
api_reference_link=api_reference_link,
|
6969
8648
|
required_arguments=required_arguments)
|
6970
8649
|
|
6971
|
-
def
|
8650
|
+
def restore_deployment(self, deployment_backup_id, restore_deployment_details, **kwargs):
|
6972
8651
|
"""
|
6973
|
-
|
8652
|
+
Restores a Deployment from a Deployment Backup created from the same Deployment.
|
6974
8653
|
|
6975
8654
|
|
6976
8655
|
:param str deployment_backup_id: (required)
|
6977
8656
|
A unique DeploymentBackup identifier.
|
6978
8657
|
|
6979
|
-
:param oci.golden_gate.models.
|
6980
|
-
|
8658
|
+
:param oci.golden_gate.models.RestoreDeploymentDetails restore_deployment_details: (required)
|
8659
|
+
A placeholder for any additional metadata to describe the deployment restore.
|
8660
|
+
|
8661
|
+
:param str if_match: (optional)
|
8662
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
8663
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
8664
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
8665
|
+
resource's current etag value.
|
6981
8666
|
|
6982
8667
|
:param str opc_request_id: (optional)
|
6983
|
-
|
6984
|
-
If you need to contact Oracle about a particular request, please provide the request ID.
|
8668
|
+
The client request ID for tracing.
|
6985
8669
|
|
6986
|
-
:param str
|
6987
|
-
|
6988
|
-
|
6989
|
-
|
8670
|
+
:param str opc_retry_token: (optional)
|
8671
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
8672
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
8673
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
8674
|
+
from the system, then a retry of the original creation request is rejected.
|
8675
|
+
|
8676
|
+
:param bool is_lock_override: (optional)
|
8677
|
+
Whether to override locks (if any exist).
|
6990
8678
|
|
6991
8679
|
:param obj retry_strategy: (optional)
|
6992
8680
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -7000,30 +8688,32 @@ class GoldenGateClient(object):
|
|
7000
8688
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7001
8689
|
By default, the response will not allow control characters in strings
|
7002
8690
|
|
7003
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
8691
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7004
8692
|
:rtype: :class:`~oci.response.Response`
|
7005
8693
|
|
7006
8694
|
:example:
|
7007
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8695
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/restore_deployment.py.html>`__ to see an example of how to use restore_deployment API.
|
7008
8696
|
"""
|
7009
8697
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7010
8698
|
required_arguments = ['deploymentBackupId']
|
7011
|
-
resource_path = "/deploymentBackups/{deploymentBackupId}/actions/
|
8699
|
+
resource_path = "/deploymentBackups/{deploymentBackupId}/actions/restore"
|
7012
8700
|
method = "POST"
|
7013
|
-
operation_name = "
|
7014
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/
|
8701
|
+
operation_name = "restore_deployment"
|
8702
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentBackup/RestoreDeployment"
|
7015
8703
|
|
7016
8704
|
# Don't accept unknown kwargs
|
7017
8705
|
expected_kwargs = [
|
7018
8706
|
"allow_control_chars",
|
7019
8707
|
"retry_strategy",
|
8708
|
+
"if_match",
|
7020
8709
|
"opc_request_id",
|
7021
|
-
"
|
8710
|
+
"opc_retry_token",
|
8711
|
+
"is_lock_override"
|
7022
8712
|
]
|
7023
8713
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7024
8714
|
if extra_kwargs:
|
7025
8715
|
raise ValueError(
|
7026
|
-
f"
|
8716
|
+
f"restore_deployment got unknown kwargs: {extra_kwargs!r}")
|
7027
8717
|
|
7028
8718
|
path_params = {
|
7029
8719
|
"deploymentBackupId": deployment_backup_id
|
@@ -7035,11 +8725,17 @@ class GoldenGateClient(object):
|
|
7035
8725
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7036
8726
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7037
8727
|
|
8728
|
+
query_params = {
|
8729
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
8730
|
+
}
|
8731
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
8732
|
+
|
7038
8733
|
header_params = {
|
7039
8734
|
"accept": "application/json",
|
7040
8735
|
"content-type": "application/json",
|
8736
|
+
"if-match": kwargs.get("if_match", missing),
|
7041
8737
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
7042
|
-
"
|
8738
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
7043
8739
|
}
|
7044
8740
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7045
8741
|
|
@@ -7052,6 +8748,7 @@ class GoldenGateClient(object):
|
|
7052
8748
|
|
7053
8749
|
if retry_strategy:
|
7054
8750
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8751
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
7055
8752
|
self.base_client.add_opc_client_retries_header(header_params)
|
7056
8753
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7057
8754
|
return retry_strategy.make_retrying_call(
|
@@ -7059,9 +8756,9 @@ class GoldenGateClient(object):
|
|
7059
8756
|
resource_path=resource_path,
|
7060
8757
|
method=method,
|
7061
8758
|
path_params=path_params,
|
8759
|
+
query_params=query_params,
|
7062
8760
|
header_params=header_params,
|
7063
|
-
body=
|
7064
|
-
response_type="DeploymentBackup",
|
8761
|
+
body=restore_deployment_details,
|
7065
8762
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7066
8763
|
operation_name=operation_name,
|
7067
8764
|
api_reference_link=api_reference_link,
|
@@ -7071,33 +8768,42 @@ class GoldenGateClient(object):
|
|
7071
8768
|
resource_path=resource_path,
|
7072
8769
|
method=method,
|
7073
8770
|
path_params=path_params,
|
8771
|
+
query_params=query_params,
|
7074
8772
|
header_params=header_params,
|
7075
|
-
body=
|
7076
|
-
response_type="DeploymentBackup",
|
8773
|
+
body=restore_deployment_details,
|
7077
8774
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7078
8775
|
operation_name=operation_name,
|
7079
8776
|
api_reference_link=api_reference_link,
|
7080
8777
|
required_arguments=required_arguments)
|
7081
8778
|
|
7082
|
-
def
|
8779
|
+
def rollback_deployment_upgrade(self, deployment_upgrade_id, rollback_deployment_upgrade_details, **kwargs):
|
7083
8780
|
"""
|
7084
|
-
|
8781
|
+
Rollback a deployment to it's previous version. When provided, If-Match is checked against ETag values of the resource.
|
7085
8782
|
|
7086
8783
|
|
7087
|
-
:param str
|
7088
|
-
A unique Deployment identifier.
|
8784
|
+
:param str deployment_upgrade_id: (required)
|
8785
|
+
A unique Deployment Upgrade identifier.
|
7089
8786
|
|
7090
|
-
:param oci.golden_gate.models.
|
7091
|
-
|
8787
|
+
:param oci.golden_gate.models.RollbackDeploymentUpgradeDetails rollback_deployment_upgrade_details: (required)
|
8788
|
+
A placeholder for any additional metadata to describe the deployment rollback.
|
8789
|
+
|
8790
|
+
:param str if_match: (optional)
|
8791
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
8792
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
8793
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
8794
|
+
resource's current etag value.
|
7092
8795
|
|
7093
8796
|
:param str opc_request_id: (optional)
|
7094
|
-
|
7095
|
-
If you need to contact Oracle about a particular request, please provide the request ID.
|
8797
|
+
The client request ID for tracing.
|
7096
8798
|
|
7097
|
-
:param str
|
7098
|
-
|
7099
|
-
|
7100
|
-
|
8799
|
+
:param str opc_retry_token: (optional)
|
8800
|
+
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
8801
|
+
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
8802
|
+
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
8803
|
+
from the system, then a retry of the original creation request is rejected.
|
8804
|
+
|
8805
|
+
:param bool is_lock_override: (optional)
|
8806
|
+
Whether to override locks (if any exist).
|
7101
8807
|
|
7102
8808
|
:param obj retry_strategy: (optional)
|
7103
8809
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
@@ -7111,33 +8817,35 @@ class GoldenGateClient(object):
|
|
7111
8817
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7112
8818
|
By default, the response will not allow control characters in strings
|
7113
8819
|
|
7114
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
8820
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7115
8821
|
:rtype: :class:`~oci.response.Response`
|
7116
8822
|
|
7117
8823
|
:example:
|
7118
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8824
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/rollback_deployment_upgrade.py.html>`__ to see an example of how to use rollback_deployment_upgrade API.
|
7119
8825
|
"""
|
7120
8826
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7121
|
-
required_arguments = ['
|
7122
|
-
resource_path = "/
|
8827
|
+
required_arguments = ['deploymentUpgradeId']
|
8828
|
+
resource_path = "/deploymentUpgrades/{deploymentUpgradeId}/actions/rollback"
|
7123
8829
|
method = "POST"
|
7124
|
-
operation_name = "
|
7125
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
8830
|
+
operation_name = "rollback_deployment_upgrade"
|
8831
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentUpgrade/RollbackDeploymentUpgrade"
|
7126
8832
|
|
7127
8833
|
# Don't accept unknown kwargs
|
7128
8834
|
expected_kwargs = [
|
7129
8835
|
"allow_control_chars",
|
7130
8836
|
"retry_strategy",
|
8837
|
+
"if_match",
|
7131
8838
|
"opc_request_id",
|
7132
|
-
"
|
8839
|
+
"opc_retry_token",
|
8840
|
+
"is_lock_override"
|
7133
8841
|
]
|
7134
8842
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7135
8843
|
if extra_kwargs:
|
7136
8844
|
raise ValueError(
|
7137
|
-
f"
|
8845
|
+
f"rollback_deployment_upgrade got unknown kwargs: {extra_kwargs!r}")
|
7138
8846
|
|
7139
8847
|
path_params = {
|
7140
|
-
"
|
8848
|
+
"deploymentUpgradeId": deployment_upgrade_id
|
7141
8849
|
}
|
7142
8850
|
|
7143
8851
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7146,11 +8854,17 @@ class GoldenGateClient(object):
|
|
7146
8854
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7147
8855
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7148
8856
|
|
8857
|
+
query_params = {
|
8858
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
8859
|
+
}
|
8860
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
8861
|
+
|
7149
8862
|
header_params = {
|
7150
8863
|
"accept": "application/json",
|
7151
8864
|
"content-type": "application/json",
|
8865
|
+
"if-match": kwargs.get("if_match", missing),
|
7152
8866
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
7153
|
-
"
|
8867
|
+
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
7154
8868
|
}
|
7155
8869
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
7156
8870
|
|
@@ -7163,6 +8877,7 @@ class GoldenGateClient(object):
|
|
7163
8877
|
|
7164
8878
|
if retry_strategy:
|
7165
8879
|
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
8880
|
+
self.base_client.add_opc_retry_token_if_needed(header_params)
|
7166
8881
|
self.base_client.add_opc_client_retries_header(header_params)
|
7167
8882
|
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
7168
8883
|
return retry_strategy.make_retrying_call(
|
@@ -7170,9 +8885,9 @@ class GoldenGateClient(object):
|
|
7170
8885
|
resource_path=resource_path,
|
7171
8886
|
method=method,
|
7172
8887
|
path_params=path_params,
|
8888
|
+
query_params=query_params,
|
7173
8889
|
header_params=header_params,
|
7174
|
-
body=
|
7175
|
-
response_type="Deployment",
|
8890
|
+
body=rollback_deployment_upgrade_details,
|
7176
8891
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7177
8892
|
operation_name=operation_name,
|
7178
8893
|
api_reference_link=api_reference_link,
|
@@ -7182,24 +8897,24 @@ class GoldenGateClient(object):
|
|
7182
8897
|
resource_path=resource_path,
|
7183
8898
|
method=method,
|
7184
8899
|
path_params=path_params,
|
8900
|
+
query_params=query_params,
|
7185
8901
|
header_params=header_params,
|
7186
|
-
body=
|
7187
|
-
response_type="Deployment",
|
8902
|
+
body=rollback_deployment_upgrade_details,
|
7188
8903
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7189
8904
|
operation_name=operation_name,
|
7190
8905
|
api_reference_link=api_reference_link,
|
7191
8906
|
required_arguments=required_arguments)
|
7192
8907
|
|
7193
|
-
def
|
8908
|
+
def snooze_deployment_upgrade(self, deployment_upgrade_id, snooze_deployment_upgrade_details, **kwargs):
|
7194
8909
|
"""
|
7195
|
-
|
8910
|
+
Snooze a DeploymentUpgrade. When provided, If-Match is checked against ETag values of the resource.
|
7196
8911
|
|
7197
8912
|
|
7198
8913
|
:param str deployment_upgrade_id: (required)
|
7199
8914
|
A unique Deployment Upgrade identifier.
|
7200
8915
|
|
7201
|
-
:param oci.golden_gate.models.
|
7202
|
-
|
8916
|
+
:param oci.golden_gate.models.SnoozeDeploymentUpgradeDetails snooze_deployment_upgrade_details: (required)
|
8917
|
+
A placeholder for any additional metadata to describe the snooze of deployment upgrade.
|
7203
8918
|
|
7204
8919
|
:param str if_match: (optional)
|
7205
8920
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7228,18 +8943,18 @@ class GoldenGateClient(object):
|
|
7228
8943
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7229
8944
|
By default, the response will not allow control characters in strings
|
7230
8945
|
|
7231
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
8946
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
7232
8947
|
:rtype: :class:`~oci.response.Response`
|
7233
8948
|
|
7234
8949
|
:example:
|
7235
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
8950
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/snooze_deployment_upgrade.py.html>`__ to see an example of how to use snooze_deployment_upgrade API.
|
7236
8951
|
"""
|
7237
8952
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7238
8953
|
required_arguments = ['deploymentUpgradeId']
|
7239
|
-
resource_path = "/deploymentUpgrades/{deploymentUpgradeId}/actions/
|
8954
|
+
resource_path = "/deploymentUpgrades/{deploymentUpgradeId}/actions/snooze"
|
7240
8955
|
method = "POST"
|
7241
|
-
operation_name = "
|
7242
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentUpgrade/
|
8956
|
+
operation_name = "snooze_deployment_upgrade"
|
8957
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/DeploymentUpgrade/SnoozeDeploymentUpgrade"
|
7243
8958
|
|
7244
8959
|
# Don't accept unknown kwargs
|
7245
8960
|
expected_kwargs = [
|
@@ -7252,7 +8967,7 @@ class GoldenGateClient(object):
|
|
7252
8967
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7253
8968
|
if extra_kwargs:
|
7254
8969
|
raise ValueError(
|
7255
|
-
f"
|
8970
|
+
f"snooze_deployment_upgrade got unknown kwargs: {extra_kwargs!r}")
|
7256
8971
|
|
7257
8972
|
path_params = {
|
7258
8973
|
"deploymentUpgradeId": deployment_upgrade_id
|
@@ -7291,8 +9006,7 @@ class GoldenGateClient(object):
|
|
7291
9006
|
method=method,
|
7292
9007
|
path_params=path_params,
|
7293
9008
|
header_params=header_params,
|
7294
|
-
body=
|
7295
|
-
response_type="DeploymentUpgrade",
|
9009
|
+
body=snooze_deployment_upgrade_details,
|
7296
9010
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7297
9011
|
operation_name=operation_name,
|
7298
9012
|
api_reference_link=api_reference_link,
|
@@ -7303,23 +9017,22 @@ class GoldenGateClient(object):
|
|
7303
9017
|
method=method,
|
7304
9018
|
path_params=path_params,
|
7305
9019
|
header_params=header_params,
|
7306
|
-
body=
|
7307
|
-
response_type="DeploymentUpgrade",
|
9020
|
+
body=snooze_deployment_upgrade_details,
|
7308
9021
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7309
9022
|
operation_name=operation_name,
|
7310
9023
|
api_reference_link=api_reference_link,
|
7311
9024
|
required_arguments=required_arguments)
|
7312
9025
|
|
7313
|
-
def
|
9026
|
+
def start_deployment(self, deployment_id, start_deployment_details, **kwargs):
|
7314
9027
|
"""
|
7315
|
-
|
9028
|
+
Starts a Deployment. When provided, If-Match is checked against ETag values of the resource.
|
7316
9029
|
|
7317
9030
|
|
7318
|
-
:param str
|
7319
|
-
A unique
|
9031
|
+
:param str deployment_id: (required)
|
9032
|
+
A unique Deployment identifier.
|
7320
9033
|
|
7321
|
-
:param oci.golden_gate.models.
|
7322
|
-
A placeholder for any additional metadata to describe the deployment
|
9034
|
+
:param oci.golden_gate.models.StartDeploymentDetails start_deployment_details: (required)
|
9035
|
+
A placeholder for any additional metadata to describe the deployment start.
|
7323
9036
|
|
7324
9037
|
:param str if_match: (optional)
|
7325
9038
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7355,14 +9068,14 @@ class GoldenGateClient(object):
|
|
7355
9068
|
:rtype: :class:`~oci.response.Response`
|
7356
9069
|
|
7357
9070
|
:example:
|
7358
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9071
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/start_deployment.py.html>`__ to see an example of how to use start_deployment API.
|
7359
9072
|
"""
|
7360
9073
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7361
|
-
required_arguments = ['
|
7362
|
-
resource_path = "/
|
9074
|
+
required_arguments = ['deploymentId']
|
9075
|
+
resource_path = "/deployments/{deploymentId}/actions/start"
|
7363
9076
|
method = "POST"
|
7364
|
-
operation_name = "
|
7365
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9077
|
+
operation_name = "start_deployment"
|
9078
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/StartDeployment"
|
7366
9079
|
|
7367
9080
|
# Don't accept unknown kwargs
|
7368
9081
|
expected_kwargs = [
|
@@ -7376,10 +9089,10 @@ class GoldenGateClient(object):
|
|
7376
9089
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7377
9090
|
if extra_kwargs:
|
7378
9091
|
raise ValueError(
|
7379
|
-
f"
|
9092
|
+
f"start_deployment got unknown kwargs: {extra_kwargs!r}")
|
7380
9093
|
|
7381
9094
|
path_params = {
|
7382
|
-
"
|
9095
|
+
"deploymentId": deployment_id
|
7383
9096
|
}
|
7384
9097
|
|
7385
9098
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7421,7 +9134,7 @@ class GoldenGateClient(object):
|
|
7421
9134
|
path_params=path_params,
|
7422
9135
|
query_params=query_params,
|
7423
9136
|
header_params=header_params,
|
7424
|
-
body=
|
9137
|
+
body=start_deployment_details,
|
7425
9138
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7426
9139
|
operation_name=operation_name,
|
7427
9140
|
api_reference_link=api_reference_link,
|
@@ -7433,22 +9146,24 @@ class GoldenGateClient(object):
|
|
7433
9146
|
path_params=path_params,
|
7434
9147
|
query_params=query_params,
|
7435
9148
|
header_params=header_params,
|
7436
|
-
body=
|
9149
|
+
body=start_deployment_details,
|
7437
9150
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7438
9151
|
operation_name=operation_name,
|
7439
9152
|
api_reference_link=api_reference_link,
|
7440
9153
|
required_arguments=required_arguments)
|
7441
9154
|
|
7442
|
-
def
|
9155
|
+
def start_pipeline(self, pipeline_id, start_pipeline_details, **kwargs):
|
7443
9156
|
"""
|
7444
|
-
|
9157
|
+
Starts the pipeline for data replication.
|
7445
9158
|
|
7446
9159
|
|
7447
|
-
:param str
|
7448
|
-
|
9160
|
+
:param str pipeline_id: (required)
|
9161
|
+
The `OCID`__ of the pipeline created.
|
7449
9162
|
|
7450
|
-
|
7451
|
-
|
9163
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9164
|
+
|
9165
|
+
:param oci.golden_gate.models.StartPipelineDetails start_pipeline_details: (required)
|
9166
|
+
Details to start Pipeline.
|
7452
9167
|
|
7453
9168
|
:param str if_match: (optional)
|
7454
9169
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7484,14 +9199,14 @@ class GoldenGateClient(object):
|
|
7484
9199
|
:rtype: :class:`~oci.response.Response`
|
7485
9200
|
|
7486
9201
|
:example:
|
7487
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9202
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/start_pipeline.py.html>`__ to see an example of how to use start_pipeline API.
|
7488
9203
|
"""
|
7489
9204
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7490
|
-
required_arguments = ['
|
7491
|
-
resource_path = "/
|
9205
|
+
required_arguments = ['pipelineId']
|
9206
|
+
resource_path = "/pipelines/{pipelineId}/actions/start"
|
7492
9207
|
method = "POST"
|
7493
|
-
operation_name = "
|
7494
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9208
|
+
operation_name = "start_pipeline"
|
9209
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StartPipeline"
|
7495
9210
|
|
7496
9211
|
# Don't accept unknown kwargs
|
7497
9212
|
expected_kwargs = [
|
@@ -7505,10 +9220,10 @@ class GoldenGateClient(object):
|
|
7505
9220
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7506
9221
|
if extra_kwargs:
|
7507
9222
|
raise ValueError(
|
7508
|
-
f"
|
9223
|
+
f"start_pipeline got unknown kwargs: {extra_kwargs!r}")
|
7509
9224
|
|
7510
9225
|
path_params = {
|
7511
|
-
"
|
9226
|
+
"pipelineId": pipeline_id
|
7512
9227
|
}
|
7513
9228
|
|
7514
9229
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7550,7 +9265,7 @@ class GoldenGateClient(object):
|
|
7550
9265
|
path_params=path_params,
|
7551
9266
|
query_params=query_params,
|
7552
9267
|
header_params=header_params,
|
7553
|
-
body=
|
9268
|
+
body=start_pipeline_details,
|
7554
9269
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7555
9270
|
operation_name=operation_name,
|
7556
9271
|
api_reference_link=api_reference_link,
|
@@ -7562,22 +9277,22 @@ class GoldenGateClient(object):
|
|
7562
9277
|
path_params=path_params,
|
7563
9278
|
query_params=query_params,
|
7564
9279
|
header_params=header_params,
|
7565
|
-
body=
|
9280
|
+
body=start_pipeline_details,
|
7566
9281
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7567
9282
|
operation_name=operation_name,
|
7568
9283
|
api_reference_link=api_reference_link,
|
7569
9284
|
required_arguments=required_arguments)
|
7570
9285
|
|
7571
|
-
def
|
9286
|
+
def stop_deployment(self, deployment_id, stop_deployment_details, **kwargs):
|
7572
9287
|
"""
|
7573
|
-
|
9288
|
+
Stops a Deployment. When provided, If-Match is checked against ETag values of the resource.
|
7574
9289
|
|
7575
9290
|
|
7576
|
-
:param str
|
7577
|
-
A unique Deployment
|
9291
|
+
:param str deployment_id: (required)
|
9292
|
+
A unique Deployment identifier.
|
7578
9293
|
|
7579
|
-
:param oci.golden_gate.models.
|
7580
|
-
A placeholder for any additional metadata to describe the
|
9294
|
+
:param oci.golden_gate.models.StopDeploymentDetails stop_deployment_details: (required)
|
9295
|
+
A placeholder for any additional metadata to describe the deployment stop.
|
7581
9296
|
|
7582
9297
|
:param str if_match: (optional)
|
7583
9298
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7594,6 +9309,9 @@ class GoldenGateClient(object):
|
|
7594
9309
|
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
7595
9310
|
from the system, then a retry of the original creation request is rejected.
|
7596
9311
|
|
9312
|
+
:param bool is_lock_override: (optional)
|
9313
|
+
Whether to override locks (if any exist).
|
9314
|
+
|
7597
9315
|
:param obj retry_strategy: (optional)
|
7598
9316
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7599
9317
|
|
@@ -7610,14 +9328,14 @@ class GoldenGateClient(object):
|
|
7610
9328
|
:rtype: :class:`~oci.response.Response`
|
7611
9329
|
|
7612
9330
|
:example:
|
7613
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9331
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/stop_deployment.py.html>`__ to see an example of how to use stop_deployment API.
|
7614
9332
|
"""
|
7615
9333
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7616
|
-
required_arguments = ['
|
7617
|
-
resource_path = "/
|
9334
|
+
required_arguments = ['deploymentId']
|
9335
|
+
resource_path = "/deployments/{deploymentId}/actions/stop"
|
7618
9336
|
method = "POST"
|
7619
|
-
operation_name = "
|
7620
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9337
|
+
operation_name = "stop_deployment"
|
9338
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Deployment/StopDeployment"
|
7621
9339
|
|
7622
9340
|
# Don't accept unknown kwargs
|
7623
9341
|
expected_kwargs = [
|
@@ -7625,15 +9343,16 @@ class GoldenGateClient(object):
|
|
7625
9343
|
"retry_strategy",
|
7626
9344
|
"if_match",
|
7627
9345
|
"opc_request_id",
|
7628
|
-
"opc_retry_token"
|
9346
|
+
"opc_retry_token",
|
9347
|
+
"is_lock_override"
|
7629
9348
|
]
|
7630
9349
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7631
9350
|
if extra_kwargs:
|
7632
9351
|
raise ValueError(
|
7633
|
-
f"
|
9352
|
+
f"stop_deployment got unknown kwargs: {extra_kwargs!r}")
|
7634
9353
|
|
7635
9354
|
path_params = {
|
7636
|
-
"
|
9355
|
+
"deploymentId": deployment_id
|
7637
9356
|
}
|
7638
9357
|
|
7639
9358
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7642,6 +9361,11 @@ class GoldenGateClient(object):
|
|
7642
9361
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7643
9362
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7644
9363
|
|
9364
|
+
query_params = {
|
9365
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
9366
|
+
}
|
9367
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
9368
|
+
|
7645
9369
|
header_params = {
|
7646
9370
|
"accept": "application/json",
|
7647
9371
|
"content-type": "application/json",
|
@@ -7668,8 +9392,9 @@ class GoldenGateClient(object):
|
|
7668
9392
|
resource_path=resource_path,
|
7669
9393
|
method=method,
|
7670
9394
|
path_params=path_params,
|
9395
|
+
query_params=query_params,
|
7671
9396
|
header_params=header_params,
|
7672
|
-
body=
|
9397
|
+
body=stop_deployment_details,
|
7673
9398
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7674
9399
|
operation_name=operation_name,
|
7675
9400
|
api_reference_link=api_reference_link,
|
@@ -7679,23 +9404,26 @@ class GoldenGateClient(object):
|
|
7679
9404
|
resource_path=resource_path,
|
7680
9405
|
method=method,
|
7681
9406
|
path_params=path_params,
|
9407
|
+
query_params=query_params,
|
7682
9408
|
header_params=header_params,
|
7683
|
-
body=
|
9409
|
+
body=stop_deployment_details,
|
7684
9410
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7685
9411
|
operation_name=operation_name,
|
7686
9412
|
api_reference_link=api_reference_link,
|
7687
9413
|
required_arguments=required_arguments)
|
7688
9414
|
|
7689
|
-
def
|
9415
|
+
def stop_pipeline(self, pipeline_id, stop_pipeline_details, **kwargs):
|
7690
9416
|
"""
|
7691
|
-
|
9417
|
+
Stops the pipeline for data replication.
|
7692
9418
|
|
7693
9419
|
|
7694
|
-
:param str
|
7695
|
-
|
9420
|
+
:param str pipeline_id: (required)
|
9421
|
+
The `OCID`__ of the pipeline created.
|
7696
9422
|
|
7697
|
-
|
7698
|
-
|
9423
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9424
|
+
|
9425
|
+
:param oci.golden_gate.models.StopPipelineDetails stop_pipeline_details: (required)
|
9426
|
+
Details to stop the pipeline.
|
7699
9427
|
|
7700
9428
|
:param str if_match: (optional)
|
7701
9429
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7731,14 +9459,14 @@ class GoldenGateClient(object):
|
|
7731
9459
|
:rtype: :class:`~oci.response.Response`
|
7732
9460
|
|
7733
9461
|
:example:
|
7734
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9462
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/stop_pipeline.py.html>`__ to see an example of how to use stop_pipeline API.
|
7735
9463
|
"""
|
7736
9464
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7737
|
-
required_arguments = ['
|
7738
|
-
resource_path = "/
|
9465
|
+
required_arguments = ['pipelineId']
|
9466
|
+
resource_path = "/pipelines/{pipelineId}/actions/stop"
|
7739
9467
|
method = "POST"
|
7740
|
-
operation_name = "
|
7741
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9468
|
+
operation_name = "stop_pipeline"
|
9469
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/StopPipeline"
|
7742
9470
|
|
7743
9471
|
# Don't accept unknown kwargs
|
7744
9472
|
expected_kwargs = [
|
@@ -7752,10 +9480,10 @@ class GoldenGateClient(object):
|
|
7752
9480
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7753
9481
|
if extra_kwargs:
|
7754
9482
|
raise ValueError(
|
7755
|
-
f"
|
9483
|
+
f"stop_pipeline got unknown kwargs: {extra_kwargs!r}")
|
7756
9484
|
|
7757
9485
|
path_params = {
|
7758
|
-
"
|
9486
|
+
"pipelineId": pipeline_id
|
7759
9487
|
}
|
7760
9488
|
|
7761
9489
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7797,7 +9525,7 @@ class GoldenGateClient(object):
|
|
7797
9525
|
path_params=path_params,
|
7798
9526
|
query_params=query_params,
|
7799
9527
|
header_params=header_params,
|
7800
|
-
body=
|
9528
|
+
body=stop_pipeline_details,
|
7801
9529
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7802
9530
|
operation_name=operation_name,
|
7803
9531
|
api_reference_link=api_reference_link,
|
@@ -7809,22 +9537,25 @@ class GoldenGateClient(object):
|
|
7809
9537
|
path_params=path_params,
|
7810
9538
|
query_params=query_params,
|
7811
9539
|
header_params=header_params,
|
7812
|
-
body=
|
9540
|
+
body=stop_pipeline_details,
|
7813
9541
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7814
9542
|
operation_name=operation_name,
|
7815
9543
|
api_reference_link=api_reference_link,
|
7816
9544
|
required_arguments=required_arguments)
|
7817
9545
|
|
7818
|
-
def
|
9546
|
+
def test_connection_assignment(self, connection_assignment_id, test_connection_assignment_details, **kwargs):
|
7819
9547
|
"""
|
7820
|
-
|
9548
|
+
Tests the connectivity between given GoldenGate deployment and one of the associated database / service.
|
9549
|
+
When provided, If-Match is checked against ETag values of the resource.
|
7821
9550
|
|
7822
9551
|
|
7823
|
-
:param str
|
7824
|
-
|
9552
|
+
:param str connection_assignment_id: (required)
|
9553
|
+
The `OCID`__ of the Connection Assignment.
|
7825
9554
|
|
7826
|
-
|
7827
|
-
|
9555
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
9556
|
+
|
9557
|
+
:param oci.golden_gate.models.TestConnectionAssignmentDetails test_connection_assignment_details: (required)
|
9558
|
+
A placeholder for any additional metadata to describe the requested tests of the assigned connection.
|
7828
9559
|
|
7829
9560
|
:param str if_match: (optional)
|
7830
9561
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7841,9 +9572,6 @@ class GoldenGateClient(object):
|
|
7841
9572
|
invalidated before then due to conflicting operations. For example, if a resource was deleted and purged
|
7842
9573
|
from the system, then a retry of the original creation request is rejected.
|
7843
9574
|
|
7844
|
-
:param bool is_lock_override: (optional)
|
7845
|
-
Whether to override locks (if any exist).
|
7846
|
-
|
7847
9575
|
:param obj retry_strategy: (optional)
|
7848
9576
|
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
7849
9577
|
|
@@ -7856,18 +9584,18 @@ class GoldenGateClient(object):
|
|
7856
9584
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7857
9585
|
By default, the response will not allow control characters in strings
|
7858
9586
|
|
7859
|
-
:return: A :class:`~oci.response.Response` object with data of type
|
9587
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.TestConnectionAssignmentResult`
|
7860
9588
|
:rtype: :class:`~oci.response.Response`
|
7861
9589
|
|
7862
9590
|
:example:
|
7863
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9591
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/test_connection_assignment.py.html>`__ to see an example of how to use test_connection_assignment API.
|
7864
9592
|
"""
|
7865
9593
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7866
|
-
required_arguments = ['
|
7867
|
-
resource_path = "/
|
9594
|
+
required_arguments = ['connectionAssignmentId']
|
9595
|
+
resource_path = "/connectionAssignments/{connectionAssignmentId}/actions/test"
|
7868
9596
|
method = "POST"
|
7869
|
-
operation_name = "
|
7870
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9597
|
+
operation_name = "test_connection_assignment"
|
9598
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/ConnectionAssignment/TestConnectionAssignment"
|
7871
9599
|
|
7872
9600
|
# Don't accept unknown kwargs
|
7873
9601
|
expected_kwargs = [
|
@@ -7875,16 +9603,15 @@ class GoldenGateClient(object):
|
|
7875
9603
|
"retry_strategy",
|
7876
9604
|
"if_match",
|
7877
9605
|
"opc_request_id",
|
7878
|
-
"opc_retry_token"
|
7879
|
-
"is_lock_override"
|
9606
|
+
"opc_retry_token"
|
7880
9607
|
]
|
7881
9608
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
7882
9609
|
if extra_kwargs:
|
7883
9610
|
raise ValueError(
|
7884
|
-
f"
|
9611
|
+
f"test_connection_assignment got unknown kwargs: {extra_kwargs!r}")
|
7885
9612
|
|
7886
9613
|
path_params = {
|
7887
|
-
"
|
9614
|
+
"connectionAssignmentId": connection_assignment_id
|
7888
9615
|
}
|
7889
9616
|
|
7890
9617
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -7893,11 +9620,6 @@ class GoldenGateClient(object):
|
|
7893
9620
|
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
7894
9621
|
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
7895
9622
|
|
7896
|
-
query_params = {
|
7897
|
-
"isLockOverride": kwargs.get("is_lock_override", missing)
|
7898
|
-
}
|
7899
|
-
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
7900
|
-
|
7901
9623
|
header_params = {
|
7902
9624
|
"accept": "application/json",
|
7903
9625
|
"content-type": "application/json",
|
@@ -7924,9 +9646,9 @@ class GoldenGateClient(object):
|
|
7924
9646
|
resource_path=resource_path,
|
7925
9647
|
method=method,
|
7926
9648
|
path_params=path_params,
|
7927
|
-
query_params=query_params,
|
7928
9649
|
header_params=header_params,
|
7929
|
-
body=
|
9650
|
+
body=test_connection_assignment_details,
|
9651
|
+
response_type="TestConnectionAssignmentResult",
|
7930
9652
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7931
9653
|
operation_name=operation_name,
|
7932
9654
|
api_reference_link=api_reference_link,
|
@@ -7936,27 +9658,30 @@ class GoldenGateClient(object):
|
|
7936
9658
|
resource_path=resource_path,
|
7937
9659
|
method=method,
|
7938
9660
|
path_params=path_params,
|
7939
|
-
query_params=query_params,
|
7940
9661
|
header_params=header_params,
|
7941
|
-
body=
|
9662
|
+
body=test_connection_assignment_details,
|
9663
|
+
response_type="TestConnectionAssignmentResult",
|
7942
9664
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
7943
9665
|
operation_name=operation_name,
|
7944
9666
|
api_reference_link=api_reference_link,
|
7945
9667
|
required_arguments=required_arguments)
|
7946
9668
|
|
7947
|
-
def
|
9669
|
+
def test_pipeline_connection(self, pipeline_id, test_pipeline_connection_details, **kwargs):
|
7948
9670
|
"""
|
7949
|
-
Tests
|
9671
|
+
Tests pipeline connections against pipeline to verify the connectivity.
|
7950
9672
|
When provided, If-Match is checked against ETag values of the resource.
|
7951
9673
|
|
7952
9674
|
|
7953
|
-
:param str
|
7954
|
-
The `OCID`__ of the
|
9675
|
+
:param str pipeline_id: (required)
|
9676
|
+
The `OCID`__ of the pipeline created.
|
7955
9677
|
|
7956
9678
|
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
7957
9679
|
|
7958
|
-
:param oci.golden_gate.models.
|
7959
|
-
|
9680
|
+
:param oci.golden_gate.models.TestPipelineConnectionDetails test_pipeline_connection_details: (required)
|
9681
|
+
Additional metadata required to test the connection assigned to the pipeline.
|
9682
|
+
|
9683
|
+
:param str opc_request_id: (optional)
|
9684
|
+
The client request ID for tracing.
|
7960
9685
|
|
7961
9686
|
:param str if_match: (optional)
|
7962
9687
|
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
@@ -7964,9 +9689,6 @@ class GoldenGateClient(object):
|
|
7964
9689
|
resource. The resource is updated or deleted only if the etag you provide matches the
|
7965
9690
|
resource's current etag value.
|
7966
9691
|
|
7967
|
-
:param str opc_request_id: (optional)
|
7968
|
-
The client request ID for tracing.
|
7969
|
-
|
7970
9692
|
:param str opc_retry_token: (optional)
|
7971
9693
|
A token that uniquely identifies a request so it can be retried, in case of a timeout or server error,
|
7972
9694
|
without the risk of executing that same action again. Retry tokens expire after 24 hours but can be
|
@@ -7985,34 +9707,34 @@ class GoldenGateClient(object):
|
|
7985
9707
|
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
7986
9708
|
By default, the response will not allow control characters in strings
|
7987
9709
|
|
7988
|
-
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.
|
9710
|
+
:return: A :class:`~oci.response.Response` object with data of type :class:`~oci.golden_gate.models.TestPipelineConnectionResult`
|
7989
9711
|
:rtype: :class:`~oci.response.Response`
|
7990
9712
|
|
7991
9713
|
:example:
|
7992
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9714
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/test_pipeline_connection.py.html>`__ to see an example of how to use test_pipeline_connection API.
|
7993
9715
|
"""
|
7994
9716
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
7995
|
-
required_arguments = ['
|
7996
|
-
resource_path = "/
|
9717
|
+
required_arguments = ['pipelineId']
|
9718
|
+
resource_path = "/pipelines/{pipelineId}/actions/testConnection"
|
7997
9719
|
method = "POST"
|
7998
|
-
operation_name = "
|
7999
|
-
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/
|
9720
|
+
operation_name = "test_pipeline_connection"
|
9721
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/TestPipelineConnection"
|
8000
9722
|
|
8001
9723
|
# Don't accept unknown kwargs
|
8002
9724
|
expected_kwargs = [
|
8003
9725
|
"allow_control_chars",
|
8004
9726
|
"retry_strategy",
|
8005
|
-
"if_match",
|
8006
9727
|
"opc_request_id",
|
9728
|
+
"if_match",
|
8007
9729
|
"opc_retry_token"
|
8008
9730
|
]
|
8009
9731
|
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
8010
9732
|
if extra_kwargs:
|
8011
9733
|
raise ValueError(
|
8012
|
-
f"
|
9734
|
+
f"test_pipeline_connection got unknown kwargs: {extra_kwargs!r}")
|
8013
9735
|
|
8014
9736
|
path_params = {
|
8015
|
-
"
|
9737
|
+
"pipelineId": pipeline_id
|
8016
9738
|
}
|
8017
9739
|
|
8018
9740
|
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
@@ -8024,8 +9746,8 @@ class GoldenGateClient(object):
|
|
8024
9746
|
header_params = {
|
8025
9747
|
"accept": "application/json",
|
8026
9748
|
"content-type": "application/json",
|
8027
|
-
"if-match": kwargs.get("if_match", missing),
|
8028
9749
|
"opc-request-id": kwargs.get("opc_request_id", missing),
|
9750
|
+
"if-match": kwargs.get("if_match", missing),
|
8029
9751
|
"opc-retry-token": kwargs.get("opc_retry_token", missing)
|
8030
9752
|
}
|
8031
9753
|
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
@@ -8048,8 +9770,8 @@ class GoldenGateClient(object):
|
|
8048
9770
|
method=method,
|
8049
9771
|
path_params=path_params,
|
8050
9772
|
header_params=header_params,
|
8051
|
-
body=
|
8052
|
-
response_type="
|
9773
|
+
body=test_pipeline_connection_details,
|
9774
|
+
response_type="TestPipelineConnectionResult",
|
8053
9775
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
8054
9776
|
operation_name=operation_name,
|
8055
9777
|
api_reference_link=api_reference_link,
|
@@ -8060,8 +9782,8 @@ class GoldenGateClient(object):
|
|
8060
9782
|
method=method,
|
8061
9783
|
path_params=path_params,
|
8062
9784
|
header_params=header_params,
|
8063
|
-
body=
|
8064
|
-
response_type="
|
9785
|
+
body=test_pipeline_connection_details,
|
9786
|
+
response_type="TestPipelineConnectionResult",
|
8065
9787
|
allow_control_chars=kwargs.get('allow_control_chars'),
|
8066
9788
|
operation_name=operation_name,
|
8067
9789
|
api_reference_link=api_reference_link,
|
@@ -8108,7 +9830,7 @@ class GoldenGateClient(object):
|
|
8108
9830
|
:rtype: :class:`~oci.response.Response`
|
8109
9831
|
|
8110
9832
|
:example:
|
8111
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9833
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/update_connection.py.html>`__ to see an example of how to use update_connection API.
|
8112
9834
|
"""
|
8113
9835
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8114
9836
|
required_arguments = ['connectionId']
|
@@ -8226,7 +9948,7 @@ class GoldenGateClient(object):
|
|
8226
9948
|
:rtype: :class:`~oci.response.Response`
|
8227
9949
|
|
8228
9950
|
:example:
|
8229
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
9951
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/update_database_registration.py.html>`__ to see an example of how to use update_database_registration API.
|
8230
9952
|
"""
|
8231
9953
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8232
9954
|
required_arguments = ['databaseRegistrationId']
|
@@ -8338,7 +10060,7 @@ class GoldenGateClient(object):
|
|
8338
10060
|
:rtype: :class:`~oci.response.Response`
|
8339
10061
|
|
8340
10062
|
:example:
|
8341
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10063
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/update_deployment.py.html>`__ to see an example of how to use update_deployment API.
|
8342
10064
|
"""
|
8343
10065
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8344
10066
|
required_arguments = ['deploymentId']
|
@@ -8458,7 +10180,7 @@ class GoldenGateClient(object):
|
|
8458
10180
|
:rtype: :class:`~oci.response.Response`
|
8459
10181
|
|
8460
10182
|
:example:
|
8461
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10183
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/update_deployment_backup.py.html>`__ to see an example of how to use update_deployment_backup API.
|
8462
10184
|
"""
|
8463
10185
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8464
10186
|
required_arguments = ['deploymentBackupId']
|
@@ -8541,6 +10263,128 @@ class GoldenGateClient(object):
|
|
8541
10263
|
api_reference_link=api_reference_link,
|
8542
10264
|
required_arguments=required_arguments)
|
8543
10265
|
|
10266
|
+
def update_pipeline(self, pipeline_id, update_pipeline_details, **kwargs):
|
10267
|
+
"""
|
10268
|
+
Updates the Pipeline.
|
10269
|
+
|
10270
|
+
|
10271
|
+
:param str pipeline_id: (required)
|
10272
|
+
The `OCID`__ of the pipeline created.
|
10273
|
+
|
10274
|
+
__ https://docs.cloud.oracle.com/Content/General/Concepts/identifiers.htm
|
10275
|
+
|
10276
|
+
:param oci.golden_gate.models.UpdatePipelineDetails update_pipeline_details: (required)
|
10277
|
+
The existing pipeline specifications to apply.
|
10278
|
+
|
10279
|
+
:param str if_match: (optional)
|
10280
|
+
For optimistic concurrency control. In the PUT or DELETE call for a resource, set the
|
10281
|
+
`if-match` parameter to the value of the etag from a previous GET or POST response for that
|
10282
|
+
resource. The resource is updated or deleted only if the etag you provide matches the
|
10283
|
+
resource's current etag value.
|
10284
|
+
|
10285
|
+
:param str opc_request_id: (optional)
|
10286
|
+
The client request ID for tracing.
|
10287
|
+
|
10288
|
+
:param bool is_lock_override: (optional)
|
10289
|
+
Whether to override locks (if any exist).
|
10290
|
+
|
10291
|
+
:param obj retry_strategy: (optional)
|
10292
|
+
A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
|
10293
|
+
|
10294
|
+
This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
|
10295
|
+
The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
|
10296
|
+
|
10297
|
+
To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
|
10298
|
+
|
10299
|
+
:param bool allow_control_chars: (optional)
|
10300
|
+
allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
|
10301
|
+
By default, the response will not allow control characters in strings
|
10302
|
+
|
10303
|
+
:return: A :class:`~oci.response.Response` object with data of type None
|
10304
|
+
:rtype: :class:`~oci.response.Response`
|
10305
|
+
|
10306
|
+
:example:
|
10307
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/update_pipeline.py.html>`__ to see an example of how to use update_pipeline API.
|
10308
|
+
"""
|
10309
|
+
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
10310
|
+
required_arguments = ['pipelineId']
|
10311
|
+
resource_path = "/pipelines/{pipelineId}"
|
10312
|
+
method = "PUT"
|
10313
|
+
operation_name = "update_pipeline"
|
10314
|
+
api_reference_link = "https://docs.oracle.com/iaas/api/#/en/goldengate/20200407/Pipeline/UpdatePipeline"
|
10315
|
+
|
10316
|
+
# Don't accept unknown kwargs
|
10317
|
+
expected_kwargs = [
|
10318
|
+
"allow_control_chars",
|
10319
|
+
"retry_strategy",
|
10320
|
+
"if_match",
|
10321
|
+
"opc_request_id",
|
10322
|
+
"is_lock_override"
|
10323
|
+
]
|
10324
|
+
extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
|
10325
|
+
if extra_kwargs:
|
10326
|
+
raise ValueError(
|
10327
|
+
f"update_pipeline got unknown kwargs: {extra_kwargs!r}")
|
10328
|
+
|
10329
|
+
path_params = {
|
10330
|
+
"pipelineId": pipeline_id
|
10331
|
+
}
|
10332
|
+
|
10333
|
+
path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
|
10334
|
+
|
10335
|
+
for (k, v) in six.iteritems(path_params):
|
10336
|
+
if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
|
10337
|
+
raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
|
10338
|
+
|
10339
|
+
query_params = {
|
10340
|
+
"isLockOverride": kwargs.get("is_lock_override", missing)
|
10341
|
+
}
|
10342
|
+
query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
|
10343
|
+
|
10344
|
+
header_params = {
|
10345
|
+
"accept": "application/json",
|
10346
|
+
"content-type": "application/json",
|
10347
|
+
"if-match": kwargs.get("if_match", missing),
|
10348
|
+
"opc-request-id": kwargs.get("opc_request_id", missing)
|
10349
|
+
}
|
10350
|
+
header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
|
10351
|
+
|
10352
|
+
retry_strategy = self.base_client.get_preferred_retry_strategy(
|
10353
|
+
operation_retry_strategy=kwargs.get('retry_strategy'),
|
10354
|
+
client_retry_strategy=self.retry_strategy
|
10355
|
+
)
|
10356
|
+
if retry_strategy is None:
|
10357
|
+
retry_strategy = retry.DEFAULT_RETRY_STRATEGY
|
10358
|
+
|
10359
|
+
if retry_strategy:
|
10360
|
+
if not isinstance(retry_strategy, retry.NoneRetryStrategy):
|
10361
|
+
self.base_client.add_opc_client_retries_header(header_params)
|
10362
|
+
retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
|
10363
|
+
return retry_strategy.make_retrying_call(
|
10364
|
+
self.base_client.call_api,
|
10365
|
+
resource_path=resource_path,
|
10366
|
+
method=method,
|
10367
|
+
path_params=path_params,
|
10368
|
+
query_params=query_params,
|
10369
|
+
header_params=header_params,
|
10370
|
+
body=update_pipeline_details,
|
10371
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
10372
|
+
operation_name=operation_name,
|
10373
|
+
api_reference_link=api_reference_link,
|
10374
|
+
required_arguments=required_arguments)
|
10375
|
+
else:
|
10376
|
+
return self.base_client.call_api(
|
10377
|
+
resource_path=resource_path,
|
10378
|
+
method=method,
|
10379
|
+
path_params=path_params,
|
10380
|
+
query_params=query_params,
|
10381
|
+
header_params=header_params,
|
10382
|
+
body=update_pipeline_details,
|
10383
|
+
allow_control_chars=kwargs.get('allow_control_chars'),
|
10384
|
+
operation_name=operation_name,
|
10385
|
+
api_reference_link=api_reference_link,
|
10386
|
+
required_arguments=required_arguments)
|
10387
|
+
|
8544
10388
|
def upgrade_deployment(self, deployment_id, upgrade_deployment_details, **kwargs):
|
8545
10389
|
"""
|
8546
10390
|
Upgrade a Deployment. When provided, If-Match is checked against ETag values of the resource.
|
@@ -8586,7 +10430,7 @@ class GoldenGateClient(object):
|
|
8586
10430
|
:rtype: :class:`~oci.response.Response`
|
8587
10431
|
|
8588
10432
|
:example:
|
8589
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10433
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/upgrade_deployment.py.html>`__ to see an example of how to use upgrade_deployment API.
|
8590
10434
|
"""
|
8591
10435
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8592
10436
|
required_arguments = ['deploymentId']
|
@@ -8715,7 +10559,7 @@ class GoldenGateClient(object):
|
|
8715
10559
|
:rtype: :class:`~oci.response.Response`
|
8716
10560
|
|
8717
10561
|
:example:
|
8718
|
-
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.
|
10562
|
+
Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.141.0/goldengate/upgrade_deployment_upgrade.py.html>`__ to see an example of how to use upgrade_deployment_upgrade API.
|
8719
10563
|
"""
|
8720
10564
|
# Required path and query arguments. These are in camelCase to replace values in service endpoints.
|
8721
10565
|
required_arguments = ['deploymentUpgradeId']
|