oci 2.135.2__py3-none-any.whl → 2.137.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.
Files changed (807) hide show
  1. oci/_vendor/jwt/__init__.py +65 -26
  2. oci/_vendor/jwt/algorithms.py +404 -130
  3. oci/_vendor/jwt/api_jwk.py +108 -0
  4. oci/_vendor/jwt/api_jws.py +153 -106
  5. oci/_vendor/jwt/api_jwt.py +146 -137
  6. oci/_vendor/jwt/exceptions.py +13 -6
  7. oci/_vendor/jwt/help.py +16 -15
  8. oci/_vendor/jwt/jwks_client.py +64 -0
  9. oci/_vendor/jwt/utils.py +101 -54
  10. oci/access_governance_cp/access_governance_cp_client.py +8 -8
  11. oci/adm/application_dependency_management_client.py +36 -36
  12. oci/ai_anomaly_detection/anomaly_detection_client.py +36 -36
  13. oci/ai_document/ai_service_document_client.py +26 -26
  14. oci/ai_language/ai_service_language_client.py +44 -44
  15. oci/ai_speech/ai_service_speech_client.py +19 -19
  16. oci/ai_vision/ai_service_vision_client.py +25 -25
  17. oci/analytics/analytics_client.py +24 -24
  18. oci/announcements_service/announcement_client.py +5 -5
  19. oci/announcements_service/announcement_subscription_client.py +9 -9
  20. oci/announcements_service/announcements_preferences_client.py +4 -4
  21. oci/announcements_service/service_client.py +1 -1
  22. oci/apigateway/api_gateway_client.py +21 -21
  23. oci/apigateway/deployment_client.py +6 -6
  24. oci/apigateway/gateway_client.py +6 -6
  25. oci/apigateway/subscribers_client.py +6 -6
  26. oci/apigateway/usage_plans_client.py +6 -6
  27. oci/apigateway/work_requests_client.py +5 -5
  28. oci/apm_config/config_client.py +9 -9
  29. oci/apm_control_plane/apm_domain_client.py +14 -14
  30. oci/apm_synthetics/apm_synthetic_client.py +28 -28
  31. oci/apm_traces/attributes_client.py +8 -8
  32. oci/apm_traces/query_client.py +2 -2
  33. oci/apm_traces/trace_client.py +4 -4
  34. oci/appmgmt_control/appmgmt_control_client.py +8 -8
  35. oci/artifacts/artifacts_client.py +32 -32
  36. oci/audit/audit_client.py +3 -3
  37. oci/auth/security_token_container.py +1 -1
  38. oci/autoscaling/auto_scaling_client.py +11 -11
  39. oci/bastion/bastion_client.py +15 -15
  40. oci/bds/bds_client.py +72 -72
  41. oci/blockchain/blockchain_platform_client.py +27 -27
  42. oci/budget/budget_client.py +10 -10
  43. oci/capacity_management/capacity_management_client.py +32 -32
  44. oci/certificates/certificates_client.py +5 -5
  45. oci/certificates_management/certificates_management_client.py +32 -32
  46. oci/cims/incident_client.py +8 -8
  47. oci/cloud_bridge/common_client.py +5 -5
  48. oci/cloud_bridge/discovery_client.py +160 -14
  49. oci/cloud_bridge/inventory_client.py +20 -20
  50. oci/cloud_bridge/models/__init__.py +48 -2
  51. oci/cloud_bridge/models/asset.py +19 -3
  52. oci/cloud_bridge/models/asset_source.py +11 -3
  53. oci/cloud_bridge/models/asset_source_credentials.py +17 -7
  54. oci/cloud_bridge/models/asset_source_summary.py +11 -3
  55. oci/cloud_bridge/models/asset_summary.py +11 -3
  56. oci/cloud_bridge/models/aws_asset_source.py +359 -0
  57. oci/cloud_bridge/models/aws_asset_source_summary.py +205 -0
  58. oci/cloud_bridge/models/aws_ebs_asset.py +170 -0
  59. oci/cloud_bridge/models/aws_ebs_properties.py +382 -0
  60. oci/cloud_bridge/models/aws_ec2_asset.py +278 -0
  61. oci/cloud_bridge/models/aws_ec2_properties.py +1056 -0
  62. oci/cloud_bridge/models/create_asset_details.py +19 -3
  63. oci/cloud_bridge/models/create_asset_source_details.py +11 -3
  64. oci/cloud_bridge/models/create_aws_asset_source_details.py +323 -0
  65. oci/cloud_bridge/models/create_aws_ebs_asset_details.py +134 -0
  66. oci/cloud_bridge/models/create_aws_ec2_asset_details.py +242 -0
  67. oci/cloud_bridge/models/create_vm_ware_asset_source_details.py +2 -2
  68. oci/cloud_bridge/models/create_vmware_vm_asset_details.py +5 -5
  69. oci/cloud_bridge/models/group_identifier.py +103 -0
  70. oci/cloud_bridge/models/import_inventory_via_assets_details.py +13 -5
  71. oci/cloud_bridge/models/instance_network_interface.py +498 -0
  72. oci/cloud_bridge/models/instance_network_interface_association.py +196 -0
  73. oci/cloud_bridge/models/instance_network_interface_attachment.py +227 -0
  74. oci/cloud_bridge/models/instance_private_ip_address.py +161 -0
  75. oci/cloud_bridge/models/instance_state.py +103 -0
  76. oci/cloud_bridge/models/monthly_cost_summary.py +103 -0
  77. oci/cloud_bridge/models/placement.py +289 -0
  78. oci/{ocvp/models/supported_sku_summary_collection.py → cloud_bridge/models/supported_cloud_region_collection.py} +15 -15
  79. oci/cloud_bridge/models/supported_cloud_region_summary.py +244 -0
  80. oci/cloud_bridge/models/tag.py +103 -0
  81. oci/cloud_bridge/models/update_asset_details.py +19 -3
  82. oci/cloud_bridge/models/update_asset_source_details.py +47 -4
  83. oci/cloud_bridge/models/update_aws_asset_source_details.py +240 -0
  84. oci/cloud_bridge/models/update_aws_ebs_asset_details.py +106 -0
  85. oci/cloud_bridge/models/update_aws_ec2_asset_details.py +214 -0
  86. oci/cloud_bridge/models/update_vm_asset_details.py +1 -1
  87. oci/cloud_bridge/models/update_vm_ware_asset_source_details.py +11 -39
  88. oci/cloud_bridge/models/update_vmware_vm_asset_details.py +1 -1
  89. oci/cloud_bridge/models/vm_asset.py +3 -3
  90. oci/cloud_bridge/models/vm_ware_asset_source.py +2 -2
  91. oci/cloud_bridge/models/vm_ware_asset_source_summary.py +2 -2
  92. oci/cloud_bridge/models/vmware_vm_asset.py +5 -5
  93. oci/cloud_bridge/models/volume_attachment.py +196 -0
  94. oci/cloud_bridge/models/work_request.py +15 -3
  95. oci/cloud_bridge/models/work_request_summary.py +15 -3
  96. oci/cloud_bridge/ocb_agent_svc_client.py +22 -138
  97. oci/cloud_bridge/ocb_agent_svc_client_composite_operations.py +0 -48
  98. oci/cloud_guard/cloud_guard_client.py +155 -155
  99. oci/cloud_migrations/migration_client.py +43 -43
  100. oci/cluster_placement_groups/cluster_placement_groups_cp_client.py +13 -13
  101. oci/compute_cloud_at_customer/compute_cloud_at_customer_client.py +12 -12
  102. oci/compute_instance_agent/compute_instance_agent_client.py +6 -6
  103. oci/compute_instance_agent/plugin_client.py +2 -2
  104. oci/compute_instance_agent/pluginconfig_client.py +1 -1
  105. oci/container_engine/container_engine_client.py +88 -88
  106. oci/container_engine/models/__init__.py +4 -0
  107. oci/container_engine/models/cluster.py +33 -2
  108. oci/container_engine/models/cluster_create_options.py +56 -2
  109. oci/container_engine/models/open_id_connect_discovery.py +72 -0
  110. oci/container_engine/models/open_id_connect_token_authentication_config.py +370 -0
  111. oci/container_engine/models/update_cluster_options_details.py +56 -2
  112. oci/container_instances/container_instance_client.py +18 -18
  113. oci/core/blockstorage_client.py +60 -60
  114. oci/core/compute_client.py +102 -102
  115. oci/core/compute_management_client.py +32 -32
  116. oci/core/models/__init__.py +6 -0
  117. oci/core/models/block_volume_replica.py +43 -2
  118. oci/core/models/block_volume_replica_details.py +45 -2
  119. oci/core/models/block_volume_replica_info.py +43 -2
  120. oci/core/models/boot_volume_replica.py +43 -2
  121. oci/core/models/boot_volume_replica_details.py +45 -2
  122. oci/core/models/boot_volume_replica_info.py +43 -2
  123. oci/core/models/boot_volume_source_details.py +4 -0
  124. oci/core/models/boot_volume_source_from_boot_volume_backup_delta_details.py +143 -0
  125. oci/core/models/create_boot_volume_details.py +45 -2
  126. oci/core/models/create_volume_backup_policy_assignment_details.py +45 -2
  127. oci/core/models/create_volume_details.py +45 -2
  128. oci/core/models/create_volume_group_details.py +45 -2
  129. oci/core/models/instance_configuration_create_volume_details.py +45 -2
  130. oci/core/models/virtual_circuit.py +29 -2
  131. oci/core/models/virtual_circuit_redundancy_metadata.py +202 -0
  132. oci/core/models/volume_backup_policy_assignment.py +45 -2
  133. oci/core/models/volume_group_replica_details.py +45 -2
  134. oci/core/models/volume_group_replica_info.py +43 -2
  135. oci/core/models/volume_source_details.py +4 -0
  136. oci/core/models/volume_source_from_volume_backup_delta_details.py +143 -0
  137. oci/core/virtual_network_client.py +247 -247
  138. oci/dashboard_service/dashboard_client.py +6 -6
  139. oci/dashboard_service/dashboard_group_client.py +6 -6
  140. oci/data_catalog/data_catalog_client.py +149 -149
  141. oci/data_flow/data_flow_client.py +42 -42
  142. oci/data_integration/data_integration_client.py +163 -163
  143. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  144. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  145. oci/data_safe/data_safe_client.py +292 -292
  146. oci/data_science/data_science_client.py +217 -93
  147. oci/data_science/data_science_client_composite_operations.py +41 -0
  148. oci/data_science/models/__init__.py +8 -0
  149. oci/data_science/models/backup_operation_details.py +154 -0
  150. oci/data_science/models/backup_setting.py +158 -0
  151. oci/data_science/models/create_model_details.py +56 -2
  152. oci/data_science/models/model.py +141 -2
  153. oci/data_science/models/model_summary.py +31 -0
  154. oci/data_science/models/retention_operation_details.py +267 -0
  155. oci/data_science/models/retention_setting.py +158 -0
  156. oci/data_science/models/update_model_details.py +56 -2
  157. oci/data_science/models/work_request.py +7 -3
  158. oci/data_science/models/work_request_summary.py +7 -3
  159. oci/database/database_client.py +396 -396
  160. oci/database/models/__init__.py +14 -0
  161. oci/database/models/autonomous_database.py +58 -0
  162. oci/database/models/autonomous_database_encryption_key_details.py +133 -0
  163. oci/database/models/autonomous_database_encryption_key_history_entry.py +99 -0
  164. oci/database/models/autonomous_database_summary.py +58 -0
  165. oci/database/models/aws_key_details.py +175 -0
  166. oci/database/models/azure_key_details.py +113 -0
  167. oci/database/models/create_autonomous_database_base.py +27 -0
  168. oci/database/models/create_autonomous_database_clone_details.py +7 -0
  169. oci/database/models/create_autonomous_database_details.py +7 -0
  170. oci/database/models/create_autonomous_database_from_backup_details.py +7 -0
  171. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +7 -0
  172. oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +7 -0
  173. oci/database/models/create_cross_region_disaster_recovery_details.py +7 -0
  174. oci/database/models/create_cross_tenancy_disaster_recovery_details.py +7 -0
  175. oci/database/models/create_refreshable_autonomous_database_clone_details.py +7 -0
  176. oci/database/models/oci_key_details.py +119 -0
  177. oci/database/models/okv_key_details.py +206 -0
  178. oci/{log_analytics/models/agent_upload.py → database/models/oracle_managed_key_details.py} +14 -33
  179. oci/database/models/undelete_autonomous_database_details.py +7 -0
  180. oci/database/models/update_autonomous_database_details.py +29 -2
  181. oci/database_management/db_management_client.py +211 -211
  182. oci/database_management/diagnosability_client.py +4 -4
  183. oci/database_management/managed_my_sql_databases_client.py +7 -7
  184. oci/database_management/perfhub_client.py +1 -1
  185. oci/database_management/sql_tuning_client.py +17 -17
  186. oci/database_migration/database_migration_client.py +42 -42
  187. oci/database_tools/database_tools_client.py +23 -23
  188. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  189. oci/delegate_access_control/work_request_client.py +4 -4
  190. oci/demand_signal/occ_demand_signal_client.py +7 -7
  191. oci/desktops/desktop_service_client.py +21 -21
  192. oci/devops/devops_client.py +141 -141
  193. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  194. oci/dns/dns_client.py +389 -54
  195. oci/dns/dns_client_composite_operations.py +886 -193
  196. oci/dns/models/__init__.py +13 -1
  197. oci/dns/models/create_zone_details.py +101 -2
  198. oci/dns/models/dnssec_config.py +105 -0
  199. oci/dns/models/dnssec_key_version_ds_data.py +121 -0
  200. oci/dns/models/ksk_dnssec_key_version.py +550 -0
  201. oci/dns/models/promote_zone_dnssec_key_version_details.py +72 -0
  202. oci/dns/models/stage_zone_dnssec_key_version_details.py +72 -0
  203. oci/dns/models/update_zone_details.py +99 -0
  204. oci/dns/models/zone.py +126 -0
  205. oci/dns/models/zone_summary.py +128 -2
  206. oci/dns/models/zsk_dnssec_key_version.py +517 -0
  207. oci/dts/appliance_export_job_client.py +6 -6
  208. oci/dts/shipping_vendors_client.py +1 -1
  209. oci/dts/transfer_appliance_client.py +8 -8
  210. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  211. oci/dts/transfer_device_client.py +5 -5
  212. oci/dts/transfer_job_client.py +6 -6
  213. oci/dts/transfer_package_client.py +7 -7
  214. oci/em_warehouse/em_warehouse_client.py +13 -13
  215. oci/email/email_client.py +31 -31
  216. oci/email_data_plane/email_dp_client.py +1 -1
  217. oci/events/events_client.py +6 -6
  218. oci/file_storage/file_storage_client.py +3599 -1776
  219. oci/file_storage/file_storage_client_composite_operations.py +881 -223
  220. oci/file_storage/models/__init__.py +2 -0
  221. oci/file_storage/models/create_export_details.py +31 -0
  222. oci/file_storage/models/create_file_system_details.py +31 -0
  223. oci/file_storage/models/create_filesystem_snapshot_policy_details.py +33 -2
  224. oci/file_storage/models/create_ldap_bind_account_details.py +7 -0
  225. oci/file_storage/models/create_mount_target_details.py +31 -0
  226. oci/file_storage/models/create_outbound_connector_details.py +33 -2
  227. oci/file_storage/models/create_replication_details.py +33 -2
  228. oci/file_storage/models/create_snapshot_details.py +33 -2
  229. oci/file_storage/models/export.py +33 -2
  230. oci/file_storage/models/export_summary.py +33 -2
  231. oci/file_storage/models/file_system.py +31 -0
  232. oci/file_storage/models/file_system_summary.py +31 -0
  233. oci/file_storage/models/filesystem_snapshot_policy.py +31 -0
  234. oci/file_storage/models/filesystem_snapshot_policy_summary.py +31 -0
  235. oci/file_storage/models/ldap_bind_account.py +7 -0
  236. oci/file_storage/models/ldap_bind_account_summary.py +7 -0
  237. oci/file_storage/models/mount_target.py +31 -0
  238. oci/file_storage/models/mount_target_summary.py +31 -0
  239. oci/file_storage/models/outbound_connector.py +31 -0
  240. oci/file_storage/models/outbound_connector_summary.py +31 -0
  241. oci/file_storage/models/replication.py +31 -0
  242. oci/file_storage/models/replication_summary.py +31 -0
  243. oci/file_storage/models/resource_lock.py +185 -0
  244. oci/file_storage/models/snapshot.py +31 -0
  245. oci/file_storage/models/snapshot_summary.py +31 -0
  246. oci/fleet_apps_management/fleet_apps_management_admin_client.py +2261 -294
  247. oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +349 -1
  248. oci/fleet_apps_management/fleet_apps_management_client.py +141 -127
  249. oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +19 -19
  250. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +19 -15
  251. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +1 -1
  252. oci/fleet_apps_management/fleet_apps_management_operations_client.py +2058 -363
  253. oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +173 -0
  254. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +1097 -260
  255. oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +298 -0
  256. oci/fleet_apps_management/models/__init__.py +168 -0
  257. oci/fleet_apps_management/models/action_group.py +2 -2
  258. oci/fleet_apps_management/models/action_group_based_user_action_details.py +90 -0
  259. oci/fleet_apps_management/models/action_group_details.py +20 -16
  260. oci/fleet_apps_management/models/activity_resource_target.py +44 -7
  261. oci/fleet_apps_management/models/announcement_collection.py +1 -1
  262. oci/fleet_apps_management/models/announcement_summary.py +13 -13
  263. oci/fleet_apps_management/models/api_based_execution_details.py +1 -1
  264. oci/fleet_apps_management/models/artifact_details.py +109 -0
  265. oci/fleet_apps_management/models/associated_fleet_credential_details.py +1 -1
  266. oci/fleet_apps_management/models/associated_fleet_property_details.py +5 -5
  267. oci/fleet_apps_management/models/associated_fleet_resource_details.py +6 -6
  268. oci/fleet_apps_management/models/associated_local_task_details.py +64 -1
  269. oci/fleet_apps_management/models/associated_scheduler_definition.py +3 -3
  270. oci/fleet_apps_management/models/associated_shared_task_details.py +2 -1
  271. oci/fleet_apps_management/models/associations.py +32 -5
  272. oci/fleet_apps_management/models/check_resource_tagging_details.py +5 -5
  273. oci/fleet_apps_management/models/compliance_detail_policy.py +223 -0
  274. oci/fleet_apps_management/models/compliance_detail_product.py +134 -0
  275. oci/fleet_apps_management/models/compliance_detail_resource.py +196 -0
  276. oci/fleet_apps_management/models/compliance_detail_target.py +134 -0
  277. oci/fleet_apps_management/models/compliance_patch_detail.py +278 -0
  278. oci/{database_migration/models/agent.py → fleet_apps_management/models/compliance_policy.py} +120 -167
  279. oci/fleet_apps_management/models/compliance_policy_collection.py +72 -0
  280. oci/fleet_apps_management/models/compliance_policy_rule.py +618 -0
  281. oci/{media_services/models/media_workflow_job_fact_collection.py → fleet_apps_management/models/compliance_policy_rule_collection.py} +15 -15
  282. oci/fleet_apps_management/models/compliance_policy_rule_summary.py +585 -0
  283. oci/{database_migration/models/agent_summary.py → fleet_apps_management/models/compliance_policy_summary.py} +110 -159
  284. oci/fleet_apps_management/models/compliance_record.py +457 -0
  285. oci/fleet_apps_management/models/compliance_record_aggregation.py +99 -0
  286. oci/fleet_apps_management/models/compliance_record_aggregation_collection.py +72 -0
  287. oci/fleet_apps_management/models/compliance_record_collection.py +72 -0
  288. oci/fleet_apps_management/models/compliance_record_dimension.py +143 -0
  289. oci/fleet_apps_management/models/compliance_record_summary.py +437 -0
  290. oci/fleet_apps_management/models/compliance_report.py +5 -5
  291. oci/fleet_apps_management/models/compliance_report_patch_detail.py +9 -9
  292. oci/fleet_apps_management/models/compliance_report_product.py +3 -3
  293. oci/fleet_apps_management/models/compliance_report_resource.py +8 -6
  294. oci/fleet_apps_management/models/compliance_report_target.py +7 -7
  295. oci/fleet_apps_management/models/component_properties.py +69 -9
  296. oci/fleet_apps_management/models/condition.py +12 -6
  297. oci/{os_management/models/managed_instance_update_details.py → fleet_apps_management/models/config_association_details.py} +43 -35
  298. oci/fleet_apps_management/models/config_category_details.py +133 -0
  299. oci/fleet_apps_management/models/confirm_targets_details.py +1 -1
  300. oci/fleet_apps_management/models/content_details.py +3 -3
  301. oci/fleet_apps_management/models/create_compliance_policy_rule_details.py +382 -0
  302. oci/fleet_apps_management/models/create_fleet_details.py +63 -16
  303. oci/fleet_apps_management/models/create_fleet_property_details.py +5 -5
  304. oci/fleet_apps_management/models/create_fleet_resource_details.py +1 -1
  305. oci/fleet_apps_management/models/create_maintenance_window_details.py +19 -11
  306. oci/fleet_apps_management/models/create_onboarding_details.py +8 -4
  307. oci/fleet_apps_management/models/create_patch_details.py +402 -0
  308. oci/fleet_apps_management/models/create_platform_configuration_details.py +169 -0
  309. oci/fleet_apps_management/models/create_property_details.py +6 -6
  310. oci/fleet_apps_management/models/create_runbook_details.py +441 -0
  311. oci/{database_migration/models/create_agent_details.py → fleet_apps_management/models/create_task_record_details.py} +81 -106
  312. oci/fleet_apps_management/models/credential_config_category_details.py +52 -0
  313. oci/fleet_apps_management/models/credential_details.py +3 -3
  314. oci/fleet_apps_management/models/credential_entity_specific_details.py +22 -6
  315. oci/{log_analytics/models/log_analytics_collection_warning.py → fleet_apps_management/models/dependent_patch_details.py} +12 -10
  316. oci/fleet_apps_management/models/details.py +67 -3
  317. oci/fleet_apps_management/models/discovered_target.py +6 -6
  318. oci/fleet_apps_management/models/enable_latest_policy_details.py +72 -0
  319. oci/fleet_apps_management/models/entity_execution_details.py +22 -16
  320. oci/fleet_apps_management/models/environment_config_category_details.py +53 -0
  321. oci/fleet_apps_management/models/execution.py +122 -21
  322. oci/fleet_apps_management/models/execution_collection.py +1 -1
  323. oci/fleet_apps_management/models/execution_details.py +1 -1
  324. oci/fleet_apps_management/models/execution_summary.py +123 -22
  325. oci/fleet_apps_management/models/execution_workflow_details.py +1 -1
  326. oci/fleet_apps_management/models/export_compliance_report_details.py +251 -0
  327. oci/fleet_apps_management/models/fleet.py +37 -19
  328. oci/fleet_apps_management/models/fleet_credential.py +1 -1
  329. oci/fleet_apps_management/models/fleet_credential_entity_specific_details.py +82 -0
  330. oci/fleet_apps_management/models/fleet_product_summary.py +3 -3
  331. oci/fleet_apps_management/models/fleet_property.py +11 -11
  332. oci/fleet_apps_management/models/fleet_property_collection.py +3 -3
  333. oci/fleet_apps_management/models/fleet_property_summary.py +6 -6
  334. oci/fleet_apps_management/models/fleet_resource.py +21 -15
  335. oci/fleet_apps_management/models/fleet_resource_collection.py +1 -1
  336. oci/fleet_apps_management/models/fleet_resource_summary.py +20 -14
  337. oci/fleet_apps_management/models/fleet_summary.py +15 -5
  338. oci/fleet_apps_management/models/fleet_target.py +98 -5
  339. oci/fleet_apps_management/models/fleet_target_summary.py +98 -5
  340. oci/fleet_apps_management/models/generate_compliance_report_details.py +5 -3
  341. oci/fleet_apps_management/models/generic_artifact.py +68 -0
  342. oci/fleet_apps_management/models/generic_artifact_details.py +78 -0
  343. oci/fleet_apps_management/models/group.py +11 -5
  344. oci/fleet_apps_management/models/input_argument.py +2 -2
  345. oci/fleet_apps_management/models/inventory_resource_summary.py +6 -6
  346. oci/fleet_apps_management/models/job_activity.py +57 -18
  347. oci/fleet_apps_management/models/key_encryption_credential_details.py +5 -5
  348. oci/fleet_apps_management/models/maintenance_window.py +19 -11
  349. oci/fleet_apps_management/models/maintenance_window_collection.py +1 -1
  350. oci/fleet_apps_management/models/maintenance_window_summary.py +18 -10
  351. oci/fleet_apps_management/models/manage_job_execution_details.py +68 -0
  352. oci/{database_migration/models/change_agent_compartment_details.py → fleet_apps_management/models/manage_settings_details.py} +21 -21
  353. oci/fleet_apps_management/models/managed_entity_aggregation.py +99 -0
  354. oci/fleet_apps_management/models/managed_entity_aggregation_collection.py +72 -0
  355. oci/fleet_apps_management/models/managed_entity_dimension.py +88 -0
  356. oci/fleet_apps_management/models/model_property.py +9 -9
  357. oci/fleet_apps_management/models/notification_preferences.py +7 -5
  358. oci/fleet_apps_management/models/object_storage_bucket_content_details.py +3 -3
  359. oci/fleet_apps_management/models/onboarding.py +70 -7
  360. oci/fleet_apps_management/models/onboarding_collection.py +3 -3
  361. oci/fleet_apps_management/models/onboarding_policy_collection.py +3 -3
  362. oci/fleet_apps_management/models/onboarding_policy_summary.py +1 -1
  363. oci/fleet_apps_management/models/onboarding_summary.py +69 -7
  364. oci/fleet_apps_management/models/outcome.py +7 -7
  365. oci/fleet_apps_management/models/output_variable_details.py +2 -2
  366. oci/fleet_apps_management/models/output_variable_input_argument.py +1 -1
  367. oci/fleet_apps_management/models/output_variable_mapping.py +4 -3
  368. oci/fleet_apps_management/models/patch.py +704 -0
  369. oci/{logging/models/log_included_search_summary_collection.py → fleet_apps_management/models/patch_collection.py} +16 -14
  370. oci/fleet_apps_management/models/patch_level_selection_details.py +106 -0
  371. oci/fleet_apps_management/models/patch_name_selection_details.py +83 -0
  372. oci/{database_migration/models/agent_image_summary.py → fleet_apps_management/models/patch_product.py} +36 -36
  373. oci/fleet_apps_management/models/patch_release_date_selection_details.py +83 -0
  374. oci/fleet_apps_management/models/patch_selection_details.py +117 -0
  375. oci/fleet_apps_management/models/patch_summary.py +625 -0
  376. oci/fleet_apps_management/models/patch_type.py +72 -0
  377. oci/fleet_apps_management/models/patch_type_config_category_details.py +52 -0
  378. oci/fleet_apps_management/models/pause_details.py +109 -0
  379. oci/fleet_apps_management/models/plain_text_credential_details.py +2 -2
  380. oci/fleet_apps_management/models/platform_configuration.py +529 -0
  381. oci/fleet_apps_management/models/platform_configuration_collection.py +72 -0
  382. oci/fleet_apps_management/models/platform_configuration_summary.py +485 -0
  383. oci/fleet_apps_management/models/platform_specific_artifact.py +162 -0
  384. oci/fleet_apps_management/models/platform_specific_artifact_details.py +82 -0
  385. oci/fleet_apps_management/models/preferences.py +3 -3
  386. oci/fleet_apps_management/models/product_config_category_details.py +215 -0
  387. oci/fleet_apps_management/models/product_stack_as_product_sub_category_details.py +182 -0
  388. oci/fleet_apps_management/models/product_stack_config_category_details.py +112 -0
  389. oci/{database_migration/models/par_link.py → fleet_apps_management/models/product_stack_generic_sub_category_details.py} +14 -33
  390. oci/fleet_apps_management/models/product_stack_sub_category_details.py +109 -0
  391. oci/fleet_apps_management/models/product_version_details.py +105 -0
  392. oci/fleet_apps_management/models/property_collection.py +3 -3
  393. oci/fleet_apps_management/models/property_summary.py +8 -8
  394. oci/{cloud_bridge/models/update_plugin_details.py → fleet_apps_management/models/publish_runbook_details.py} +21 -21
  395. oci/fleet_apps_management/models/request_resource_validation_details.py +5 -5
  396. oci/fleet_apps_management/models/request_target_discovery_details.py +5 -5
  397. oci/{database_migration/models/agent_image_collection.py → fleet_apps_management/models/resource_collection.py} +15 -15
  398. oci/fleet_apps_management/models/resource_credential_entity_specific_details.py +82 -0
  399. oci/fleet_apps_management/models/resource_summary.py +347 -0
  400. oci/fleet_apps_management/models/resource_tag_check_details.py +3 -3
  401. oci/fleet_apps_management/models/resource_tag_enablement_info.py +3 -3
  402. oci/fleet_apps_management/models/rollback_workflow_details.py +119 -0
  403. oci/fleet_apps_management/models/rule.py +15 -7
  404. oci/fleet_apps_management/models/runbook.py +28 -9
  405. oci/fleet_apps_management/models/runbook_collection.py +1 -1
  406. oci/fleet_apps_management/models/runbook_summary.py +6 -4
  407. oci/fleet_apps_management/models/scheduler_definition.py +16 -16
  408. oci/fleet_apps_management/models/scheduler_job.py +24 -20
  409. oci/fleet_apps_management/models/scheduler_job_aggregation.py +99 -0
  410. oci/{usage_api/models/schedule_report_collection.py → fleet_apps_management/models/scheduler_job_aggregation_collection.py} +16 -14
  411. oci/fleet_apps_management/models/scheduler_job_collection.py +1 -1
  412. oci/fleet_apps_management/models/scheduler_job_dimension.py +72 -0
  413. oci/fleet_apps_management/models/scheduler_job_summary.py +20 -16
  414. oci/fleet_apps_management/models/script_based_execution_details.py +38 -5
  415. oci/fleet_apps_management/models/selection_criteria.py +6 -3
  416. oci/{log_analytics/models/query_work_request_resource.py → fleet_apps_management/models/set_default_runbook_details.py} +22 -20
  417. oci/fleet_apps_management/models/step_based_user_action_details.py +183 -0
  418. oci/{database_migration/models/agent_collection.py → fleet_apps_management/models/step_collection.py} +15 -15
  419. oci/fleet_apps_management/models/step_summary.py +378 -0
  420. oci/fleet_apps_management/models/target_credential_entity_specific_details.py +6 -6
  421. oci/fleet_apps_management/models/target_resource.py +1 -1
  422. oci/fleet_apps_management/models/task_notification_preferences.py +134 -0
  423. oci/fleet_apps_management/models/task_record.py +1 -1
  424. oci/fleet_apps_management/models/task_variable.py +2 -1
  425. oci/fleet_apps_management/models/time_based_pause_details.py +82 -0
  426. oci/fleet_apps_management/models/update_compliance_policy_rule_details.py +283 -0
  427. oci/fleet_apps_management/models/update_fleet_details.py +4 -2
  428. oci/fleet_apps_management/models/update_fleet_property_details.py +3 -3
  429. oci/fleet_apps_management/models/update_fleet_resource_details.py +1 -1
  430. oci/fleet_apps_management/models/update_maintenance_window_details.py +18 -10
  431. oci/fleet_apps_management/models/update_onboarding_details.py +103 -0
  432. oci/fleet_apps_management/models/update_patch_details.py +369 -0
  433. oci/fleet_apps_management/models/update_platform_configuration_details.py +138 -0
  434. oci/fleet_apps_management/models/update_property_details.py +6 -6
  435. oci/fleet_apps_management/models/update_runbook_details.py +410 -0
  436. oci/fleet_apps_management/models/update_scheduler_job_details.py +3 -3
  437. oci/{database_migration/models/update_agent_details.py → fleet_apps_management/models/update_task_record_details.py} +63 -90
  438. oci/{log_analytics/models/string_list_details.py → fleet_apps_management/models/user_action_based_pause_details.py} +14 -33
  439. oci/fleet_apps_management/models/user_action_details.py +157 -0
  440. oci/{os_management/models/errata_id.py → fleet_apps_management/models/variable.py} +29 -27
  441. oci/fleet_apps_management/models/work_request.py +67 -3
  442. oci/fleet_apps_management/models/work_request_summary.py +67 -3
  443. oci/fleet_apps_management/models/workflow_group.py +2 -2
  444. oci/fleet_apps_management/models/workflow_group_component.py +4 -4
  445. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  446. oci/functions/functions_invoke_client.py +1 -1
  447. oci/functions/functions_management_client.py +16 -16
  448. oci/fusion_apps/fusion_applications_client.py +41 -41
  449. oci/generative_ai/generative_ai_client.py +22 -22
  450. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  451. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  452. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  453. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  454. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  455. oci/golden_gate/golden_gate_client.py +211 -70
  456. oci/golden_gate/models/__init__.py +8 -0
  457. oci/golden_gate/models/create_database_registration_details.py +4 -4
  458. oci/golden_gate/models/create_deployment_details.py +47 -0
  459. oci/golden_gate/models/create_ogg_deployment_details.py +29 -2
  460. oci/golden_gate/models/create_oracle_connection_details.py +4 -4
  461. oci/golden_gate/models/deployment.py +102 -0
  462. oci/golden_gate/models/deployment_environment_collection.py +72 -0
  463. oci/golden_gate/models/deployment_environment_summary.py +389 -0
  464. oci/golden_gate/models/deployment_summary.py +103 -1
  465. oci/golden_gate/models/deployment_type_summary.py +3 -0
  466. oci/golden_gate/models/group_to_roles_mapping_details.py +197 -0
  467. oci/golden_gate/models/ogg_deployment.py +29 -2
  468. oci/golden_gate/models/test_connection_assignment_result.py +34 -2
  469. oci/golden_gate/models/update_database_registration_details.py +4 -4
  470. oci/golden_gate/models/update_deployment_details.py +47 -0
  471. oci/golden_gate/models/update_group_to_roles_mapping_details.py +197 -0
  472. oci/golden_gate/models/update_ogg_deployment_details.py +29 -2
  473. oci/golden_gate/models/update_oracle_connection_details.py +4 -4
  474. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  475. oci/governance_rules_control_plane/work_request_client.py +5 -5
  476. oci/healthchecks/health_checks_client.py +17 -17
  477. oci/identity/identity_client.py +145 -145
  478. oci/identity_data_plane/dataplane_client.py +2 -2
  479. oci/identity_domains/identity_domains_client.py +307 -307
  480. oci/identity_domains/models/auth_token.py +51 -0
  481. oci/identity_domains/models/customer_secret_key.py +45 -0
  482. oci/identity_domains/models/o_auth2_client_credential.py +49 -0
  483. oci/identity_domains/models/smtp_credential.py +47 -0
  484. oci/integration/integration_instance_client.py +19 -19
  485. oci/jms/java_management_service_client.py +75 -75
  486. oci/jms_java_downloads/java_download_client.py +25 -25
  487. oci/key_management/ekm_client.py +5 -5
  488. oci/key_management/kms_crypto_client.py +6 -6
  489. oci/key_management/kms_hsm_cluster_client.py +12 -12
  490. oci/key_management/kms_management_client.py +21 -21
  491. oci/key_management/kms_vault_client.py +14 -14
  492. oci/license_manager/license_manager_client.py +18 -18
  493. oci/limits/limits_client.py +4 -4
  494. oci/limits/quotas_client.py +7 -7
  495. oci/load_balancer/load_balancer_client.py +61 -61
  496. oci/lockbox/lockbox_client.py +24 -24
  497. oci/log_analytics/log_analytics_client.py +193 -193
  498. oci/logging/logging_management_client.py +30 -30
  499. oci/loggingingestion/logging_client.py +1 -1
  500. oci/loggingsearch/log_search_client.py +1 -1
  501. oci/management_agent/management_agent_client.py +28 -28
  502. oci/management_dashboard/dashx_apis_client.py +14 -14
  503. oci/marketplace/account_client.py +2 -2
  504. oci/marketplace/marketplace_client.py +30 -30
  505. oci/marketplace_private_offer/attachment_client.py +5 -5
  506. oci/marketplace_private_offer/offer_client.py +6 -6
  507. oci/marketplace_publisher/attachment_client.py +5 -5
  508. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  509. oci/marketplace_publisher/offer_client.py +6 -6
  510. oci/media_services/media_services_client.py +60 -60
  511. oci/media_services/media_stream_client.py +2 -2
  512. oci/monitoring/monitoring_client.py +18 -18
  513. oci/mysql/channels_client.py +7 -7
  514. oci/mysql/db_backups_client.py +7 -7
  515. oci/mysql/db_system_client.py +17 -17
  516. oci/mysql/mysqlaas_client.py +7 -7
  517. oci/mysql/replicas_client.py +5 -5
  518. oci/mysql/work_requests_client.py +4 -4
  519. oci/network_firewall/network_firewall_client.py +86 -86
  520. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  521. oci/nosql/nosql_client.py +24 -24
  522. oci/object_storage/object_storage_client.py +55 -55
  523. oci/oce/oce_instance_client.py +10 -10
  524. oci/oci_control_center/occ_metrics_client.py +3 -3
  525. oci/ocvp/cluster_client.py +5 -5
  526. oci/ocvp/esxi_host_client.py +8 -8
  527. oci/ocvp/sddc_client.py +14 -14
  528. oci/ocvp/work_request_client.py +4 -4
  529. oci/oda/management_client.py +59 -59
  530. oci/oda/oda_client.py +17 -17
  531. oci/oda/odapackage_client.py +7 -7
  532. oci/onesubscription/billing_schedule_client.py +1 -1
  533. oci/onesubscription/commitment_client.py +2 -2
  534. oci/onesubscription/computed_usage_client.py +3 -3
  535. oci/onesubscription/invoice_summary_client.py +2 -2
  536. oci/onesubscription/organization_subscription_client.py +1 -1
  537. oci/onesubscription/ratecard_client.py +1 -1
  538. oci/onesubscription/subscribed_service_client.py +2 -2
  539. oci/onesubscription/subscription_client.py +1 -1
  540. oci/ons/notification_control_plane_client.py +6 -6
  541. oci/ons/notification_data_plane_client.py +10 -10
  542. oci/opa/opa_instance_client.py +13 -13
  543. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  544. oci/opensearch/opensearch_cluster_client.py +14 -14
  545. oci/operator_access_control/access_requests_client.py +10 -10
  546. oci/operator_access_control/operator_actions_client.py +2 -2
  547. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  548. oci/operator_access_control/operator_control_client.py +6 -6
  549. oci/opsi/models/__init__.py +8 -0
  550. oci/opsi/models/host_configuration_metric_group.py +11 -3
  551. oci/opsi/models/host_containers.py +65 -3
  552. oci/opsi/models/host_cpu_hardware_configuration.py +1 -1
  553. oci/opsi/models/host_cpu_statistics.py +1 -1
  554. oci/opsi/models/host_cpu_usage.py +1 -1
  555. oci/opsi/models/host_entities.py +1 -1
  556. oci/opsi/models/host_filesystem_configuration.py +1 -1
  557. oci/opsi/models/host_filesystem_usage.py +1 -1
  558. oci/opsi/models/host_gpu_configuration.py +1 -1
  559. oci/opsi/models/host_gpu_processes.py +1 -1
  560. oci/opsi/models/host_gpu_usage.py +1 -1
  561. oci/opsi/models/host_hardware_configuration.py +1 -1
  562. oci/opsi/models/host_io_statistics.py +160 -0
  563. oci/opsi/models/host_io_usage.py +1 -1
  564. oci/opsi/models/host_memory_configuration.py +1 -1
  565. oci/opsi/models/host_memory_statistics.py +1 -1
  566. oci/opsi/models/host_memory_usage.py +1 -1
  567. oci/opsi/models/host_network_activity_summary.py +1 -1
  568. oci/opsi/models/host_network_configuration.py +1 -1
  569. oci/opsi/models/host_network_statistics.py +1 -1
  570. oci/opsi/models/host_performance_metric_group.py +3 -11
  571. oci/opsi/models/host_product.py +1 -1
  572. oci/opsi/models/host_resource_allocation.py +1 -1
  573. oci/opsi/models/host_resource_statistics.py +11 -3
  574. oci/opsi/models/host_storage_statistics.py +1 -1
  575. oci/opsi/models/host_top_processes.py +1 -1
  576. oci/opsi/models/io_usage_trend.py +227 -0
  577. oci/opsi/models/io_usage_trend_aggregation.py +103 -0
  578. oci/opsi/models/summarize_host_insight_host_recommendation_aggregation.py +7 -3
  579. oci/opsi/models/summarize_host_insight_io_usage_trend_aggregation_collection.py +165 -0
  580. oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py +7 -3
  581. oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py +7 -3
  582. oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py +7 -3
  583. oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py +7 -3
  584. oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py +7 -3
  585. oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py +7 -3
  586. oci/opsi/operations_insights_client.py +362 -179
  587. oci/optimizer/optimizer_client.py +26 -26
  588. oci/os_management/event_client.py +8 -8
  589. oci/os_management/os_management_client.py +69 -69
  590. oci/os_management_hub/event_client.py +8 -8
  591. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  592. oci/os_management_hub/managed_instance_client.py +31 -31
  593. oci/os_management_hub/managed_instance_group_client.py +25 -25
  594. oci/os_management_hub/management_station_client.py +10 -10
  595. oci/os_management_hub/onboarding_client.py +6 -6
  596. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  597. oci/os_management_hub/scheduled_job_client.py +7 -7
  598. oci/os_management_hub/software_source_client.py +27 -27
  599. oci/os_management_hub/work_request_client.py +4 -4
  600. oci/osp_gateway/address_rule_service_client.py +1 -1
  601. oci/osp_gateway/address_service_client.py +2 -2
  602. oci/osp_gateway/invoice_service_client.py +5 -5
  603. oci/osp_gateway/subscription_service_client.py +5 -5
  604. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  605. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  606. oci/osub_subscription/commitment_client.py +2 -2
  607. oci/osub_subscription/ratecard_client.py +1 -1
  608. oci/osub_subscription/subscription_client.py +1 -1
  609. oci/osub_usage/computed_usage_client.py +3 -3
  610. oci/psql/postgresql_client.py +33 -33
  611. oci/queue/queue_admin_client.py +11 -11
  612. oci/queue/queue_client.py +8 -8
  613. oci/recovery/database_recovery_client.py +26 -26
  614. oci/redis/redis_cluster_client.py +12 -12
  615. oci/resource_manager/resource_manager_client.py +52 -52
  616. oci/resource_scheduler/schedule_client.py +13 -13
  617. oci/resource_search/resource_search_client.py +3 -3
  618. oci/rover/rover_bundle_client.py +8 -8
  619. oci/rover/rover_cluster_client.py +8 -8
  620. oci/rover/rover_entitlement_client.py +6 -6
  621. oci/rover/rover_node_client.py +15 -15
  622. oci/rover/shape_client.py +1 -1
  623. oci/rover/work_requests_client.py +5 -5
  624. oci/sch/connector_plugins_client.py +2 -2
  625. oci/sch/service_connector_client.py +12 -12
  626. oci/secrets/secrets_client.py +3 -3
  627. oci/security_attribute/security_attribute_client.py +36 -36
  628. oci/service_catalog/service_catalog_client.py +26 -26
  629. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  630. oci/service_mesh/service_mesh_client.py +48 -48
  631. oci/stack_monitoring/stack_monitoring_client.py +71 -71
  632. oci/streaming/stream_admin_client.py +18 -18
  633. oci/streaming/stream_client.py +8 -8
  634. oci/tenant_manager_control_plane/domain_client.py +5 -5
  635. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  636. oci/tenant_manager_control_plane/governance_client.py +2 -2
  637. oci/tenant_manager_control_plane/link_client.py +3 -3
  638. oci/tenant_manager_control_plane/orders_client.py +2 -2
  639. oci/tenant_manager_control_plane/organization_client.py +10 -10
  640. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  641. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  642. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  643. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  644. oci/threat_intelligence/threatintel_client.py +5 -5
  645. oci/usage/resources_client.py +2 -2
  646. oci/usage/rewards_client.py +6 -6
  647. oci/usage/usagelimits_client.py +1 -1
  648. oci/usage_api/usageapi_client.py +33 -33
  649. oci/util.py +2 -1
  650. oci/vault/vaults_client.py +13 -13
  651. oci/vbs_inst/vbs_instance_client.py +10 -10
  652. oci/version.py +1 -1
  653. oci/visual_builder/vb_instance_client.py +13 -13
  654. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  655. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  656. oci/waa/waa_client.py +13 -13
  657. oci/waa/work_request_client.py +4 -4
  658. oci/waas/redirect_client.py +6 -6
  659. oci/waas/waas_client.py +66 -66
  660. oci/waf/waf_client.py +24 -24
  661. oci/work_requests/work_request_client.py +4 -4
  662. oci/zpr/zpr_client.py +30 -30
  663. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/METADATA +1 -1
  664. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/RECORD +668 -686
  665. oci/_vendor/jwt/__main__.py +0 -173
  666. oci/_vendor/jwt/compat.py +0 -73
  667. oci/_vendor/jwt/contrib/__init__.py +0 -0
  668. oci/_vendor/jwt/contrib/algorithms/__init__.py +0 -0
  669. oci/_vendor/jwt/contrib/algorithms/py_ecdsa.py +0 -60
  670. oci/_vendor/jwt/contrib/algorithms/pycrypto.py +0 -46
  671. oci/ai_language/models/entity_document.py +0 -136
  672. oci/ai_language/models/key_phrase_document.py +0 -136
  673. oci/ai_language/models/pre_trained_phi_model_details.py +0 -91
  674. oci/ai_language/models/sentiments_document.py +0 -136
  675. oci/ai_language/models/text_classification_document.py +0 -136
  676. oci/capacity_management/models/occ_capacity_request_compute_details.py +0 -148
  677. oci/cims/user_client.py +0 -207
  678. oci/cims/user_client_composite_operations.py +0 -26
  679. oci/compute_instance_agent/models/instance_agent_command_content_info.py +0 -252
  680. oci/data_integration/models/connection_from_lakehouse.py +0 -140
  681. oci/data_integration/models/connection_from_lakehouse_details.py +0 -133
  682. oci/data_integration/models/connection_summary_from_lakehouse.py +0 -140
  683. oci/data_integration/models/create_connection_from_lakehouse.py +0 -112
  684. oci/data_integration/models/create_data_asset_from_lakehouse.py +0 -232
  685. oci/data_integration/models/data_asset_from_lakehouse_details.py +0 -260
  686. oci/data_integration/models/data_asset_summary_from_lakehouse.py +0 -253
  687. oci/data_integration/models/update_connection_from_lakehouse.py +0 -119
  688. oci/data_integration/models/update_data_asset_from_lakehouse.py +0 -239
  689. oci/database_migration/models/advisor_settings.py +0 -103
  690. oci/database_migration/models/aws_s3_data_transfer_medium_details.py +0 -211
  691. oci/database_migration/models/aws_s3_details.py +0 -108
  692. oci/database_migration/models/connect_descriptor.py +0 -165
  693. oci/database_migration/models/create_advisor_settings.py +0 -103
  694. oci/database_migration/models/create_aws_s3_details.py +0 -174
  695. oci/database_migration/models/create_connect_descriptor.py +0 -174
  696. oci/database_migration/models/create_data_pump_settings.py +0 -251
  697. oci/database_migration/models/create_data_transfer_medium_details.py +0 -124
  698. oci/database_migration/models/create_database_link_details.py +0 -99
  699. oci/database_migration/models/create_dump_transfer_details.py +0 -126
  700. oci/database_migration/models/create_golden_gate_details.py +0 -95
  701. oci/database_migration/models/create_golden_gate_hub.py +0 -275
  702. oci/database_migration/models/create_golden_gate_service_details.py +0 -149
  703. oci/database_migration/models/create_golden_gate_settings.py +0 -126
  704. oci/database_migration/models/create_private_endpoint.py +0 -151
  705. oci/database_migration/models/create_ssh_details.py +0 -166
  706. oci/database_migration/models/create_vault_details.py +0 -134
  707. oci/database_migration/models/data_pump_settings.py +0 -251
  708. oci/database_migration/models/data_transfer_medium_details.py +0 -122
  709. oci/database_migration/models/data_transfer_medium_details_v2.py +0 -125
  710. oci/database_migration/models/database_credentials.py +0 -103
  711. oci/database_migration/models/database_link_details.py +0 -99
  712. oci/database_migration/models/database_object.py +0 -167
  713. oci/database_migration/models/db_link_data_transfer_medium_details.py +0 -109
  714. oci/database_migration/models/dump_transfer_details.py +0 -126
  715. oci/database_migration/models/generate_token.py +0 -70
  716. oci/database_migration/models/golden_gate_details.py +0 -95
  717. oci/database_migration/models/golden_gate_hub.py +0 -275
  718. oci/database_migration/models/golden_gate_service_details.py +0 -95
  719. oci/database_migration/models/golden_gate_settings.py +0 -126
  720. oci/database_migration/models/migration_object_summary.py +0 -214
  721. oci/database_migration/models/nfs_data_transfer_medium_details.py +0 -78
  722. oci/database_migration/models/object_storage_data_transfer_medium_details.py +0 -78
  723. oci/database_migration/models/private_endpoint_details.py +0 -185
  724. oci/database_migration/models/ssh_details.py +0 -134
  725. oci/database_migration/models/update_advisor_settings.py +0 -103
  726. oci/database_migration/models/update_aws_s3_details.py +0 -174
  727. oci/database_migration/models/update_connect_descriptor.py +0 -173
  728. oci/database_migration/models/update_data_pump_settings.py +0 -253
  729. oci/database_migration/models/update_data_transfer_medium_details.py +0 -125
  730. oci/database_migration/models/update_database_link_details.py +0 -99
  731. oci/database_migration/models/update_dump_transfer_details.py +0 -126
  732. oci/database_migration/models/update_golden_gate_details.py +0 -95
  733. oci/database_migration/models/update_golden_gate_hub.py +0 -275
  734. oci/database_migration/models/update_golden_gate_service_details.py +0 -149
  735. oci/database_migration/models/update_golden_gate_settings.py +0 -127
  736. oci/database_migration/models/update_private_endpoint.py +0 -151
  737. oci/database_migration/models/update_ssh_details.py +0 -165
  738. oci/database_migration/models/update_vault_details.py +0 -134
  739. oci/database_migration/models/vault_details.py +0 -134
  740. oci/database_tools/models/database_tools_allowed_network_sources.py +0 -107
  741. oci/database_tools/models/database_tools_virtual_source.py +0 -107
  742. oci/devops/models/run_pipeline_deploy_stage_execution_progress.py +0 -98
  743. oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.py +0 -98
  744. oci/em_warehouse/em_data_lake_client.py +0 -1610
  745. oci/em_warehouse/em_data_lake_client_composite_operations.py +0 -190
  746. oci/fusion_apps/data_masking_activity_client.py +0 -456
  747. oci/fusion_apps/data_masking_activity_client_composite_operations.py +0 -65
  748. oci/fusion_apps/fusion_environment_client.py +0 -1772
  749. oci/fusion_apps/fusion_environment_client_composite_operations.py +0 -324
  750. oci/fusion_apps/fusion_environment_family_client.py +0 -943
  751. oci/fusion_apps/fusion_environment_family_client_composite_operations.py +0 -190
  752. oci/fusion_apps/models/attach_existing_instance_details.py +0 -194
  753. oci/fusion_apps/models/create_new_instance_details.py +0 -142
  754. oci/fusion_apps/models/create_oax_service_instance_details.py +0 -152
  755. oci/fusion_apps/models/create_oic_service_instance_details.py +0 -142
  756. oci/fusion_apps/models/create_service_instance_details.py +0 -170
  757. oci/fusion_apps/models/faw_admin_info_details.py +0 -132
  758. oci/fusion_apps/refresh_activity_client.py +0 -607
  759. oci/fusion_apps/refresh_activity_client_composite_operations.py +0 -65
  760. oci/fusion_apps/scheduled_activity_client.py +0 -380
  761. oci/fusion_apps/scheduled_activity_client_composite_operations.py +0 -24
  762. oci/fusion_apps/service_attachment_client.py +0 -370
  763. oci/fusion_apps/service_attachment_client_composite_operations.py +0 -24
  764. oci/jms/models/request_summarized_application_usage_details.py +0 -504
  765. oci/jms/models/request_summarized_installation_usage_details.py +0 -448
  766. oci/jms/models/request_summarized_jre_usage_details.py +0 -421
  767. oci/jms/models/request_summarized_managed_instance_usage_details.py +0 -480
  768. oci/log_analytics/models/attribute.py +0 -602
  769. oci/log_analytics/models/create_namespace_details.py +0 -70
  770. oci/log_analytics/models/field_map.py +0 -101
  771. oci/log_analytics/models/generate_agent_object_name_details.py +0 -163
  772. oci/log_analytics/models/log_analytics.py +0 -370
  773. oci/log_analytics/models/log_analytics_summary.py +0 -304
  774. oci/log_analytics/models/out_of_box_entity_type_details.py +0 -211
  775. oci/log_analytics/models/query.py +0 -70
  776. oci/log_analytics/models/register_entity_types_details.py +0 -70
  777. oci/log_analytics/models/service_tenancy.py +0 -70
  778. oci/logging/models/log_included_search.py +0 -307
  779. oci/logging/models/log_included_search_summary.py +0 -165
  780. oci/media_services/models/media_workflow_job_fact.py +0 -198
  781. oci/media_services/models/media_workflow_job_fact_summary.py +0 -165
  782. oci/mysql/models/add_analytics_cluster_details.py +0 -108
  783. oci/mysql/models/analytics_cluster.py +0 -338
  784. oci/mysql/models/analytics_cluster_memory_estimate.py +0 -241
  785. oci/mysql/models/analytics_cluster_node.py +0 -210
  786. oci/mysql/models/analytics_cluster_schema_memory_estimate.py +0 -107
  787. oci/mysql/models/analytics_cluster_summary.py +0 -209
  788. oci/mysql/models/analytics_cluster_table_memory_estimate.py +0 -239
  789. oci/mysql/models/update_analytics_cluster_details.py +0 -120
  790. oci/network_firewall/models/tcp_application.py +0 -112
  791. oci/network_firewall/models/udp_application.py +0 -112
  792. oci/oce/models/delete_oce_instance_details.py +0 -70
  793. oci/ocvp/models/datastore_summary.py +0 -154
  794. oci/ocvp/models/supported_sku_summary.py +0 -96
  795. oci/os_management/models/updatable_package_summary.py +0 -287
  796. oci/osp_gateway/models/billing_address.py +0 -382
  797. oci/service_mesh/models/create_ingress_gateway_mutual_transport_layer_security_details.py +0 -76
  798. oci/service_mesh/models/create_mutual_transport_layer_security_details.py +0 -111
  799. oci/usage_api/models/create_schedule_report_details.py +0 -128
  800. oci/usage_api/models/saved_schedule_report.py +0 -145
  801. oci/usage_api/models/schedule_report.py +0 -159
  802. oci/usage_api/models/schedule_report_summary.py +0 -97
  803. oci/usage_api/models/update_schedule_report_details.py +0 -66
  804. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/LICENSE.txt +0 -0
  805. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  806. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/WHEEL +0 -0
  807. {oci-2.135.2.dist-info → oci-2.137.0.dist-info}/top_level.txt +0 -0
@@ -25,6 +25,202 @@ class DnsClientCompositeOperations(object):
25
25
  """
26
26
  self.client = client
27
27
 
28
+ def change_resolver_compartment_and_wait_for_work_request(self, resolver_id, change_resolver_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
29
+ """
30
+ Calls :py:func:`~oci.dns.DnsClient.change_resolver_compartment` and waits for the oci.work_requests.models.WorkRequest
31
+ to enter the given state(s).
32
+
33
+ :param str resolver_id: (required)
34
+ The OCID of the target resolver.
35
+
36
+ :param oci.dns.models.ChangeResolverCompartmentDetails change_resolver_compartment_details: (required)
37
+ Details for moving a resolver, along with its protected default view and endpoints, into a
38
+ different compartment.
39
+
40
+ :param list[str] work_request_states: (optional)
41
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
42
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
43
+
44
+ :param dict operation_kwargs:
45
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_resolver_compartment`
46
+
47
+ :param dict waiter_kwargs:
48
+ 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``
49
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
50
+ """
51
+ operation_result = self.client.change_resolver_compartment(resolver_id, change_resolver_compartment_details, **operation_kwargs)
52
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
53
+ lowered_work_request_states = [w.lower() for w in work_request_states]
54
+ if 'opc-work-request-id' not in operation_result.headers:
55
+ return operation_result
56
+ work_request_id = operation_result.headers['opc-work-request-id']
57
+ try:
58
+ waiter_result = oci.wait_until(
59
+ self._work_request_client,
60
+ self._work_request_client.get_work_request(work_request_id),
61
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
62
+ **waiter_kwargs
63
+ )
64
+ return waiter_result
65
+ except Exception as e:
66
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
67
+
68
+ def change_steering_policy_compartment_and_wait_for_work_request(self, steering_policy_id, change_steering_policy_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
69
+ """
70
+ Calls :py:func:`~oci.dns.DnsClient.change_steering_policy_compartment` and waits for the oci.work_requests.models.WorkRequest
71
+ to enter the given state(s).
72
+
73
+ :param str steering_policy_id: (required)
74
+ The OCID of the target steering policy.
75
+
76
+ :param oci.dns.models.ChangeSteeringPolicyCompartmentDetails change_steering_policy_compartment_details: (required)
77
+ Details for moving a steering policy into a different compartment.
78
+
79
+ :param list[str] work_request_states: (optional)
80
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
81
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
82
+
83
+ :param dict operation_kwargs:
84
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_steering_policy_compartment`
85
+
86
+ :param dict waiter_kwargs:
87
+ 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``
88
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
89
+ """
90
+ operation_result = self.client.change_steering_policy_compartment(steering_policy_id, change_steering_policy_compartment_details, **operation_kwargs)
91
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
92
+ lowered_work_request_states = [w.lower() for w in work_request_states]
93
+ if 'opc-work-request-id' not in operation_result.headers:
94
+ return operation_result
95
+ work_request_id = operation_result.headers['opc-work-request-id']
96
+ try:
97
+ waiter_result = oci.wait_until(
98
+ self._work_request_client,
99
+ self._work_request_client.get_work_request(work_request_id),
100
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
101
+ **waiter_kwargs
102
+ )
103
+ return waiter_result
104
+ except Exception as e:
105
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
106
+
107
+ def change_view_compartment_and_wait_for_work_request(self, view_id, change_view_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
108
+ """
109
+ Calls :py:func:`~oci.dns.DnsClient.change_view_compartment` and waits for the oci.work_requests.models.WorkRequest
110
+ to enter the given state(s).
111
+
112
+ :param str view_id: (required)
113
+ The OCID of the target view.
114
+
115
+ :param oci.dns.models.ChangeViewCompartmentDetails change_view_compartment_details: (required)
116
+ Details for moving a view into a different compartment.
117
+
118
+ :param list[str] work_request_states: (optional)
119
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
120
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
121
+
122
+ :param dict operation_kwargs:
123
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_view_compartment`
124
+
125
+ :param dict waiter_kwargs:
126
+ 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``
127
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
128
+ """
129
+ operation_result = self.client.change_view_compartment(view_id, change_view_compartment_details, **operation_kwargs)
130
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
131
+ lowered_work_request_states = [w.lower() for w in work_request_states]
132
+ if 'opc-work-request-id' not in operation_result.headers:
133
+ return operation_result
134
+ work_request_id = operation_result.headers['opc-work-request-id']
135
+ try:
136
+ waiter_result = oci.wait_until(
137
+ self._work_request_client,
138
+ self._work_request_client.get_work_request(work_request_id),
139
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
140
+ **waiter_kwargs
141
+ )
142
+ return waiter_result
143
+ except Exception as e:
144
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
145
+
146
+ def change_zone_compartment_and_wait_for_work_request(self, zone_id, change_zone_compartment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
147
+ """
148
+ Calls :py:func:`~oci.dns.DnsClient.change_zone_compartment` and waits for the oci.work_requests.models.WorkRequest
149
+ to enter the given state(s).
150
+
151
+ :param str zone_id: (required)
152
+ The OCID of the target zone.
153
+
154
+ :param oci.dns.models.ChangeZoneCompartmentDetails change_zone_compartment_details: (required)
155
+ Details for moving a zone into a different compartment.
156
+
157
+ :param list[str] work_request_states: (optional)
158
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
159
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
160
+
161
+ :param dict operation_kwargs:
162
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.change_zone_compartment`
163
+
164
+ :param dict waiter_kwargs:
165
+ 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``
166
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
167
+ """
168
+ operation_result = self.client.change_zone_compartment(zone_id, change_zone_compartment_details, **operation_kwargs)
169
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
170
+ lowered_work_request_states = [w.lower() for w in work_request_states]
171
+ if 'opc-work-request-id' not in operation_result.headers:
172
+ return operation_result
173
+ work_request_id = operation_result.headers['opc-work-request-id']
174
+ try:
175
+ waiter_result = oci.wait_until(
176
+ self._work_request_client,
177
+ self._work_request_client.get_work_request(work_request_id),
178
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
179
+ **waiter_kwargs
180
+ )
181
+ return waiter_result
182
+ except Exception as e:
183
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
184
+
185
+ def create_resolver_endpoint_and_wait_for_work_request(self, resolver_id, create_resolver_endpoint_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
186
+ """
187
+ Calls :py:func:`~oci.dns.DnsClient.create_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest
188
+ to enter the given state(s).
189
+
190
+ :param str resolver_id: (required)
191
+ The OCID of the target resolver.
192
+
193
+ :param oci.dns.models.CreateResolverEndpointDetails create_resolver_endpoint_details: (required)
194
+ Details for creating a new resolver endpoint.
195
+
196
+ :param list[str] work_request_states: (optional)
197
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
198
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
199
+
200
+ :param dict operation_kwargs:
201
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_resolver_endpoint`
202
+
203
+ :param dict waiter_kwargs:
204
+ 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``
205
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
206
+ """
207
+ operation_result = self.client.create_resolver_endpoint(resolver_id, create_resolver_endpoint_details, **operation_kwargs)
208
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
209
+ lowered_work_request_states = [w.lower() for w in work_request_states]
210
+ if 'opc-work-request-id' not in operation_result.headers:
211
+ return operation_result
212
+ work_request_id = operation_result.headers['opc-work-request-id']
213
+ try:
214
+ waiter_result = oci.wait_until(
215
+ self._work_request_client,
216
+ self._work_request_client.get_work_request(work_request_id),
217
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
218
+ **waiter_kwargs
219
+ )
220
+ return waiter_result
221
+ except Exception as e:
222
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
223
+
28
224
  def create_resolver_endpoint_and_wait_for_state(self, resolver_id, create_resolver_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
29
225
  """
30
226
  Calls :py:func:`~oci.dns.DnsClient.create_resolver_endpoint` and waits for the :py:class:`~oci.dns.models.ResolverEndpoint` acted upon
@@ -70,6 +266,42 @@ class DnsClientCompositeOperations(object):
70
266
  except Exception as e:
71
267
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
72
268
 
269
+ def create_steering_policy_and_wait_for_work_request(self, create_steering_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
270
+ """
271
+ Calls :py:func:`~oci.dns.DnsClient.create_steering_policy` and waits for the oci.work_requests.models.WorkRequest
272
+ to enter the given state(s).
273
+
274
+ :param oci.dns.models.CreateSteeringPolicyDetails create_steering_policy_details: (required)
275
+ Details for creating a new steering policy.
276
+
277
+ :param list[str] work_request_states: (optional)
278
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
279
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
280
+
281
+ :param dict operation_kwargs:
282
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_steering_policy`
283
+
284
+ :param dict waiter_kwargs:
285
+ 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``
286
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
287
+ """
288
+ operation_result = self.client.create_steering_policy(create_steering_policy_details, **operation_kwargs)
289
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
290
+ lowered_work_request_states = [w.lower() for w in work_request_states]
291
+ if 'opc-work-request-id' not in operation_result.headers:
292
+ return operation_result
293
+ work_request_id = operation_result.headers['opc-work-request-id']
294
+ try:
295
+ waiter_result = oci.wait_until(
296
+ self._work_request_client,
297
+ self._work_request_client.get_work_request(work_request_id),
298
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
299
+ **waiter_kwargs
300
+ )
301
+ return waiter_result
302
+ except Exception as e:
303
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
304
+
73
305
  def create_steering_policy_and_wait_for_state(self, create_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
74
306
  """
75
307
  Calls :py:func:`~oci.dns.DnsClient.create_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon
@@ -112,6 +344,42 @@ class DnsClientCompositeOperations(object):
112
344
  except Exception as e:
113
345
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
114
346
 
347
+ def create_steering_policy_attachment_and_wait_for_work_request(self, create_steering_policy_attachment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
348
+ """
349
+ Calls :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest
350
+ to enter the given state(s).
351
+
352
+ :param oci.dns.models.CreateSteeringPolicyAttachmentDetails create_steering_policy_attachment_details: (required)
353
+ Details for creating a new steering policy attachment.
354
+
355
+ :param list[str] work_request_states: (optional)
356
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
357
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
358
+
359
+ :param dict operation_kwargs:
360
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment`
361
+
362
+ :param dict waiter_kwargs:
363
+ 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``
364
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
365
+ """
366
+ operation_result = self.client.create_steering_policy_attachment(create_steering_policy_attachment_details, **operation_kwargs)
367
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
368
+ lowered_work_request_states = [w.lower() for w in work_request_states]
369
+ if 'opc-work-request-id' not in operation_result.headers:
370
+ return operation_result
371
+ work_request_id = operation_result.headers['opc-work-request-id']
372
+ try:
373
+ waiter_result = oci.wait_until(
374
+ self._work_request_client,
375
+ self._work_request_client.get_work_request(work_request_id),
376
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
377
+ **waiter_kwargs
378
+ )
379
+ return waiter_result
380
+ except Exception as e:
381
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
382
+
115
383
  def create_steering_policy_attachment_and_wait_for_state(self, create_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
116
384
  """
117
385
  Calls :py:func:`~oci.dns.DnsClient.create_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon
@@ -154,6 +422,42 @@ class DnsClientCompositeOperations(object):
154
422
  except Exception as e:
155
423
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
156
424
 
425
+ def create_tsig_key_and_wait_for_work_request(self, create_tsig_key_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
426
+ """
427
+ Calls :py:func:`~oci.dns.DnsClient.create_tsig_key` and waits for the oci.work_requests.models.WorkRequest
428
+ to enter the given state(s).
429
+
430
+ :param oci.dns.models.CreateTsigKeyDetails create_tsig_key_details: (required)
431
+ Details for creating a new TSIG key.
432
+
433
+ :param list[str] work_request_states: (optional)
434
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
435
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
436
+
437
+ :param dict operation_kwargs:
438
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_tsig_key`
439
+
440
+ :param dict waiter_kwargs:
441
+ 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``
442
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
443
+ """
444
+ operation_result = self.client.create_tsig_key(create_tsig_key_details, **operation_kwargs)
445
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
446
+ lowered_work_request_states = [w.lower() for w in work_request_states]
447
+ if 'opc-work-request-id' not in operation_result.headers:
448
+ return operation_result
449
+ work_request_id = operation_result.headers['opc-work-request-id']
450
+ try:
451
+ waiter_result = oci.wait_until(
452
+ self._work_request_client,
453
+ self._work_request_client.get_work_request(work_request_id),
454
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
455
+ **waiter_kwargs
456
+ )
457
+ return waiter_result
458
+ except Exception as e:
459
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
460
+
157
461
  def create_tsig_key_and_wait_for_state(self, create_tsig_key_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
158
462
  """
159
463
  Calls :py:func:`~oci.dns.DnsClient.create_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon
@@ -196,6 +500,42 @@ class DnsClientCompositeOperations(object):
196
500
  except Exception as e:
197
501
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
198
502
 
503
+ def create_view_and_wait_for_work_request(self, create_view_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
504
+ """
505
+ Calls :py:func:`~oci.dns.DnsClient.create_view` and waits for the oci.work_requests.models.WorkRequest
506
+ to enter the given state(s).
507
+
508
+ :param oci.dns.models.CreateViewDetails create_view_details: (required)
509
+ Details for creating a new view.
510
+
511
+ :param list[str] work_request_states: (optional)
512
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
513
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
514
+
515
+ :param dict operation_kwargs:
516
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_view`
517
+
518
+ :param dict waiter_kwargs:
519
+ 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``
520
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
521
+ """
522
+ operation_result = self.client.create_view(create_view_details, **operation_kwargs)
523
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
524
+ lowered_work_request_states = [w.lower() for w in work_request_states]
525
+ if 'opc-work-request-id' not in operation_result.headers:
526
+ return operation_result
527
+ work_request_id = operation_result.headers['opc-work-request-id']
528
+ try:
529
+ waiter_result = oci.wait_until(
530
+ self._work_request_client,
531
+ self._work_request_client.get_work_request(work_request_id),
532
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
533
+ **waiter_kwargs
534
+ )
535
+ return waiter_result
536
+ except Exception as e:
537
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
538
+
199
539
  def create_view_and_wait_for_state(self, create_view_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
200
540
  """
201
541
  Calls :py:func:`~oci.dns.DnsClient.create_view` and waits for the :py:class:`~oci.dns.models.View` acted upon
@@ -238,6 +578,42 @@ class DnsClientCompositeOperations(object):
238
578
  except Exception as e:
239
579
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
240
580
 
581
+ def create_zone_and_wait_for_work_request(self, create_zone_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
582
+ """
583
+ Calls :py:func:`~oci.dns.DnsClient.create_zone` and waits for the oci.work_requests.models.WorkRequest
584
+ to enter the given state(s).
585
+
586
+ :param oci.dns.models.CreateZoneBaseDetails create_zone_details: (required)
587
+ Details for creating a new zone.
588
+
589
+ :param list[str] work_request_states: (optional)
590
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
591
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
592
+
593
+ :param dict operation_kwargs:
594
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_zone`
595
+
596
+ :param dict waiter_kwargs:
597
+ 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``
598
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
599
+ """
600
+ operation_result = self.client.create_zone(create_zone_details, **operation_kwargs)
601
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
602
+ lowered_work_request_states = [w.lower() for w in work_request_states]
603
+ if 'opc-work-request-id' not in operation_result.headers:
604
+ return operation_result
605
+ work_request_id = operation_result.headers['opc-work-request-id']
606
+ try:
607
+ waiter_result = oci.wait_until(
608
+ self._work_request_client,
609
+ self._work_request_client.get_work_request(work_request_id),
610
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
611
+ **waiter_kwargs
612
+ )
613
+ return waiter_result
614
+ except Exception as e:
615
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
616
+
241
617
  def create_zone_and_wait_for_state(self, create_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
242
618
  """
243
619
  Calls :py:func:`~oci.dns.DnsClient.create_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon
@@ -280,16 +656,95 @@ class DnsClientCompositeOperations(object):
280
656
  except Exception as e:
281
657
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
282
658
 
283
- def delete_steering_policy_and_wait_for_state(self, steering_policy_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
659
+ def create_zone_from_zone_file_and_wait_for_work_request(self, compartment_id, create_zone_from_zone_file_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
660
+ """
661
+ Calls :py:func:`~oci.dns.DnsClient.create_zone_from_zone_file` and waits for the oci.work_requests.models.WorkRequest
662
+ to enter the given state(s).
663
+
664
+ :param str compartment_id: (required)
665
+ The OCID of the compartment the resource belongs to.
666
+
667
+ :param stream create_zone_from_zone_file_details: (required)
668
+ The zone file contents.
669
+
670
+ :param list[str] work_request_states: (optional)
671
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
672
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
673
+
674
+ :param dict operation_kwargs:
675
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.create_zone_from_zone_file`
676
+
677
+ :param dict waiter_kwargs:
678
+ 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``
679
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
680
+ """
681
+ operation_result = self.client.create_zone_from_zone_file(compartment_id, create_zone_from_zone_file_details, **operation_kwargs)
682
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
683
+ lowered_work_request_states = [w.lower() for w in work_request_states]
684
+ if 'opc-work-request-id' not in operation_result.headers:
685
+ return operation_result
686
+ work_request_id = operation_result.headers['opc-work-request-id']
687
+ try:
688
+ waiter_result = oci.wait_until(
689
+ self._work_request_client,
690
+ self._work_request_client.get_work_request(work_request_id),
691
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
692
+ **waiter_kwargs
693
+ )
694
+ return waiter_result
695
+ except Exception as e:
696
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
697
+
698
+ def delete_resolver_endpoint_and_wait_for_work_request(self, resolver_id, resolver_endpoint_name, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
699
+ """
700
+ Calls :py:func:`~oci.dns.DnsClient.delete_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest
701
+ to enter the given state(s).
702
+
703
+ :param str resolver_id: (required)
704
+ The OCID of the target resolver.
705
+
706
+ :param str resolver_endpoint_name: (required)
707
+ The name of the target resolver endpoint.
708
+
709
+ :param list[str] work_request_states: (optional)
710
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
711
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
712
+
713
+ :param dict operation_kwargs:
714
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_resolver_endpoint`
715
+
716
+ :param dict waiter_kwargs:
717
+ 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``
718
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
719
+ """
720
+ operation_result = self.client.delete_resolver_endpoint(resolver_id, resolver_endpoint_name, **operation_kwargs)
721
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
722
+ lowered_work_request_states = [w.lower() for w in work_request_states]
723
+ if 'opc-work-request-id' not in operation_result.headers:
724
+ return operation_result
725
+ work_request_id = operation_result.headers['opc-work-request-id']
726
+ try:
727
+ waiter_result = oci.wait_until(
728
+ self._work_request_client,
729
+ self._work_request_client.get_work_request(work_request_id),
730
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
731
+ **waiter_kwargs
732
+ )
733
+ return waiter_result
734
+ except Exception as e:
735
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
736
+
737
+ def delete_steering_policy_and_wait_for_work_request(self, steering_policy_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
284
738
  """
285
- Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon
739
+ Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy` and waits for the oci.work_requests.models.WorkRequest
286
740
  to enter the given state(s).
287
741
 
288
742
  :param str steering_policy_id: (required)
289
743
  The OCID of the target steering policy.
290
744
 
291
- :param list[str] wait_for_states:
292
- An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.SteeringPolicy.lifecycle_state`
745
+ :param list[str] work_request_states: (optional)
746
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
747
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
293
748
 
294
749
  :param dict operation_kwargs:
295
750
  A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy`
@@ -298,280 +753,281 @@ class DnsClientCompositeOperations(object):
298
753
  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``
299
754
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
300
755
  """
301
- initial_get_result = self.client.get_steering_policy(steering_policy_id)
302
- operation_result = None
756
+ operation_result = self.client.delete_steering_policy(steering_policy_id, **operation_kwargs)
757
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
758
+ lowered_work_request_states = [w.lower() for w in work_request_states]
759
+ if 'opc-work-request-id' not in operation_result.headers:
760
+ return operation_result
761
+ work_request_id = operation_result.headers['opc-work-request-id']
303
762
  try:
304
- operation_result = self.client.delete_steering_policy(steering_policy_id, **operation_kwargs)
305
- except oci.exceptions.ServiceError as e:
306
- if e.status == 404:
307
- return WAIT_RESOURCE_NOT_FOUND
308
- else:
309
- raise e
763
+ waiter_result = oci.wait_until(
764
+ self._work_request_client,
765
+ self._work_request_client.get_work_request(work_request_id),
766
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
767
+ **waiter_kwargs
768
+ )
769
+ return waiter_result
770
+ except Exception as e:
771
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
310
772
 
311
- if not wait_for_states:
312
- return operation_result
313
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
773
+ def delete_steering_policy_attachment_and_wait_for_work_request(self, steering_policy_attachment_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
774
+ """
775
+ Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest
776
+ to enter the given state(s).
314
777
 
778
+ :param str steering_policy_attachment_id: (required)
779
+ The OCID of the target steering policy attachment.
780
+
781
+ :param list[str] work_request_states: (optional)
782
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
783
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
784
+
785
+ :param dict operation_kwargs:
786
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment`
787
+
788
+ :param dict waiter_kwargs:
789
+ 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``
790
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
791
+ """
792
+ operation_result = self.client.delete_steering_policy_attachment(steering_policy_attachment_id, **operation_kwargs)
793
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
794
+ lowered_work_request_states = [w.lower() for w in work_request_states]
795
+ if 'opc-work-request-id' not in operation_result.headers:
796
+ return operation_result
797
+ work_request_id = operation_result.headers['opc-work-request-id']
315
798
  try:
316
- if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
317
- self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_steering_policy, 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")
318
- else:
319
- """
320
- If the user does not send in this value, we set it to True by default.
321
- We are doing this because during a delete resource scenario and waiting on its state, the service can
322
- return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
323
- """
324
- waiter_kwargs["succeed_on_not_found"] = True
325
799
  waiter_result = oci.wait_until(
326
- self.client,
327
- initial_get_result, # noqa: F821
328
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
800
+ self._work_request_client,
801
+ self._work_request_client.get_work_request(work_request_id),
802
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
329
803
  **waiter_kwargs
330
804
  )
331
- result_to_return = waiter_result
805
+ return waiter_result
806
+ except Exception as e:
807
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
332
808
 
333
- return result_to_return
334
- except (NameError, TypeError) as e:
335
- if not e.args:
336
- e.args = ('',)
337
- 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"', )
809
+ def delete_tsig_key_and_wait_for_work_request(self, tsig_key_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
810
+ """
811
+ Calls :py:func:`~oci.dns.DnsClient.delete_tsig_key` and waits for the oci.work_requests.models.WorkRequest
812
+ to enter the given state(s).
813
+
814
+ :param str tsig_key_id: (required)
815
+ The OCID of the target TSIG key.
816
+
817
+ :param list[str] work_request_states: (optional)
818
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
819
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
820
+
821
+ :param dict operation_kwargs:
822
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_tsig_key`
823
+
824
+ :param dict waiter_kwargs:
825
+ 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``
826
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
827
+ """
828
+ operation_result = self.client.delete_tsig_key(tsig_key_id, **operation_kwargs)
829
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
830
+ lowered_work_request_states = [w.lower() for w in work_request_states]
831
+ if 'opc-work-request-id' not in operation_result.headers:
832
+ return operation_result
833
+ work_request_id = operation_result.headers['opc-work-request-id']
834
+ try:
835
+ waiter_result = oci.wait_until(
836
+ self._work_request_client,
837
+ self._work_request_client.get_work_request(work_request_id),
838
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
839
+ **waiter_kwargs
840
+ )
841
+ return waiter_result
842
+ except Exception as e:
338
843
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
844
+
845
+ def delete_view_and_wait_for_work_request(self, view_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
846
+ """
847
+ Calls :py:func:`~oci.dns.DnsClient.delete_view` and waits for the oci.work_requests.models.WorkRequest
848
+ to enter the given state(s).
849
+
850
+ :param str view_id: (required)
851
+ The OCID of the target view.
852
+
853
+ :param list[str] work_request_states: (optional)
854
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
855
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
856
+
857
+ :param dict operation_kwargs:
858
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_view`
859
+
860
+ :param dict waiter_kwargs:
861
+ 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``
862
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
863
+ """
864
+ operation_result = self.client.delete_view(view_id, **operation_kwargs)
865
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
866
+ lowered_work_request_states = [w.lower() for w in work_request_states]
867
+ if 'opc-work-request-id' not in operation_result.headers:
868
+ return operation_result
869
+ work_request_id = operation_result.headers['opc-work-request-id']
870
+ try:
871
+ waiter_result = oci.wait_until(
872
+ self._work_request_client,
873
+ self._work_request_client.get_work_request(work_request_id),
874
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
875
+ **waiter_kwargs
876
+ )
877
+ return waiter_result
339
878
  except Exception as e:
340
879
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
341
880
 
342
- def delete_steering_policy_attachment_and_wait_for_state(self, steering_policy_attachment_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
881
+ def delete_zone_and_wait_for_work_request(self, zone_name_or_id, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
343
882
  """
344
- Calls :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon
883
+ Calls :py:func:`~oci.dns.DnsClient.delete_zone` and waits for the oci.work_requests.models.WorkRequest
345
884
  to enter the given state(s).
346
885
 
347
- :param str steering_policy_attachment_id: (required)
348
- The OCID of the target steering policy attachment.
886
+ :param str zone_name_or_id: (required)
887
+ The name or OCID of the target zone.
349
888
 
350
- :param list[str] wait_for_states:
351
- An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.SteeringPolicyAttachment.lifecycle_state`
889
+ :param list[str] work_request_states: (optional)
890
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
891
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
352
892
 
353
893
  :param dict operation_kwargs:
354
- A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_steering_policy_attachment`
894
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_zone`
355
895
 
356
896
  :param dict waiter_kwargs:
357
897
  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``
358
898
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
359
899
  """
360
- initial_get_result = self.client.get_steering_policy_attachment(steering_policy_attachment_id)
361
- operation_result = None
362
- try:
363
- operation_result = self.client.delete_steering_policy_attachment(steering_policy_attachment_id, **operation_kwargs)
364
- except oci.exceptions.ServiceError as e:
365
- if e.status == 404:
366
- return WAIT_RESOURCE_NOT_FOUND
367
- else:
368
- raise e
369
-
370
- if not wait_for_states:
900
+ operation_result = self.client.delete_zone(zone_name_or_id, **operation_kwargs)
901
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
902
+ lowered_work_request_states = [w.lower() for w in work_request_states]
903
+ if 'opc-work-request-id' not in operation_result.headers:
371
904
  return operation_result
372
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
373
-
905
+ work_request_id = operation_result.headers['opc-work-request-id']
374
906
  try:
375
- if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
376
- self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_steering_policy_attachment, 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")
377
- else:
378
- """
379
- If the user does not send in this value, we set it to True by default.
380
- We are doing this because during a delete resource scenario and waiting on its state, the service can
381
- return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
382
- """
383
- waiter_kwargs["succeed_on_not_found"] = True
384
907
  waiter_result = oci.wait_until(
385
- self.client,
386
- initial_get_result, # noqa: F821
387
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
908
+ self._work_request_client,
909
+ self._work_request_client.get_work_request(work_request_id),
910
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
388
911
  **waiter_kwargs
389
912
  )
390
- result_to_return = waiter_result
391
-
392
- return result_to_return
393
- except (NameError, TypeError) as e:
394
- if not e.args:
395
- e.args = ('',)
396
- 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"', )
397
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
913
+ return waiter_result
398
914
  except Exception as e:
399
915
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
400
916
 
401
- def delete_tsig_key_and_wait_for_state(self, tsig_key_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
917
+ def promote_zone_dnssec_key_version_and_wait_for_work_request(self, zone_id, promote_zone_dnssec_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
402
918
  """
403
- Calls :py:func:`~oci.dns.DnsClient.delete_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon
919
+ Calls :py:func:`~oci.dns.DnsClient.promote_zone_dnssec_key_version` and waits for the oci.work_requests.models.WorkRequest
404
920
  to enter the given state(s).
405
921
 
406
- :param str tsig_key_id: (required)
407
- The OCID of the target TSIG key.
922
+ :param str zone_id: (required)
923
+ The OCID of the target zone.
408
924
 
409
- :param list[str] wait_for_states:
410
- An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.TsigKey.lifecycle_state`
925
+ :param oci.dns.models.PromoteZoneDnssecKeyVersionDetails promote_zone_dnssec_key_version_details: (required)
926
+ Details for promoting a `DnssecKeyVersion`.
927
+
928
+ :param list[str] work_request_states: (optional)
929
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
930
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
411
931
 
412
932
  :param dict operation_kwargs:
413
- A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_tsig_key`
933
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.promote_zone_dnssec_key_version`
414
934
 
415
935
  :param dict waiter_kwargs:
416
936
  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``
417
937
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
418
938
  """
419
- initial_get_result = self.client.get_tsig_key(tsig_key_id)
420
- operation_result = None
421
- try:
422
- operation_result = self.client.delete_tsig_key(tsig_key_id, **operation_kwargs)
423
- except oci.exceptions.ServiceError as e:
424
- if e.status == 404:
425
- return WAIT_RESOURCE_NOT_FOUND
426
- else:
427
- raise e
428
-
429
- if not wait_for_states:
939
+ operation_result = self.client.promote_zone_dnssec_key_version(zone_id, promote_zone_dnssec_key_version_details, **operation_kwargs)
940
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
941
+ lowered_work_request_states = [w.lower() for w in work_request_states]
942
+ if 'opc-work-request-id' not in operation_result.headers:
430
943
  return operation_result
431
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
432
-
944
+ work_request_id = operation_result.headers['opc-work-request-id']
433
945
  try:
434
- if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
435
- self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_tsig_key, 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")
436
- else:
437
- """
438
- If the user does not send in this value, we set it to True by default.
439
- We are doing this because during a delete resource scenario and waiting on its state, the service can
440
- return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
441
- """
442
- waiter_kwargs["succeed_on_not_found"] = True
443
946
  waiter_result = oci.wait_until(
444
- self.client,
445
- initial_get_result, # noqa: F821
446
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
947
+ self._work_request_client,
948
+ self._work_request_client.get_work_request(work_request_id),
949
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
447
950
  **waiter_kwargs
448
951
  )
449
- result_to_return = waiter_result
450
-
451
- return result_to_return
452
- except (NameError, TypeError) as e:
453
- if not e.args:
454
- e.args = ('',)
455
- 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"', )
456
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
952
+ return waiter_result
457
953
  except Exception as e:
458
954
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
459
955
 
460
- def delete_view_and_wait_for_state(self, view_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
956
+ def stage_zone_dnssec_key_version_and_wait_for_work_request(self, zone_id, stage_zone_dnssec_key_version_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
461
957
  """
462
- Calls :py:func:`~oci.dns.DnsClient.delete_view` and waits for the :py:class:`~oci.dns.models.View` acted upon
958
+ Calls :py:func:`~oci.dns.DnsClient.stage_zone_dnssec_key_version` and waits for the oci.work_requests.models.WorkRequest
463
959
  to enter the given state(s).
464
960
 
465
- :param str view_id: (required)
466
- The OCID of the target view.
961
+ :param str zone_id: (required)
962
+ The OCID of the target zone.
467
963
 
468
- :param list[str] wait_for_states:
469
- An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.View.lifecycle_state`
964
+ :param oci.dns.models.StageZoneDnssecKeyVersionDetails stage_zone_dnssec_key_version_details: (required)
965
+ Details for staging a DnssecKeyVersion.
966
+
967
+ :param list[str] work_request_states: (optional)
968
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
969
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
470
970
 
471
971
  :param dict operation_kwargs:
472
- A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_view`
972
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.stage_zone_dnssec_key_version`
473
973
 
474
974
  :param dict waiter_kwargs:
475
975
  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``
476
976
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
477
977
  """
478
- initial_get_result = self.client.get_view(view_id)
479
- operation_result = None
480
- try:
481
- operation_result = self.client.delete_view(view_id, **operation_kwargs)
482
- except oci.exceptions.ServiceError as e:
483
- if e.status == 404:
484
- return WAIT_RESOURCE_NOT_FOUND
485
- else:
486
- raise e
487
-
488
- if not wait_for_states:
978
+ operation_result = self.client.stage_zone_dnssec_key_version(zone_id, stage_zone_dnssec_key_version_details, **operation_kwargs)
979
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
980
+ lowered_work_request_states = [w.lower() for w in work_request_states]
981
+ if 'opc-work-request-id' not in operation_result.headers:
489
982
  return operation_result
490
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
491
-
983
+ work_request_id = operation_result.headers['opc-work-request-id']
492
984
  try:
493
- if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
494
- self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_view, 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")
495
- else:
496
- """
497
- If the user does not send in this value, we set it to True by default.
498
- We are doing this because during a delete resource scenario and waiting on its state, the service can
499
- return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
500
- """
501
- waiter_kwargs["succeed_on_not_found"] = True
502
985
  waiter_result = oci.wait_until(
503
- self.client,
504
- initial_get_result, # noqa: F821
505
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
986
+ self._work_request_client,
987
+ self._work_request_client.get_work_request(work_request_id),
988
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
506
989
  **waiter_kwargs
507
990
  )
508
- result_to_return = waiter_result
509
-
510
- return result_to_return
511
- except (NameError, TypeError) as e:
512
- if not e.args:
513
- e.args = ('',)
514
- 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"', )
515
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
991
+ return waiter_result
516
992
  except Exception as e:
517
993
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
518
994
 
519
- def delete_zone_and_wait_for_state(self, zone_name_or_id, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
995
+ def update_resolver_and_wait_for_work_request(self, resolver_id, update_resolver_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
520
996
  """
521
- Calls :py:func:`~oci.dns.DnsClient.delete_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon
997
+ Calls :py:func:`~oci.dns.DnsClient.update_resolver` and waits for the oci.work_requests.models.WorkRequest
522
998
  to enter the given state(s).
523
999
 
524
- :param str zone_name_or_id: (required)
525
- The name or OCID of the target zone.
1000
+ :param str resolver_id: (required)
1001
+ The OCID of the target resolver.
526
1002
 
527
- :param list[str] wait_for_states:
528
- An array of states to wait on. These should be valid values for :py:attr:`~oci.dns.models.Zone.lifecycle_state`
1003
+ :param oci.dns.models.UpdateResolverDetails update_resolver_details: (required)
1004
+ New data for the resolver.
1005
+
1006
+ :param list[str] work_request_states: (optional)
1007
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1008
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
529
1009
 
530
1010
  :param dict operation_kwargs:
531
- A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.delete_zone`
1011
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_resolver`
532
1012
 
533
1013
  :param dict waiter_kwargs:
534
1014
  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``
535
1015
  as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
536
1016
  """
537
- initial_get_result = self.client.get_zone(zone_name_or_id)
538
- operation_result = None
539
- try:
540
- operation_result = self.client.delete_zone(zone_name_or_id, **operation_kwargs)
541
- except oci.exceptions.ServiceError as e:
542
- if e.status == 404:
543
- return WAIT_RESOURCE_NOT_FOUND
544
- else:
545
- raise e
546
-
547
- if not wait_for_states:
1017
+ operation_result = self.client.update_resolver(resolver_id, update_resolver_details, **operation_kwargs)
1018
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1019
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1020
+ if 'opc-work-request-id' not in operation_result.headers:
548
1021
  return operation_result
549
- lowered_wait_for_states = [w.lower() for w in wait_for_states]
550
-
1022
+ work_request_id = operation_result.headers['opc-work-request-id']
551
1023
  try:
552
- if ("succeed_on_not_found" in waiter_kwargs) and (waiter_kwargs["succeed_on_not_found"] is False):
553
- self.client.base_client.logger.warning("The waiter kwarg succeed_on_not_found was passed as False for the delete composite operation delete_zone, 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")
554
- else:
555
- """
556
- If the user does not send in this value, we set it to True by default.
557
- We are doing this because during a delete resource scenario and waiting on its state, the service can
558
- return a 404 NOT FOUND exception as the resource was deleted and a get on its state would fail
559
- """
560
- waiter_kwargs["succeed_on_not_found"] = True
561
1024
  waiter_result = oci.wait_until(
562
- self.client,
563
- initial_get_result, # noqa: F821
564
- evaluate_response=lambda r: getattr(r.data, 'lifecycle_state') and getattr(r.data, 'lifecycle_state').lower() in lowered_wait_for_states,
1025
+ self._work_request_client,
1026
+ self._work_request_client.get_work_request(work_request_id),
1027
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
565
1028
  **waiter_kwargs
566
1029
  )
567
- result_to_return = waiter_result
568
-
569
- return result_to_return
570
- except (NameError, TypeError) as e:
571
- if not e.args:
572
- e.args = ('',)
573
- 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"', )
574
- raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1030
+ return waiter_result
575
1031
  except Exception as e:
576
1032
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
577
1033
 
@@ -620,6 +1076,48 @@ class DnsClientCompositeOperations(object):
620
1076
  except Exception as e:
621
1077
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
622
1078
 
1079
+ def update_resolver_endpoint_and_wait_for_work_request(self, resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1080
+ """
1081
+ Calls :py:func:`~oci.dns.DnsClient.update_resolver_endpoint` and waits for the oci.work_requests.models.WorkRequest
1082
+ to enter the given state(s).
1083
+
1084
+ :param str resolver_id: (required)
1085
+ The OCID of the target resolver.
1086
+
1087
+ :param str resolver_endpoint_name: (required)
1088
+ The name of the target resolver endpoint.
1089
+
1090
+ :param oci.dns.models.UpdateResolverEndpointDetails update_resolver_endpoint_details: (required)
1091
+ New data for the resolver endpoint.
1092
+
1093
+ :param list[str] work_request_states: (optional)
1094
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1095
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1096
+
1097
+ :param dict operation_kwargs:
1098
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_resolver_endpoint`
1099
+
1100
+ :param dict waiter_kwargs:
1101
+ 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``
1102
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1103
+ """
1104
+ operation_result = self.client.update_resolver_endpoint(resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, **operation_kwargs)
1105
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1106
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1107
+ if 'opc-work-request-id' not in operation_result.headers:
1108
+ return operation_result
1109
+ work_request_id = operation_result.headers['opc-work-request-id']
1110
+ try:
1111
+ waiter_result = oci.wait_until(
1112
+ self._work_request_client,
1113
+ self._work_request_client.get_work_request(work_request_id),
1114
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1115
+ **waiter_kwargs
1116
+ )
1117
+ return waiter_result
1118
+ except Exception as e:
1119
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1120
+
623
1121
  def update_resolver_endpoint_and_wait_for_state(self, resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
624
1122
  """
625
1123
  Calls :py:func:`~oci.dns.DnsClient.update_resolver_endpoint` and waits for the :py:class:`~oci.dns.models.ResolverEndpoint` acted upon
@@ -668,6 +1166,45 @@ class DnsClientCompositeOperations(object):
668
1166
  except Exception as e:
669
1167
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
670
1168
 
1169
+ def update_steering_policy_and_wait_for_work_request(self, steering_policy_id, update_steering_policy_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1170
+ """
1171
+ Calls :py:func:`~oci.dns.DnsClient.update_steering_policy` and waits for the oci.work_requests.models.WorkRequest
1172
+ to enter the given state(s).
1173
+
1174
+ :param str steering_policy_id: (required)
1175
+ The OCID of the target steering policy.
1176
+
1177
+ :param oci.dns.models.UpdateSteeringPolicyDetails update_steering_policy_details: (required)
1178
+ New data for the steering policy.
1179
+
1180
+ :param list[str] work_request_states: (optional)
1181
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1182
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1183
+
1184
+ :param dict operation_kwargs:
1185
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_steering_policy`
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.update_steering_policy(steering_policy_id, update_steering_policy_details, **operation_kwargs)
1192
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1193
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1194
+ if 'opc-work-request-id' not in operation_result.headers:
1195
+ return operation_result
1196
+ work_request_id = operation_result.headers['opc-work-request-id']
1197
+ try:
1198
+ waiter_result = oci.wait_until(
1199
+ self._work_request_client,
1200
+ self._work_request_client.get_work_request(work_request_id),
1201
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1202
+ **waiter_kwargs
1203
+ )
1204
+ return waiter_result
1205
+ except Exception as e:
1206
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1207
+
671
1208
  def update_steering_policy_and_wait_for_state(self, steering_policy_id, update_steering_policy_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
672
1209
  """
673
1210
  Calls :py:func:`~oci.dns.DnsClient.update_steering_policy` and waits for the :py:class:`~oci.dns.models.SteeringPolicy` acted upon
@@ -713,6 +1250,45 @@ class DnsClientCompositeOperations(object):
713
1250
  except Exception as e:
714
1251
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
715
1252
 
1253
+ def update_steering_policy_attachment_and_wait_for_work_request(self, steering_policy_attachment_id, update_steering_policy_attachment_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1254
+ """
1255
+ Calls :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment` and waits for the oci.work_requests.models.WorkRequest
1256
+ to enter the given state(s).
1257
+
1258
+ :param str steering_policy_attachment_id: (required)
1259
+ The OCID of the target steering policy attachment.
1260
+
1261
+ :param oci.dns.models.UpdateSteeringPolicyAttachmentDetails update_steering_policy_attachment_details: (required)
1262
+ New data for the steering policy attachment.
1263
+
1264
+ :param list[str] work_request_states: (optional)
1265
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1266
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1267
+
1268
+ :param dict operation_kwargs:
1269
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment`
1270
+
1271
+ :param dict waiter_kwargs:
1272
+ 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``
1273
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1274
+ """
1275
+ operation_result = self.client.update_steering_policy_attachment(steering_policy_attachment_id, update_steering_policy_attachment_details, **operation_kwargs)
1276
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1277
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1278
+ if 'opc-work-request-id' not in operation_result.headers:
1279
+ return operation_result
1280
+ work_request_id = operation_result.headers['opc-work-request-id']
1281
+ try:
1282
+ waiter_result = oci.wait_until(
1283
+ self._work_request_client,
1284
+ self._work_request_client.get_work_request(work_request_id),
1285
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1286
+ **waiter_kwargs
1287
+ )
1288
+ return waiter_result
1289
+ except Exception as e:
1290
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1291
+
716
1292
  def update_steering_policy_attachment_and_wait_for_state(self, steering_policy_attachment_id, update_steering_policy_attachment_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
717
1293
  """
718
1294
  Calls :py:func:`~oci.dns.DnsClient.update_steering_policy_attachment` and waits for the :py:class:`~oci.dns.models.SteeringPolicyAttachment` acted upon
@@ -758,6 +1334,45 @@ class DnsClientCompositeOperations(object):
758
1334
  except Exception as e:
759
1335
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
760
1336
 
1337
+ def update_tsig_key_and_wait_for_work_request(self, tsig_key_id, update_tsig_key_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1338
+ """
1339
+ Calls :py:func:`~oci.dns.DnsClient.update_tsig_key` and waits for the oci.work_requests.models.WorkRequest
1340
+ to enter the given state(s).
1341
+
1342
+ :param str tsig_key_id: (required)
1343
+ The OCID of the target TSIG key.
1344
+
1345
+ :param oci.dns.models.UpdateTsigKeyDetails update_tsig_key_details: (required)
1346
+ New data for the TSIG key.
1347
+
1348
+ :param list[str] work_request_states: (optional)
1349
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1350
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1351
+
1352
+ :param dict operation_kwargs:
1353
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_tsig_key`
1354
+
1355
+ :param dict waiter_kwargs:
1356
+ 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``
1357
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1358
+ """
1359
+ operation_result = self.client.update_tsig_key(tsig_key_id, update_tsig_key_details, **operation_kwargs)
1360
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1361
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1362
+ if 'opc-work-request-id' not in operation_result.headers:
1363
+ return operation_result
1364
+ work_request_id = operation_result.headers['opc-work-request-id']
1365
+ try:
1366
+ waiter_result = oci.wait_until(
1367
+ self._work_request_client,
1368
+ self._work_request_client.get_work_request(work_request_id),
1369
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1370
+ **waiter_kwargs
1371
+ )
1372
+ return waiter_result
1373
+ except Exception as e:
1374
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1375
+
761
1376
  def update_tsig_key_and_wait_for_state(self, tsig_key_id, update_tsig_key_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
762
1377
  """
763
1378
  Calls :py:func:`~oci.dns.DnsClient.update_tsig_key` and waits for the :py:class:`~oci.dns.models.TsigKey` acted upon
@@ -803,6 +1418,45 @@ class DnsClientCompositeOperations(object):
803
1418
  except Exception as e:
804
1419
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
805
1420
 
1421
+ def update_view_and_wait_for_work_request(self, view_id, update_view_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1422
+ """
1423
+ Calls :py:func:`~oci.dns.DnsClient.update_view` and waits for the oci.work_requests.models.WorkRequest
1424
+ to enter the given state(s).
1425
+
1426
+ :param str view_id: (required)
1427
+ The OCID of the target view.
1428
+
1429
+ :param oci.dns.models.UpdateViewDetails update_view_details: (required)
1430
+ New data for the view.
1431
+
1432
+ :param list[str] work_request_states: (optional)
1433
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1434
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1435
+
1436
+ :param dict operation_kwargs:
1437
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_view`
1438
+
1439
+ :param dict waiter_kwargs:
1440
+ 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``
1441
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1442
+ """
1443
+ operation_result = self.client.update_view(view_id, update_view_details, **operation_kwargs)
1444
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1445
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1446
+ if 'opc-work-request-id' not in operation_result.headers:
1447
+ return operation_result
1448
+ work_request_id = operation_result.headers['opc-work-request-id']
1449
+ try:
1450
+ waiter_result = oci.wait_until(
1451
+ self._work_request_client,
1452
+ self._work_request_client.get_work_request(work_request_id),
1453
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1454
+ **waiter_kwargs
1455
+ )
1456
+ return waiter_result
1457
+ except Exception as e:
1458
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1459
+
806
1460
  def update_view_and_wait_for_state(self, view_id, update_view_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
807
1461
  """
808
1462
  Calls :py:func:`~oci.dns.DnsClient.update_view` and waits for the :py:class:`~oci.dns.models.View` acted upon
@@ -848,6 +1502,45 @@ class DnsClientCompositeOperations(object):
848
1502
  except Exception as e:
849
1503
  raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
850
1504
 
1505
+ def update_zone_and_wait_for_work_request(self, zone_name_or_id, update_zone_details, work_request_states=[], operation_kwargs={}, waiter_kwargs={}):
1506
+ """
1507
+ Calls :py:func:`~oci.dns.DnsClient.update_zone` and waits for the oci.work_requests.models.WorkRequest
1508
+ to enter the given state(s).
1509
+
1510
+ :param str zone_name_or_id: (required)
1511
+ The name or OCID of the target zone.
1512
+
1513
+ :param oci.dns.models.UpdateZoneDetails update_zone_details: (required)
1514
+ New data for the zone.
1515
+
1516
+ :param list[str] work_request_states: (optional)
1517
+ An array of work requests states to wait on. These should be valid values for :py:attr:`~oci.work_requests.models.WorkRequest.status`
1518
+ Default values are termination states: [STATUS_SUCCEEDED, STATUS_FAILED, STATUS_CANCELED]
1519
+
1520
+ :param dict operation_kwargs:
1521
+ A dictionary of keyword arguments to pass to :py:func:`~oci.dns.DnsClient.update_zone`
1522
+
1523
+ :param dict waiter_kwargs:
1524
+ 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``
1525
+ as dictionary keys to modify how long the waiter function will wait between retries and the maximum amount of time it will wait
1526
+ """
1527
+ operation_result = self.client.update_zone(zone_name_or_id, update_zone_details, **operation_kwargs)
1528
+ work_request_states = work_request_states if work_request_states else oci.waiter._WORK_REQUEST_TERMINATION_STATES
1529
+ lowered_work_request_states = [w.lower() for w in work_request_states]
1530
+ if 'opc-work-request-id' not in operation_result.headers:
1531
+ return operation_result
1532
+ work_request_id = operation_result.headers['opc-work-request-id']
1533
+ try:
1534
+ waiter_result = oci.wait_until(
1535
+ self._work_request_client,
1536
+ self._work_request_client.get_work_request(work_request_id),
1537
+ evaluate_response=lambda r: getattr(r.data, 'status') and getattr(r.data, 'status').lower() in lowered_work_request_states,
1538
+ **waiter_kwargs
1539
+ )
1540
+ return waiter_result
1541
+ except Exception as e:
1542
+ raise oci.exceptions.CompositeOperationError(partial_results=[operation_result], cause=e)
1543
+
851
1544
  def update_zone_and_wait_for_state(self, zone_name_or_id, update_zone_details, wait_for_states=[], operation_kwargs={}, waiter_kwargs={}):
852
1545
  """
853
1546
  Calls :py:func:`~oci.dns.DnsClient.update_zone` and waits for the :py:class:`~oci.dns.models.Zone` acted upon