oci 2.136.0__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 (619) 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/cloud_bridge/models/supported_cloud_region_collection.py +72 -0
  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_instances/container_instance_client.py +18 -18
  107. oci/core/blockstorage_client.py +60 -60
  108. oci/core/compute_client.py +102 -102
  109. oci/core/compute_management_client.py +32 -32
  110. oci/core/models/__init__.py +2 -0
  111. oci/core/models/virtual_circuit.py +29 -2
  112. oci/core/models/virtual_circuit_redundancy_metadata.py +202 -0
  113. oci/core/virtual_network_client.py +247 -247
  114. oci/dashboard_service/dashboard_client.py +6 -6
  115. oci/dashboard_service/dashboard_group_client.py +6 -6
  116. oci/data_catalog/data_catalog_client.py +149 -149
  117. oci/data_flow/data_flow_client.py +42 -42
  118. oci/data_integration/data_integration_client.py +163 -163
  119. oci/data_labeling_service/data_labeling_management_client.py +17 -17
  120. oci/data_labeling_service_dataplane/data_labeling_client.py +15 -15
  121. oci/data_safe/data_safe_client.py +292 -292
  122. oci/data_science/data_science_client.py +217 -93
  123. oci/data_science/data_science_client_composite_operations.py +41 -0
  124. oci/data_science/models/__init__.py +8 -0
  125. oci/data_science/models/backup_operation_details.py +154 -0
  126. oci/data_science/models/backup_setting.py +158 -0
  127. oci/data_science/models/create_model_details.py +56 -2
  128. oci/data_science/models/model.py +141 -2
  129. oci/data_science/models/model_summary.py +31 -0
  130. oci/data_science/models/retention_operation_details.py +267 -0
  131. oci/data_science/models/retention_setting.py +158 -0
  132. oci/data_science/models/update_model_details.py +56 -2
  133. oci/data_science/models/work_request.py +7 -3
  134. oci/data_science/models/work_request_summary.py +7 -3
  135. oci/database/database_client.py +396 -396
  136. oci/database/models/__init__.py +14 -0
  137. oci/database/models/autonomous_database.py +58 -0
  138. oci/database/models/autonomous_database_encryption_key_details.py +133 -0
  139. oci/database/models/autonomous_database_encryption_key_history_entry.py +99 -0
  140. oci/database/models/autonomous_database_summary.py +58 -0
  141. oci/database/models/aws_key_details.py +175 -0
  142. oci/database/models/azure_key_details.py +113 -0
  143. oci/database/models/create_autonomous_database_base.py +27 -0
  144. oci/database/models/create_autonomous_database_clone_details.py +7 -0
  145. oci/database/models/create_autonomous_database_details.py +7 -0
  146. oci/database/models/create_autonomous_database_from_backup_details.py +7 -0
  147. oci/database/models/create_autonomous_database_from_backup_timestamp_details.py +7 -0
  148. oci/database/models/create_cross_region_autonomous_database_data_guard_details.py +7 -0
  149. oci/database/models/create_cross_region_disaster_recovery_details.py +7 -0
  150. oci/database/models/create_cross_tenancy_disaster_recovery_details.py +7 -0
  151. oci/database/models/create_refreshable_autonomous_database_clone_details.py +7 -0
  152. oci/database/models/oci_key_details.py +119 -0
  153. oci/database/models/okv_key_details.py +206 -0
  154. oci/database/models/oracle_managed_key_details.py +51 -0
  155. oci/database/models/undelete_autonomous_database_details.py +7 -0
  156. oci/database/models/update_autonomous_database_details.py +29 -2
  157. oci/database_management/db_management_client.py +211 -211
  158. oci/database_management/diagnosability_client.py +4 -4
  159. oci/database_management/managed_my_sql_databases_client.py +7 -7
  160. oci/database_management/perfhub_client.py +1 -1
  161. oci/database_management/sql_tuning_client.py +17 -17
  162. oci/database_migration/database_migration_client.py +42 -42
  163. oci/database_tools/database_tools_client.py +23 -23
  164. oci/delegate_access_control/delegate_access_control_client.py +26 -26
  165. oci/delegate_access_control/work_request_client.py +4 -4
  166. oci/demand_signal/occ_demand_signal_client.py +7 -7
  167. oci/desktops/desktop_service_client.py +21 -21
  168. oci/devops/devops_client.py +141 -141
  169. oci/disaster_recovery/disaster_recovery_client.py +29 -29
  170. oci/dns/dns_client.py +54 -54
  171. oci/dts/appliance_export_job_client.py +6 -6
  172. oci/dts/shipping_vendors_client.py +1 -1
  173. oci/dts/transfer_appliance_client.py +8 -8
  174. oci/dts/transfer_appliance_entitlement_client.py +3 -3
  175. oci/dts/transfer_device_client.py +5 -5
  176. oci/dts/transfer_job_client.py +6 -6
  177. oci/dts/transfer_package_client.py +7 -7
  178. oci/em_warehouse/em_warehouse_client.py +13 -13
  179. oci/email/email_client.py +31 -31
  180. oci/email_data_plane/email_dp_client.py +1 -1
  181. oci/events/events_client.py +6 -6
  182. oci/file_storage/file_storage_client.py +3599 -1776
  183. oci/file_storage/file_storage_client_composite_operations.py +881 -223
  184. oci/file_storage/models/__init__.py +2 -0
  185. oci/file_storage/models/create_export_details.py +31 -0
  186. oci/file_storage/models/create_file_system_details.py +31 -0
  187. oci/file_storage/models/create_filesystem_snapshot_policy_details.py +33 -2
  188. oci/file_storage/models/create_ldap_bind_account_details.py +7 -0
  189. oci/file_storage/models/create_mount_target_details.py +31 -0
  190. oci/file_storage/models/create_outbound_connector_details.py +33 -2
  191. oci/file_storage/models/create_replication_details.py +33 -2
  192. oci/file_storage/models/create_snapshot_details.py +33 -2
  193. oci/file_storage/models/export.py +33 -2
  194. oci/file_storage/models/export_summary.py +33 -2
  195. oci/file_storage/models/file_system.py +31 -0
  196. oci/file_storage/models/file_system_summary.py +31 -0
  197. oci/file_storage/models/filesystem_snapshot_policy.py +31 -0
  198. oci/file_storage/models/filesystem_snapshot_policy_summary.py +31 -0
  199. oci/file_storage/models/ldap_bind_account.py +7 -0
  200. oci/file_storage/models/ldap_bind_account_summary.py +7 -0
  201. oci/file_storage/models/mount_target.py +31 -0
  202. oci/file_storage/models/mount_target_summary.py +31 -0
  203. oci/file_storage/models/outbound_connector.py +31 -0
  204. oci/file_storage/models/outbound_connector_summary.py +31 -0
  205. oci/file_storage/models/replication.py +31 -0
  206. oci/file_storage/models/replication_summary.py +31 -0
  207. oci/file_storage/models/resource_lock.py +185 -0
  208. oci/file_storage/models/snapshot.py +31 -0
  209. oci/file_storage/models/snapshot_summary.py +31 -0
  210. oci/fleet_apps_management/fleet_apps_management_admin_client.py +2261 -294
  211. oci/fleet_apps_management/fleet_apps_management_admin_client_composite_operations.py +349 -1
  212. oci/fleet_apps_management/fleet_apps_management_client.py +141 -127
  213. oci/fleet_apps_management/fleet_apps_management_client_composite_operations.py +19 -19
  214. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client.py +19 -15
  215. oci/fleet_apps_management/fleet_apps_management_maintenance_window_client_composite_operations.py +1 -1
  216. oci/fleet_apps_management/fleet_apps_management_operations_client.py +2058 -363
  217. oci/fleet_apps_management/fleet_apps_management_operations_client_composite_operations.py +173 -0
  218. oci/fleet_apps_management/fleet_apps_management_runbooks_client.py +1097 -260
  219. oci/fleet_apps_management/fleet_apps_management_runbooks_client_composite_operations.py +298 -0
  220. oci/fleet_apps_management/models/__init__.py +168 -0
  221. oci/fleet_apps_management/models/action_group.py +2 -2
  222. oci/fleet_apps_management/models/action_group_based_user_action_details.py +90 -0
  223. oci/fleet_apps_management/models/action_group_details.py +20 -16
  224. oci/fleet_apps_management/models/activity_resource_target.py +44 -7
  225. oci/fleet_apps_management/models/announcement_collection.py +1 -1
  226. oci/fleet_apps_management/models/announcement_summary.py +13 -13
  227. oci/fleet_apps_management/models/api_based_execution_details.py +1 -1
  228. oci/fleet_apps_management/models/artifact_details.py +109 -0
  229. oci/fleet_apps_management/models/associated_fleet_credential_details.py +1 -1
  230. oci/fleet_apps_management/models/associated_fleet_property_details.py +5 -5
  231. oci/fleet_apps_management/models/associated_fleet_resource_details.py +6 -6
  232. oci/fleet_apps_management/models/associated_local_task_details.py +64 -1
  233. oci/fleet_apps_management/models/associated_scheduler_definition.py +3 -3
  234. oci/fleet_apps_management/models/associated_shared_task_details.py +2 -1
  235. oci/fleet_apps_management/models/associations.py +32 -5
  236. oci/fleet_apps_management/models/check_resource_tagging_details.py +5 -5
  237. oci/fleet_apps_management/models/compliance_detail_policy.py +223 -0
  238. oci/fleet_apps_management/models/compliance_detail_product.py +134 -0
  239. oci/fleet_apps_management/models/compliance_detail_resource.py +196 -0
  240. oci/fleet_apps_management/models/compliance_detail_target.py +134 -0
  241. oci/fleet_apps_management/models/compliance_patch_detail.py +278 -0
  242. oci/fleet_apps_management/models/compliance_policy.py +439 -0
  243. oci/fleet_apps_management/models/compliance_policy_collection.py +72 -0
  244. oci/fleet_apps_management/models/compliance_policy_rule.py +618 -0
  245. oci/fleet_apps_management/models/compliance_policy_rule_collection.py +72 -0
  246. oci/fleet_apps_management/models/compliance_policy_rule_summary.py +585 -0
  247. oci/fleet_apps_management/models/compliance_policy_summary.py +406 -0
  248. oci/fleet_apps_management/models/compliance_record.py +457 -0
  249. oci/fleet_apps_management/models/compliance_record_aggregation.py +99 -0
  250. oci/fleet_apps_management/models/compliance_record_aggregation_collection.py +72 -0
  251. oci/fleet_apps_management/models/compliance_record_collection.py +72 -0
  252. oci/fleet_apps_management/models/compliance_record_dimension.py +143 -0
  253. oci/fleet_apps_management/models/compliance_record_summary.py +437 -0
  254. oci/fleet_apps_management/models/compliance_report.py +5 -5
  255. oci/fleet_apps_management/models/compliance_report_patch_detail.py +9 -9
  256. oci/fleet_apps_management/models/compliance_report_product.py +3 -3
  257. oci/fleet_apps_management/models/compliance_report_resource.py +8 -6
  258. oci/fleet_apps_management/models/compliance_report_target.py +7 -7
  259. oci/fleet_apps_management/models/component_properties.py +69 -9
  260. oci/fleet_apps_management/models/condition.py +12 -6
  261. oci/fleet_apps_management/models/config_association_details.py +109 -0
  262. oci/fleet_apps_management/models/config_category_details.py +133 -0
  263. oci/fleet_apps_management/models/confirm_targets_details.py +1 -1
  264. oci/fleet_apps_management/models/content_details.py +3 -3
  265. oci/fleet_apps_management/models/create_compliance_policy_rule_details.py +382 -0
  266. oci/fleet_apps_management/models/create_fleet_details.py +63 -16
  267. oci/fleet_apps_management/models/create_fleet_property_details.py +5 -5
  268. oci/fleet_apps_management/models/create_fleet_resource_details.py +1 -1
  269. oci/fleet_apps_management/models/create_maintenance_window_details.py +19 -11
  270. oci/fleet_apps_management/models/create_onboarding_details.py +8 -4
  271. oci/fleet_apps_management/models/create_patch_details.py +402 -0
  272. oci/fleet_apps_management/models/create_platform_configuration_details.py +169 -0
  273. oci/fleet_apps_management/models/create_property_details.py +6 -6
  274. oci/fleet_apps_management/models/create_runbook_details.py +441 -0
  275. oci/fleet_apps_management/models/create_task_record_details.py +235 -0
  276. oci/fleet_apps_management/models/credential_config_category_details.py +52 -0
  277. oci/fleet_apps_management/models/credential_details.py +3 -3
  278. oci/fleet_apps_management/models/credential_entity_specific_details.py +22 -6
  279. oci/{cloud_bridge/models/update_plugin_details.py → fleet_apps_management/models/dependent_patch_details.py} +21 -21
  280. oci/fleet_apps_management/models/details.py +67 -3
  281. oci/fleet_apps_management/models/discovered_target.py +6 -6
  282. oci/fleet_apps_management/models/enable_latest_policy_details.py +72 -0
  283. oci/fleet_apps_management/models/entity_execution_details.py +22 -16
  284. oci/fleet_apps_management/models/environment_config_category_details.py +53 -0
  285. oci/fleet_apps_management/models/execution.py +122 -21
  286. oci/fleet_apps_management/models/execution_collection.py +1 -1
  287. oci/fleet_apps_management/models/execution_details.py +1 -1
  288. oci/fleet_apps_management/models/execution_summary.py +123 -22
  289. oci/fleet_apps_management/models/execution_workflow_details.py +1 -1
  290. oci/fleet_apps_management/models/export_compliance_report_details.py +251 -0
  291. oci/fleet_apps_management/models/fleet.py +37 -19
  292. oci/fleet_apps_management/models/fleet_credential.py +1 -1
  293. oci/fleet_apps_management/models/fleet_credential_entity_specific_details.py +82 -0
  294. oci/fleet_apps_management/models/fleet_product_summary.py +3 -3
  295. oci/fleet_apps_management/models/fleet_property.py +11 -11
  296. oci/fleet_apps_management/models/fleet_property_collection.py +3 -3
  297. oci/fleet_apps_management/models/fleet_property_summary.py +6 -6
  298. oci/fleet_apps_management/models/fleet_resource.py +21 -15
  299. oci/fleet_apps_management/models/fleet_resource_collection.py +1 -1
  300. oci/fleet_apps_management/models/fleet_resource_summary.py +20 -14
  301. oci/fleet_apps_management/models/fleet_summary.py +15 -5
  302. oci/fleet_apps_management/models/fleet_target.py +98 -5
  303. oci/fleet_apps_management/models/fleet_target_summary.py +98 -5
  304. oci/fleet_apps_management/models/generate_compliance_report_details.py +5 -3
  305. oci/fleet_apps_management/models/generic_artifact.py +68 -0
  306. oci/fleet_apps_management/models/generic_artifact_details.py +78 -0
  307. oci/fleet_apps_management/models/group.py +11 -5
  308. oci/fleet_apps_management/models/input_argument.py +2 -2
  309. oci/fleet_apps_management/models/inventory_resource_summary.py +6 -6
  310. oci/fleet_apps_management/models/job_activity.py +57 -18
  311. oci/fleet_apps_management/models/key_encryption_credential_details.py +5 -5
  312. oci/fleet_apps_management/models/maintenance_window.py +19 -11
  313. oci/fleet_apps_management/models/maintenance_window_collection.py +1 -1
  314. oci/fleet_apps_management/models/maintenance_window_summary.py +18 -10
  315. oci/fleet_apps_management/models/manage_job_execution_details.py +68 -0
  316. oci/fleet_apps_management/models/manage_settings_details.py +72 -0
  317. oci/fleet_apps_management/models/managed_entity_aggregation.py +99 -0
  318. oci/fleet_apps_management/models/managed_entity_aggregation_collection.py +72 -0
  319. oci/fleet_apps_management/models/managed_entity_dimension.py +88 -0
  320. oci/fleet_apps_management/models/model_property.py +9 -9
  321. oci/fleet_apps_management/models/notification_preferences.py +7 -5
  322. oci/fleet_apps_management/models/object_storage_bucket_content_details.py +3 -3
  323. oci/fleet_apps_management/models/onboarding.py +70 -7
  324. oci/fleet_apps_management/models/onboarding_collection.py +3 -3
  325. oci/fleet_apps_management/models/onboarding_policy_collection.py +3 -3
  326. oci/fleet_apps_management/models/onboarding_policy_summary.py +1 -1
  327. oci/fleet_apps_management/models/onboarding_summary.py +69 -7
  328. oci/fleet_apps_management/models/outcome.py +7 -7
  329. oci/fleet_apps_management/models/output_variable_details.py +2 -2
  330. oci/fleet_apps_management/models/output_variable_input_argument.py +1 -1
  331. oci/fleet_apps_management/models/output_variable_mapping.py +4 -3
  332. oci/fleet_apps_management/models/patch.py +704 -0
  333. oci/fleet_apps_management/models/patch_collection.py +72 -0
  334. oci/fleet_apps_management/models/patch_level_selection_details.py +106 -0
  335. oci/fleet_apps_management/models/patch_name_selection_details.py +83 -0
  336. oci/fleet_apps_management/models/patch_product.py +103 -0
  337. oci/fleet_apps_management/models/patch_release_date_selection_details.py +83 -0
  338. oci/fleet_apps_management/models/patch_selection_details.py +117 -0
  339. oci/fleet_apps_management/models/patch_summary.py +625 -0
  340. oci/fleet_apps_management/models/patch_type.py +72 -0
  341. oci/fleet_apps_management/models/patch_type_config_category_details.py +52 -0
  342. oci/fleet_apps_management/models/pause_details.py +109 -0
  343. oci/fleet_apps_management/models/plain_text_credential_details.py +2 -2
  344. oci/fleet_apps_management/models/platform_configuration.py +529 -0
  345. oci/fleet_apps_management/models/platform_configuration_collection.py +72 -0
  346. oci/fleet_apps_management/models/platform_configuration_summary.py +485 -0
  347. oci/fleet_apps_management/models/platform_specific_artifact.py +162 -0
  348. oci/fleet_apps_management/models/platform_specific_artifact_details.py +82 -0
  349. oci/fleet_apps_management/models/preferences.py +3 -3
  350. oci/fleet_apps_management/models/product_config_category_details.py +215 -0
  351. oci/fleet_apps_management/models/product_stack_as_product_sub_category_details.py +182 -0
  352. oci/fleet_apps_management/models/product_stack_config_category_details.py +112 -0
  353. oci/fleet_apps_management/models/product_stack_generic_sub_category_details.py +51 -0
  354. oci/fleet_apps_management/models/product_stack_sub_category_details.py +109 -0
  355. oci/fleet_apps_management/models/product_version_details.py +105 -0
  356. oci/fleet_apps_management/models/property_collection.py +3 -3
  357. oci/fleet_apps_management/models/property_summary.py +8 -8
  358. oci/fleet_apps_management/models/publish_runbook_details.py +72 -0
  359. oci/fleet_apps_management/models/request_resource_validation_details.py +5 -5
  360. oci/fleet_apps_management/models/request_target_discovery_details.py +5 -5
  361. oci/fleet_apps_management/models/resource_collection.py +72 -0
  362. oci/fleet_apps_management/models/resource_credential_entity_specific_details.py +82 -0
  363. oci/fleet_apps_management/models/resource_summary.py +347 -0
  364. oci/fleet_apps_management/models/resource_tag_check_details.py +3 -3
  365. oci/fleet_apps_management/models/resource_tag_enablement_info.py +3 -3
  366. oci/fleet_apps_management/models/rollback_workflow_details.py +119 -0
  367. oci/fleet_apps_management/models/rule.py +15 -7
  368. oci/fleet_apps_management/models/runbook.py +28 -9
  369. oci/fleet_apps_management/models/runbook_collection.py +1 -1
  370. oci/fleet_apps_management/models/runbook_summary.py +6 -4
  371. oci/fleet_apps_management/models/scheduler_definition.py +16 -16
  372. oci/fleet_apps_management/models/scheduler_job.py +24 -20
  373. oci/fleet_apps_management/models/scheduler_job_aggregation.py +99 -0
  374. oci/fleet_apps_management/models/scheduler_job_aggregation_collection.py +72 -0
  375. oci/fleet_apps_management/models/scheduler_job_collection.py +1 -1
  376. oci/fleet_apps_management/models/scheduler_job_dimension.py +72 -0
  377. oci/fleet_apps_management/models/scheduler_job_summary.py +20 -16
  378. oci/fleet_apps_management/models/script_based_execution_details.py +38 -5
  379. oci/fleet_apps_management/models/selection_criteria.py +6 -3
  380. oci/fleet_apps_management/models/set_default_runbook_details.py +72 -0
  381. oci/fleet_apps_management/models/step_based_user_action_details.py +183 -0
  382. oci/fleet_apps_management/models/step_collection.py +72 -0
  383. oci/fleet_apps_management/models/step_summary.py +378 -0
  384. oci/fleet_apps_management/models/target_credential_entity_specific_details.py +6 -6
  385. oci/fleet_apps_management/models/target_resource.py +1 -1
  386. oci/fleet_apps_management/models/task_notification_preferences.py +134 -0
  387. oci/fleet_apps_management/models/task_record.py +1 -1
  388. oci/fleet_apps_management/models/task_variable.py +2 -1
  389. oci/fleet_apps_management/models/time_based_pause_details.py +82 -0
  390. oci/fleet_apps_management/models/update_compliance_policy_rule_details.py +283 -0
  391. oci/fleet_apps_management/models/update_fleet_details.py +4 -2
  392. oci/fleet_apps_management/models/update_fleet_property_details.py +3 -3
  393. oci/fleet_apps_management/models/update_fleet_resource_details.py +1 -1
  394. oci/fleet_apps_management/models/update_maintenance_window_details.py +18 -10
  395. oci/fleet_apps_management/models/update_onboarding_details.py +103 -0
  396. oci/fleet_apps_management/models/update_patch_details.py +369 -0
  397. oci/fleet_apps_management/models/update_platform_configuration_details.py +138 -0
  398. oci/fleet_apps_management/models/update_property_details.py +6 -6
  399. oci/fleet_apps_management/models/update_runbook_details.py +410 -0
  400. oci/fleet_apps_management/models/update_scheduler_job_details.py +3 -3
  401. oci/fleet_apps_management/models/update_task_record_details.py +204 -0
  402. oci/fleet_apps_management/models/user_action_based_pause_details.py +51 -0
  403. oci/fleet_apps_management/models/user_action_details.py +157 -0
  404. oci/fleet_apps_management/models/variable.py +103 -0
  405. oci/fleet_apps_management/models/work_request.py +67 -3
  406. oci/fleet_apps_management/models/work_request_summary.py +67 -3
  407. oci/fleet_apps_management/models/workflow_group.py +2 -2
  408. oci/fleet_apps_management/models/workflow_group_component.py +4 -4
  409. oci/fleet_software_update/fleet_software_update_client.py +46 -46
  410. oci/functions/functions_invoke_client.py +1 -1
  411. oci/functions/functions_management_client.py +16 -16
  412. oci/fusion_apps/fusion_applications_client.py +41 -41
  413. oci/generative_ai/generative_ai_client.py +22 -22
  414. oci/generative_ai_agent/generative_ai_agent_client.py +33 -33
  415. oci/generative_ai_agent_runtime/generative_ai_agent_runtime_client.py +5 -5
  416. oci/generative_ai_inference/generative_ai_inference_client.py +4 -4
  417. oci/generic_artifacts_content/generic_artifacts_content_client.py +3 -3
  418. oci/globally_distributed_database/sharded_database_service_client.py +30 -30
  419. oci/golden_gate/golden_gate_client.py +69 -69
  420. oci/governance_rules_control_plane/governance_rule_client.py +15 -15
  421. oci/governance_rules_control_plane/work_request_client.py +5 -5
  422. oci/healthchecks/health_checks_client.py +17 -17
  423. oci/identity/identity_client.py +145 -145
  424. oci/identity_data_plane/dataplane_client.py +2 -2
  425. oci/identity_domains/identity_domains_client.py +307 -307
  426. oci/identity_domains/models/auth_token.py +51 -0
  427. oci/identity_domains/models/customer_secret_key.py +45 -0
  428. oci/identity_domains/models/o_auth2_client_credential.py +49 -0
  429. oci/identity_domains/models/smtp_credential.py +47 -0
  430. oci/integration/integration_instance_client.py +19 -19
  431. oci/jms/java_management_service_client.py +75 -75
  432. oci/jms_java_downloads/java_download_client.py +25 -25
  433. oci/key_management/ekm_client.py +5 -5
  434. oci/key_management/kms_crypto_client.py +6 -6
  435. oci/key_management/kms_hsm_cluster_client.py +12 -12
  436. oci/key_management/kms_management_client.py +21 -21
  437. oci/key_management/kms_vault_client.py +14 -14
  438. oci/license_manager/license_manager_client.py +18 -18
  439. oci/limits/limits_client.py +4 -4
  440. oci/limits/quotas_client.py +7 -7
  441. oci/load_balancer/load_balancer_client.py +61 -61
  442. oci/lockbox/lockbox_client.py +24 -24
  443. oci/log_analytics/log_analytics_client.py +193 -193
  444. oci/logging/logging_management_client.py +30 -30
  445. oci/loggingingestion/logging_client.py +1 -1
  446. oci/loggingsearch/log_search_client.py +1 -1
  447. oci/management_agent/management_agent_client.py +28 -28
  448. oci/management_dashboard/dashx_apis_client.py +14 -14
  449. oci/marketplace/account_client.py +2 -2
  450. oci/marketplace/marketplace_client.py +30 -30
  451. oci/marketplace_private_offer/attachment_client.py +5 -5
  452. oci/marketplace_private_offer/offer_client.py +6 -6
  453. oci/marketplace_publisher/attachment_client.py +5 -5
  454. oci/marketplace_publisher/marketplace_publisher_client.py +71 -71
  455. oci/marketplace_publisher/offer_client.py +6 -6
  456. oci/media_services/media_services_client.py +60 -60
  457. oci/media_services/media_stream_client.py +2 -2
  458. oci/monitoring/monitoring_client.py +18 -18
  459. oci/mysql/channels_client.py +7 -7
  460. oci/mysql/db_backups_client.py +7 -7
  461. oci/mysql/db_system_client.py +17 -17
  462. oci/mysql/mysqlaas_client.py +7 -7
  463. oci/mysql/replicas_client.py +5 -5
  464. oci/mysql/work_requests_client.py +4 -4
  465. oci/network_firewall/network_firewall_client.py +86 -86
  466. oci/network_load_balancer/network_load_balancer_client.py +34 -34
  467. oci/nosql/nosql_client.py +24 -24
  468. oci/object_storage/object_storage_client.py +55 -55
  469. oci/oce/oce_instance_client.py +10 -10
  470. oci/oci_control_center/occ_metrics_client.py +3 -3
  471. oci/ocvp/cluster_client.py +5 -5
  472. oci/ocvp/esxi_host_client.py +8 -8
  473. oci/ocvp/sddc_client.py +14 -14
  474. oci/ocvp/work_request_client.py +4 -4
  475. oci/oda/management_client.py +59 -59
  476. oci/oda/oda_client.py +17 -17
  477. oci/oda/odapackage_client.py +7 -7
  478. oci/onesubscription/billing_schedule_client.py +1 -1
  479. oci/onesubscription/commitment_client.py +2 -2
  480. oci/onesubscription/computed_usage_client.py +3 -3
  481. oci/onesubscription/invoice_summary_client.py +2 -2
  482. oci/onesubscription/organization_subscription_client.py +1 -1
  483. oci/onesubscription/ratecard_client.py +1 -1
  484. oci/onesubscription/subscribed_service_client.py +2 -2
  485. oci/onesubscription/subscription_client.py +1 -1
  486. oci/ons/notification_control_plane_client.py +6 -6
  487. oci/ons/notification_data_plane_client.py +10 -10
  488. oci/opa/opa_instance_client.py +13 -13
  489. oci/opensearch/opensearch_cluster_backup_client.py +4 -4
  490. oci/opensearch/opensearch_cluster_client.py +14 -14
  491. oci/operator_access_control/access_requests_client.py +10 -10
  492. oci/operator_access_control/operator_actions_client.py +2 -2
  493. oci/operator_access_control/operator_control_assignment_client.py +8 -8
  494. oci/operator_access_control/operator_control_client.py +6 -6
  495. oci/opsi/models/__init__.py +8 -0
  496. oci/opsi/models/host_configuration_metric_group.py +11 -3
  497. oci/opsi/models/host_containers.py +65 -3
  498. oci/opsi/models/host_cpu_hardware_configuration.py +1 -1
  499. oci/opsi/models/host_cpu_statistics.py +1 -1
  500. oci/opsi/models/host_cpu_usage.py +1 -1
  501. oci/opsi/models/host_entities.py +1 -1
  502. oci/opsi/models/host_filesystem_configuration.py +1 -1
  503. oci/opsi/models/host_filesystem_usage.py +1 -1
  504. oci/opsi/models/host_gpu_configuration.py +1 -1
  505. oci/opsi/models/host_gpu_processes.py +1 -1
  506. oci/opsi/models/host_gpu_usage.py +1 -1
  507. oci/opsi/models/host_hardware_configuration.py +1 -1
  508. oci/opsi/models/host_io_statistics.py +160 -0
  509. oci/opsi/models/host_io_usage.py +1 -1
  510. oci/opsi/models/host_memory_configuration.py +1 -1
  511. oci/opsi/models/host_memory_statistics.py +1 -1
  512. oci/opsi/models/host_memory_usage.py +1 -1
  513. oci/opsi/models/host_network_activity_summary.py +1 -1
  514. oci/opsi/models/host_network_configuration.py +1 -1
  515. oci/opsi/models/host_network_statistics.py +1 -1
  516. oci/opsi/models/host_performance_metric_group.py +3 -11
  517. oci/opsi/models/host_product.py +1 -1
  518. oci/opsi/models/host_resource_allocation.py +1 -1
  519. oci/opsi/models/host_resource_statistics.py +11 -3
  520. oci/opsi/models/host_storage_statistics.py +1 -1
  521. oci/opsi/models/host_top_processes.py +1 -1
  522. oci/opsi/models/io_usage_trend.py +227 -0
  523. oci/opsi/models/io_usage_trend_aggregation.py +103 -0
  524. oci/opsi/models/summarize_host_insight_host_recommendation_aggregation.py +7 -3
  525. oci/opsi/models/summarize_host_insight_io_usage_trend_aggregation_collection.py +165 -0
  526. oci/opsi/models/summarize_host_insight_resource_capacity_trend_aggregation_collection.py +7 -3
  527. oci/opsi/models/summarize_host_insight_resource_forecast_trend_aggregation.py +7 -3
  528. oci/opsi/models/summarize_host_insight_resource_statistics_aggregation_collection.py +7 -3
  529. oci/opsi/models/summarize_host_insight_resource_usage_aggregation.py +7 -3
  530. oci/opsi/models/summarize_host_insight_resource_usage_trend_aggregation_collection.py +7 -3
  531. oci/opsi/models/summarize_host_insight_resource_utilization_insight_aggregation.py +7 -3
  532. oci/opsi/operations_insights_client.py +362 -179
  533. oci/optimizer/optimizer_client.py +26 -26
  534. oci/os_management/event_client.py +8 -8
  535. oci/os_management/os_management_client.py +69 -69
  536. oci/os_management_hub/event_client.py +8 -8
  537. oci/os_management_hub/lifecycle_environment_client.py +12 -12
  538. oci/os_management_hub/managed_instance_client.py +31 -31
  539. oci/os_management_hub/managed_instance_group_client.py +25 -25
  540. oci/os_management_hub/management_station_client.py +10 -10
  541. oci/os_management_hub/onboarding_client.py +6 -6
  542. oci/os_management_hub/reporting_managed_instance_client.py +3 -3
  543. oci/os_management_hub/scheduled_job_client.py +7 -7
  544. oci/os_management_hub/software_source_client.py +27 -27
  545. oci/os_management_hub/work_request_client.py +4 -4
  546. oci/osp_gateway/address_rule_service_client.py +1 -1
  547. oci/osp_gateway/address_service_client.py +2 -2
  548. oci/osp_gateway/invoice_service_client.py +5 -5
  549. oci/osp_gateway/subscription_service_client.py +5 -5
  550. oci/osub_billing_schedule/billing_schedule_client.py +1 -1
  551. oci/osub_organization_subscription/organization_subscription_client.py +1 -1
  552. oci/osub_subscription/commitment_client.py +2 -2
  553. oci/osub_subscription/ratecard_client.py +1 -1
  554. oci/osub_subscription/subscription_client.py +1 -1
  555. oci/osub_usage/computed_usage_client.py +3 -3
  556. oci/psql/postgresql_client.py +33 -33
  557. oci/queue/queue_admin_client.py +11 -11
  558. oci/queue/queue_client.py +8 -8
  559. oci/recovery/database_recovery_client.py +26 -26
  560. oci/redis/redis_cluster_client.py +12 -12
  561. oci/resource_manager/resource_manager_client.py +52 -52
  562. oci/resource_scheduler/schedule_client.py +13 -13
  563. oci/resource_search/resource_search_client.py +3 -3
  564. oci/rover/rover_bundle_client.py +8 -8
  565. oci/rover/rover_cluster_client.py +8 -8
  566. oci/rover/rover_entitlement_client.py +6 -6
  567. oci/rover/rover_node_client.py +15 -15
  568. oci/rover/shape_client.py +1 -1
  569. oci/rover/work_requests_client.py +5 -5
  570. oci/sch/connector_plugins_client.py +2 -2
  571. oci/sch/service_connector_client.py +12 -12
  572. oci/secrets/secrets_client.py +3 -3
  573. oci/security_attribute/security_attribute_client.py +18 -18
  574. oci/service_catalog/service_catalog_client.py +26 -26
  575. oci/service_manager_proxy/service_manager_proxy_client.py +2 -2
  576. oci/service_mesh/service_mesh_client.py +48 -48
  577. oci/stack_monitoring/stack_monitoring_client.py +71 -71
  578. oci/streaming/stream_admin_client.py +18 -18
  579. oci/streaming/stream_client.py +8 -8
  580. oci/tenant_manager_control_plane/domain_client.py +5 -5
  581. oci/tenant_manager_control_plane/domain_governance_client.py +5 -5
  582. oci/tenant_manager_control_plane/governance_client.py +2 -2
  583. oci/tenant_manager_control_plane/link_client.py +3 -3
  584. oci/tenant_manager_control_plane/orders_client.py +2 -2
  585. oci/tenant_manager_control_plane/organization_client.py +10 -10
  586. oci/tenant_manager_control_plane/recipient_invitation_client.py +5 -5
  587. oci/tenant_manager_control_plane/sender_invitation_client.py +5 -5
  588. oci/tenant_manager_control_plane/subscription_client.py +11 -11
  589. oci/tenant_manager_control_plane/work_request_client.py +4 -4
  590. oci/threat_intelligence/threatintel_client.py +5 -5
  591. oci/usage/resources_client.py +2 -2
  592. oci/usage/rewards_client.py +6 -6
  593. oci/usage/usagelimits_client.py +1 -1
  594. oci/usage_api/usageapi_client.py +33 -33
  595. oci/vault/vaults_client.py +13 -13
  596. oci/vbs_inst/vbs_instance_client.py +10 -10
  597. oci/version.py +1 -1
  598. oci/visual_builder/vb_instance_client.py +13 -13
  599. oci/vn_monitoring/vn_monitoring_client.py +12 -12
  600. oci/vulnerability_scanning/vulnerability_scanning_client.py +58 -58
  601. oci/waa/waa_client.py +13 -13
  602. oci/waa/work_request_client.py +4 -4
  603. oci/waas/redirect_client.py +6 -6
  604. oci/waas/waas_client.py +66 -66
  605. oci/waf/waf_client.py +24 -24
  606. oci/work_requests/work_request_client.py +4 -4
  607. oci/zpr/zpr_client.py +15 -15
  608. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/METADATA +1 -1
  609. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/RECORD +613 -493
  610. oci/_vendor/jwt/__main__.py +0 -173
  611. oci/_vendor/jwt/compat.py +0 -73
  612. oci/_vendor/jwt/contrib/__init__.py +0 -0
  613. oci/_vendor/jwt/contrib/algorithms/__init__.py +0 -0
  614. oci/_vendor/jwt/contrib/algorithms/py_ecdsa.py +0 -60
  615. oci/_vendor/jwt/contrib/algorithms/pycrypto.py +0 -46
  616. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/LICENSE.txt +0 -0
  617. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  618. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/WHEEL +0 -0
  619. {oci-2.136.0.dist-info → oci-2.137.0.dist-info}/top_level.txt +0 -0
@@ -22,8 +22,7 @@ missing = Sentinel("Missing")
22
22
 
23
23
  class FleetAppsManagementRunbooksClient(object):
24
24
  """
25
- Fleet Application Management Service API. Use this API to for all FAMS related activities.
26
- To manage fleets,view complaince report for the Fleet,scedule patches and other lifecycle activities
25
+ Fleet Application Management provides a centralized platform to help you automate resource management tasks, validate patch compliance, and enhance operational efficiency across an enterprise.
27
26
  """
28
27
 
29
28
  def __init__(self, config, **kwargs):
@@ -117,13 +116,20 @@ class FleetAppsManagementRunbooksClient(object):
117
116
  self.retry_strategy = kwargs.get('retry_strategy')
118
117
  self.circuit_breaker_callback = kwargs.get('circuit_breaker_callback')
119
118
 
120
- def get_runbook(self, runbook_id, **kwargs):
119
+ def create_runbook(self, create_runbook_details, **kwargs):
121
120
  """
122
- Gets a Runbook by identifier
121
+ Creates a new Runbook.
123
122
 
124
123
 
125
- :param str runbook_id: (required)
126
- Unique Runbook identifier
124
+ :param oci.fleet_apps_management.models.CreateRunbookDetails create_runbook_details: (required)
125
+ Details for the new Runbook.
126
+
127
+ :param str opc_retry_token: (optional)
128
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
129
+ server error without risk of executing that same action again. Retry tokens expire after 24
130
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
131
+ has been deleted and purged from the system, then a retry of the original creation request
132
+ might be rejected.
127
133
 
128
134
  :param str opc_request_id: (optional)
129
135
  The client request ID for tracing.
@@ -144,39 +150,31 @@ class FleetAppsManagementRunbooksClient(object):
144
150
  :rtype: :class:`~oci.response.Response`
145
151
 
146
152
  :example:
147
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/get_runbook.py.html>`__ to see an example of how to use get_runbook API.
153
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_runbook.py.html>`__ to see an example of how to use create_runbook API.
148
154
  """
149
155
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
150
- required_arguments = ['runbookId']
151
- resource_path = "/runbooks/{runbookId}"
152
- method = "GET"
153
- operation_name = "get_runbook"
154
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/GetRunbook"
156
+ required_arguments = []
157
+ resource_path = "/runbooks"
158
+ method = "POST"
159
+ operation_name = "create_runbook"
160
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/CreateRunbook"
155
161
 
156
162
  # Don't accept unknown kwargs
157
163
  expected_kwargs = [
158
164
  "allow_control_chars",
159
165
  "retry_strategy",
166
+ "opc_retry_token",
160
167
  "opc_request_id"
161
168
  ]
162
169
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
163
170
  if extra_kwargs:
164
171
  raise ValueError(
165
- f"get_runbook got unknown kwargs: {extra_kwargs!r}")
166
-
167
- path_params = {
168
- "runbookId": runbook_id
169
- }
170
-
171
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
172
-
173
- for (k, v) in six.iteritems(path_params):
174
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
175
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
172
+ f"create_runbook got unknown kwargs: {extra_kwargs!r}")
176
173
 
177
174
  header_params = {
178
175
  "accept": "application/json",
179
176
  "content-type": "application/json",
177
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
180
178
  "opc-request-id": kwargs.get("opc_request_id", missing)
181
179
  }
182
180
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -190,14 +188,15 @@ class FleetAppsManagementRunbooksClient(object):
190
188
 
191
189
  if retry_strategy:
192
190
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
191
+ self.base_client.add_opc_retry_token_if_needed(header_params)
193
192
  self.base_client.add_opc_client_retries_header(header_params)
194
193
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
195
194
  return retry_strategy.make_retrying_call(
196
195
  self.base_client.call_api,
197
196
  resource_path=resource_path,
198
197
  method=method,
199
- path_params=path_params,
200
198
  header_params=header_params,
199
+ body=create_runbook_details,
201
200
  response_type="Runbook",
202
201
  allow_control_chars=kwargs.get('allow_control_chars'),
203
202
  operation_name=operation_name,
@@ -207,21 +206,28 @@ class FleetAppsManagementRunbooksClient(object):
207
206
  return self.base_client.call_api(
208
207
  resource_path=resource_path,
209
208
  method=method,
210
- path_params=path_params,
211
209
  header_params=header_params,
210
+ body=create_runbook_details,
212
211
  response_type="Runbook",
213
212
  allow_control_chars=kwargs.get('allow_control_chars'),
214
213
  operation_name=operation_name,
215
214
  api_reference_link=api_reference_link,
216
215
  required_arguments=required_arguments)
217
216
 
218
- def get_task_record(self, task_record_id, **kwargs):
217
+ def create_task_record(self, create_task_record_details, **kwargs):
219
218
  """
220
- Gets a TaskRecord by identifier
219
+ Creates a new Task.
221
220
 
222
221
 
223
- :param str task_record_id: (required)
224
- unique TaskDetail identifier
222
+ :param oci.fleet_apps_management.models.CreateTaskRecordDetails create_task_record_details: (required)
223
+ Details for the new TaskRecord.
224
+
225
+ :param str opc_retry_token: (optional)
226
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
227
+ server error without risk of executing that same action again. Retry tokens expire after 24
228
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
229
+ has been deleted and purged from the system, then a retry of the original creation request
230
+ might be rejected.
225
231
 
226
232
  :param str opc_request_id: (optional)
227
233
  The client request ID for tracing.
@@ -242,39 +248,31 @@ class FleetAppsManagementRunbooksClient(object):
242
248
  :rtype: :class:`~oci.response.Response`
243
249
 
244
250
  :example:
245
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/get_task_record.py.html>`__ to see an example of how to use get_task_record API.
251
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_task_record.py.html>`__ to see an example of how to use create_task_record API.
246
252
  """
247
253
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
248
- required_arguments = ['taskRecordId']
249
- resource_path = "/taskRecords/{taskRecordId}"
250
- method = "GET"
251
- operation_name = "get_task_record"
252
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/GetTaskRecord"
254
+ required_arguments = []
255
+ resource_path = "/taskRecords"
256
+ method = "POST"
257
+ operation_name = "create_task_record"
258
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/CreateTaskRecord"
253
259
 
254
260
  # Don't accept unknown kwargs
255
261
  expected_kwargs = [
256
262
  "allow_control_chars",
257
263
  "retry_strategy",
264
+ "opc_retry_token",
258
265
  "opc_request_id"
259
266
  ]
260
267
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
261
268
  if extra_kwargs:
262
269
  raise ValueError(
263
- f"get_task_record got unknown kwargs: {extra_kwargs!r}")
264
-
265
- path_params = {
266
- "taskRecordId": task_record_id
267
- }
268
-
269
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
270
-
271
- for (k, v) in six.iteritems(path_params):
272
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
273
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
270
+ f"create_task_record got unknown kwargs: {extra_kwargs!r}")
274
271
 
275
272
  header_params = {
276
273
  "accept": "application/json",
277
274
  "content-type": "application/json",
275
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
278
276
  "opc-request-id": kwargs.get("opc_request_id", missing)
279
277
  }
280
278
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -288,14 +286,15 @@ class FleetAppsManagementRunbooksClient(object):
288
286
 
289
287
  if retry_strategy:
290
288
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
289
+ self.base_client.add_opc_retry_token_if_needed(header_params)
291
290
  self.base_client.add_opc_client_retries_header(header_params)
292
291
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
293
292
  return retry_strategy.make_retrying_call(
294
293
  self.base_client.call_api,
295
294
  resource_path=resource_path,
296
295
  method=method,
297
- path_params=path_params,
298
296
  header_params=header_params,
297
+ body=create_task_record_details,
299
298
  response_type="TaskRecord",
300
299
  allow_control_chars=kwargs.get('allow_control_chars'),
301
300
  operation_name=operation_name,
@@ -305,64 +304,28 @@ class FleetAppsManagementRunbooksClient(object):
305
304
  return self.base_client.call_api(
306
305
  resource_path=resource_path,
307
306
  method=method,
308
- path_params=path_params,
309
307
  header_params=header_params,
308
+ body=create_task_record_details,
310
309
  response_type="TaskRecord",
311
310
  allow_control_chars=kwargs.get('allow_control_chars'),
312
311
  operation_name=operation_name,
313
312
  api_reference_link=api_reference_link,
314
313
  required_arguments=required_arguments)
315
314
 
316
- def list_runbooks(self, **kwargs):
315
+ def delete_runbook(self, runbook_id, **kwargs):
317
316
  """
318
- Returns a list of Runbooks.
319
-
320
-
321
- :param str compartment_id: (optional)
322
- The ID of the compartment in which to list resources.
323
-
324
- :param str lifecycle_state: (optional)
325
- A filter to return only resources their lifecycleState matches the given lifecycleState.
326
-
327
- Allowed values are: "ACTIVE", "DELETED", "FAILED"
328
-
329
- :param str display_name: (optional)
330
- A filter to return only resources that match the entire display name given.
331
-
332
- :param str id: (optional)
333
- unique Runbook identifier
334
-
335
- :param str type: (optional)
336
- The ID of the runbook type.
337
-
338
- Allowed values are: "USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"
339
-
340
- :param str runbook_relevance: (optional)
341
- The runbook relevance of product or full-stack.
342
-
343
- Allowed values are: "PRODUCT_GROUP", "PRODUCT"
344
-
345
- :param str platform: (optional)
346
- The ID of the runbook platform.
347
-
348
- :param str operation: (optional)
349
- The runbook lifecycle.
350
-
351
- :param int limit: (optional)
352
- The maximum number of items to return.
353
-
354
- :param str page: (optional)
355
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
356
-
357
- :param str sort_order: (optional)
358
- The sort order to use, either 'ASC' or 'DESC'.
317
+ Deletes a Runbook resource by identifier
359
318
 
360
- Allowed values are: "ASC", "DESC"
361
319
 
362
- :param str sort_by: (optional)
363
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
320
+ :param str runbook_id: (required)
321
+ Unique Runbook identifier
364
322
 
365
- Allowed values are: "timeCreated", "displayName"
323
+ :param str if_match: (optional)
324
+ For optimistic concurrency control. In the PUT or DELETE call
325
+ for a resource, set the `if-match` parameter to the value of the
326
+ etag from a previous GET or POST response for that resource.
327
+ The resource will be updated or deleted only if the etag you
328
+ provide matches the resource's current etag value.
366
329
 
367
330
  :param str opc_request_id: (optional)
368
331
  The client request ID for tracing.
@@ -379,96 +342,45 @@ class FleetAppsManagementRunbooksClient(object):
379
342
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
380
343
  By default, the response will not allow control characters in strings
381
344
 
382
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.RunbookCollection`
345
+ :return: A :class:`~oci.response.Response` object with data of type None
383
346
  :rtype: :class:`~oci.response.Response`
384
347
 
385
348
  :example:
386
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/list_runbooks.py.html>`__ to see an example of how to use list_runbooks API.
349
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_runbook.py.html>`__ to see an example of how to use delete_runbook API.
387
350
  """
388
351
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
389
- required_arguments = []
390
- resource_path = "/runbooks"
391
- method = "GET"
392
- operation_name = "list_runbooks"
393
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/RunbookCollection/ListRunbooks"
352
+ required_arguments = ['runbookId']
353
+ resource_path = "/runbooks/{runbookId}"
354
+ method = "DELETE"
355
+ operation_name = "delete_runbook"
356
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/DeleteRunbook"
394
357
 
395
358
  # Don't accept unknown kwargs
396
359
  expected_kwargs = [
397
360
  "allow_control_chars",
398
361
  "retry_strategy",
399
- "compartment_id",
400
- "lifecycle_state",
401
- "display_name",
402
- "id",
403
- "type",
404
- "runbook_relevance",
405
- "platform",
406
- "operation",
407
- "limit",
408
- "page",
409
- "sort_order",
410
- "sort_by",
362
+ "if_match",
411
363
  "opc_request_id"
412
364
  ]
413
365
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
414
366
  if extra_kwargs:
415
367
  raise ValueError(
416
- f"list_runbooks got unknown kwargs: {extra_kwargs!r}")
417
-
418
- if 'lifecycle_state' in kwargs:
419
- lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
420
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
421
- raise ValueError(
422
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
423
- )
424
-
425
- if 'type' in kwargs:
426
- type_allowed_values = ["USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"]
427
- if kwargs['type'] not in type_allowed_values:
428
- raise ValueError(
429
- f"Invalid value for `type`, must be one of { type_allowed_values }"
430
- )
431
-
432
- if 'runbook_relevance' in kwargs:
433
- runbook_relevance_allowed_values = ["PRODUCT_GROUP", "PRODUCT"]
434
- if kwargs['runbook_relevance'] not in runbook_relevance_allowed_values:
435
- raise ValueError(
436
- f"Invalid value for `runbook_relevance`, must be one of { runbook_relevance_allowed_values }"
437
- )
368
+ f"delete_runbook got unknown kwargs: {extra_kwargs!r}")
438
369
 
439
- if 'sort_order' in kwargs:
440
- sort_order_allowed_values = ["ASC", "DESC"]
441
- if kwargs['sort_order'] not in sort_order_allowed_values:
442
- raise ValueError(
443
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
444
- )
370
+ path_params = {
371
+ "runbookId": runbook_id
372
+ }
445
373
 
446
- if 'sort_by' in kwargs:
447
- sort_by_allowed_values = ["timeCreated", "displayName"]
448
- if kwargs['sort_by'] not in sort_by_allowed_values:
449
- raise ValueError(
450
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
451
- )
374
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
452
375
 
453
- query_params = {
454
- "compartmentId": kwargs.get("compartment_id", missing),
455
- "lifecycleState": kwargs.get("lifecycle_state", missing),
456
- "displayName": kwargs.get("display_name", missing),
457
- "id": kwargs.get("id", missing),
458
- "type": kwargs.get("type", missing),
459
- "runbookRelevance": kwargs.get("runbook_relevance", missing),
460
- "platform": kwargs.get("platform", missing),
461
- "operation": kwargs.get("operation", missing),
462
- "limit": kwargs.get("limit", missing),
463
- "page": kwargs.get("page", missing),
464
- "sortOrder": kwargs.get("sort_order", missing),
465
- "sortBy": kwargs.get("sort_by", missing)
466
- }
467
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
376
+ for (k, v) in six.iteritems(path_params):
377
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
378
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
468
379
 
469
380
  header_params = {
470
381
  "accept": "application/json",
471
382
  "content-type": "application/json",
383
+ "if-match": kwargs.get("if_match", missing),
472
384
  "opc-request-id": kwargs.get("opc_request_id", missing)
473
385
  }
474
386
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -488,9 +400,8 @@ class FleetAppsManagementRunbooksClient(object):
488
400
  self.base_client.call_api,
489
401
  resource_path=resource_path,
490
402
  method=method,
491
- query_params=query_params,
403
+ path_params=path_params,
492
404
  header_params=header_params,
493
- response_type="RunbookCollection",
494
405
  allow_control_chars=kwargs.get('allow_control_chars'),
495
406
  operation_name=operation_name,
496
407
  api_reference_link=api_reference_link,
@@ -499,56 +410,27 @@ class FleetAppsManagementRunbooksClient(object):
499
410
  return self.base_client.call_api(
500
411
  resource_path=resource_path,
501
412
  method=method,
502
- query_params=query_params,
413
+ path_params=path_params,
503
414
  header_params=header_params,
504
- response_type="RunbookCollection",
505
415
  allow_control_chars=kwargs.get('allow_control_chars'),
506
416
  operation_name=operation_name,
507
417
  api_reference_link=api_reference_link,
508
418
  required_arguments=required_arguments)
509
419
 
510
- def list_task_records(self, **kwargs):
420
+ def delete_task_record(self, task_record_id, **kwargs):
511
421
  """
512
- Returns a list of TaskRecords.
513
-
514
-
515
- :param str compartment_id: (optional)
516
- The ID of the compartment in which to list resources.
517
-
518
- :param str platform: (optional)
519
- The platform for the Task.
520
-
521
- :param str type: (optional)
522
- The type of the Task.
523
-
524
- Allowed values are: "USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"
422
+ Deletes a Task Record resource by identifier
525
423
 
526
- :param str display_name: (optional)
527
- A filter to return only resources that match the entire display name given.
528
424
 
529
- :param str id: (optional)
425
+ :param str task_record_id: (required)
530
426
  unique TaskDetail identifier
531
427
 
532
- :param int limit: (optional)
533
- The maximum number of items to return.
534
-
535
- :param str page: (optional)
536
- A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
537
-
538
- :param str lifecycle_state: (optional)
539
- The current state of the Task.
540
-
541
- Allowed values are: "ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"
542
-
543
- :param str sort_by: (optional)
544
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
545
-
546
- Allowed values are: "timeCreated", "displayName"
547
-
548
- :param str sort_order: (optional)
549
- The sort order to use, either 'ASC' or 'DESC'.
550
-
551
- Allowed values are: "ASC", "DESC"
428
+ :param str if_match: (optional)
429
+ For optimistic concurrency control. In the PUT or DELETE call
430
+ for a resource, set the `if-match` parameter to the value of the
431
+ etag from a previous GET or POST response for that resource.
432
+ The resource will be updated or deleted only if the etag you
433
+ provide matches the resource's current etag value.
552
434
 
553
435
  :param str opc_request_id: (optional)
554
436
  The client request ID for tracing.
@@ -565,85 +447,930 @@ class FleetAppsManagementRunbooksClient(object):
565
447
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
566
448
  By default, the response will not allow control characters in strings
567
449
 
568
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.TaskRecordCollection`
450
+ :return: A :class:`~oci.response.Response` object with data of type None
569
451
  :rtype: :class:`~oci.response.Response`
570
452
 
571
453
  :example:
572
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/list_task_records.py.html>`__ to see an example of how to use list_task_records API.
454
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_task_record.py.html>`__ to see an example of how to use delete_task_record API.
573
455
  """
574
456
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
575
- required_arguments = []
576
- resource_path = "/taskRecords"
577
- method = "GET"
578
- operation_name = "list_task_records"
579
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecordCollection/ListTaskRecords"
457
+ required_arguments = ['taskRecordId']
458
+ resource_path = "/taskRecords/{taskRecordId}"
459
+ method = "DELETE"
460
+ operation_name = "delete_task_record"
461
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/DeleteTaskRecord"
580
462
 
581
463
  # Don't accept unknown kwargs
582
464
  expected_kwargs = [
583
465
  "allow_control_chars",
584
466
  "retry_strategy",
585
- "compartment_id",
586
- "platform",
587
- "type",
588
- "display_name",
589
- "id",
590
- "limit",
591
- "page",
592
- "lifecycle_state",
593
- "sort_by",
594
- "sort_order",
467
+ "if_match",
595
468
  "opc_request_id"
596
469
  ]
597
470
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
598
471
  if extra_kwargs:
599
472
  raise ValueError(
600
- f"list_task_records got unknown kwargs: {extra_kwargs!r}")
473
+ f"delete_task_record got unknown kwargs: {extra_kwargs!r}")
601
474
 
602
- if 'type' in kwargs:
603
- type_allowed_values = ["USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"]
604
- if kwargs['type'] not in type_allowed_values:
605
- raise ValueError(
606
- f"Invalid value for `type`, must be one of { type_allowed_values }"
607
- )
475
+ path_params = {
476
+ "taskRecordId": task_record_id
477
+ }
608
478
 
609
- if 'lifecycle_state' in kwargs:
610
- lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"]
611
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
612
- raise ValueError(
613
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
614
- )
479
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
615
480
 
616
- if 'sort_by' in kwargs:
617
- sort_by_allowed_values = ["timeCreated", "displayName"]
618
- if kwargs['sort_by'] not in sort_by_allowed_values:
619
- raise ValueError(
620
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
621
- )
481
+ for (k, v) in six.iteritems(path_params):
482
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
483
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
622
484
 
623
- if 'sort_order' in kwargs:
624
- sort_order_allowed_values = ["ASC", "DESC"]
625
- if kwargs['sort_order'] not in sort_order_allowed_values:
626
- raise ValueError(
627
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
485
+ header_params = {
486
+ "accept": "application/json",
487
+ "content-type": "application/json",
488
+ "if-match": kwargs.get("if_match", missing),
489
+ "opc-request-id": kwargs.get("opc_request_id", missing)
490
+ }
491
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
492
+
493
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
494
+ operation_retry_strategy=kwargs.get('retry_strategy'),
495
+ client_retry_strategy=self.retry_strategy
496
+ )
497
+ if retry_strategy is None:
498
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
499
+
500
+ if retry_strategy:
501
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
502
+ self.base_client.add_opc_client_retries_header(header_params)
503
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
504
+ return retry_strategy.make_retrying_call(
505
+ self.base_client.call_api,
506
+ resource_path=resource_path,
507
+ method=method,
508
+ path_params=path_params,
509
+ header_params=header_params,
510
+ allow_control_chars=kwargs.get('allow_control_chars'),
511
+ operation_name=operation_name,
512
+ api_reference_link=api_reference_link,
513
+ required_arguments=required_arguments)
514
+ else:
515
+ return self.base_client.call_api(
516
+ resource_path=resource_path,
517
+ method=method,
518
+ path_params=path_params,
519
+ header_params=header_params,
520
+ allow_control_chars=kwargs.get('allow_control_chars'),
521
+ operation_name=operation_name,
522
+ api_reference_link=api_reference_link,
523
+ required_arguments=required_arguments)
524
+
525
+ def get_runbook(self, runbook_id, **kwargs):
526
+ """
527
+ Get the details of a runbook in Fleet Application Management.
528
+
529
+
530
+ :param str runbook_id: (required)
531
+ Unique Runbook identifier
532
+
533
+ :param str opc_request_id: (optional)
534
+ The client request ID for tracing.
535
+
536
+ :param obj retry_strategy: (optional)
537
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
538
+
539
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
540
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
541
+
542
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
543
+
544
+ :param bool allow_control_chars: (optional)
545
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
546
+ By default, the response will not allow control characters in strings
547
+
548
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Runbook`
549
+ :rtype: :class:`~oci.response.Response`
550
+
551
+ :example:
552
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_runbook.py.html>`__ to see an example of how to use get_runbook API.
553
+ """
554
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
555
+ required_arguments = ['runbookId']
556
+ resource_path = "/runbooks/{runbookId}"
557
+ method = "GET"
558
+ operation_name = "get_runbook"
559
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/GetRunbook"
560
+
561
+ # Don't accept unknown kwargs
562
+ expected_kwargs = [
563
+ "allow_control_chars",
564
+ "retry_strategy",
565
+ "opc_request_id"
566
+ ]
567
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
568
+ if extra_kwargs:
569
+ raise ValueError(
570
+ f"get_runbook got unknown kwargs: {extra_kwargs!r}")
571
+
572
+ path_params = {
573
+ "runbookId": runbook_id
574
+ }
575
+
576
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
577
+
578
+ for (k, v) in six.iteritems(path_params):
579
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
580
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
581
+
582
+ header_params = {
583
+ "accept": "application/json",
584
+ "content-type": "application/json",
585
+ "opc-request-id": kwargs.get("opc_request_id", missing)
586
+ }
587
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
588
+
589
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
590
+ operation_retry_strategy=kwargs.get('retry_strategy'),
591
+ client_retry_strategy=self.retry_strategy
592
+ )
593
+ if retry_strategy is None:
594
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
595
+
596
+ if retry_strategy:
597
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
598
+ self.base_client.add_opc_client_retries_header(header_params)
599
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
600
+ return retry_strategy.make_retrying_call(
601
+ self.base_client.call_api,
602
+ resource_path=resource_path,
603
+ method=method,
604
+ path_params=path_params,
605
+ header_params=header_params,
606
+ response_type="Runbook",
607
+ allow_control_chars=kwargs.get('allow_control_chars'),
608
+ operation_name=operation_name,
609
+ api_reference_link=api_reference_link,
610
+ required_arguments=required_arguments)
611
+ else:
612
+ return self.base_client.call_api(
613
+ resource_path=resource_path,
614
+ method=method,
615
+ path_params=path_params,
616
+ header_params=header_params,
617
+ response_type="Runbook",
618
+ allow_control_chars=kwargs.get('allow_control_chars'),
619
+ operation_name=operation_name,
620
+ api_reference_link=api_reference_link,
621
+ required_arguments=required_arguments)
622
+
623
+ def get_task_record(self, task_record_id, **kwargs):
624
+ """
625
+ Gets a Task by identifier
626
+
627
+
628
+ :param str task_record_id: (required)
629
+ unique TaskDetail identifier
630
+
631
+ :param str opc_request_id: (optional)
632
+ The client request ID for tracing.
633
+
634
+ :param obj retry_strategy: (optional)
635
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
636
+
637
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
638
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
639
+
640
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
641
+
642
+ :param bool allow_control_chars: (optional)
643
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
644
+ By default, the response will not allow control characters in strings
645
+
646
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.TaskRecord`
647
+ :rtype: :class:`~oci.response.Response`
648
+
649
+ :example:
650
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_task_record.py.html>`__ to see an example of how to use get_task_record API.
651
+ """
652
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
653
+ required_arguments = ['taskRecordId']
654
+ resource_path = "/taskRecords/{taskRecordId}"
655
+ method = "GET"
656
+ operation_name = "get_task_record"
657
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/GetTaskRecord"
658
+
659
+ # Don't accept unknown kwargs
660
+ expected_kwargs = [
661
+ "allow_control_chars",
662
+ "retry_strategy",
663
+ "opc_request_id"
664
+ ]
665
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
666
+ if extra_kwargs:
667
+ raise ValueError(
668
+ f"get_task_record got unknown kwargs: {extra_kwargs!r}")
669
+
670
+ path_params = {
671
+ "taskRecordId": task_record_id
672
+ }
673
+
674
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
675
+
676
+ for (k, v) in six.iteritems(path_params):
677
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
678
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
679
+
680
+ header_params = {
681
+ "accept": "application/json",
682
+ "content-type": "application/json",
683
+ "opc-request-id": kwargs.get("opc_request_id", missing)
684
+ }
685
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
686
+
687
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
688
+ operation_retry_strategy=kwargs.get('retry_strategy'),
689
+ client_retry_strategy=self.retry_strategy
690
+ )
691
+ if retry_strategy is None:
692
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
693
+
694
+ if retry_strategy:
695
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
696
+ self.base_client.add_opc_client_retries_header(header_params)
697
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
698
+ return retry_strategy.make_retrying_call(
699
+ self.base_client.call_api,
700
+ resource_path=resource_path,
701
+ method=method,
702
+ path_params=path_params,
703
+ header_params=header_params,
704
+ response_type="TaskRecord",
705
+ allow_control_chars=kwargs.get('allow_control_chars'),
706
+ operation_name=operation_name,
707
+ api_reference_link=api_reference_link,
708
+ required_arguments=required_arguments)
709
+ else:
710
+ return self.base_client.call_api(
711
+ resource_path=resource_path,
712
+ method=method,
713
+ path_params=path_params,
714
+ header_params=header_params,
715
+ response_type="TaskRecord",
716
+ allow_control_chars=kwargs.get('allow_control_chars'),
717
+ operation_name=operation_name,
718
+ api_reference_link=api_reference_link,
719
+ required_arguments=required_arguments)
720
+
721
+ def list_runbooks(self, **kwargs):
722
+ """
723
+ List runbooks in Fleet Application Management.
724
+
725
+
726
+ :param str compartment_id: (optional)
727
+ The ID of the compartment in which to list resources.
728
+
729
+ :param str lifecycle_state: (optional)
730
+ A filter to return only resources whose lifecycleState matches the given lifecycleState.
731
+
732
+ Allowed values are: "ACTIVE", "DELETED", "FAILED", "INACTIVE", "CREATING", "DELETING", "UPDATING"
733
+
734
+ :param str display_name: (optional)
735
+ A filter to return only resources that match the entire display name given.
736
+
737
+ :param str id: (optional)
738
+ A filter to return runbooks whose identifier matches the given identifier.
739
+
740
+ :param str type: (optional)
741
+ A filter to return runbooks whose type matches the given type.
742
+
743
+ Allowed values are: "USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"
744
+
745
+ :param str runbook_relevance: (optional)
746
+ A filter to return runbooks whose runbookRelevance matches the given runbookRelevance.
747
+
748
+ Allowed values are: "PRODUCT_GROUP", "PRODUCT"
749
+
750
+ :param str platform: (optional)
751
+ A filter to return runbooks whose platform matches the given platform.
752
+
753
+ :param str operation: (optional)
754
+ A filter to return runbooks whose operation matches the given lifecycle operation.
755
+
756
+ :param int limit: (optional)
757
+ The maximum number of items to return.
758
+
759
+ :param str page: (optional)
760
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
761
+
762
+ :param str sort_order: (optional)
763
+ The sort order to use, either 'ASC' or 'DESC'.
764
+
765
+ Allowed values are: "ASC", "DESC"
766
+
767
+ :param str sort_by: (optional)
768
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
769
+
770
+ Allowed values are: "timeCreated", "displayName"
771
+
772
+ :param str opc_request_id: (optional)
773
+ The client request ID for tracing.
774
+
775
+ :param obj retry_strategy: (optional)
776
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
777
+
778
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
779
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
780
+
781
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
782
+
783
+ :param bool allow_control_chars: (optional)
784
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
785
+ By default, the response will not allow control characters in strings
786
+
787
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.RunbookCollection`
788
+ :rtype: :class:`~oci.response.Response`
789
+
790
+ :example:
791
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_runbooks.py.html>`__ to see an example of how to use list_runbooks API.
792
+ """
793
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
794
+ required_arguments = []
795
+ resource_path = "/runbooks"
796
+ method = "GET"
797
+ operation_name = "list_runbooks"
798
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/RunbookCollection/ListRunbooks"
799
+
800
+ # Don't accept unknown kwargs
801
+ expected_kwargs = [
802
+ "allow_control_chars",
803
+ "retry_strategy",
804
+ "compartment_id",
805
+ "lifecycle_state",
806
+ "display_name",
807
+ "id",
808
+ "type",
809
+ "runbook_relevance",
810
+ "platform",
811
+ "operation",
812
+ "limit",
813
+ "page",
814
+ "sort_order",
815
+ "sort_by",
816
+ "opc_request_id"
817
+ ]
818
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
819
+ if extra_kwargs:
820
+ raise ValueError(
821
+ f"list_runbooks got unknown kwargs: {extra_kwargs!r}")
822
+
823
+ if 'lifecycle_state' in kwargs:
824
+ lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED", "INACTIVE", "CREATING", "DELETING", "UPDATING"]
825
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
826
+ raise ValueError(
827
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
828
+ )
829
+
830
+ if 'type' in kwargs:
831
+ type_allowed_values = ["USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"]
832
+ if kwargs['type'] not in type_allowed_values:
833
+ raise ValueError(
834
+ f"Invalid value for `type`, must be one of { type_allowed_values }"
835
+ )
836
+
837
+ if 'runbook_relevance' in kwargs:
838
+ runbook_relevance_allowed_values = ["PRODUCT_GROUP", "PRODUCT"]
839
+ if kwargs['runbook_relevance'] not in runbook_relevance_allowed_values:
840
+ raise ValueError(
841
+ f"Invalid value for `runbook_relevance`, must be one of { runbook_relevance_allowed_values }"
842
+ )
843
+
844
+ if 'sort_order' in kwargs:
845
+ sort_order_allowed_values = ["ASC", "DESC"]
846
+ if kwargs['sort_order'] not in sort_order_allowed_values:
847
+ raise ValueError(
848
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
849
+ )
850
+
851
+ if 'sort_by' in kwargs:
852
+ sort_by_allowed_values = ["timeCreated", "displayName"]
853
+ if kwargs['sort_by'] not in sort_by_allowed_values:
854
+ raise ValueError(
855
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
856
+ )
857
+
858
+ query_params = {
859
+ "compartmentId": kwargs.get("compartment_id", missing),
860
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
861
+ "displayName": kwargs.get("display_name", missing),
862
+ "id": kwargs.get("id", missing),
863
+ "type": kwargs.get("type", missing),
864
+ "runbookRelevance": kwargs.get("runbook_relevance", missing),
865
+ "platform": kwargs.get("platform", missing),
866
+ "operation": kwargs.get("operation", missing),
867
+ "limit": kwargs.get("limit", missing),
868
+ "page": kwargs.get("page", missing),
869
+ "sortOrder": kwargs.get("sort_order", missing),
870
+ "sortBy": kwargs.get("sort_by", missing)
871
+ }
872
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
873
+
874
+ header_params = {
875
+ "accept": "application/json",
876
+ "content-type": "application/json",
877
+ "opc-request-id": kwargs.get("opc_request_id", missing)
878
+ }
879
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
880
+
881
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
882
+ operation_retry_strategy=kwargs.get('retry_strategy'),
883
+ client_retry_strategy=self.retry_strategy
884
+ )
885
+ if retry_strategy is None:
886
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
887
+
888
+ if retry_strategy:
889
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
890
+ self.base_client.add_opc_client_retries_header(header_params)
891
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
892
+ return retry_strategy.make_retrying_call(
893
+ self.base_client.call_api,
894
+ resource_path=resource_path,
895
+ method=method,
896
+ query_params=query_params,
897
+ header_params=header_params,
898
+ response_type="RunbookCollection",
899
+ allow_control_chars=kwargs.get('allow_control_chars'),
900
+ operation_name=operation_name,
901
+ api_reference_link=api_reference_link,
902
+ required_arguments=required_arguments)
903
+ else:
904
+ return self.base_client.call_api(
905
+ resource_path=resource_path,
906
+ method=method,
907
+ query_params=query_params,
908
+ header_params=header_params,
909
+ response_type="RunbookCollection",
910
+ allow_control_chars=kwargs.get('allow_control_chars'),
911
+ operation_name=operation_name,
912
+ api_reference_link=api_reference_link,
913
+ required_arguments=required_arguments)
914
+
915
+ def list_task_records(self, **kwargs):
916
+ """
917
+ Returns a list of TaskRecords.
918
+
919
+
920
+ :param str compartment_id: (optional)
921
+ The ID of the compartment in which to list resources.
922
+
923
+ :param str platform: (optional)
924
+ The platform for the Task.
925
+
926
+ :param str type: (optional)
927
+ The type of the Task.
928
+
929
+ Allowed values are: "USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"
930
+
931
+ :param str display_name: (optional)
932
+ A filter to return only resources that match the entire display name given.
933
+
934
+ :param str id: (optional)
935
+ unique TaskDetail identifier
936
+
937
+ :param int limit: (optional)
938
+ The maximum number of items to return.
939
+
940
+ :param str page: (optional)
941
+ A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
942
+
943
+ :param str lifecycle_state: (optional)
944
+ The current state of the Task.
945
+
946
+ Allowed values are: "ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"
947
+
948
+ :param str sort_by: (optional)
949
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
950
+
951
+ Allowed values are: "timeCreated", "displayName"
952
+
953
+ :param str sort_order: (optional)
954
+ The sort order to use, either 'ASC' or 'DESC'.
955
+
956
+ Allowed values are: "ASC", "DESC"
957
+
958
+ :param str opc_request_id: (optional)
959
+ The client request ID for tracing.
960
+
961
+ :param obj retry_strategy: (optional)
962
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
963
+
964
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
965
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
966
+
967
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
968
+
969
+ :param bool allow_control_chars: (optional)
970
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
971
+ By default, the response will not allow control characters in strings
972
+
973
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.TaskRecordCollection`
974
+ :rtype: :class:`~oci.response.Response`
975
+
976
+ :example:
977
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_task_records.py.html>`__ to see an example of how to use list_task_records API.
978
+ """
979
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
980
+ required_arguments = []
981
+ resource_path = "/taskRecords"
982
+ method = "GET"
983
+ operation_name = "list_task_records"
984
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecordCollection/ListTaskRecords"
985
+
986
+ # Don't accept unknown kwargs
987
+ expected_kwargs = [
988
+ "allow_control_chars",
989
+ "retry_strategy",
990
+ "compartment_id",
991
+ "platform",
992
+ "type",
993
+ "display_name",
994
+ "id",
995
+ "limit",
996
+ "page",
997
+ "lifecycle_state",
998
+ "sort_by",
999
+ "sort_order",
1000
+ "opc_request_id"
1001
+ ]
1002
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1003
+ if extra_kwargs:
1004
+ raise ValueError(
1005
+ f"list_task_records got unknown kwargs: {extra_kwargs!r}")
1006
+
1007
+ if 'type' in kwargs:
1008
+ type_allowed_values = ["USER_DEFINED", "ORACLE_DEFINED", "SYSTEM_DEFINED"]
1009
+ if kwargs['type'] not in type_allowed_values:
1010
+ raise ValueError(
1011
+ f"Invalid value for `type`, must be one of { type_allowed_values }"
1012
+ )
1013
+
1014
+ if 'lifecycle_state' in kwargs:
1015
+ lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "DELETED", "DELETING", "FAILED", "UPDATING"]
1016
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1017
+ raise ValueError(
1018
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1019
+ )
1020
+
1021
+ if 'sort_by' in kwargs:
1022
+ sort_by_allowed_values = ["timeCreated", "displayName"]
1023
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1024
+ raise ValueError(
1025
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1026
+ )
1027
+
1028
+ if 'sort_order' in kwargs:
1029
+ sort_order_allowed_values = ["ASC", "DESC"]
1030
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1031
+ raise ValueError(
1032
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
628
1033
  )
629
1034
 
630
- query_params = {
631
- "compartmentId": kwargs.get("compartment_id", missing),
632
- "platform": kwargs.get("platform", missing),
633
- "type": kwargs.get("type", missing),
634
- "displayName": kwargs.get("display_name", missing),
635
- "id": kwargs.get("id", missing),
636
- "limit": kwargs.get("limit", missing),
637
- "page": kwargs.get("page", missing),
638
- "lifecycleState": kwargs.get("lifecycle_state", missing),
639
- "sortBy": kwargs.get("sort_by", missing),
640
- "sortOrder": kwargs.get("sort_order", missing)
1035
+ query_params = {
1036
+ "compartmentId": kwargs.get("compartment_id", missing),
1037
+ "platform": kwargs.get("platform", missing),
1038
+ "type": kwargs.get("type", missing),
1039
+ "displayName": kwargs.get("display_name", missing),
1040
+ "id": kwargs.get("id", missing),
1041
+ "limit": kwargs.get("limit", missing),
1042
+ "page": kwargs.get("page", missing),
1043
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1044
+ "sortBy": kwargs.get("sort_by", missing),
1045
+ "sortOrder": kwargs.get("sort_order", missing)
1046
+ }
1047
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1048
+
1049
+ header_params = {
1050
+ "accept": "application/json",
1051
+ "content-type": "application/json",
1052
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1053
+ }
1054
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1055
+
1056
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1057
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1058
+ client_retry_strategy=self.retry_strategy
1059
+ )
1060
+ if retry_strategy is None:
1061
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1062
+
1063
+ if retry_strategy:
1064
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1065
+ self.base_client.add_opc_client_retries_header(header_params)
1066
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1067
+ return retry_strategy.make_retrying_call(
1068
+ self.base_client.call_api,
1069
+ resource_path=resource_path,
1070
+ method=method,
1071
+ query_params=query_params,
1072
+ header_params=header_params,
1073
+ response_type="TaskRecordCollection",
1074
+ allow_control_chars=kwargs.get('allow_control_chars'),
1075
+ operation_name=operation_name,
1076
+ api_reference_link=api_reference_link,
1077
+ required_arguments=required_arguments)
1078
+ else:
1079
+ return self.base_client.call_api(
1080
+ resource_path=resource_path,
1081
+ method=method,
1082
+ query_params=query_params,
1083
+ header_params=header_params,
1084
+ response_type="TaskRecordCollection",
1085
+ allow_control_chars=kwargs.get('allow_control_chars'),
1086
+ operation_name=operation_name,
1087
+ api_reference_link=api_reference_link,
1088
+ required_arguments=required_arguments)
1089
+
1090
+ def publish_runbook(self, publish_runbook_details, **kwargs):
1091
+ """
1092
+ Publish a Runbook.
1093
+
1094
+
1095
+ :param oci.fleet_apps_management.models.PublishRunbookDetails publish_runbook_details: (required)
1096
+ Details for publishing the Runbook.
1097
+
1098
+ :param str opc_retry_token: (optional)
1099
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
1100
+ server error without risk of executing that same action again. Retry tokens expire after 24
1101
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1102
+ has been deleted and purged from the system, then a retry of the original creation request
1103
+ might be rejected.
1104
+
1105
+ :param str if_match: (optional)
1106
+ For optimistic concurrency control. In the PUT or DELETE call
1107
+ for a resource, set the `if-match` parameter to the value of the
1108
+ etag from a previous GET or POST response for that resource.
1109
+ The resource will be updated or deleted only if the etag you
1110
+ provide matches the resource's current etag value.
1111
+
1112
+ :param str opc_request_id: (optional)
1113
+ The client request ID for tracing.
1114
+
1115
+ :param obj retry_strategy: (optional)
1116
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1117
+
1118
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1119
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1120
+
1121
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1122
+
1123
+ :param bool allow_control_chars: (optional)
1124
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1125
+ By default, the response will not allow control characters in strings
1126
+
1127
+ :return: A :class:`~oci.response.Response` object with data of type None
1128
+ :rtype: :class:`~oci.response.Response`
1129
+
1130
+ :example:
1131
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/publish_runbook.py.html>`__ to see an example of how to use publish_runbook API.
1132
+ """
1133
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1134
+ required_arguments = []
1135
+ resource_path = "/runbooks/actions/publishRunbook"
1136
+ method = "POST"
1137
+ operation_name = "publish_runbook"
1138
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/PublishRunbook"
1139
+
1140
+ # Don't accept unknown kwargs
1141
+ expected_kwargs = [
1142
+ "allow_control_chars",
1143
+ "retry_strategy",
1144
+ "opc_retry_token",
1145
+ "if_match",
1146
+ "opc_request_id"
1147
+ ]
1148
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1149
+ if extra_kwargs:
1150
+ raise ValueError(
1151
+ f"publish_runbook got unknown kwargs: {extra_kwargs!r}")
1152
+
1153
+ header_params = {
1154
+ "accept": "application/json",
1155
+ "content-type": "application/json",
1156
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
1157
+ "if-match": kwargs.get("if_match", missing),
1158
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1159
+ }
1160
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1161
+
1162
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1163
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1164
+ client_retry_strategy=self.retry_strategy
1165
+ )
1166
+ if retry_strategy is None:
1167
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1168
+
1169
+ if retry_strategy:
1170
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1171
+ self.base_client.add_opc_retry_token_if_needed(header_params)
1172
+ self.base_client.add_opc_client_retries_header(header_params)
1173
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1174
+ return retry_strategy.make_retrying_call(
1175
+ self.base_client.call_api,
1176
+ resource_path=resource_path,
1177
+ method=method,
1178
+ header_params=header_params,
1179
+ body=publish_runbook_details,
1180
+ allow_control_chars=kwargs.get('allow_control_chars'),
1181
+ operation_name=operation_name,
1182
+ api_reference_link=api_reference_link,
1183
+ required_arguments=required_arguments)
1184
+ else:
1185
+ return self.base_client.call_api(
1186
+ resource_path=resource_path,
1187
+ method=method,
1188
+ header_params=header_params,
1189
+ body=publish_runbook_details,
1190
+ allow_control_chars=kwargs.get('allow_control_chars'),
1191
+ operation_name=operation_name,
1192
+ api_reference_link=api_reference_link,
1193
+ required_arguments=required_arguments)
1194
+
1195
+ def set_default_runbook(self, set_default_runbook_details, **kwargs):
1196
+ """
1197
+ Publish a Runbook.
1198
+
1199
+
1200
+ :param oci.fleet_apps_management.models.SetDefaultRunbookDetails set_default_runbook_details: (required)
1201
+ Details for setting the Runbook as default.
1202
+
1203
+ :param str opc_retry_token: (optional)
1204
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
1205
+ server error without risk of executing that same action again. Retry tokens expire after 24
1206
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
1207
+ has been deleted and purged from the system, then a retry of the original creation request
1208
+ might be rejected.
1209
+
1210
+ :param str if_match: (optional)
1211
+ For optimistic concurrency control. In the PUT or DELETE call
1212
+ for a resource, set the `if-match` parameter to the value of the
1213
+ etag from a previous GET or POST response for that resource.
1214
+ The resource will be updated or deleted only if the etag you
1215
+ provide matches the resource's current etag value.
1216
+
1217
+ :param str opc_request_id: (optional)
1218
+ The client request ID for tracing.
1219
+
1220
+ :param obj retry_strategy: (optional)
1221
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1222
+
1223
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1224
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1225
+
1226
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1227
+
1228
+ :param bool allow_control_chars: (optional)
1229
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1230
+ By default, the response will not allow control characters in strings
1231
+
1232
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Runbook`
1233
+ :rtype: :class:`~oci.response.Response`
1234
+
1235
+ :example:
1236
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/set_default_runbook.py.html>`__ to see an example of how to use set_default_runbook API.
1237
+ """
1238
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1239
+ required_arguments = []
1240
+ resource_path = "/runbooks/actions/setDefaultRunbook"
1241
+ method = "POST"
1242
+ operation_name = "set_default_runbook"
1243
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/SetDefaultRunbook"
1244
+
1245
+ # Don't accept unknown kwargs
1246
+ expected_kwargs = [
1247
+ "allow_control_chars",
1248
+ "retry_strategy",
1249
+ "opc_retry_token",
1250
+ "if_match",
1251
+ "opc_request_id"
1252
+ ]
1253
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1254
+ if extra_kwargs:
1255
+ raise ValueError(
1256
+ f"set_default_runbook got unknown kwargs: {extra_kwargs!r}")
1257
+
1258
+ header_params = {
1259
+ "accept": "application/json",
1260
+ "content-type": "application/json",
1261
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
1262
+ "if-match": kwargs.get("if_match", missing),
1263
+ "opc-request-id": kwargs.get("opc_request_id", missing)
641
1264
  }
642
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1265
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1266
+
1267
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1268
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1269
+ client_retry_strategy=self.retry_strategy
1270
+ )
1271
+ if retry_strategy is None:
1272
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1273
+
1274
+ if retry_strategy:
1275
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1276
+ self.base_client.add_opc_retry_token_if_needed(header_params)
1277
+ self.base_client.add_opc_client_retries_header(header_params)
1278
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1279
+ return retry_strategy.make_retrying_call(
1280
+ self.base_client.call_api,
1281
+ resource_path=resource_path,
1282
+ method=method,
1283
+ header_params=header_params,
1284
+ body=set_default_runbook_details,
1285
+ response_type="Runbook",
1286
+ allow_control_chars=kwargs.get('allow_control_chars'),
1287
+ operation_name=operation_name,
1288
+ api_reference_link=api_reference_link,
1289
+ required_arguments=required_arguments)
1290
+ else:
1291
+ return self.base_client.call_api(
1292
+ resource_path=resource_path,
1293
+ method=method,
1294
+ header_params=header_params,
1295
+ body=set_default_runbook_details,
1296
+ response_type="Runbook",
1297
+ allow_control_chars=kwargs.get('allow_control_chars'),
1298
+ operation_name=operation_name,
1299
+ api_reference_link=api_reference_link,
1300
+ required_arguments=required_arguments)
1301
+
1302
+ def update_runbook(self, runbook_id, update_runbook_details, **kwargs):
1303
+ """
1304
+ Updates the Ronbook
1305
+
1306
+
1307
+ :param str runbook_id: (required)
1308
+ Unique Runbook identifier
1309
+
1310
+ :param oci.fleet_apps_management.models.UpdateRunbookDetails update_runbook_details: (required)
1311
+ The information to be updated.
1312
+
1313
+ :param str if_match: (optional)
1314
+ For optimistic concurrency control. In the PUT or DELETE call
1315
+ for a resource, set the `if-match` parameter to the value of the
1316
+ etag from a previous GET or POST response for that resource.
1317
+ The resource will be updated or deleted only if the etag you
1318
+ provide matches the resource's current etag value.
1319
+
1320
+ :param str opc_request_id: (optional)
1321
+ The client request ID for tracing.
1322
+
1323
+ :param obj retry_strategy: (optional)
1324
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1325
+
1326
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1327
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1328
+
1329
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1330
+
1331
+ :param bool allow_control_chars: (optional)
1332
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1333
+ By default, the response will not allow control characters in strings
1334
+
1335
+ :return: A :class:`~oci.response.Response` object with data of type None
1336
+ :rtype: :class:`~oci.response.Response`
1337
+
1338
+ :example:
1339
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_runbook.py.html>`__ to see an example of how to use update_runbook API.
1340
+ """
1341
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1342
+ required_arguments = ['runbookId']
1343
+ resource_path = "/runbooks/{runbookId}"
1344
+ method = "PUT"
1345
+ operation_name = "update_runbook"
1346
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Runbook/UpdateRunbook"
1347
+
1348
+ # Don't accept unknown kwargs
1349
+ expected_kwargs = [
1350
+ "allow_control_chars",
1351
+ "retry_strategy",
1352
+ "if_match",
1353
+ "opc_request_id"
1354
+ ]
1355
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1356
+ if extra_kwargs:
1357
+ raise ValueError(
1358
+ f"update_runbook got unknown kwargs: {extra_kwargs!r}")
1359
+
1360
+ path_params = {
1361
+ "runbookId": runbook_id
1362
+ }
1363
+
1364
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1365
+
1366
+ for (k, v) in six.iteritems(path_params):
1367
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1368
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
643
1369
 
644
1370
  header_params = {
645
1371
  "accept": "application/json",
646
1372
  "content-type": "application/json",
1373
+ "if-match": kwargs.get("if_match", missing),
647
1374
  "opc-request-id": kwargs.get("opc_request_id", missing)
648
1375
  }
649
1376
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -663,9 +1390,9 @@ class FleetAppsManagementRunbooksClient(object):
663
1390
  self.base_client.call_api,
664
1391
  resource_path=resource_path,
665
1392
  method=method,
666
- query_params=query_params,
1393
+ path_params=path_params,
667
1394
  header_params=header_params,
668
- response_type="TaskRecordCollection",
1395
+ body=update_runbook_details,
669
1396
  allow_control_chars=kwargs.get('allow_control_chars'),
670
1397
  operation_name=operation_name,
671
1398
  api_reference_link=api_reference_link,
@@ -674,9 +1401,119 @@ class FleetAppsManagementRunbooksClient(object):
674
1401
  return self.base_client.call_api(
675
1402
  resource_path=resource_path,
676
1403
  method=method,
677
- query_params=query_params,
1404
+ path_params=path_params,
678
1405
  header_params=header_params,
679
- response_type="TaskRecordCollection",
1406
+ body=update_runbook_details,
1407
+ allow_control_chars=kwargs.get('allow_control_chars'),
1408
+ operation_name=operation_name,
1409
+ api_reference_link=api_reference_link,
1410
+ required_arguments=required_arguments)
1411
+
1412
+ def update_task_record(self, task_record_id, update_task_record_details, **kwargs):
1413
+ """
1414
+ Updates the Task
1415
+
1416
+
1417
+ :param str task_record_id: (required)
1418
+ unique TaskDetail identifier
1419
+
1420
+ :param oci.fleet_apps_management.models.UpdateTaskRecordDetails update_task_record_details: (required)
1421
+ The information to be updated.
1422
+
1423
+ :param str if_match: (optional)
1424
+ For optimistic concurrency control. In the PUT or DELETE call
1425
+ for a resource, set the `if-match` parameter to the value of the
1426
+ etag from a previous GET or POST response for that resource.
1427
+ The resource will be updated or deleted only if the etag you
1428
+ provide matches the resource's current etag value.
1429
+
1430
+ :param str opc_request_id: (optional)
1431
+ The client request ID for tracing.
1432
+
1433
+ :param obj retry_strategy: (optional)
1434
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1435
+
1436
+ This should be one of the strategies available in the :py:mod:`~oci.retry` module. This operation uses :py:data:`~oci.retry.DEFAULT_RETRY_STRATEGY` as default if no retry strategy is provided.
1437
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1438
+
1439
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1440
+
1441
+ :param bool allow_control_chars: (optional)
1442
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1443
+ By default, the response will not allow control characters in strings
1444
+
1445
+ :return: A :class:`~oci.response.Response` object with data of type None
1446
+ :rtype: :class:`~oci.response.Response`
1447
+
1448
+ :example:
1449
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_task_record.py.html>`__ to see an example of how to use update_task_record API.
1450
+ """
1451
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1452
+ required_arguments = ['taskRecordId']
1453
+ resource_path = "/taskRecords/{taskRecordId}"
1454
+ method = "PUT"
1455
+ operation_name = "update_task_record"
1456
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/TaskRecord/UpdateTaskRecord"
1457
+
1458
+ # Don't accept unknown kwargs
1459
+ expected_kwargs = [
1460
+ "allow_control_chars",
1461
+ "retry_strategy",
1462
+ "if_match",
1463
+ "opc_request_id"
1464
+ ]
1465
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1466
+ if extra_kwargs:
1467
+ raise ValueError(
1468
+ f"update_task_record got unknown kwargs: {extra_kwargs!r}")
1469
+
1470
+ path_params = {
1471
+ "taskRecordId": task_record_id
1472
+ }
1473
+
1474
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1475
+
1476
+ for (k, v) in six.iteritems(path_params):
1477
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1478
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1479
+
1480
+ header_params = {
1481
+ "accept": "application/json",
1482
+ "content-type": "application/json",
1483
+ "if-match": kwargs.get("if_match", missing),
1484
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1485
+ }
1486
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1487
+
1488
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1489
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1490
+ client_retry_strategy=self.retry_strategy
1491
+ )
1492
+ if retry_strategy is None:
1493
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1494
+
1495
+ if retry_strategy:
1496
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1497
+ self.base_client.add_opc_client_retries_header(header_params)
1498
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1499
+ return retry_strategy.make_retrying_call(
1500
+ self.base_client.call_api,
1501
+ resource_path=resource_path,
1502
+ method=method,
1503
+ path_params=path_params,
1504
+ header_params=header_params,
1505
+ body=update_task_record_details,
1506
+ allow_control_chars=kwargs.get('allow_control_chars'),
1507
+ operation_name=operation_name,
1508
+ api_reference_link=api_reference_link,
1509
+ required_arguments=required_arguments)
1510
+ else:
1511
+ return self.base_client.call_api(
1512
+ resource_path=resource_path,
1513
+ method=method,
1514
+ path_params=path_params,
1515
+ header_params=header_params,
1516
+ body=update_task_record_details,
680
1517
  allow_control_chars=kwargs.get('allow_control_chars'),
681
1518
  operation_name=operation_name,
682
1519
  api_reference_link=api_reference_link,