oci 2.130.0__py3-none-any.whl → 2.131.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci/access_governance_cp/access_governance_cp_client.py +8 -8
- oci/adm/application_dependency_management_client.py +36 -36
- oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
- oci/ai_document/ai_service_document_client.py +22 -22
- oci/ai_language/ai_service_language_client.py +44 -44
- oci/ai_speech/ai_service_speech_client.py +17 -17
- oci/ai_vision/ai_service_vision_client.py +25 -25
- oci/analytics/analytics_client.py +23 -23
- oci/announcements_service/announcement_client.py +4 -4
- oci/announcements_service/announcement_subscription_client.py +9 -9
- oci/announcements_service/announcements_preferences_client.py +4 -4
- oci/apigateway/api_gateway_client.py +21 -21
- oci/apigateway/deployment_client.py +6 -6
- oci/apigateway/gateway_client.py +6 -6
- oci/apigateway/subscribers_client.py +6 -6
- oci/apigateway/usage_plans_client.py +6 -6
- oci/apigateway/work_requests_client.py +5 -5
- oci/apm_config/config_client.py +9 -9
- oci/apm_control_plane/apm_domain_client.py +14 -14
- oci/apm_synthetics/apm_synthetic_client.py +28 -28
- oci/apm_traces/attributes_client.py +8 -8
- oci/apm_traces/query_client.py +2 -2
- oci/apm_traces/trace_client.py +4 -4
- oci/appmgmt_control/appmgmt_control_client.py +8 -8
- oci/artifacts/artifacts_client.py +32 -32
- oci/audit/audit_client.py +3 -3
- oci/autoscaling/auto_scaling_client.py +11 -11
- oci/bastion/bastion_client.py +15 -15
- oci/bds/bds_client.py +808 -84
- oci/bds/bds_client_composite_operations.py +177 -0
- oci/bds/models/__init__.py +22 -0
- oci/bds/models/auto_scale_policy_metric_rule.py +9 -5
- oci/bds/models/batching_based_odh_patching_config.py +113 -0
- oci/bds/models/batching_based_patching_configs.py +2 -2
- oci/bds/models/create_resource_principal_configuration_details.py +134 -0
- oci/bds/models/domain_based_odh_patching_config.py +82 -0
- oci/bds/models/domain_based_patching_configs.py +113 -0
- oci/bds/models/downtime_based_odh_patching_config.py +51 -0
- oci/bds/models/downtime_based_patching_configs.py +1 -1
- oci/bds/models/force_refresh_resource_principal_details.py +72 -0
- oci/bds/models/install_patch_details.py +29 -2
- oci/bds/models/node.py +31 -0
- oci/bds/models/odh_patching_config.py +117 -0
- oci/bds/models/patching_configs.py +12 -4
- oci/bds/models/remove_resource_principal_configuration_details.py +72 -0
- oci/bds/models/resource_principal_configuration.py +352 -0
- oci/bds/models/resource_principal_configuration_summary.py +289 -0
- oci/bds/models/update_resource_principal_configuration_details.py +103 -0
- oci/bds/models/work_request.py +19 -3
- oci/blockchain/blockchain_platform_client.py +27 -27
- oci/budget/budget_client.py +10 -10
- oci/capacity_management/capacity_management_client.py +22 -22
- oci/certificates/certificates_client.py +5 -5
- oci/certificates_management/certificates_management_client.py +32 -32
- oci/cims/incident_client.py +8 -8
- oci/cims/user_client.py +1 -1
- oci/cloud_bridge/common_client.py +5 -5
- oci/cloud_bridge/discovery_client.py +14 -14
- oci/cloud_bridge/inventory_client.py +16 -16
- oci/cloud_bridge/ocb_agent_svc_client.py +23 -23
- oci/cloud_guard/cloud_guard_client.py +155 -155
- oci/cloud_migrations/migration_client.py +43 -43
- oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
- oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
- oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
- oci/compute_instance_agent/plugin_client.py +2 -2
- oci/compute_instance_agent/pluginconfig_client.py +1 -1
- oci/container_engine/container_engine_client.py +44 -44
- oci/container_instances/container_instance_client.py +18 -18
- oci/core/blockstorage_client.py +60 -60
- oci/core/compute_client.py +102 -102
- oci/core/compute_management_client.py +32 -32
- oci/core/virtual_network_client.py +247 -247
- oci/dashboard_service/dashboard_client.py +6 -6
- oci/dashboard_service/dashboard_group_client.py +6 -6
- oci/data_catalog/data_catalog_client.py +149 -149
- oci/data_flow/data_flow_client.py +42 -42
- oci/data_integration/data_integration_client.py +163 -163
- oci/data_labeling_service/data_labeling_management_client.py +17 -17
- oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
- oci/data_safe/data_safe_client.py +287 -287
- oci/data_science/data_science_client.py +91 -91
- oci/database/database_client.py +356 -356
- oci/database_management/db_management_client.py +208 -208
- oci/database_management/diagnosability_client.py +4 -4
- oci/database_management/managed_my_sql_databases_client.py +7 -7
- oci/database_management/perfhub_client.py +1 -1
- oci/database_management/sql_tuning_client.py +17 -17
- oci/database_migration/database_migration_client.py +42 -42
- oci/database_tools/database_tools_client.py +23 -23
- oci/demand_signal/occ_demand_signal_client.py +7 -7
- oci/desktops/desktop_service_client.py +21 -21
- oci/devops/devops_client.py +8664 -2588
- oci/devops/devops_client_composite_operations.py +443 -0
- oci/devops/models/__init__.py +182 -0
- oci/devops/models/approval_activity_summary.py +127 -0
- oci/devops/models/approval_rule.py +165 -0
- oci/devops/models/approval_rule_collection.py +72 -0
- oci/devops/models/approval_rule_merge_check.py +270 -0
- oci/devops/models/build_merge_check.py +144 -0
- oci/devops/models/build_run_snapshot.py +329 -0
- oci/devops/models/build_run_snapshot_collection.py +72 -0
- oci/devops/models/build_run_snapshot_summary.py +297 -0
- oci/devops/models/comment_activity_summary.py +110 -0
- oci/devops/models/commit_activity_summary.py +141 -0
- oci/devops/models/commit_analytics_author_collection.py +72 -0
- oci/devops/models/commit_analytics_author_summary.py +103 -0
- oci/devops/models/conflict_merge_check.py +99 -0
- oci/devops/models/create_or_update_git_branch_details.py +89 -0
- oci/devops/models/create_or_update_git_ref_details.py +140 -0
- oci/devops/models/create_or_update_git_tag_details.py +89 -0
- oci/devops/models/create_or_update_protected_branch_details.py +122 -0
- oci/devops/models/create_pull_request_comment_details.py +227 -0
- oci/devops/models/create_pull_request_details.py +328 -0
- oci/devops/models/create_repository_details.py +33 -0
- oci/devops/models/create_reviewer_details.py +72 -0
- oci/devops/models/delete_git_ref_details.py +72 -0
- oci/devops/models/delete_protected_branch_details.py +72 -0
- oci/devops/models/deploy_artifact_source.py +7 -3
- oci/devops/models/devops_code_repository_filter.py +11 -3
- oci/devops/models/devops_code_repository_filter_attributes.py +31 -0
- oci/devops/models/execute_merge_pull_request_details.py +196 -0
- oci/devops/models/fork_sync_status_collection.py +72 -0
- oci/devops/models/fork_sync_status_summary.py +154 -0
- oci/devops/models/generic_artifact_location_details.py +101 -0
- oci/devops/models/generic_artifacts.py +116 -0
- oci/devops/models/generic_deploy_artifact_source.py +1 -1
- oci/devops/models/helm_command_spec_artifact_source.py +1 -1
- oci/devops/models/helm_repository_deploy_artifact_source.py +1 -1
- oci/devops/models/inline_deploy_artifact_source.py +1 -1
- oci/devops/models/merge_check.py +117 -0
- oci/devops/models/merge_check_collection.py +145 -0
- oci/devops/models/merge_checks.py +88 -0
- oci/devops/models/merge_pull_request_details.py +109 -0
- oci/devops/models/merge_settings.py +139 -0
- oci/devops/models/mirror_repository_config.py +2 -2
- oci/devops/models/object_storage_generic_artifact_location_details.py +175 -0
- oci/devops/models/ocir_deploy_artifact_source.py +1 -1
- oci/devops/models/patch_insert_instruction.py +171 -0
- oci/devops/models/patch_instruction.py +184 -0
- oci/devops/models/patch_merge_instruction.py +97 -0
- oci/devops/models/patch_move_instruction.py +147 -0
- oci/devops/models/patch_prohibit_instruction.py +100 -0
- oci/devops/models/patch_pull_request_details.py +72 -0
- oci/devops/models/patch_remove_instruction.py +59 -0
- oci/devops/models/patch_replace_instruction.py +92 -0
- oci/devops/models/patch_require_instruction.py +99 -0
- oci/devops/models/principal_details.py +209 -0
- oci/devops/models/project_notification_preference.py +154 -0
- oci/devops/models/project_repository_settings.py +95 -0
- oci/devops/models/protected_branch.py +189 -0
- oci/devops/models/protected_branch_collection.py +72 -0
- oci/devops/models/protected_branch_summary.py +224 -0
- oci/devops/models/pull_request.py +814 -0
- oci/devops/models/pull_request_activity_collection.py +72 -0
- oci/devops/models/pull_request_activity_summary.py +253 -0
- oci/devops/models/pull_request_attachment.py +196 -0
- oci/devops/models/pull_request_attachment_collection.py +72 -0
- oci/devops/models/pull_request_attachment_summary.py +196 -0
- oci/devops/models/pull_request_author_collection.py +72 -0
- oci/devops/models/pull_request_author_summary.py +68 -0
- oci/devops/models/pull_request_change_summary_metrics.py +134 -0
- oci/devops/models/pull_request_collection.py +72 -0
- oci/devops/models/pull_request_comment.py +581 -0
- oci/devops/models/pull_request_comment_collection.py +72 -0
- oci/devops/models/pull_request_comment_like_collection.py +103 -0
- oci/devops/models/pull_request_comment_summary.py +533 -0
- oci/devops/models/pull_request_file_change_collection.py +72 -0
- oci/devops/models/pull_request_file_change_summary.py +456 -0
- oci/devops/models/pull_request_lifecycle_activity_summary.py +135 -0
- oci/devops/models/pull_request_notification_preference.py +154 -0
- oci/devops/models/pull_request_summary.py +669 -0
- oci/devops/models/repository.py +47 -6
- oci/devops/models/repository_analytics_details.py +318 -0
- oci/devops/models/repository_metric_aggregation.py +72 -0
- oci/devops/models/repository_metric_summary.py +281 -0
- oci/devops/models/repository_notification_preference.py +158 -0
- oci/devops/models/repository_settings.py +122 -0
- oci/devops/models/repository_summary.py +33 -0
- oci/devops/models/review_pull_request_details.py +88 -0
- oci/devops/models/reviewer.py +256 -0
- oci/devops/models/reviewer_activity_summary.py +141 -0
- oci/devops/models/stage_output.py +140 -0
- oci/devops/models/summarize_project_repository_analytics_details.py +318 -0
- oci/devops/models/summarize_repository_analytics_details.py +318 -0
- oci/devops/models/sync_repository_details.py +103 -0
- oci/devops/models/test_report_output.py +89 -0
- oci/devops/models/update_approval_rule_details.py +165 -0
- oci/devops/models/update_approval_rule_details_collection.py +72 -0
- oci/devops/models/update_project_notification_preference_details.py +72 -0
- oci/devops/models/update_project_repository_settings_details.py +95 -0
- oci/devops/models/update_pull_request_comment_details.py +72 -0
- oci/devops/models/update_pull_request_details.py +235 -0
- oci/devops/models/update_pull_request_notification_preference_details.py +72 -0
- oci/devops/models/update_repository_details.py +2 -0
- oci/devops/models/update_repository_notification_preference_details.py +72 -0
- oci/devops/models/update_repository_settings_details.py +122 -0
- oci/devops/models/update_reviewer_details.py +72 -0
- oci/devops/models/validate_merge_pull_request_details.py +51 -0
- oci/devops/models/work_request.py +31 -3
- oci/devops/models/work_request_summary.py +31 -3
- oci/disaster_recovery/disaster_recovery_client.py +29 -29
- oci/dns/dns_client.py +52 -52
- oci/dts/appliance_export_job_client.py +6 -6
- oci/dts/shipping_vendors_client.py +1 -1
- oci/dts/transfer_appliance_client.py +8 -8
- oci/dts/transfer_appliance_entitlement_client.py +3 -3
- oci/dts/transfer_device_client.py +5 -5
- oci/dts/transfer_job_client.py +6 -6
- oci/dts/transfer_package_client.py +7 -7
- oci/em_warehouse/em_data_lake_client.py +13 -13
- oci/em_warehouse/em_warehouse_client.py +26 -26
- oci/email/email_client.py +31 -31
- oci/email_data_plane/email_dp_client.py +1 -1
- oci/events/events_client.py +6 -6
- oci/file_storage/file_storage_client.py +51 -51
- oci/fleet_software_update/fleet_software_update_client.py +46 -46
- oci/functions/functions_invoke_client.py +1 -1
- oci/functions/functions_management_client.py +16 -16
- oci/fusion_apps/data_masking_activity_client.py +3 -3
- oci/fusion_apps/fusion_applications_client.py +41 -41
- oci/fusion_apps/fusion_environment_client.py +15 -15
- oci/fusion_apps/fusion_environment_family_client.py +8 -8
- oci/fusion_apps/refresh_activity_client.py +4 -4
- oci/fusion_apps/scheduled_activity_client.py +2 -2
- oci/fusion_apps/service_attachment_client.py +2 -2
- oci/generative_ai/generative_ai_client.py +22 -22
- oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
- oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
- oci/globally_distributed_database/sharded_database_service_client.py +30 -30
- oci/golden_gate/golden_gate_client.py +68 -68
- oci/governance_rules_control_plane/governance_rule_client.py +15 -15
- oci/governance_rules_control_plane/work_request_client.py +5 -5
- oci/healthchecks/health_checks_client.py +17 -17
- oci/identity/identity_client.py +145 -145
- oci/identity_data_plane/dataplane_client.py +2 -2
- oci/identity_domains/identity_domains_client.py +307 -307
- oci/integration/integration_instance_client.py +15 -15
- oci/jms/java_management_service_client.py +1414 -234
- oci/jms/java_management_service_client_composite_operations.py +194 -0
- oci/jms/models/__init__.py +24 -0
- oci/jms/models/agent_installer_collection.py +72 -0
- oci/jms/models/agent_installer_summary.py +411 -0
- oci/jms/models/application_installation_usage_summary.py +62 -0
- oci/jms/models/application_usage.py +35 -4
- oci/jms/models/application_work_item_details.py +1 -1
- oci/jms/models/basic_work_item_details.py +1 -1
- oci/jms/models/create_jms_plugin_details.py +220 -0
- oci/jms/models/crypto_analysis_result.py +62 -0
- oci/jms/models/crypto_analysis_result_summary.py +62 -0
- oci/jms/models/deployed_application_installation_usage_summary.py +32 -1
- oci/jms/models/deployed_application_migration_analyses_target.py +197 -0
- oci/jms/models/deployed_application_usage.py +31 -0
- oci/jms/models/deployed_application_work_item_details.py +183 -0
- oci/jms/models/export_setting.py +3 -3
- oci/jms/models/fleet_agent_configuration.py +62 -0
- oci/jms/models/generate_agent_installer_configuration_details.py +111 -0
- oci/jms/models/generate_load_pipeline_script_details.py +165 -0
- oci/jms/models/installation_site.py +7 -3
- oci/jms/models/java_artifact.py +2 -2
- oci/jms/models/java_family.py +37 -2
- oci/jms/models/java_family_summary.py +37 -2
- oci/jms/models/java_migration_analysis_target.py +34 -3
- oci/jms/models/java_server_instance_usage.py +31 -0
- oci/jms/models/jms_plugin.py +698 -0
- oci/jms/models/jms_plugin_collection.py +72 -0
- oci/jms/models/jms_plugin_summary.py +698 -0
- oci/jms/models/lcm_work_item_details.py +1 -1
- oci/jms/models/library_usage.py +64 -2
- oci/jms/models/managed_instance_usage.py +38 -3
- oci/jms/models/operating_system.py +2 -2
- oci/jms/models/performance_tuning_analysis_result.py +4 -4
- oci/jms/models/performance_tuning_analysis_result_summary.py +4 -4
- oci/jms/models/request_deployed_application_migration_analyses_details.py +73 -0
- oci/jms/models/update_export_setting_details.py +3 -3
- oci/jms/models/update_fleet_agent_configuration_details.py +62 -0
- oci/jms/models/update_jms_plugin_details.py +150 -0
- oci/jms/models/work_item_details.py +11 -3
- oci/jms/models/work_item_summary.py +7 -3
- oci/jms_java_downloads/java_download_client.py +30 -30
- oci/jms_java_downloads/models/generate_artifact_download_url_details.py +35 -0
- 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 +50 -50
- oci/oce/oce_instance_client.py +10 -10
- oci/oci_control_center/occ_metrics_client.py +3 -3
- oci/ocvp/cluster_client.py +5 -5
- oci/ocvp/esxi_host_client.py +8 -8
- oci/ocvp/sddc_client.py +14 -14
- oci/ocvp/work_request_client.py +4 -4
- oci/oda/management_client.py +59 -59
- oci/oda/oda_client.py +17 -17
- oci/oda/odapackage_client.py +7 -7
- oci/onesubscription/billing_schedule_client.py +1 -1
- oci/onesubscription/commitment_client.py +2 -2
- oci/onesubscription/computed_usage_client.py +3 -3
- oci/onesubscription/invoice_summary_client.py +2 -2
- oci/onesubscription/organization_subscription_client.py +1 -1
- oci/onesubscription/ratecard_client.py +1 -1
- oci/onesubscription/subscribed_service_client.py +2 -2
- oci/onesubscription/subscription_client.py +1 -1
- oci/ons/notification_control_plane_client.py +6 -6
- oci/ons/notification_data_plane_client.py +10 -10
- oci/opa/opa_instance_client.py +13 -13
- oci/opensearch/opensearch_cluster_backup_client.py +4 -4
- oci/opensearch/opensearch_cluster_client.py +14 -14
- oci/operator_access_control/access_requests_client.py +10 -10
- oci/operator_access_control/operator_actions_client.py +2 -2
- oci/operator_access_control/operator_control_assignment_client.py +8 -8
- oci/operator_access_control/operator_control_client.py +6 -6
- oci/opsi/operations_insights_client.py +177 -177
- oci/optimizer/optimizer_client.py +26 -26
- oci/os_management/event_client.py +8 -8
- oci/os_management/os_management_client.py +69 -69
- oci/os_management_hub/event_client.py +8 -8
- oci/os_management_hub/lifecycle_environment_client.py +12 -12
- oci/os_management_hub/managed_instance_client.py +31 -31
- oci/os_management_hub/managed_instance_group_client.py +25 -25
- oci/os_management_hub/management_station_client.py +10 -10
- oci/os_management_hub/models/create_custom_software_source_details.py +41 -0
- oci/os_management_hub/models/create_versioned_custom_software_source_details.py +41 -0
- oci/os_management_hub/models/custom_software_source.py +41 -0
- oci/os_management_hub/models/update_custom_software_source_details.py +43 -2
- oci/os_management_hub/models/versioned_custom_software_source.py +41 -0
- 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 +28 -28
- 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/models/__init__.py +6 -0
- oci/psql/models/backup.py +2 -2
- oci/psql/models/backup_summary.py +2 -2
- oci/psql/models/configuration.py +117 -31
- oci/psql/models/configuration_summary.py +58 -19
- oci/psql/models/create_configuration_details.py +60 -21
- oci/psql/models/create_db_system_details.py +1 -1
- oci/psql/models/default_configuration.py +72 -33
- oci/psql/models/default_configuration_summary.py +60 -21
- oci/psql/models/management_policy_details.py +10 -2
- oci/psql/models/shape_memory_options.py +196 -0
- oci/psql/models/shape_ocpu_options.py +103 -0
- oci/psql/models/shape_summary.py +87 -2
- oci/psql/models/update_db_system_details.py +122 -0
- oci/psql/models/update_network_details.py +76 -0
- oci/psql/postgresql_client.py +35 -35
- oci/queue/queue_admin_client.py +11 -11
- oci/queue/queue_client.py +8 -8
- oci/recovery/database_recovery_client.py +25 -25
- oci/redis/redis_cluster_client.py +11 -11
- oci/regions_definitions.py +3 -0
- oci/resource_manager/resource_manager_client.py +52 -52
- oci/resource_scheduler/schedule_client.py +13 -13
- oci/resource_search/resource_search_client.py +3 -3
- oci/rover/rover_bundle_client.py +8 -8
- oci/rover/rover_cluster_client.py +8 -8
- oci/rover/rover_entitlement_client.py +6 -6
- oci/rover/rover_node_client.py +15 -15
- oci/rover/shape_client.py +1 -1
- oci/rover/work_requests_client.py +5 -5
- oci/sch/connector_plugins_client.py +2 -2
- oci/sch/service_connector_client.py +12 -12
- oci/secrets/secrets_client.py +3 -3
- oci/service_catalog/service_catalog_client.py +26 -26
- oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
- oci/service_mesh/service_mesh_client.py +48 -48
- oci/stack_monitoring/stack_monitoring_client.py +64 -64
- oci/streaming/stream_admin_client.py +18 -18
- oci/streaming/stream_client.py +8 -8
- oci/tenant_manager_control_plane/domain_client.py +5 -5
- oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
- oci/tenant_manager_control_plane/governance_client.py +2 -2
- oci/tenant_manager_control_plane/link_client.py +3 -3
- oci/tenant_manager_control_plane/orders_client.py +2 -2
- oci/tenant_manager_control_plane/organization_client.py +10 -10
- oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
- oci/tenant_manager_control_plane/subscription_client.py +11 -11
- oci/tenant_manager_control_plane/work_request_client.py +4 -4
- oci/threat_intelligence/threatintel_client.py +5 -5
- oci/usage/resources_client.py +2 -2
- oci/usage/rewards_client.py +6 -6
- oci/usage/usagelimits_client.py +1 -1
- oci/usage_api/usageapi_client.py +33 -33
- oci/vault/vaults_client.py +13 -13
- oci/vbs_inst/vbs_instance_client.py +10 -10
- oci/version.py +1 -1
- oci/visual_builder/vb_instance_client.py +13 -13
- oci/vn_monitoring/vn_monitoring_client.py +12 -12
- oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
- oci/waa/waa_client.py +13 -13
- oci/waa/work_request_client.py +4 -4
- oci/waas/redirect_client.py +6 -6
- oci/waas/waas_client.py +66 -66
- oci/waf/waf_client.py +24 -24
- oci/work_requests/work_request_client.py +4 -4
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/METADATA +1 -1
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/RECORD +444 -327
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/LICENSE.txt +0 -0
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/WHEEL +0 -0
- {oci-2.130.0.dist-info → oci-2.131.0.dist-info}/top_level.txt +0 -0
@@ -598,6 +598,48 @@ class DevopsClientCompositeOperations(object):
|
|
598
598
|
except Exception as e:
|
599
599
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
600
600
|
|
601
|
+
def create_or_update_git_ref_and_wait_for_state(self, repository_id, create_or_update_git_ref_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
602
|
+
"""
|
603
|
+
Calls :py:func:`~oci.devops.DevopsClient.create_or_update_git_ref` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
604
|
+
to enter the given state(s).
|
605
|
+
|
606
|
+
:param str repository_id: (required)
|
607
|
+
Unique repository identifier.
|
608
|
+
|
609
|
+
:param oci.devops.models.CreateOrUpdateGitRefDetails create_or_update_git_ref_details: (required)
|
610
|
+
The information to create a reference with the type specified in the query.
|
611
|
+
|
612
|
+
:param list[str] wait_for_states:
|
613
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
614
|
+
|
615
|
+
:param dict operation_kwargs:
|
616
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_or_update_git_ref`
|
617
|
+
|
618
|
+
:param dict waiter_kwargs:
|
619
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
620
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
621
|
+
"""
|
622
|
+
operation_result = self.client.create_or_update_git_ref(repository_id, create_or_update_git_ref_details, **operation_kwargs)
|
623
|
+
if not wait_for_states:
|
624
|
+
return operation_result
|
625
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
626
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
627
|
+
return operation_result
|
628
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
629
|
+
|
630
|
+
try:
|
631
|
+
waiter_result = oci.wait_until(
|
632
|
+
self.client,
|
633
|
+
self.client.get_work_request(wait_for_resource_id),
|
634
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
635
|
+
**waiter_kwargs
|
636
|
+
)
|
637
|
+
result_to_return = waiter_result
|
638
|
+
|
639
|
+
return result_to_return
|
640
|
+
except Exception as e:
|
641
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
642
|
+
|
601
643
|
def create_project_and_wait_for_state(self, create_project_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
602
644
|
"""
|
603
645
|
Calls :py:func:`~oci.devops.DevopsClient.create_project` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -637,6 +679,45 @@ class DevopsClientCompositeOperations(object):
|
|
637
679
|
except Exception as e:
|
638
680
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
639
681
|
|
682
|
+
def create_pull_request_and_wait_for_state(self, create_pull_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
683
|
+
"""
|
684
|
+
Calls :py:func:`~oci.devops.DevopsClient.create_pull_request` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
685
|
+
to enter the given state(s).
|
686
|
+
|
687
|
+
:param oci.devops.models.CreatePullRequestDetails create_pull_request_details: (required)
|
688
|
+
Details for the new PullRequest.
|
689
|
+
|
690
|
+
:param list[str] wait_for_states:
|
691
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
692
|
+
|
693
|
+
:param dict operation_kwargs:
|
694
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.create_pull_request`
|
695
|
+
|
696
|
+
:param dict waiter_kwargs:
|
697
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
698
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
699
|
+
"""
|
700
|
+
operation_result = self.client.create_pull_request(create_pull_request_details, **operation_kwargs)
|
701
|
+
if not wait_for_states:
|
702
|
+
return operation_result
|
703
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
704
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
705
|
+
return operation_result
|
706
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
707
|
+
|
708
|
+
try:
|
709
|
+
waiter_result = oci.wait_until(
|
710
|
+
self.client,
|
711
|
+
self.client.get_work_request(wait_for_resource_id),
|
712
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
713
|
+
**waiter_kwargs
|
714
|
+
)
|
715
|
+
result_to_return = waiter_result
|
716
|
+
|
717
|
+
return result_to_return
|
718
|
+
except Exception as e:
|
719
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
720
|
+
|
640
721
|
def create_repository_and_wait_for_state(self, create_repository_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
641
722
|
"""
|
642
723
|
Calls :py:func:`~oci.devops.DevopsClient.create_repository` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -715,6 +796,48 @@ class DevopsClientCompositeOperations(object):
|
|
715
796
|
except Exception as e:
|
716
797
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
717
798
|
|
799
|
+
def decline_pull_request_and_wait_for_state(self, pull_request_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
800
|
+
"""
|
801
|
+
Calls :py:func:`~oci.devops.DevopsClient.decline_pull_request` and waits for the :py:class:`~oci.devops.models.PullRequest` acted upon
|
802
|
+
to enter the given state(s).
|
803
|
+
|
804
|
+
:param str pull_request_id: (required)
|
805
|
+
unique PullRequest identifier
|
806
|
+
|
807
|
+
:param list[str] wait_for_states:
|
808
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.PullRequest.lifecycle_state`
|
809
|
+
|
810
|
+
:param dict operation_kwargs:
|
811
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.decline_pull_request`
|
812
|
+
|
813
|
+
:param dict waiter_kwargs:
|
814
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
815
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
816
|
+
"""
|
817
|
+
operation_result = self.client.decline_pull_request(pull_request_id, **operation_kwargs)
|
818
|
+
if not wait_for_states:
|
819
|
+
return operation_result
|
820
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
821
|
+
pull_request_id = operation_result.data.id
|
822
|
+
|
823
|
+
try:
|
824
|
+
waiter_result = oci.wait_until(
|
825
|
+
self.client,
|
826
|
+
self.client.get_pull_request(pull_request_id), # noqa: F821
|
827
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
828
|
+
**waiter_kwargs
|
829
|
+
)
|
830
|
+
result_to_return = waiter_result
|
831
|
+
|
832
|
+
return result_to_return
|
833
|
+
except (NameError, TypeError) as e:
|
834
|
+
if not e.args:
|
835
|
+
e.args = ('',)
|
836
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
837
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
838
|
+
except Exception as e:
|
839
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
840
|
+
|
718
841
|
def delete_build_pipeline_and_wait_for_state(self, build_pipeline_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
719
842
|
"""
|
720
843
|
Calls :py:func:`~oci.devops.DevopsClient.delete_build_pipeline` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1044,6 +1167,48 @@ class DevopsClientCompositeOperations(object):
|
|
1044
1167
|
except Exception as e:
|
1045
1168
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1046
1169
|
|
1170
|
+
def delete_git_ref_and_wait_for_state(self, repository_id, delete_git_ref_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1171
|
+
"""
|
1172
|
+
Calls :py:func:`~oci.devops.DevopsClient.delete_git_ref` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
1173
|
+
to enter the given state(s).
|
1174
|
+
|
1175
|
+
:param str repository_id: (required)
|
1176
|
+
Unique repository identifier.
|
1177
|
+
|
1178
|
+
:param oci.devops.models.DeleteGitRefDetails delete_git_ref_details: (required)
|
1179
|
+
The information to delete a reference.
|
1180
|
+
|
1181
|
+
:param list[str] wait_for_states:
|
1182
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
1183
|
+
|
1184
|
+
:param dict operation_kwargs:
|
1185
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_git_ref`
|
1186
|
+
|
1187
|
+
:param dict waiter_kwargs:
|
1188
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1189
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1190
|
+
"""
|
1191
|
+
operation_result = self.client.delete_git_ref(repository_id, delete_git_ref_details, **operation_kwargs)
|
1192
|
+
if not wait_for_states:
|
1193
|
+
return operation_result
|
1194
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1195
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1196
|
+
return operation_result
|
1197
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1198
|
+
|
1199
|
+
try:
|
1200
|
+
waiter_result = oci.wait_until(
|
1201
|
+
self.client,
|
1202
|
+
self.client.get_work_request(wait_for_resource_id),
|
1203
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1204
|
+
**waiter_kwargs
|
1205
|
+
)
|
1206
|
+
result_to_return = waiter_result
|
1207
|
+
|
1208
|
+
return result_to_return
|
1209
|
+
except Exception as e:
|
1210
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1211
|
+
|
1047
1212
|
def delete_project_and_wait_for_state(self, project_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1048
1213
|
"""
|
1049
1214
|
Calls :py:func:`~oci.devops.DevopsClient.delete_project` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1091,6 +1256,65 @@ class DevopsClientCompositeOperations(object):
|
|
1091
1256
|
except Exception as e:
|
1092
1257
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1093
1258
|
|
1259
|
+
def delete_pull_request_and_wait_for_state(self, pull_request_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1260
|
+
"""
|
1261
|
+
Calls :py:func:`~oci.devops.DevopsClient.delete_pull_request` and waits for the :py:class:`~oci.devops.models.PullRequest` acted upon
|
1262
|
+
to enter the given state(s).
|
1263
|
+
|
1264
|
+
:param str pull_request_id: (required)
|
1265
|
+
unique PullRequest identifier
|
1266
|
+
|
1267
|
+
:param list[str] wait_for_states:
|
1268
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.PullRequest.lifecycle_state`
|
1269
|
+
|
1270
|
+
:param dict operation_kwargs:
|
1271
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.delete_pull_request`
|
1272
|
+
|
1273
|
+
:param dict waiter_kwargs:
|
1274
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1275
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1276
|
+
"""
|
1277
|
+
initial_get_result = self.client.get_pull_request(pull_request_id)
|
1278
|
+
operation_result = None
|
1279
|
+
try:
|
1280
|
+
operation_result = self.client.delete_pull_request(pull_request_id, **operation_kwargs)
|
1281
|
+
except oci.exceptions.ServiceError as e:
|
1282
|
+
if e.status == 404:
|
1283
|
+
return WAIT_RESOURCE_NOT_FOUND
|
1284
|
+
else:
|
1285
|
+
raise e
|
1286
|
+
|
1287
|
+
if not wait_for_states:
|
1288
|
+
return operation_result
|
1289
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1290
|
+
|
1291
|
+
try:
|
1292
|
+
if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
|
1293
|
+
self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_pull_request, this would result in the operation to fail if the resource is not found! Please, do not pass this kwarg if this was not intended")
|
1294
|
+
else:
|
1295
|
+
"""
|
1296
|
+
If the user does not send in this value, we set it to True by default.
|
1297
|
+
We are doing this because during a delete resource scenario and waiting on its state, the service can
|
1298
|
+
return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
|
1299
|
+
"""
|
1300
|
+
waiter_kwargs["succeed_on_not_found"] = True
|
1301
|
+
waiter_result = oci.wait_until(
|
1302
|
+
self.client,
|
1303
|
+
initial_get_result, # noqa: F821
|
1304
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1305
|
+
**waiter_kwargs
|
1306
|
+
)
|
1307
|
+
result_to_return = waiter_result
|
1308
|
+
|
1309
|
+
return result_to_return
|
1310
|
+
except (NameError, TypeError) as e:
|
1311
|
+
if not e.args:
|
1312
|
+
e.args = ('',)
|
1313
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1314
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1315
|
+
except Exception as e:
|
1316
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1317
|
+
|
1094
1318
|
def delete_ref_and_wait_for_state(self, repository_id, ref_name, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1095
1319
|
"""
|
1096
1320
|
Calls :py:func:`~oci.devops.DevopsClient.delete_ref` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1235,6 +1459,48 @@ class DevopsClientCompositeOperations(object):
|
|
1235
1459
|
except Exception as e:
|
1236
1460
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1237
1461
|
|
1462
|
+
def merge_pull_request_and_wait_for_state(self, pull_request_id, merge_pull_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1463
|
+
"""
|
1464
|
+
Calls :py:func:`~oci.devops.DevopsClient.merge_pull_request` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
1465
|
+
to enter the given state(s).
|
1466
|
+
|
1467
|
+
:param str pull_request_id: (required)
|
1468
|
+
unique PullRequest identifier
|
1469
|
+
|
1470
|
+
:param oci.devops.models.MergePullRequestDetails merge_pull_request_details: (required)
|
1471
|
+
The details about the merge operation.
|
1472
|
+
|
1473
|
+
:param list[str] wait_for_states:
|
1474
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
1475
|
+
|
1476
|
+
:param dict operation_kwargs:
|
1477
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.merge_pull_request`
|
1478
|
+
|
1479
|
+
:param dict waiter_kwargs:
|
1480
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1481
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1482
|
+
"""
|
1483
|
+
operation_result = self.client.merge_pull_request(pull_request_id, merge_pull_request_details, **operation_kwargs)
|
1484
|
+
if not wait_for_states:
|
1485
|
+
return operation_result
|
1486
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1487
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1488
|
+
return operation_result
|
1489
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1490
|
+
|
1491
|
+
try:
|
1492
|
+
waiter_result = oci.wait_until(
|
1493
|
+
self.client,
|
1494
|
+
self.client.get_work_request(wait_for_resource_id),
|
1495
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1496
|
+
**waiter_kwargs
|
1497
|
+
)
|
1498
|
+
result_to_return = waiter_result
|
1499
|
+
|
1500
|
+
return result_to_return
|
1501
|
+
except Exception as e:
|
1502
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1503
|
+
|
1238
1504
|
def mirror_repository_and_wait_for_state(self, repository_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1239
1505
|
"""
|
1240
1506
|
Calls :py:func:`~oci.devops.DevopsClient.mirror_repository` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1319,6 +1585,93 @@ class DevopsClientCompositeOperations(object):
|
|
1319
1585
|
except Exception as e:
|
1320
1586
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1321
1587
|
|
1588
|
+
def reopen_pull_request_and_wait_for_state(self, pull_request_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1589
|
+
"""
|
1590
|
+
Calls :py:func:`~oci.devops.DevopsClient.reopen_pull_request` and waits for the :py:class:`~oci.devops.models.PullRequest` acted upon
|
1591
|
+
to enter the given state(s).
|
1592
|
+
|
1593
|
+
:param str pull_request_id: (required)
|
1594
|
+
unique PullRequest identifier
|
1595
|
+
|
1596
|
+
:param list[str] wait_for_states:
|
1597
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.PullRequest.lifecycle_state`
|
1598
|
+
|
1599
|
+
:param dict operation_kwargs:
|
1600
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.reopen_pull_request`
|
1601
|
+
|
1602
|
+
:param dict waiter_kwargs:
|
1603
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1604
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1605
|
+
"""
|
1606
|
+
operation_result = self.client.reopen_pull_request(pull_request_id, **operation_kwargs)
|
1607
|
+
if not wait_for_states:
|
1608
|
+
return operation_result
|
1609
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1610
|
+
pull_request_id = operation_result.data.id
|
1611
|
+
|
1612
|
+
try:
|
1613
|
+
waiter_result = oci.wait_until(
|
1614
|
+
self.client,
|
1615
|
+
self.client.get_pull_request(pull_request_id), # noqa: F821
|
1616
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1617
|
+
**waiter_kwargs
|
1618
|
+
)
|
1619
|
+
result_to_return = waiter_result
|
1620
|
+
|
1621
|
+
return result_to_return
|
1622
|
+
except (NameError, TypeError) as e:
|
1623
|
+
if not e.args:
|
1624
|
+
e.args = ('',)
|
1625
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1626
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1627
|
+
except Exception as e:
|
1628
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1629
|
+
|
1630
|
+
def review_pull_request_and_wait_for_state(self, pull_request_id, review_pull_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1631
|
+
"""
|
1632
|
+
Calls :py:func:`~oci.devops.DevopsClient.review_pull_request` and waits for the :py:class:`~oci.devops.models.PullRequest` acted upon
|
1633
|
+
to enter the given state(s).
|
1634
|
+
|
1635
|
+
:param str pull_request_id: (required)
|
1636
|
+
unique PullRequest identifier
|
1637
|
+
|
1638
|
+
:param oci.devops.models.ReviewPullRequestDetails review_pull_request_details: (required)
|
1639
|
+
Details to submit a review.
|
1640
|
+
|
1641
|
+
:param list[str] wait_for_states:
|
1642
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.PullRequest.lifecycle_state`
|
1643
|
+
|
1644
|
+
:param dict operation_kwargs:
|
1645
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.review_pull_request`
|
1646
|
+
|
1647
|
+
:param dict waiter_kwargs:
|
1648
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1649
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1650
|
+
"""
|
1651
|
+
operation_result = self.client.review_pull_request(pull_request_id, review_pull_request_details, **operation_kwargs)
|
1652
|
+
if not wait_for_states:
|
1653
|
+
return operation_result
|
1654
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1655
|
+
pull_request_id = operation_result.data.id
|
1656
|
+
|
1657
|
+
try:
|
1658
|
+
waiter_result = oci.wait_until(
|
1659
|
+
self.client,
|
1660
|
+
self.client.get_pull_request(pull_request_id), # noqa: F821
|
1661
|
+
evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
|
1662
|
+
**waiter_kwargs
|
1663
|
+
)
|
1664
|
+
result_to_return = waiter_result
|
1665
|
+
|
1666
|
+
return result_to_return
|
1667
|
+
except (NameError, TypeError) as e:
|
1668
|
+
if not e.args:
|
1669
|
+
e.args = ('',)
|
1670
|
+
e.args = e.args + ('This composite operation is currently not supported in the SDK. Please use the operation from the service client and use waiters as an alternative. For more information on waiters, visit: "https://docs.oracle.com/en-us/iaas/tools/python/latest/api/waiters.html"', )
|
1671
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1672
|
+
except Exception as e:
|
1673
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1674
|
+
|
1322
1675
|
def schedule_cascading_project_deletion_and_wait_for_state(self, project_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1323
1676
|
"""
|
1324
1677
|
Calls :py:func:`~oci.devops.DevopsClient.schedule_cascading_project_deletion` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1358,6 +1711,54 @@ class DevopsClientCompositeOperations(object):
|
|
1358
1711
|
except Exception as e:
|
1359
1712
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1360
1713
|
|
1714
|
+
def sync_repository_and_wait_for_state(self, repository_id, sync_merge_strategy, sync_repository_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1715
|
+
"""
|
1716
|
+
Calls :py:func:`~oci.devops.DevopsClient.sync_repository` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
1717
|
+
to enter the given state(s).
|
1718
|
+
|
1719
|
+
:param str repository_id: (required)
|
1720
|
+
Unique repository identifier.
|
1721
|
+
|
1722
|
+
:param str sync_merge_strategy: (required)
|
1723
|
+
If fetch and merge is passed in, the changes from the upstream will be fetched and merged into the destination branch.
|
1724
|
+
If discard is passed in, the changes in the fork will be overwritten with the changes brought in from the upstream.
|
1725
|
+
|
1726
|
+
Allowed values are: "FETCH_AND_MERGE", "DISCARD"
|
1727
|
+
|
1728
|
+
:param oci.devops.models.SyncRepositoryDetails sync_repository_details: (required)
|
1729
|
+
Details required for syncing a repository with its upstream.
|
1730
|
+
|
1731
|
+
:param list[str] wait_for_states:
|
1732
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
1733
|
+
|
1734
|
+
:param dict operation_kwargs:
|
1735
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.sync_repository`
|
1736
|
+
|
1737
|
+
:param dict waiter_kwargs:
|
1738
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
1739
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
1740
|
+
"""
|
1741
|
+
operation_result = self.client.sync_repository(repository_id, sync_merge_strategy, sync_repository_details, **operation_kwargs)
|
1742
|
+
if not wait_for_states:
|
1743
|
+
return operation_result
|
1744
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
1745
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
1746
|
+
return operation_result
|
1747
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
1748
|
+
|
1749
|
+
try:
|
1750
|
+
waiter_result = oci.wait_until(
|
1751
|
+
self.client,
|
1752
|
+
self.client.get_work_request(wait_for_resource_id),
|
1753
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
1754
|
+
**waiter_kwargs
|
1755
|
+
)
|
1756
|
+
result_to_return = waiter_result
|
1757
|
+
|
1758
|
+
return result_to_return
|
1759
|
+
except Exception as e:
|
1760
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1761
|
+
|
1361
1762
|
def update_build_pipeline_and_wait_for_state(self, build_pipeline_id, update_build_pipeline_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1362
1763
|
"""
|
1363
1764
|
Calls :py:func:`~oci.devops.DevopsClient.update_build_pipeline` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
@@ -1784,6 +2185,48 @@ class DevopsClientCompositeOperations(object):
|
|
1784
2185
|
except Exception as e:
|
1785
2186
|
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
1786
2187
|
|
2188
|
+
def update_pull_request_and_wait_for_state(self, pull_request_id, update_pull_request_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
2189
|
+
"""
|
2190
|
+
Calls :py:func:`~oci.devops.DevopsClient.update_pull_request` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|
2191
|
+
to enter the given state(s).
|
2192
|
+
|
2193
|
+
:param str pull_request_id: (required)
|
2194
|
+
unique PullRequest identifier
|
2195
|
+
|
2196
|
+
:param oci.devops.models.UpdatePullRequestDetails update_pull_request_details: (required)
|
2197
|
+
The information to be updated.
|
2198
|
+
|
2199
|
+
:param list[str] wait_for_states:
|
2200
|
+
An array of states to wait on. These should be valid values for :py:attr:`~oci.devops.models.WorkRequest.status`
|
2201
|
+
|
2202
|
+
:param dict operation_kwargs:
|
2203
|
+
A dictionary of keyword arguments to pass to :py:func:`~oci.devops.DevopsClient.update_pull_request`
|
2204
|
+
|
2205
|
+
:param dict waiter_kwargs:
|
2206
|
+
A dictionary of keyword arguments to pass to the :py:func:`oci.wait_until` function. For example, you could pass ``max_interval_seconds`` or ``max_interval_seconds``
|
2207
|
+
as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
|
2208
|
+
"""
|
2209
|
+
operation_result = self.client.update_pull_request(pull_request_id, update_pull_request_details, **operation_kwargs)
|
2210
|
+
if not wait_for_states:
|
2211
|
+
return operation_result
|
2212
|
+
lowered_wait_for_states = [w.lower() for w in wait_for_states]
|
2213
|
+
if 'opc-work-request-id' not in operation_result.headers:
|
2214
|
+
return operation_result
|
2215
|
+
wait_for_resource_id = operation_result.headers['opc-work-request-id']
|
2216
|
+
|
2217
|
+
try:
|
2218
|
+
waiter_result = oci.wait_until(
|
2219
|
+
self.client,
|
2220
|
+
self.client.get_work_request(wait_for_resource_id),
|
2221
|
+
evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_wait_for_states,
|
2222
|
+
**waiter_kwargs
|
2223
|
+
)
|
2224
|
+
result_to_return = waiter_result
|
2225
|
+
|
2226
|
+
return result_to_return
|
2227
|
+
except Exception as e:
|
2228
|
+
raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
|
2229
|
+
|
1787
2230
|
def update_repository_and_wait_for_state(self, repository_id, update_repository_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
|
1788
2231
|
"""
|
1789
2232
|
Calls :py:func:`~oci.devops.DevopsClient.update_repository` and waits for the :py:class:`~oci.devops.models.WorkRequest`
|