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 FleetAppsManagementAdminClient(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,13 @@ class FleetAppsManagementAdminClient(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 create_onboarding(self, create_onboarding_details, **kwargs):
119
+ def create_compliance_policy_rule(self, create_compliance_policy_rule_details, **kwargs):
121
120
  """
122
- Onboard a tenant to Fleet Application Management Service
121
+ Creates a CompliancePolicyRule.
123
122
 
124
123
 
125
- :param oci.fleet_apps_management.models.CreateOnboardingDetails create_onboarding_details: (required)
126
- Details for onboarding FAMS.
124
+ :param oci.fleet_apps_management.models.CreateCompliancePolicyRuleDetails create_compliance_policy_rule_details: (required)
125
+ Details for the new CompliancePolicyRule.
127
126
 
128
127
  :param str opc_retry_token: (optional)
129
128
  A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -147,18 +146,18 @@ class FleetAppsManagementAdminClient(object):
147
146
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
148
147
  By default, the response will not allow control characters in strings
149
148
 
150
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Onboarding`
149
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.CompliancePolicyRule`
151
150
  :rtype: :class:`~oci.response.Response`
152
151
 
153
152
  :example:
154
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/create_onboarding.py.html>`__ to see an example of how to use create_onboarding API.
153
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_compliance_policy_rule.py.html>`__ to see an example of how to use create_compliance_policy_rule API.
155
154
  """
156
155
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
157
156
  required_arguments = []
158
- resource_path = "/Onboardings"
157
+ resource_path = "/compliancePolicyRules"
159
158
  method = "POST"
160
- operation_name = "create_onboarding"
161
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/CreateOnboarding"
159
+ operation_name = "create_compliance_policy_rule"
160
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/CreateCompliancePolicyRule"
162
161
 
163
162
  # Don't accept unknown kwargs
164
163
  expected_kwargs = [
@@ -170,7 +169,7 @@ class FleetAppsManagementAdminClient(object):
170
169
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
171
170
  if extra_kwargs:
172
171
  raise ValueError(
173
- f"create_onboarding got unknown kwargs: {extra_kwargs!r}")
172
+ f"create_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}")
174
173
 
175
174
  header_params = {
176
175
  "accept": "application/json",
@@ -197,8 +196,8 @@ class FleetAppsManagementAdminClient(object):
197
196
  resource_path=resource_path,
198
197
  method=method,
199
198
  header_params=header_params,
200
- body=create_onboarding_details,
201
- response_type="Onboarding",
199
+ body=create_compliance_policy_rule_details,
200
+ response_type="CompliancePolicyRule",
202
201
  allow_control_chars=kwargs.get('allow_control_chars'),
203
202
  operation_name=operation_name,
204
203
  api_reference_link=api_reference_link,
@@ -208,20 +207,21 @@ class FleetAppsManagementAdminClient(object):
208
207
  resource_path=resource_path,
209
208
  method=method,
210
209
  header_params=header_params,
211
- body=create_onboarding_details,
212
- response_type="Onboarding",
210
+ body=create_compliance_policy_rule_details,
211
+ response_type="CompliancePolicyRule",
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 create_property(self, create_property_details, **kwargs):
217
+ def create_onboarding(self, create_onboarding_details, **kwargs):
219
218
  """
220
- Creates a new Property.
219
+ Onboard a tenant to Fleet Application Management.
220
+ The onboarding process lets Fleet Application Management create a few required policies that you need to start using it and its features.
221
221
 
222
222
 
223
- :param oci.fleet_apps_management.models.CreatePropertyDetails create_property_details: (required)
224
- Details for the new Property.
223
+ :param oci.fleet_apps_management.models.CreateOnboardingDetails create_onboarding_details: (required)
224
+ Details for onboarding Fleet Application Management.
225
225
 
226
226
  :param str opc_retry_token: (optional)
227
227
  A token that uniquely identifies a request so it can be retried in case of a timeout or
@@ -245,18 +245,18 @@ class FleetAppsManagementAdminClient(object):
245
245
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
246
246
  By default, the response will not allow control characters in strings
247
247
 
248
- :return: A :class:`~oci.response.Response` object with data of type ModelProperty
248
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Onboarding`
249
249
  :rtype: :class:`~oci.response.Response`
250
250
 
251
251
  :example:
252
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/create_property.py.html>`__ to see an example of how to use create_property API.
252
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_onboarding.py.html>`__ to see an example of how to use create_onboarding API.
253
253
  """
254
254
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
255
255
  required_arguments = []
256
- resource_path = "/properties"
256
+ resource_path = "/Onboardings"
257
257
  method = "POST"
258
- operation_name = "create_property"
259
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/CreateProperty"
258
+ operation_name = "create_onboarding"
259
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/CreateOnboarding"
260
260
 
261
261
  # Don't accept unknown kwargs
262
262
  expected_kwargs = [
@@ -268,7 +268,7 @@ class FleetAppsManagementAdminClient(object):
268
268
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
269
269
  if extra_kwargs:
270
270
  raise ValueError(
271
- f"create_property got unknown kwargs: {extra_kwargs!r}")
271
+ f"create_onboarding got unknown kwargs: {extra_kwargs!r}")
272
272
 
273
273
  header_params = {
274
274
  "accept": "application/json",
@@ -295,8 +295,8 @@ class FleetAppsManagementAdminClient(object):
295
295
  resource_path=resource_path,
296
296
  method=method,
297
297
  header_params=header_params,
298
- body=create_property_details,
299
- response_type="ModelProperty",
298
+ body=create_onboarding_details,
299
+ response_type="Onboarding",
300
300
  allow_control_chars=kwargs.get('allow_control_chars'),
301
301
  operation_name=operation_name,
302
302
  api_reference_link=api_reference_link,
@@ -306,27 +306,27 @@ class FleetAppsManagementAdminClient(object):
306
306
  resource_path=resource_path,
307
307
  method=method,
308
308
  header_params=header_params,
309
- body=create_property_details,
310
- response_type="ModelProperty",
309
+ body=create_onboarding_details,
310
+ response_type="Onboarding",
311
311
  allow_control_chars=kwargs.get('allow_control_chars'),
312
312
  operation_name=operation_name,
313
313
  api_reference_link=api_reference_link,
314
314
  required_arguments=required_arguments)
315
315
 
316
- def delete_property(self, property_id, **kwargs):
316
+ def create_platform_configuration(self, create_platform_configuration_details, **kwargs):
317
317
  """
318
- Deletes a Property resource by identifier
318
+ Creates a new PlatformConfiguration.
319
319
 
320
320
 
321
- :param str property_id: (required)
322
- unique Property identifier
321
+ :param oci.fleet_apps_management.models.CreatePlatformConfigurationDetails create_platform_configuration_details: (required)
322
+ Details for the new PlatformConfiguration.
323
323
 
324
- :param str if_match: (optional)
325
- For optimistic concurrency control. In the PUT or DELETE call
326
- for a resource, set the `if-match` parameter to the value of the
327
- etag from a previous GET or POST response for that resource.
328
- The resource will be updated or deleted only if the etag you
329
- provide matches the resource's current etag value.
324
+ :param str opc_retry_token: (optional)
325
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
326
+ server error without risk of executing that same action again. Retry tokens expire after 24
327
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
328
+ has been deleted and purged from the system, then a retry of the original creation request
329
+ might be rejected.
330
330
 
331
331
  :param str opc_request_id: (optional)
332
332
  The client request ID for tracing.
@@ -343,45 +343,35 @@ class FleetAppsManagementAdminClient(object):
343
343
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
344
344
  By default, the response will not allow control characters in strings
345
345
 
346
- :return: A :class:`~oci.response.Response` object with data of type None
346
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PlatformConfiguration`
347
347
  :rtype: :class:`~oci.response.Response`
348
348
 
349
349
  :example:
350
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/delete_property.py.html>`__ to see an example of how to use delete_property API.
350
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_platform_configuration.py.html>`__ to see an example of how to use create_platform_configuration API.
351
351
  """
352
352
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
353
- required_arguments = ['propertyId']
354
- resource_path = "/properties/{propertyId}"
355
- method = "DELETE"
356
- operation_name = "delete_property"
357
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/DeleteProperty"
353
+ required_arguments = []
354
+ resource_path = "/platformConfigurations"
355
+ method = "POST"
356
+ operation_name = "create_platform_configuration"
357
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/CreatePlatformConfiguration"
358
358
 
359
359
  # Don't accept unknown kwargs
360
360
  expected_kwargs = [
361
361
  "allow_control_chars",
362
362
  "retry_strategy",
363
- "if_match",
363
+ "opc_retry_token",
364
364
  "opc_request_id"
365
365
  ]
366
366
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
367
367
  if extra_kwargs:
368
368
  raise ValueError(
369
- f"delete_property got unknown kwargs: {extra_kwargs!r}")
370
-
371
- path_params = {
372
- "propertyId": property_id
373
- }
374
-
375
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
376
-
377
- for (k, v) in six.iteritems(path_params):
378
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
379
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
369
+ f"create_platform_configuration got unknown kwargs: {extra_kwargs!r}")
380
370
 
381
371
  header_params = {
382
372
  "accept": "application/json",
383
373
  "content-type": "application/json",
384
- "if-match": kwargs.get("if_match", missing),
374
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
385
375
  "opc-request-id": kwargs.get("opc_request_id", missing)
386
376
  }
387
377
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -395,14 +385,16 @@ class FleetAppsManagementAdminClient(object):
395
385
 
396
386
  if retry_strategy:
397
387
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
388
+ self.base_client.add_opc_retry_token_if_needed(header_params)
398
389
  self.base_client.add_opc_client_retries_header(header_params)
399
390
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
400
391
  return retry_strategy.make_retrying_call(
401
392
  self.base_client.call_api,
402
393
  resource_path=resource_path,
403
394
  method=method,
404
- path_params=path_params,
405
395
  header_params=header_params,
396
+ body=create_platform_configuration_details,
397
+ response_type="PlatformConfiguration",
406
398
  allow_control_chars=kwargs.get('allow_control_chars'),
407
399
  operation_name=operation_name,
408
400
  api_reference_link=api_reference_link,
@@ -411,20 +403,28 @@ class FleetAppsManagementAdminClient(object):
411
403
  return self.base_client.call_api(
412
404
  resource_path=resource_path,
413
405
  method=method,
414
- path_params=path_params,
415
406
  header_params=header_params,
407
+ body=create_platform_configuration_details,
408
+ response_type="PlatformConfiguration",
416
409
  allow_control_chars=kwargs.get('allow_control_chars'),
417
410
  operation_name=operation_name,
418
411
  api_reference_link=api_reference_link,
419
412
  required_arguments=required_arguments)
420
413
 
421
- def get_property(self, property_id, **kwargs):
414
+ def create_property(self, create_property_details, **kwargs):
422
415
  """
423
- Gets a Property by identifier
416
+ Create a business-specific metadata property in Fleet Application Management and capture the business metadata classifications.
424
417
 
425
418
 
426
- :param str property_id: (required)
427
- unique Property identifier
419
+ :param oci.fleet_apps_management.models.CreatePropertyDetails create_property_details: (required)
420
+ Details for the new Property.
421
+
422
+ :param str opc_retry_token: (optional)
423
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
424
+ server error without risk of executing that same action again. Retry tokens expire after 24
425
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
426
+ has been deleted and purged from the system, then a retry of the original creation request
427
+ might be rejected.
428
428
 
429
429
  :param str opc_request_id: (optional)
430
430
  The client request ID for tracing.
@@ -445,39 +445,31 @@ class FleetAppsManagementAdminClient(object):
445
445
  :rtype: :class:`~oci.response.Response`
446
446
 
447
447
  :example:
448
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/get_property.py.html>`__ to see an example of how to use get_property API.
448
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/create_property.py.html>`__ to see an example of how to use create_property API.
449
449
  """
450
450
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
451
- required_arguments = ['propertyId']
452
- resource_path = "/properties/{propertyId}"
453
- method = "GET"
454
- operation_name = "get_property"
455
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/GetProperty"
451
+ required_arguments = []
452
+ resource_path = "/properties"
453
+ method = "POST"
454
+ operation_name = "create_property"
455
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/CreateProperty"
456
456
 
457
457
  # Don't accept unknown kwargs
458
458
  expected_kwargs = [
459
459
  "allow_control_chars",
460
460
  "retry_strategy",
461
+ "opc_retry_token",
461
462
  "opc_request_id"
462
463
  ]
463
464
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
464
465
  if extra_kwargs:
465
466
  raise ValueError(
466
- f"get_property got unknown kwargs: {extra_kwargs!r}")
467
-
468
- path_params = {
469
- "propertyId": property_id
470
- }
471
-
472
- path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
473
-
474
- for (k, v) in six.iteritems(path_params):
475
- if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
476
- raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
467
+ f"create_property got unknown kwargs: {extra_kwargs!r}")
477
468
 
478
469
  header_params = {
479
470
  "accept": "application/json",
480
471
  "content-type": "application/json",
472
+ "opc-retry-token": kwargs.get("opc_retry_token", missing),
481
473
  "opc-request-id": kwargs.get("opc_request_id", missing)
482
474
  }
483
475
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -491,14 +483,15 @@ class FleetAppsManagementAdminClient(object):
491
483
 
492
484
  if retry_strategy:
493
485
  if not isinstance(retry_strategy, retry.NoneRetryStrategy):
486
+ self.base_client.add_opc_retry_token_if_needed(header_params)
494
487
  self.base_client.add_opc_client_retries_header(header_params)
495
488
  retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
496
489
  return retry_strategy.make_retrying_call(
497
490
  self.base_client.call_api,
498
491
  resource_path=resource_path,
499
492
  method=method,
500
- path_params=path_params,
501
493
  header_params=header_params,
494
+ body=create_property_details,
502
495
  response_type="ModelProperty",
503
496
  allow_control_chars=kwargs.get('allow_control_chars'),
504
497
  operation_name=operation_name,
@@ -508,34 +501,28 @@ class FleetAppsManagementAdminClient(object):
508
501
  return self.base_client.call_api(
509
502
  resource_path=resource_path,
510
503
  method=method,
511
- path_params=path_params,
512
504
  header_params=header_params,
505
+ body=create_property_details,
513
506
  response_type="ModelProperty",
514
507
  allow_control_chars=kwargs.get('allow_control_chars'),
515
508
  operation_name=operation_name,
516
509
  api_reference_link=api_reference_link,
517
510
  required_arguments=required_arguments)
518
511
 
519
- def list_onboarding_policies(self, **kwargs):
512
+ def delete_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs):
520
513
  """
521
- Returns a list of onboarding policy information for FAMS.
522
-
523
-
524
- :param int limit: (optional)
525
- The maximum number of items to return.
526
-
527
- :param str page: (optional)
528
- 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.
529
-
530
- :param str sort_order: (optional)
531
- The sort order to use, either 'ASC' or 'DESC'.
514
+ Deletes a CompliancePolicyRule.
532
515
 
533
- Allowed values are: "ASC", "DESC"
534
516
 
535
- :param str sort_by: (optional)
536
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
517
+ :param str compliance_policy_rule_id: (required)
518
+ unique CompliancePolicyRule identifier.
537
519
 
538
- Allowed values are: "timeCreated"
520
+ :param str if_match: (optional)
521
+ For optimistic concurrency control. In the PUT or DELETE call
522
+ for a resource, set the `if-match` parameter to the value of the
523
+ etag from a previous GET or POST response for that resource.
524
+ The resource will be updated or deleted only if the etag you
525
+ provide matches the resource's current etag value.
539
526
 
540
527
  :param str opc_request_id: (optional)
541
528
  The client request ID for tracing.
@@ -552,59 +539,45 @@ class FleetAppsManagementAdminClient(object):
552
539
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
553
540
  By default, the response will not allow control characters in strings
554
541
 
555
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.OnboardingPolicyCollection`
542
+ :return: A :class:`~oci.response.Response` object with data of type None
556
543
  :rtype: :class:`~oci.response.Response`
557
544
 
558
545
  :example:
559
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/list_onboarding_policies.py.html>`__ to see an example of how to use list_onboarding_policies API.
546
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_compliance_policy_rule.py.html>`__ to see an example of how to use delete_compliance_policy_rule API.
560
547
  """
561
548
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
562
- required_arguments = []
563
- resource_path = "/OnboardingPolicies"
564
- method = "GET"
565
- operation_name = "list_onboarding_policies"
566
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingPolicyCollection/ListOnboardingPolicies"
549
+ required_arguments = ['compliancePolicyRuleId']
550
+ resource_path = "/compliancePolicyRules/{compliancePolicyRuleId}"
551
+ method = "DELETE"
552
+ operation_name = "delete_compliance_policy_rule"
553
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/DeleteCompliancePolicyRule"
567
554
 
568
555
  # Don't accept unknown kwargs
569
556
  expected_kwargs = [
570
557
  "allow_control_chars",
571
558
  "retry_strategy",
572
- "limit",
573
- "page",
574
- "sort_order",
575
- "sort_by",
559
+ "if_match",
576
560
  "opc_request_id"
577
561
  ]
578
562
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
579
563
  if extra_kwargs:
580
564
  raise ValueError(
581
- f"list_onboarding_policies got unknown kwargs: {extra_kwargs!r}")
565
+ f"delete_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}")
582
566
 
583
- if 'sort_order' in kwargs:
584
- sort_order_allowed_values = ["ASC", "DESC"]
585
- if kwargs['sort_order'] not in sort_order_allowed_values:
586
- raise ValueError(
587
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
588
- )
567
+ path_params = {
568
+ "compliancePolicyRuleId": compliance_policy_rule_id
569
+ }
589
570
 
590
- if 'sort_by' in kwargs:
591
- sort_by_allowed_values = ["timeCreated"]
592
- if kwargs['sort_by'] not in sort_by_allowed_values:
593
- raise ValueError(
594
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
595
- )
571
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
596
572
 
597
- query_params = {
598
- "limit": kwargs.get("limit", missing),
599
- "page": kwargs.get("page", missing),
600
- "sortOrder": kwargs.get("sort_order", missing),
601
- "sortBy": kwargs.get("sort_by", missing)
602
- }
603
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
573
+ for (k, v) in six.iteritems(path_params):
574
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
575
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
604
576
 
605
577
  header_params = {
606
578
  "accept": "application/json",
607
579
  "content-type": "application/json",
580
+ "if-match": kwargs.get("if_match", missing),
608
581
  "opc-request-id": kwargs.get("opc_request_id", missing)
609
582
  }
610
583
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -624,9 +597,8 @@ class FleetAppsManagementAdminClient(object):
624
597
  self.base_client.call_api,
625
598
  resource_path=resource_path,
626
599
  method=method,
627
- query_params=query_params,
600
+ path_params=path_params,
628
601
  header_params=header_params,
629
- response_type="OnboardingPolicyCollection",
630
602
  allow_control_chars=kwargs.get('allow_control_chars'),
631
603
  operation_name=operation_name,
632
604
  api_reference_link=api_reference_link,
@@ -635,45 +607,27 @@ class FleetAppsManagementAdminClient(object):
635
607
  return self.base_client.call_api(
636
608
  resource_path=resource_path,
637
609
  method=method,
638
- query_params=query_params,
610
+ path_params=path_params,
639
611
  header_params=header_params,
640
- response_type="OnboardingPolicyCollection",
641
612
  allow_control_chars=kwargs.get('allow_control_chars'),
642
613
  operation_name=operation_name,
643
614
  api_reference_link=api_reference_link,
644
615
  required_arguments=required_arguments)
645
616
 
646
- def list_onboardings(self, **kwargs):
617
+ def delete_onboarding(self, onboarding_id, **kwargs):
647
618
  """
648
- Returns a list of onboarding information for the Tenancy.
649
-
650
-
651
- :param str compartment_id: (optional)
652
- The ID of the compartment in which to list resources.
653
-
654
- :param str lifecycle_state: (optional)
655
- A filter to return only resources their lifecycleState matches the given lifecycleState.
656
-
657
- Allowed values are: "ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"
658
-
659
- :param str id: (optional)
660
- unique onboarding identifier
661
-
662
- :param int limit: (optional)
663
- The maximum number of items to return.
664
-
665
- :param str page: (optional)
666
- 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.
667
-
668
- :param str sort_order: (optional)
669
- The sort order to use, either 'ASC' or 'DESC'.
619
+ Deletes Fleet Application Management onboarding resource by identifier
670
620
 
671
- Allowed values are: "ASC", "DESC"
672
621
 
673
- :param str sort_by: (optional)
674
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
622
+ :param str onboarding_id: (required)
623
+ A filter to return resources whose Onboarding identifier matches the given identifier.
675
624
 
676
- Allowed values are: "timeCreated", "displayName"
625
+ :param str if_match: (optional)
626
+ For optimistic concurrency control. In the PUT or DELETE call
627
+ for a resource, set the `if-match` parameter to the value of the
628
+ etag from a previous GET or POST response for that resource.
629
+ The resource will be updated or deleted only if the etag you
630
+ provide matches the resource's current etag value.
677
631
 
678
632
  :param str opc_request_id: (optional)
679
633
  The client request ID for tracing.
@@ -690,72 +644,2035 @@ class FleetAppsManagementAdminClient(object):
690
644
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
691
645
  By default, the response will not allow control characters in strings
692
646
 
693
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.OnboardingCollection`
647
+ :return: A :class:`~oci.response.Response` object with data of type None
694
648
  :rtype: :class:`~oci.response.Response`
695
649
 
696
650
  :example:
697
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/list_onboardings.py.html>`__ to see an example of how to use list_onboardings API.
651
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_onboarding.py.html>`__ to see an example of how to use delete_onboarding API.
698
652
  """
699
653
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
700
- required_arguments = []
701
- resource_path = "/Onboardings"
702
- method = "GET"
703
- operation_name = "list_onboardings"
704
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingCollection/ListOnboardings"
654
+ required_arguments = ['onboardingId']
655
+ resource_path = "/Onboardings/{onboardingId}"
656
+ method = "DELETE"
657
+ operation_name = "delete_onboarding"
658
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/DeleteOnboarding"
705
659
 
706
660
  # Don't accept unknown kwargs
707
661
  expected_kwargs = [
708
662
  "allow_control_chars",
709
663
  "retry_strategy",
710
- "compartment_id",
711
- "lifecycle_state",
712
- "id",
713
- "limit",
714
- "page",
715
- "sort_order",
716
- "sort_by",
664
+ "if_match",
717
665
  "opc_request_id"
718
666
  ]
719
667
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
720
668
  if extra_kwargs:
721
669
  raise ValueError(
722
- f"list_onboardings got unknown kwargs: {extra_kwargs!r}")
670
+ f"delete_onboarding got unknown kwargs: {extra_kwargs!r}")
723
671
 
724
- if 'lifecycle_state' in kwargs:
725
- lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"]
726
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
727
- raise ValueError(
728
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
729
- )
672
+ path_params = {
673
+ "onboardingId": onboarding_id
674
+ }
730
675
 
731
- if 'sort_order' in kwargs:
732
- sort_order_allowed_values = ["ASC", "DESC"]
733
- if kwargs['sort_order'] not in sort_order_allowed_values:
734
- raise ValueError(
735
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
736
- )
676
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
737
677
 
738
- if 'sort_by' in kwargs:
739
- sort_by_allowed_values = ["timeCreated", "displayName"]
740
- if kwargs['sort_by'] not in sort_by_allowed_values:
741
- raise ValueError(
742
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
743
- )
678
+ for (k, v) in six.iteritems(path_params):
679
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
680
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
681
+
682
+ header_params = {
683
+ "accept": "application/json",
684
+ "content-type": "application/json",
685
+ "if-match": kwargs.get("if_match", missing),
686
+ "opc-request-id": kwargs.get("opc_request_id", missing)
687
+ }
688
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
689
+
690
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
691
+ operation_retry_strategy=kwargs.get('retry_strategy'),
692
+ client_retry_strategy=self.retry_strategy
693
+ )
694
+ if retry_strategy is None:
695
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
696
+
697
+ if retry_strategy:
698
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
699
+ self.base_client.add_opc_client_retries_header(header_params)
700
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
701
+ return retry_strategy.make_retrying_call(
702
+ self.base_client.call_api,
703
+ resource_path=resource_path,
704
+ method=method,
705
+ path_params=path_params,
706
+ header_params=header_params,
707
+ allow_control_chars=kwargs.get('allow_control_chars'),
708
+ operation_name=operation_name,
709
+ api_reference_link=api_reference_link,
710
+ required_arguments=required_arguments)
711
+ else:
712
+ return self.base_client.call_api(
713
+ resource_path=resource_path,
714
+ method=method,
715
+ path_params=path_params,
716
+ header_params=header_params,
717
+ allow_control_chars=kwargs.get('allow_control_chars'),
718
+ operation_name=operation_name,
719
+ api_reference_link=api_reference_link,
720
+ required_arguments=required_arguments)
721
+
722
+ def delete_platform_configuration(self, platform_configuration_id, **kwargs):
723
+ """
724
+ Deletes a PlatformConfiguration resource by identifier
725
+
726
+
727
+ :param str platform_configuration_id: (required)
728
+ unique PlatformConfiguration identifier
729
+
730
+ :param str if_match: (optional)
731
+ For optimistic concurrency control. In the PUT or DELETE call
732
+ for a resource, set the `if-match` parameter to the value of the
733
+ etag from a previous GET or POST response for that resource.
734
+ The resource will be updated or deleted only if the etag you
735
+ provide matches the resource's current etag value.
736
+
737
+ :param str opc_request_id: (optional)
738
+ The client request ID for tracing.
739
+
740
+ :param obj retry_strategy: (optional)
741
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
742
+
743
+ 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.
744
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
745
+
746
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
747
+
748
+ :param bool allow_control_chars: (optional)
749
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
750
+ By default, the response will not allow control characters in strings
751
+
752
+ :return: A :class:`~oci.response.Response` object with data of type None
753
+ :rtype: :class:`~oci.response.Response`
754
+
755
+ :example:
756
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_platform_configuration.py.html>`__ to see an example of how to use delete_platform_configuration API.
757
+ """
758
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
759
+ required_arguments = ['platformConfigurationId']
760
+ resource_path = "/platformConfigurations/{platformConfigurationId}"
761
+ method = "DELETE"
762
+ operation_name = "delete_platform_configuration"
763
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/DeletePlatformConfiguration"
764
+
765
+ # Don't accept unknown kwargs
766
+ expected_kwargs = [
767
+ "allow_control_chars",
768
+ "retry_strategy",
769
+ "if_match",
770
+ "opc_request_id"
771
+ ]
772
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
773
+ if extra_kwargs:
774
+ raise ValueError(
775
+ f"delete_platform_configuration got unknown kwargs: {extra_kwargs!r}")
776
+
777
+ path_params = {
778
+ "platformConfigurationId": platform_configuration_id
779
+ }
780
+
781
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
782
+
783
+ for (k, v) in six.iteritems(path_params):
784
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
785
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
786
+
787
+ header_params = {
788
+ "accept": "application/json",
789
+ "content-type": "application/json",
790
+ "if-match": kwargs.get("if_match", missing),
791
+ "opc-request-id": kwargs.get("opc_request_id", missing)
792
+ }
793
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
794
+
795
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
796
+ operation_retry_strategy=kwargs.get('retry_strategy'),
797
+ client_retry_strategy=self.retry_strategy
798
+ )
799
+ if retry_strategy is None:
800
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
801
+
802
+ if retry_strategy:
803
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
804
+ self.base_client.add_opc_client_retries_header(header_params)
805
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
806
+ return retry_strategy.make_retrying_call(
807
+ self.base_client.call_api,
808
+ resource_path=resource_path,
809
+ method=method,
810
+ path_params=path_params,
811
+ header_params=header_params,
812
+ allow_control_chars=kwargs.get('allow_control_chars'),
813
+ operation_name=operation_name,
814
+ api_reference_link=api_reference_link,
815
+ required_arguments=required_arguments)
816
+ else:
817
+ return self.base_client.call_api(
818
+ resource_path=resource_path,
819
+ method=method,
820
+ path_params=path_params,
821
+ header_params=header_params,
822
+ allow_control_chars=kwargs.get('allow_control_chars'),
823
+ operation_name=operation_name,
824
+ api_reference_link=api_reference_link,
825
+ required_arguments=required_arguments)
826
+
827
+ def delete_property(self, property_id, **kwargs):
828
+ """
829
+ Delete a property in Fleet Application Management.
830
+
831
+
832
+ :param str property_id: (required)
833
+ unique Property identifier
834
+
835
+ :param str if_match: (optional)
836
+ For optimistic concurrency control. In the PUT or DELETE call
837
+ for a resource, set the `if-match` parameter to the value of the
838
+ etag from a previous GET or POST response for that resource.
839
+ The resource will be updated or deleted only if the etag you
840
+ provide matches the resource's current etag value.
841
+
842
+ :param str opc_request_id: (optional)
843
+ The client request ID for tracing.
844
+
845
+ :param obj retry_strategy: (optional)
846
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
847
+
848
+ 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.
849
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
850
+
851
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
852
+
853
+ :param bool allow_control_chars: (optional)
854
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
855
+ By default, the response will not allow control characters in strings
856
+
857
+ :return: A :class:`~oci.response.Response` object with data of type None
858
+ :rtype: :class:`~oci.response.Response`
859
+
860
+ :example:
861
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/delete_property.py.html>`__ to see an example of how to use delete_property API.
862
+ """
863
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
864
+ required_arguments = ['propertyId']
865
+ resource_path = "/properties/{propertyId}"
866
+ method = "DELETE"
867
+ operation_name = "delete_property"
868
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/DeleteProperty"
869
+
870
+ # Don't accept unknown kwargs
871
+ expected_kwargs = [
872
+ "allow_control_chars",
873
+ "retry_strategy",
874
+ "if_match",
875
+ "opc_request_id"
876
+ ]
877
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
878
+ if extra_kwargs:
879
+ raise ValueError(
880
+ f"delete_property got unknown kwargs: {extra_kwargs!r}")
881
+
882
+ path_params = {
883
+ "propertyId": property_id
884
+ }
885
+
886
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
887
+
888
+ for (k, v) in six.iteritems(path_params):
889
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
890
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
891
+
892
+ header_params = {
893
+ "accept": "application/json",
894
+ "content-type": "application/json",
895
+ "if-match": kwargs.get("if_match", missing),
896
+ "opc-request-id": kwargs.get("opc_request_id", missing)
897
+ }
898
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
899
+
900
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
901
+ operation_retry_strategy=kwargs.get('retry_strategy'),
902
+ client_retry_strategy=self.retry_strategy
903
+ )
904
+ if retry_strategy is None:
905
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
906
+
907
+ if retry_strategy:
908
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
909
+ self.base_client.add_opc_client_retries_header(header_params)
910
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
911
+ return retry_strategy.make_retrying_call(
912
+ self.base_client.call_api,
913
+ resource_path=resource_path,
914
+ method=method,
915
+ path_params=path_params,
916
+ header_params=header_params,
917
+ allow_control_chars=kwargs.get('allow_control_chars'),
918
+ operation_name=operation_name,
919
+ api_reference_link=api_reference_link,
920
+ required_arguments=required_arguments)
921
+ else:
922
+ return self.base_client.call_api(
923
+ resource_path=resource_path,
924
+ method=method,
925
+ path_params=path_params,
926
+ header_params=header_params,
927
+ allow_control_chars=kwargs.get('allow_control_chars'),
928
+ operation_name=operation_name,
929
+ api_reference_link=api_reference_link,
930
+ required_arguments=required_arguments)
931
+
932
+ def enable_latest_policy(self, onboarding_id, enable_latest_policy_details, **kwargs):
933
+ """
934
+ Enable Policies for a newer version of Fleet Application Management
935
+
936
+
937
+ :param str onboarding_id: (required)
938
+ A filter to return resources whose Onboarding identifier matches the given identifier.
939
+
940
+ :param oci.fleet_apps_management.models.EnableLatestPolicyDetails enable_latest_policy_details: (required)
941
+ The information to be updated.
942
+
943
+ :param str if_match: (optional)
944
+ For optimistic concurrency control. In the PUT or DELETE call
945
+ for a resource, set the `if-match` parameter to the value of the
946
+ etag from a previous GET or POST response for that resource.
947
+ The resource will be updated or deleted only if the etag you
948
+ provide matches the resource's current etag value.
949
+
950
+ :param str opc_request_id: (optional)
951
+ The client request ID for tracing.
952
+
953
+ :param str opc_retry_token: (optional)
954
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
955
+ server error without risk of executing that same action again. Retry tokens expire after 24
956
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
957
+ has been deleted and purged from the system, then a retry of the original creation request
958
+ might be rejected.
959
+
960
+ :param obj retry_strategy: (optional)
961
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
962
+
963
+ 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.
964
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
965
+
966
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
967
+
968
+ :param bool allow_control_chars: (optional)
969
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
970
+ By default, the response will not allow control characters in strings
971
+
972
+ :return: A :class:`~oci.response.Response` object with data of type None
973
+ :rtype: :class:`~oci.response.Response`
974
+
975
+ :example:
976
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/enable_latest_policy.py.html>`__ to see an example of how to use enable_latest_policy API.
977
+ """
978
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
979
+ required_arguments = ['onboardingId']
980
+ resource_path = "/Onboardings/{onboardingId}/actions/enableLatestPolicy"
981
+ method = "POST"
982
+ operation_name = "enable_latest_policy"
983
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/EnableLatestPolicy"
984
+
985
+ # Don't accept unknown kwargs
986
+ expected_kwargs = [
987
+ "allow_control_chars",
988
+ "retry_strategy",
989
+ "if_match",
990
+ "opc_request_id",
991
+ "opc_retry_token"
992
+ ]
993
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
994
+ if extra_kwargs:
995
+ raise ValueError(
996
+ f"enable_latest_policy got unknown kwargs: {extra_kwargs!r}")
997
+
998
+ path_params = {
999
+ "onboardingId": onboarding_id
1000
+ }
1001
+
1002
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1003
+
1004
+ for (k, v) in six.iteritems(path_params):
1005
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1006
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1007
+
1008
+ header_params = {
1009
+ "accept": "application/json",
1010
+ "content-type": "application/json",
1011
+ "if-match": kwargs.get("if_match", missing),
1012
+ "opc-request-id": kwargs.get("opc_request_id", missing),
1013
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
1014
+ }
1015
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1016
+
1017
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1018
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1019
+ client_retry_strategy=self.retry_strategy
1020
+ )
1021
+ if retry_strategy is None:
1022
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1023
+
1024
+ if retry_strategy:
1025
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1026
+ self.base_client.add_opc_retry_token_if_needed(header_params)
1027
+ self.base_client.add_opc_client_retries_header(header_params)
1028
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1029
+ return retry_strategy.make_retrying_call(
1030
+ self.base_client.call_api,
1031
+ resource_path=resource_path,
1032
+ method=method,
1033
+ path_params=path_params,
1034
+ header_params=header_params,
1035
+ body=enable_latest_policy_details,
1036
+ allow_control_chars=kwargs.get('allow_control_chars'),
1037
+ operation_name=operation_name,
1038
+ api_reference_link=api_reference_link,
1039
+ required_arguments=required_arguments)
1040
+ else:
1041
+ return self.base_client.call_api(
1042
+ resource_path=resource_path,
1043
+ method=method,
1044
+ path_params=path_params,
1045
+ header_params=header_params,
1046
+ body=enable_latest_policy_details,
1047
+ allow_control_chars=kwargs.get('allow_control_chars'),
1048
+ operation_name=operation_name,
1049
+ api_reference_link=api_reference_link,
1050
+ required_arguments=required_arguments)
1051
+
1052
+ def get_compliance_policy(self, compliance_policy_id, **kwargs):
1053
+ """
1054
+ Gets information about a CompliancePolicy.
1055
+
1056
+
1057
+ :param str compliance_policy_id: (required)
1058
+ unique CompliancePolicy identifier.
1059
+
1060
+ :param str opc_request_id: (optional)
1061
+ The client request ID for tracing.
1062
+
1063
+ :param obj retry_strategy: (optional)
1064
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1065
+
1066
+ 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.
1067
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1068
+
1069
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1070
+
1071
+ :param bool allow_control_chars: (optional)
1072
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1073
+ By default, the response will not allow control characters in strings
1074
+
1075
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.CompliancePolicy`
1076
+ :rtype: :class:`~oci.response.Response`
1077
+
1078
+ :example:
1079
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_compliance_policy.py.html>`__ to see an example of how to use get_compliance_policy API.
1080
+ """
1081
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1082
+ required_arguments = ['compliancePolicyId']
1083
+ resource_path = "/compliancePolicies/{compliancePolicyId}"
1084
+ method = "GET"
1085
+ operation_name = "get_compliance_policy"
1086
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicy/GetCompliancePolicy"
1087
+
1088
+ # Don't accept unknown kwargs
1089
+ expected_kwargs = [
1090
+ "allow_control_chars",
1091
+ "retry_strategy",
1092
+ "opc_request_id"
1093
+ ]
1094
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1095
+ if extra_kwargs:
1096
+ raise ValueError(
1097
+ f"get_compliance_policy got unknown kwargs: {extra_kwargs!r}")
1098
+
1099
+ path_params = {
1100
+ "compliancePolicyId": compliance_policy_id
1101
+ }
1102
+
1103
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1104
+
1105
+ for (k, v) in six.iteritems(path_params):
1106
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1107
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1108
+
1109
+ header_params = {
1110
+ "accept": "application/json",
1111
+ "content-type": "application/json",
1112
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1113
+ }
1114
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1115
+
1116
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1117
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1118
+ client_retry_strategy=self.retry_strategy
1119
+ )
1120
+ if retry_strategy is None:
1121
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1122
+
1123
+ if retry_strategy:
1124
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1125
+ self.base_client.add_opc_client_retries_header(header_params)
1126
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1127
+ return retry_strategy.make_retrying_call(
1128
+ self.base_client.call_api,
1129
+ resource_path=resource_path,
1130
+ method=method,
1131
+ path_params=path_params,
1132
+ header_params=header_params,
1133
+ response_type="CompliancePolicy",
1134
+ allow_control_chars=kwargs.get('allow_control_chars'),
1135
+ operation_name=operation_name,
1136
+ api_reference_link=api_reference_link,
1137
+ required_arguments=required_arguments)
1138
+ else:
1139
+ return self.base_client.call_api(
1140
+ resource_path=resource_path,
1141
+ method=method,
1142
+ path_params=path_params,
1143
+ header_params=header_params,
1144
+ response_type="CompliancePolicy",
1145
+ allow_control_chars=kwargs.get('allow_control_chars'),
1146
+ operation_name=operation_name,
1147
+ api_reference_link=api_reference_link,
1148
+ required_arguments=required_arguments)
1149
+
1150
+ def get_compliance_policy_rule(self, compliance_policy_rule_id, **kwargs):
1151
+ """
1152
+ Gets information about a CompliancePolicyRule.
1153
+
1154
+
1155
+ :param str compliance_policy_rule_id: (required)
1156
+ unique CompliancePolicyRule identifier.
1157
+
1158
+ :param str opc_request_id: (optional)
1159
+ The client request ID for tracing.
1160
+
1161
+ :param obj retry_strategy: (optional)
1162
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1163
+
1164
+ 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.
1165
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1166
+
1167
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1168
+
1169
+ :param bool allow_control_chars: (optional)
1170
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1171
+ By default, the response will not allow control characters in strings
1172
+
1173
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.CompliancePolicyRule`
1174
+ :rtype: :class:`~oci.response.Response`
1175
+
1176
+ :example:
1177
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_compliance_policy_rule.py.html>`__ to see an example of how to use get_compliance_policy_rule API.
1178
+ """
1179
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1180
+ required_arguments = ['compliancePolicyRuleId']
1181
+ resource_path = "/compliancePolicyRules/{compliancePolicyRuleId}"
1182
+ method = "GET"
1183
+ operation_name = "get_compliance_policy_rule"
1184
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/GetCompliancePolicyRule"
1185
+
1186
+ # Don't accept unknown kwargs
1187
+ expected_kwargs = [
1188
+ "allow_control_chars",
1189
+ "retry_strategy",
1190
+ "opc_request_id"
1191
+ ]
1192
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1193
+ if extra_kwargs:
1194
+ raise ValueError(
1195
+ f"get_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}")
1196
+
1197
+ path_params = {
1198
+ "compliancePolicyRuleId": compliance_policy_rule_id
1199
+ }
1200
+
1201
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1202
+
1203
+ for (k, v) in six.iteritems(path_params):
1204
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1205
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1206
+
1207
+ header_params = {
1208
+ "accept": "application/json",
1209
+ "content-type": "application/json",
1210
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1211
+ }
1212
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1213
+
1214
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1215
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1216
+ client_retry_strategy=self.retry_strategy
1217
+ )
1218
+ if retry_strategy is None:
1219
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1220
+
1221
+ if retry_strategy:
1222
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1223
+ self.base_client.add_opc_client_retries_header(header_params)
1224
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1225
+ return retry_strategy.make_retrying_call(
1226
+ self.base_client.call_api,
1227
+ resource_path=resource_path,
1228
+ method=method,
1229
+ path_params=path_params,
1230
+ header_params=header_params,
1231
+ response_type="CompliancePolicyRule",
1232
+ allow_control_chars=kwargs.get('allow_control_chars'),
1233
+ operation_name=operation_name,
1234
+ api_reference_link=api_reference_link,
1235
+ required_arguments=required_arguments)
1236
+ else:
1237
+ return self.base_client.call_api(
1238
+ resource_path=resource_path,
1239
+ method=method,
1240
+ path_params=path_params,
1241
+ header_params=header_params,
1242
+ response_type="CompliancePolicyRule",
1243
+ allow_control_chars=kwargs.get('allow_control_chars'),
1244
+ operation_name=operation_name,
1245
+ api_reference_link=api_reference_link,
1246
+ required_arguments=required_arguments)
1247
+
1248
+ def get_onboarding(self, onboarding_id, **kwargs):
1249
+ """
1250
+ Gets a Fleet Application Management Onboarding by identifier.
1251
+
1252
+
1253
+ :param str onboarding_id: (required)
1254
+ A filter to return resources whose Onboarding identifier matches the given identifier.
1255
+
1256
+ :param str opc_request_id: (optional)
1257
+ The client request ID for tracing.
1258
+
1259
+ :param obj retry_strategy: (optional)
1260
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1261
+
1262
+ 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.
1263
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1264
+
1265
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1266
+
1267
+ :param bool allow_control_chars: (optional)
1268
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1269
+ By default, the response will not allow control characters in strings
1270
+
1271
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.Onboarding`
1272
+ :rtype: :class:`~oci.response.Response`
1273
+
1274
+ :example:
1275
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_onboarding.py.html>`__ to see an example of how to use get_onboarding API.
1276
+ """
1277
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1278
+ required_arguments = ['onboardingId']
1279
+ resource_path = "/Onboardings/{onboardingId}"
1280
+ method = "GET"
1281
+ operation_name = "get_onboarding"
1282
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/GetOnboarding"
1283
+
1284
+ # Don't accept unknown kwargs
1285
+ expected_kwargs = [
1286
+ "allow_control_chars",
1287
+ "retry_strategy",
1288
+ "opc_request_id"
1289
+ ]
1290
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1291
+ if extra_kwargs:
1292
+ raise ValueError(
1293
+ f"get_onboarding got unknown kwargs: {extra_kwargs!r}")
1294
+
1295
+ path_params = {
1296
+ "onboardingId": onboarding_id
1297
+ }
1298
+
1299
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1300
+
1301
+ for (k, v) in six.iteritems(path_params):
1302
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1303
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1304
+
1305
+ header_params = {
1306
+ "accept": "application/json",
1307
+ "content-type": "application/json",
1308
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1309
+ }
1310
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1311
+
1312
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1313
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1314
+ client_retry_strategy=self.retry_strategy
1315
+ )
1316
+ if retry_strategy is None:
1317
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1318
+
1319
+ if retry_strategy:
1320
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1321
+ self.base_client.add_opc_client_retries_header(header_params)
1322
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1323
+ return retry_strategy.make_retrying_call(
1324
+ self.base_client.call_api,
1325
+ resource_path=resource_path,
1326
+ method=method,
1327
+ path_params=path_params,
1328
+ header_params=header_params,
1329
+ response_type="Onboarding",
1330
+ allow_control_chars=kwargs.get('allow_control_chars'),
1331
+ operation_name=operation_name,
1332
+ api_reference_link=api_reference_link,
1333
+ required_arguments=required_arguments)
1334
+ else:
1335
+ return self.base_client.call_api(
1336
+ resource_path=resource_path,
1337
+ method=method,
1338
+ path_params=path_params,
1339
+ header_params=header_params,
1340
+ response_type="Onboarding",
1341
+ allow_control_chars=kwargs.get('allow_control_chars'),
1342
+ operation_name=operation_name,
1343
+ api_reference_link=api_reference_link,
1344
+ required_arguments=required_arguments)
1345
+
1346
+ def get_platform_configuration(self, platform_configuration_id, **kwargs):
1347
+ """
1348
+ Gets a PlatformConfiguration by identifier
1349
+
1350
+
1351
+ :param str platform_configuration_id: (required)
1352
+ unique PlatformConfiguration identifier
1353
+
1354
+ :param str opc_request_id: (optional)
1355
+ The client request ID for tracing.
1356
+
1357
+ :param obj retry_strategy: (optional)
1358
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1359
+
1360
+ 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.
1361
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1362
+
1363
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1364
+
1365
+ :param bool allow_control_chars: (optional)
1366
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1367
+ By default, the response will not allow control characters in strings
1368
+
1369
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PlatformConfiguration`
1370
+ :rtype: :class:`~oci.response.Response`
1371
+
1372
+ :example:
1373
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_platform_configuration.py.html>`__ to see an example of how to use get_platform_configuration API.
1374
+ """
1375
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1376
+ required_arguments = ['platformConfigurationId']
1377
+ resource_path = "/platformConfigurations/{platformConfigurationId}"
1378
+ method = "GET"
1379
+ operation_name = "get_platform_configuration"
1380
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/GetPlatformConfiguration"
1381
+
1382
+ # Don't accept unknown kwargs
1383
+ expected_kwargs = [
1384
+ "allow_control_chars",
1385
+ "retry_strategy",
1386
+ "opc_request_id"
1387
+ ]
1388
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1389
+ if extra_kwargs:
1390
+ raise ValueError(
1391
+ f"get_platform_configuration got unknown kwargs: {extra_kwargs!r}")
1392
+
1393
+ path_params = {
1394
+ "platformConfigurationId": platform_configuration_id
1395
+ }
1396
+
1397
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1398
+
1399
+ for (k, v) in six.iteritems(path_params):
1400
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1401
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1402
+
1403
+ header_params = {
1404
+ "accept": "application/json",
1405
+ "content-type": "application/json",
1406
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1407
+ }
1408
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1409
+
1410
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1411
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1412
+ client_retry_strategy=self.retry_strategy
1413
+ )
1414
+ if retry_strategy is None:
1415
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1416
+
1417
+ if retry_strategy:
1418
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1419
+ self.base_client.add_opc_client_retries_header(header_params)
1420
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1421
+ return retry_strategy.make_retrying_call(
1422
+ self.base_client.call_api,
1423
+ resource_path=resource_path,
1424
+ method=method,
1425
+ path_params=path_params,
1426
+ header_params=header_params,
1427
+ response_type="PlatformConfiguration",
1428
+ allow_control_chars=kwargs.get('allow_control_chars'),
1429
+ operation_name=operation_name,
1430
+ api_reference_link=api_reference_link,
1431
+ required_arguments=required_arguments)
1432
+ else:
1433
+ return self.base_client.call_api(
1434
+ resource_path=resource_path,
1435
+ method=method,
1436
+ path_params=path_params,
1437
+ header_params=header_params,
1438
+ response_type="PlatformConfiguration",
1439
+ allow_control_chars=kwargs.get('allow_control_chars'),
1440
+ operation_name=operation_name,
1441
+ api_reference_link=api_reference_link,
1442
+ required_arguments=required_arguments)
1443
+
1444
+ def get_property(self, property_id, **kwargs):
1445
+ """
1446
+ Gets a Property by identifier
1447
+
1448
+
1449
+ :param str property_id: (required)
1450
+ unique Property identifier
1451
+
1452
+ :param str opc_request_id: (optional)
1453
+ The client request ID for tracing.
1454
+
1455
+ :param obj retry_strategy: (optional)
1456
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1457
+
1458
+ 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.
1459
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1460
+
1461
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1462
+
1463
+ :param bool allow_control_chars: (optional)
1464
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1465
+ By default, the response will not allow control characters in strings
1466
+
1467
+ :return: A :class:`~oci.response.Response` object with data of type ModelProperty
1468
+ :rtype: :class:`~oci.response.Response`
1469
+
1470
+ :example:
1471
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/get_property.py.html>`__ to see an example of how to use get_property API.
1472
+ """
1473
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1474
+ required_arguments = ['propertyId']
1475
+ resource_path = "/properties/{propertyId}"
1476
+ method = "GET"
1477
+ operation_name = "get_property"
1478
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Property/GetProperty"
1479
+
1480
+ # Don't accept unknown kwargs
1481
+ expected_kwargs = [
1482
+ "allow_control_chars",
1483
+ "retry_strategy",
1484
+ "opc_request_id"
1485
+ ]
1486
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1487
+ if extra_kwargs:
1488
+ raise ValueError(
1489
+ f"get_property got unknown kwargs: {extra_kwargs!r}")
1490
+
1491
+ path_params = {
1492
+ "propertyId": property_id
1493
+ }
1494
+
1495
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
1496
+
1497
+ for (k, v) in six.iteritems(path_params):
1498
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
1499
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
1500
+
1501
+ header_params = {
1502
+ "accept": "application/json",
1503
+ "content-type": "application/json",
1504
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1505
+ }
1506
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1507
+
1508
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1509
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1510
+ client_retry_strategy=self.retry_strategy
1511
+ )
1512
+ if retry_strategy is None:
1513
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1514
+
1515
+ if retry_strategy:
1516
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1517
+ self.base_client.add_opc_client_retries_header(header_params)
1518
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1519
+ return retry_strategy.make_retrying_call(
1520
+ self.base_client.call_api,
1521
+ resource_path=resource_path,
1522
+ method=method,
1523
+ path_params=path_params,
1524
+ header_params=header_params,
1525
+ response_type="ModelProperty",
1526
+ allow_control_chars=kwargs.get('allow_control_chars'),
1527
+ operation_name=operation_name,
1528
+ api_reference_link=api_reference_link,
1529
+ required_arguments=required_arguments)
1530
+ else:
1531
+ return self.base_client.call_api(
1532
+ resource_path=resource_path,
1533
+ method=method,
1534
+ path_params=path_params,
1535
+ header_params=header_params,
1536
+ response_type="ModelProperty",
1537
+ allow_control_chars=kwargs.get('allow_control_chars'),
1538
+ operation_name=operation_name,
1539
+ api_reference_link=api_reference_link,
1540
+ required_arguments=required_arguments)
1541
+
1542
+ def list_compliance_policies(self, **kwargs):
1543
+ """
1544
+ Gets a list of compliancePolicies.
1545
+
1546
+
1547
+ :param str compartment_id: (optional)
1548
+ The ID of the compartment in which to list resources.
1549
+
1550
+ :param str lifecycle_state: (optional)
1551
+ A filter to return only resources that match the given lifecycle state. The
1552
+ state value is case-insensitive.
1553
+
1554
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
1555
+
1556
+ :param str display_name: (optional)
1557
+ A filter to return only resources that match the entire display name given.
1558
+
1559
+ :param str id: (optional)
1560
+ unique CompliancePolicy identifier.
1561
+
1562
+ :param int limit: (optional)
1563
+ The maximum number of items to return.
1564
+
1565
+ :param str page: (optional)
1566
+ 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.
1567
+
1568
+ :param str sort_order: (optional)
1569
+ The sort order to use, either 'ASC' or 'DESC'.
1570
+
1571
+ Allowed values are: "ASC", "DESC"
1572
+
1573
+ :param str sort_by: (optional)
1574
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
1575
+
1576
+ Allowed values are: "timeCreated", "displayName"
1577
+
1578
+ :param str opc_request_id: (optional)
1579
+ The client request ID for tracing.
1580
+
1581
+ :param obj retry_strategy: (optional)
1582
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1583
+
1584
+ 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.
1585
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1586
+
1587
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1588
+
1589
+ :param bool allow_control_chars: (optional)
1590
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1591
+ By default, the response will not allow control characters in strings
1592
+
1593
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.CompliancePolicyCollection`
1594
+ :rtype: :class:`~oci.response.Response`
1595
+
1596
+ :example:
1597
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_compliance_policies.py.html>`__ to see an example of how to use list_compliance_policies API.
1598
+ """
1599
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1600
+ required_arguments = []
1601
+ resource_path = "/compliancePolicies"
1602
+ method = "GET"
1603
+ operation_name = "list_compliance_policies"
1604
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyCollection/ListCompliancePolicies"
1605
+
1606
+ # Don't accept unknown kwargs
1607
+ expected_kwargs = [
1608
+ "allow_control_chars",
1609
+ "retry_strategy",
1610
+ "compartment_id",
1611
+ "lifecycle_state",
1612
+ "display_name",
1613
+ "id",
1614
+ "limit",
1615
+ "page",
1616
+ "sort_order",
1617
+ "sort_by",
1618
+ "opc_request_id"
1619
+ ]
1620
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1621
+ if extra_kwargs:
1622
+ raise ValueError(
1623
+ f"list_compliance_policies got unknown kwargs: {extra_kwargs!r}")
1624
+
1625
+ if 'lifecycle_state' in kwargs:
1626
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
1627
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1628
+ raise ValueError(
1629
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1630
+ )
1631
+
1632
+ if 'sort_order' in kwargs:
1633
+ sort_order_allowed_values = ["ASC", "DESC"]
1634
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1635
+ raise ValueError(
1636
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1637
+ )
1638
+
1639
+ if 'sort_by' in kwargs:
1640
+ sort_by_allowed_values = ["timeCreated", "displayName"]
1641
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1642
+ raise ValueError(
1643
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1644
+ )
1645
+
1646
+ query_params = {
1647
+ "compartmentId": kwargs.get("compartment_id", missing),
1648
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1649
+ "displayName": kwargs.get("display_name", missing),
1650
+ "id": kwargs.get("id", missing),
1651
+ "limit": kwargs.get("limit", missing),
1652
+ "page": kwargs.get("page", missing),
1653
+ "sortOrder": kwargs.get("sort_order", missing),
1654
+ "sortBy": kwargs.get("sort_by", missing)
1655
+ }
1656
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1657
+
1658
+ header_params = {
1659
+ "accept": "application/json",
1660
+ "content-type": "application/json",
1661
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1662
+ }
1663
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1664
+
1665
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1666
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1667
+ client_retry_strategy=self.retry_strategy
1668
+ )
1669
+ if retry_strategy is None:
1670
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1671
+
1672
+ if retry_strategy:
1673
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1674
+ self.base_client.add_opc_client_retries_header(header_params)
1675
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1676
+ return retry_strategy.make_retrying_call(
1677
+ self.base_client.call_api,
1678
+ resource_path=resource_path,
1679
+ method=method,
1680
+ query_params=query_params,
1681
+ header_params=header_params,
1682
+ response_type="CompliancePolicyCollection",
1683
+ allow_control_chars=kwargs.get('allow_control_chars'),
1684
+ operation_name=operation_name,
1685
+ api_reference_link=api_reference_link,
1686
+ required_arguments=required_arguments)
1687
+ else:
1688
+ return self.base_client.call_api(
1689
+ resource_path=resource_path,
1690
+ method=method,
1691
+ query_params=query_params,
1692
+ header_params=header_params,
1693
+ response_type="CompliancePolicyCollection",
1694
+ allow_control_chars=kwargs.get('allow_control_chars'),
1695
+ operation_name=operation_name,
1696
+ api_reference_link=api_reference_link,
1697
+ required_arguments=required_arguments)
1698
+
1699
+ def list_compliance_policy_rules(self, **kwargs):
1700
+ """
1701
+ Gets a list of CompliancePolicyRules.
1702
+
1703
+
1704
+ :param str compartment_id: (optional)
1705
+ The ID of the compartment in which to list resources.
1706
+
1707
+ :param str display_name: (optional)
1708
+ A filter to return only resources that match the entire display name given.
1709
+
1710
+ :param str lifecycle_state: (optional)
1711
+ A filter to return only resources that match the given lifecycle state. The
1712
+ state value is case-insensitive.
1713
+
1714
+ Allowed values are: "CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"
1715
+
1716
+ :param str patch_name: (optional)
1717
+ A filter to return only resources that match the patch selection against the given patch name.
1718
+
1719
+ :param str compliance_policy_id: (optional)
1720
+ unique CompliancePolicy identifier.
1721
+
1722
+ :param str id: (optional)
1723
+ unique CompliancePolicyRule identifier.
1724
+
1725
+ :param int limit: (optional)
1726
+ The maximum number of items to return.
1727
+
1728
+ :param str page: (optional)
1729
+ 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.
1730
+
1731
+ :param str sort_order: (optional)
1732
+ The sort order to use, either 'ASC' or 'DESC'.
1733
+
1734
+ Allowed values are: "ASC", "DESC"
1735
+
1736
+ :param str sort_by: (optional)
1737
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
1738
+
1739
+ Allowed values are: "timeCreated", "displayName"
1740
+
1741
+ :param str opc_request_id: (optional)
1742
+ The client request ID for tracing.
1743
+
1744
+ :param obj retry_strategy: (optional)
1745
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1746
+
1747
+ 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.
1748
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1749
+
1750
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1751
+
1752
+ :param bool allow_control_chars: (optional)
1753
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1754
+ By default, the response will not allow control characters in strings
1755
+
1756
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.CompliancePolicyRuleCollection`
1757
+ :rtype: :class:`~oci.response.Response`
1758
+
1759
+ :example:
1760
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_compliance_policy_rules.py.html>`__ to see an example of how to use list_compliance_policy_rules API.
1761
+ """
1762
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1763
+ required_arguments = []
1764
+ resource_path = "/compliancePolicyRules"
1765
+ method = "GET"
1766
+ operation_name = "list_compliance_policy_rules"
1767
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRuleCollection/ListCompliancePolicyRules"
1768
+
1769
+ # Don't accept unknown kwargs
1770
+ expected_kwargs = [
1771
+ "allow_control_chars",
1772
+ "retry_strategy",
1773
+ "compartment_id",
1774
+ "display_name",
1775
+ "lifecycle_state",
1776
+ "patch_name",
1777
+ "compliance_policy_id",
1778
+ "id",
1779
+ "limit",
1780
+ "page",
1781
+ "sort_order",
1782
+ "sort_by",
1783
+ "opc_request_id"
1784
+ ]
1785
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1786
+ if extra_kwargs:
1787
+ raise ValueError(
1788
+ f"list_compliance_policy_rules got unknown kwargs: {extra_kwargs!r}")
1789
+
1790
+ if 'lifecycle_state' in kwargs:
1791
+ lifecycle_state_allowed_values = ["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]
1792
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
1793
+ raise ValueError(
1794
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
1795
+ )
1796
+
1797
+ if 'sort_order' in kwargs:
1798
+ sort_order_allowed_values = ["ASC", "DESC"]
1799
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1800
+ raise ValueError(
1801
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1802
+ )
1803
+
1804
+ if 'sort_by' in kwargs:
1805
+ sort_by_allowed_values = ["timeCreated", "displayName"]
1806
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1807
+ raise ValueError(
1808
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1809
+ )
1810
+
1811
+ query_params = {
1812
+ "compartmentId": kwargs.get("compartment_id", missing),
1813
+ "displayName": kwargs.get("display_name", missing),
1814
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
1815
+ "patchName": kwargs.get("patch_name", missing),
1816
+ "compliancePolicyId": kwargs.get("compliance_policy_id", missing),
1817
+ "id": kwargs.get("id", missing),
1818
+ "limit": kwargs.get("limit", missing),
1819
+ "page": kwargs.get("page", missing),
1820
+ "sortOrder": kwargs.get("sort_order", missing),
1821
+ "sortBy": kwargs.get("sort_by", missing)
1822
+ }
1823
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1824
+
1825
+ header_params = {
1826
+ "accept": "application/json",
1827
+ "content-type": "application/json",
1828
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1829
+ }
1830
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1831
+
1832
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1833
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1834
+ client_retry_strategy=self.retry_strategy
1835
+ )
1836
+ if retry_strategy is None:
1837
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1838
+
1839
+ if retry_strategy:
1840
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1841
+ self.base_client.add_opc_client_retries_header(header_params)
1842
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1843
+ return retry_strategy.make_retrying_call(
1844
+ self.base_client.call_api,
1845
+ resource_path=resource_path,
1846
+ method=method,
1847
+ query_params=query_params,
1848
+ header_params=header_params,
1849
+ response_type="CompliancePolicyRuleCollection",
1850
+ allow_control_chars=kwargs.get('allow_control_chars'),
1851
+ operation_name=operation_name,
1852
+ api_reference_link=api_reference_link,
1853
+ required_arguments=required_arguments)
1854
+ else:
1855
+ return self.base_client.call_api(
1856
+ resource_path=resource_path,
1857
+ method=method,
1858
+ query_params=query_params,
1859
+ header_params=header_params,
1860
+ response_type="CompliancePolicyRuleCollection",
1861
+ allow_control_chars=kwargs.get('allow_control_chars'),
1862
+ operation_name=operation_name,
1863
+ api_reference_link=api_reference_link,
1864
+ required_arguments=required_arguments)
1865
+
1866
+ def list_onboarding_policies(self, **kwargs):
1867
+ """
1868
+ Returns a list of onboarding policy information for Fleet Application Management.
1869
+
1870
+
1871
+ :param int limit: (optional)
1872
+ The maximum number of items to return.
1873
+
1874
+ :param str page: (optional)
1875
+ 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.
1876
+
1877
+ :param str sort_order: (optional)
1878
+ The sort order to use, either 'ASC' or 'DESC'.
1879
+
1880
+ Allowed values are: "ASC", "DESC"
1881
+
1882
+ :param str sort_by: (optional)
1883
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending.
1884
+
1885
+ Allowed values are: "timeCreated"
1886
+
1887
+ :param str opc_request_id: (optional)
1888
+ The client request ID for tracing.
1889
+
1890
+ :param obj retry_strategy: (optional)
1891
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
1892
+
1893
+ 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.
1894
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
1895
+
1896
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
1897
+
1898
+ :param bool allow_control_chars: (optional)
1899
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
1900
+ By default, the response will not allow control characters in strings
1901
+
1902
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.OnboardingPolicyCollection`
1903
+ :rtype: :class:`~oci.response.Response`
1904
+
1905
+ :example:
1906
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_onboarding_policies.py.html>`__ to see an example of how to use list_onboarding_policies API.
1907
+ """
1908
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1909
+ required_arguments = []
1910
+ resource_path = "/OnboardingPolicies"
1911
+ method = "GET"
1912
+ operation_name = "list_onboarding_policies"
1913
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingPolicyCollection/ListOnboardingPolicies"
1914
+
1915
+ # Don't accept unknown kwargs
1916
+ expected_kwargs = [
1917
+ "allow_control_chars",
1918
+ "retry_strategy",
1919
+ "limit",
1920
+ "page",
1921
+ "sort_order",
1922
+ "sort_by",
1923
+ "opc_request_id"
1924
+ ]
1925
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
1926
+ if extra_kwargs:
1927
+ raise ValueError(
1928
+ f"list_onboarding_policies got unknown kwargs: {extra_kwargs!r}")
1929
+
1930
+ if 'sort_order' in kwargs:
1931
+ sort_order_allowed_values = ["ASC", "DESC"]
1932
+ if kwargs['sort_order'] not in sort_order_allowed_values:
1933
+ raise ValueError(
1934
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
1935
+ )
1936
+
1937
+ if 'sort_by' in kwargs:
1938
+ sort_by_allowed_values = ["timeCreated"]
1939
+ if kwargs['sort_by'] not in sort_by_allowed_values:
1940
+ raise ValueError(
1941
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
1942
+ )
1943
+
1944
+ query_params = {
1945
+ "limit": kwargs.get("limit", missing),
1946
+ "page": kwargs.get("page", missing),
1947
+ "sortOrder": kwargs.get("sort_order", missing),
1948
+ "sortBy": kwargs.get("sort_by", missing)
1949
+ }
1950
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
1951
+
1952
+ header_params = {
1953
+ "accept": "application/json",
1954
+ "content-type": "application/json",
1955
+ "opc-request-id": kwargs.get("opc_request_id", missing)
1956
+ }
1957
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
1958
+
1959
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
1960
+ operation_retry_strategy=kwargs.get('retry_strategy'),
1961
+ client_retry_strategy=self.retry_strategy
1962
+ )
1963
+ if retry_strategy is None:
1964
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
1965
+
1966
+ if retry_strategy:
1967
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
1968
+ self.base_client.add_opc_client_retries_header(header_params)
1969
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
1970
+ return retry_strategy.make_retrying_call(
1971
+ self.base_client.call_api,
1972
+ resource_path=resource_path,
1973
+ method=method,
1974
+ query_params=query_params,
1975
+ header_params=header_params,
1976
+ response_type="OnboardingPolicyCollection",
1977
+ allow_control_chars=kwargs.get('allow_control_chars'),
1978
+ operation_name=operation_name,
1979
+ api_reference_link=api_reference_link,
1980
+ required_arguments=required_arguments)
1981
+ else:
1982
+ return self.base_client.call_api(
1983
+ resource_path=resource_path,
1984
+ method=method,
1985
+ query_params=query_params,
1986
+ header_params=header_params,
1987
+ response_type="OnboardingPolicyCollection",
1988
+ allow_control_chars=kwargs.get('allow_control_chars'),
1989
+ operation_name=operation_name,
1990
+ api_reference_link=api_reference_link,
1991
+ required_arguments=required_arguments)
1992
+
1993
+ def list_onboardings(self, **kwargs):
1994
+ """
1995
+ Returns a list of onboarding information for the Tenancy.
1996
+
1997
+
1998
+ :param str compartment_id: (optional)
1999
+ The ID of the compartment in which to list resources.
2000
+
2001
+ :param str lifecycle_state: (optional)
2002
+ A filter to return only resources whose lifecycleState matches the given lifecycleState.
2003
+
2004
+ Allowed values are: "ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"
2005
+
2006
+ :param str id: (optional)
2007
+ unique onboarding identifier
2008
+
2009
+ :param int limit: (optional)
2010
+ The maximum number of items to return.
2011
+
2012
+ :param str page: (optional)
2013
+ 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.
2014
+
2015
+ :param str sort_order: (optional)
2016
+ The sort order to use, either 'ASC' or 'DESC'.
2017
+
2018
+ Allowed values are: "ASC", "DESC"
2019
+
2020
+ :param str sort_by: (optional)
2021
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
2022
+
2023
+ Allowed values are: "timeCreated", "displayName"
2024
+
2025
+ :param str opc_request_id: (optional)
2026
+ The client request ID for tracing.
2027
+
2028
+ :param obj retry_strategy: (optional)
2029
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2030
+
2031
+ 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.
2032
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2033
+
2034
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2035
+
2036
+ :param bool allow_control_chars: (optional)
2037
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2038
+ By default, the response will not allow control characters in strings
2039
+
2040
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.OnboardingCollection`
2041
+ :rtype: :class:`~oci.response.Response`
2042
+
2043
+ :example:
2044
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_onboardings.py.html>`__ to see an example of how to use list_onboardings API.
2045
+ """
2046
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2047
+ required_arguments = []
2048
+ resource_path = "/Onboardings"
2049
+ method = "GET"
2050
+ operation_name = "list_onboardings"
2051
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/OnboardingCollection/ListOnboardings"
2052
+
2053
+ # Don't accept unknown kwargs
2054
+ expected_kwargs = [
2055
+ "allow_control_chars",
2056
+ "retry_strategy",
2057
+ "compartment_id",
2058
+ "lifecycle_state",
2059
+ "id",
2060
+ "limit",
2061
+ "page",
2062
+ "sort_order",
2063
+ "sort_by",
2064
+ "opc_request_id"
2065
+ ]
2066
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2067
+ if extra_kwargs:
2068
+ raise ValueError(
2069
+ f"list_onboardings got unknown kwargs: {extra_kwargs!r}")
2070
+
2071
+ if 'lifecycle_state' in kwargs:
2072
+ lifecycle_state_allowed_values = ["ACTIVE", "INACTIVE", "CREATING", "DELETED", "DELETING", "FAILED", "UPDATING", "NEEDS_ATTENTION"]
2073
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
2074
+ raise ValueError(
2075
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
2076
+ )
2077
+
2078
+ if 'sort_order' in kwargs:
2079
+ sort_order_allowed_values = ["ASC", "DESC"]
2080
+ if kwargs['sort_order'] not in sort_order_allowed_values:
2081
+ raise ValueError(
2082
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
2083
+ )
2084
+
2085
+ if 'sort_by' in kwargs:
2086
+ sort_by_allowed_values = ["timeCreated", "displayName"]
2087
+ if kwargs['sort_by'] not in sort_by_allowed_values:
2088
+ raise ValueError(
2089
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
2090
+ )
2091
+
2092
+ query_params = {
2093
+ "compartmentId": kwargs.get("compartment_id", missing),
2094
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
2095
+ "id": kwargs.get("id", missing),
2096
+ "limit": kwargs.get("limit", missing),
2097
+ "page": kwargs.get("page", missing),
2098
+ "sortOrder": kwargs.get("sort_order", missing),
2099
+ "sortBy": kwargs.get("sort_by", missing)
2100
+ }
2101
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2102
+
2103
+ header_params = {
2104
+ "accept": "application/json",
2105
+ "content-type": "application/json",
2106
+ "opc-request-id": kwargs.get("opc_request_id", missing)
2107
+ }
2108
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2109
+
2110
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2111
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2112
+ client_retry_strategy=self.retry_strategy
2113
+ )
2114
+ if retry_strategy is None:
2115
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2116
+
2117
+ if retry_strategy:
2118
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2119
+ self.base_client.add_opc_client_retries_header(header_params)
2120
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2121
+ return retry_strategy.make_retrying_call(
2122
+ self.base_client.call_api,
2123
+ resource_path=resource_path,
2124
+ method=method,
2125
+ query_params=query_params,
2126
+ header_params=header_params,
2127
+ response_type="OnboardingCollection",
2128
+ allow_control_chars=kwargs.get('allow_control_chars'),
2129
+ operation_name=operation_name,
2130
+ api_reference_link=api_reference_link,
2131
+ required_arguments=required_arguments)
2132
+ else:
2133
+ return self.base_client.call_api(
2134
+ resource_path=resource_path,
2135
+ method=method,
2136
+ query_params=query_params,
2137
+ header_params=header_params,
2138
+ response_type="OnboardingCollection",
2139
+ allow_control_chars=kwargs.get('allow_control_chars'),
2140
+ operation_name=operation_name,
2141
+ api_reference_link=api_reference_link,
2142
+ required_arguments=required_arguments)
2143
+
2144
+ def list_platform_configurations(self, **kwargs):
2145
+ """
2146
+ Returns a list of PlatformConfiguration for Tenancy.
2147
+
2148
+
2149
+ :param str compartment_id: (optional)
2150
+ The ID of the compartment in which to list resources.
2151
+
2152
+ :param str lifecycle_state: (optional)
2153
+ A filter to return only resources their lifecycleState matches the given lifecycleState.
2154
+
2155
+ Allowed values are: "ACTIVE", "DELETED", "FAILED", "DELETING", "UPDATING"
2156
+
2157
+ :param str display_name: (optional)
2158
+ A filter to return only resources that match the entire display name given.
2159
+
2160
+ :param str id: (optional)
2161
+ unique PlatformConfiguration identifier
2162
+
2163
+ :param str config_category: (optional)
2164
+ Config Category
2165
+
2166
+ Allowed values are: "PRODUCT", "PRODUCT_STACK", "ENVIRONMENT", "PATCH_TYPE", "CREDENTIAL"
2167
+
2168
+ :param int limit: (optional)
2169
+ The maximum number of items to return.
2170
+
2171
+ :param str page: (optional)
2172
+ 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.
2173
+
2174
+ :param str sort_order: (optional)
2175
+ The sort order to use, either 'ASC' or 'DESC'.
2176
+
2177
+ Allowed values are: "ASC", "DESC"
2178
+
2179
+ :param str sort_by: (optional)
2180
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
2181
+
2182
+ Allowed values are: "timeCreated", "displayName"
2183
+
2184
+ :param str opc_request_id: (optional)
2185
+ The client request ID for tracing.
2186
+
2187
+ :param obj retry_strategy: (optional)
2188
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2189
+
2190
+ 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.
2191
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2192
+
2193
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2194
+
2195
+ :param bool allow_control_chars: (optional)
2196
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2197
+ By default, the response will not allow control characters in strings
2198
+
2199
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PlatformConfigurationCollection`
2200
+ :rtype: :class:`~oci.response.Response`
2201
+
2202
+ :example:
2203
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_platform_configurations.py.html>`__ to see an example of how to use list_platform_configurations API.
2204
+ """
2205
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2206
+ required_arguments = []
2207
+ resource_path = "/platformConfigurations"
2208
+ method = "GET"
2209
+ operation_name = "list_platform_configurations"
2210
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfigurationCollection/ListPlatformConfigurations"
2211
+
2212
+ # Don't accept unknown kwargs
2213
+ expected_kwargs = [
2214
+ "allow_control_chars",
2215
+ "retry_strategy",
2216
+ "compartment_id",
2217
+ "lifecycle_state",
2218
+ "display_name",
2219
+ "id",
2220
+ "config_category",
2221
+ "limit",
2222
+ "page",
2223
+ "sort_order",
2224
+ "sort_by",
2225
+ "opc_request_id"
2226
+ ]
2227
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2228
+ if extra_kwargs:
2229
+ raise ValueError(
2230
+ f"list_platform_configurations got unknown kwargs: {extra_kwargs!r}")
2231
+
2232
+ if 'lifecycle_state' in kwargs:
2233
+ lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED", "DELETING", "UPDATING"]
2234
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
2235
+ raise ValueError(
2236
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
2237
+ )
2238
+
2239
+ if 'config_category' in kwargs:
2240
+ config_category_allowed_values = ["PRODUCT", "PRODUCT_STACK", "ENVIRONMENT", "PATCH_TYPE", "CREDENTIAL"]
2241
+ if kwargs['config_category'] not in config_category_allowed_values:
2242
+ raise ValueError(
2243
+ f"Invalid value for `config_category`, must be one of { config_category_allowed_values }"
2244
+ )
2245
+
2246
+ if 'sort_order' in kwargs:
2247
+ sort_order_allowed_values = ["ASC", "DESC"]
2248
+ if kwargs['sort_order'] not in sort_order_allowed_values:
2249
+ raise ValueError(
2250
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
2251
+ )
2252
+
2253
+ if 'sort_by' in kwargs:
2254
+ sort_by_allowed_values = ["timeCreated", "displayName"]
2255
+ if kwargs['sort_by'] not in sort_by_allowed_values:
2256
+ raise ValueError(
2257
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
2258
+ )
2259
+
2260
+ query_params = {
2261
+ "compartmentId": kwargs.get("compartment_id", missing),
2262
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
2263
+ "displayName": kwargs.get("display_name", missing),
2264
+ "id": kwargs.get("id", missing),
2265
+ "configCategory": kwargs.get("config_category", missing),
2266
+ "limit": kwargs.get("limit", missing),
2267
+ "page": kwargs.get("page", missing),
2268
+ "sortOrder": kwargs.get("sort_order", missing),
2269
+ "sortBy": kwargs.get("sort_by", missing)
2270
+ }
2271
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2272
+
2273
+ header_params = {
2274
+ "accept": "application/json",
2275
+ "content-type": "application/json",
2276
+ "opc-request-id": kwargs.get("opc_request_id", missing)
2277
+ }
2278
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2279
+
2280
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2281
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2282
+ client_retry_strategy=self.retry_strategy
2283
+ )
2284
+ if retry_strategy is None:
2285
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2286
+
2287
+ if retry_strategy:
2288
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2289
+ self.base_client.add_opc_client_retries_header(header_params)
2290
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2291
+ return retry_strategy.make_retrying_call(
2292
+ self.base_client.call_api,
2293
+ resource_path=resource_path,
2294
+ method=method,
2295
+ query_params=query_params,
2296
+ header_params=header_params,
2297
+ response_type="PlatformConfigurationCollection",
2298
+ allow_control_chars=kwargs.get('allow_control_chars'),
2299
+ operation_name=operation_name,
2300
+ api_reference_link=api_reference_link,
2301
+ required_arguments=required_arguments)
2302
+ else:
2303
+ return self.base_client.call_api(
2304
+ resource_path=resource_path,
2305
+ method=method,
2306
+ query_params=query_params,
2307
+ header_params=header_params,
2308
+ response_type="PlatformConfigurationCollection",
2309
+ allow_control_chars=kwargs.get('allow_control_chars'),
2310
+ operation_name=operation_name,
2311
+ api_reference_link=api_reference_link,
2312
+ required_arguments=required_arguments)
2313
+
2314
+ def list_properties(self, **kwargs):
2315
+ """
2316
+ List properties and their values for a tenancy in Fleet Application Management.
2317
+
2318
+
2319
+ :param str compartment_id: (optional)
2320
+ The ID of the compartment in which to list resources.
2321
+
2322
+ :param str lifecycle_state: (optional)
2323
+ A filter to return only resources whose lifecycleState matches the given lifecycleState.
2324
+
2325
+ Allowed values are: "ACTIVE", "DELETED", "FAILED"
2326
+
2327
+ :param str display_name: (optional)
2328
+ A filter to return only resources that match the entire display name given.
2329
+
2330
+ :param str id: (optional)
2331
+ A filter to return only resources whose Property identifier matches the given identifier.
2332
+
2333
+ :param str scope: (optional)
2334
+ A filter to return only resources their scope matches the given scope.
2335
+
2336
+ Allowed values are: "TAXONOMY", "PLATFORM_CONFIG"
2337
+
2338
+ :param int limit: (optional)
2339
+ The maximum number of items to return.
2340
+
2341
+ :param str page: (optional)
2342
+ 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.
2343
+
2344
+ :param str sort_order: (optional)
2345
+ The sort order to use, either 'ASC' or 'DESC'.
2346
+
2347
+ Allowed values are: "ASC", "DESC"
2348
+
2349
+ :param str sort_by: (optional)
2350
+ The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
2351
+
2352
+ Allowed values are: "timeCreated", "displayName"
2353
+
2354
+ :param str opc_request_id: (optional)
2355
+ The client request ID for tracing.
2356
+
2357
+ :param obj retry_strategy: (optional)
2358
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2359
+
2360
+ 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.
2361
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2362
+
2363
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2364
+
2365
+ :param bool allow_control_chars: (optional)
2366
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2367
+ By default, the response will not allow control characters in strings
2368
+
2369
+ :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PropertyCollection`
2370
+ :rtype: :class:`~oci.response.Response`
2371
+
2372
+ :example:
2373
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/list_properties.py.html>`__ to see an example of how to use list_properties API.
2374
+ """
2375
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2376
+ required_arguments = []
2377
+ resource_path = "/properties"
2378
+ method = "GET"
2379
+ operation_name = "list_properties"
2380
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PropertyCollection/ListProperties"
2381
+
2382
+ # Don't accept unknown kwargs
2383
+ expected_kwargs = [
2384
+ "allow_control_chars",
2385
+ "retry_strategy",
2386
+ "compartment_id",
2387
+ "lifecycle_state",
2388
+ "display_name",
2389
+ "id",
2390
+ "scope",
2391
+ "limit",
2392
+ "page",
2393
+ "sort_order",
2394
+ "sort_by",
2395
+ "opc_request_id"
2396
+ ]
2397
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2398
+ if extra_kwargs:
2399
+ raise ValueError(
2400
+ f"list_properties got unknown kwargs: {extra_kwargs!r}")
2401
+
2402
+ if 'lifecycle_state' in kwargs:
2403
+ lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
2404
+ if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
2405
+ raise ValueError(
2406
+ f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
2407
+ )
2408
+
2409
+ if 'scope' in kwargs:
2410
+ scope_allowed_values = ["TAXONOMY", "PLATFORM_CONFIG"]
2411
+ if kwargs['scope'] not in scope_allowed_values:
2412
+ raise ValueError(
2413
+ f"Invalid value for `scope`, must be one of { scope_allowed_values }"
2414
+ )
2415
+
2416
+ if 'sort_order' in kwargs:
2417
+ sort_order_allowed_values = ["ASC", "DESC"]
2418
+ if kwargs['sort_order'] not in sort_order_allowed_values:
2419
+ raise ValueError(
2420
+ f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
2421
+ )
2422
+
2423
+ if 'sort_by' in kwargs:
2424
+ sort_by_allowed_values = ["timeCreated", "displayName"]
2425
+ if kwargs['sort_by'] not in sort_by_allowed_values:
2426
+ raise ValueError(
2427
+ f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
2428
+ )
2429
+
2430
+ query_params = {
2431
+ "compartmentId": kwargs.get("compartment_id", missing),
2432
+ "lifecycleState": kwargs.get("lifecycle_state", missing),
2433
+ "displayName": kwargs.get("display_name", missing),
2434
+ "id": kwargs.get("id", missing),
2435
+ "scope": kwargs.get("scope", missing),
2436
+ "limit": kwargs.get("limit", missing),
2437
+ "page": kwargs.get("page", missing),
2438
+ "sortOrder": kwargs.get("sort_order", missing),
2439
+ "sortBy": kwargs.get("sort_by", missing)
2440
+ }
2441
+ query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2442
+
2443
+ header_params = {
2444
+ "accept": "application/json",
2445
+ "content-type": "application/json",
2446
+ "opc-request-id": kwargs.get("opc_request_id", missing)
2447
+ }
2448
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2449
+
2450
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2451
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2452
+ client_retry_strategy=self.retry_strategy
2453
+ )
2454
+ if retry_strategy is None:
2455
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2456
+
2457
+ if retry_strategy:
2458
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2459
+ self.base_client.add_opc_client_retries_header(header_params)
2460
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2461
+ return retry_strategy.make_retrying_call(
2462
+ self.base_client.call_api,
2463
+ resource_path=resource_path,
2464
+ method=method,
2465
+ query_params=query_params,
2466
+ header_params=header_params,
2467
+ response_type="PropertyCollection",
2468
+ allow_control_chars=kwargs.get('allow_control_chars'),
2469
+ operation_name=operation_name,
2470
+ api_reference_link=api_reference_link,
2471
+ required_arguments=required_arguments)
2472
+ else:
2473
+ return self.base_client.call_api(
2474
+ resource_path=resource_path,
2475
+ method=method,
2476
+ query_params=query_params,
2477
+ header_params=header_params,
2478
+ response_type="PropertyCollection",
2479
+ allow_control_chars=kwargs.get('allow_control_chars'),
2480
+ operation_name=operation_name,
2481
+ api_reference_link=api_reference_link,
2482
+ required_arguments=required_arguments)
2483
+
2484
+ def manage_settings(self, onboarding_id, manage_settings_details, **kwargs):
2485
+ """
2486
+ Updates the Onboarding setting
2487
+
2488
+
2489
+ :param str onboarding_id: (required)
2490
+ A filter to return resources whose Onboarding identifier matches the given identifier.
2491
+
2492
+ :param oci.fleet_apps_management.models.ManageSettingsDetails manage_settings_details: (required)
2493
+ The information to be updated.
2494
+
2495
+ :param str if_match: (optional)
2496
+ For optimistic concurrency control. In the PUT or DELETE call
2497
+ for a resource, set the `if-match` parameter to the value of the
2498
+ etag from a previous GET or POST response for that resource.
2499
+ The resource will be updated or deleted only if the etag you
2500
+ provide matches the resource's current etag value.
2501
+
2502
+ :param str opc_request_id: (optional)
2503
+ The client request ID for tracing.
2504
+
2505
+ :param str opc_retry_token: (optional)
2506
+ A token that uniquely identifies a request so it can be retried in case of a timeout or
2507
+ server error without risk of executing that same action again. Retry tokens expire after 24
2508
+ hours, but can be invalidated before then due to conflicting operations. For example, if a resource
2509
+ has been deleted and purged from the system, then a retry of the original creation request
2510
+ might be rejected.
2511
+
2512
+ :param obj retry_strategy: (optional)
2513
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2514
+
2515
+ 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.
2516
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2517
+
2518
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2519
+
2520
+ :param bool allow_control_chars: (optional)
2521
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2522
+ By default, the response will not allow control characters in strings
2523
+
2524
+ :return: A :class:`~oci.response.Response` object with data of type None
2525
+ :rtype: :class:`~oci.response.Response`
2526
+
2527
+ :example:
2528
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/manage_settings.py.html>`__ to see an example of how to use manage_settings API.
2529
+ """
2530
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2531
+ required_arguments = ['onboardingId']
2532
+ resource_path = "/Onboardings/{onboardingId}/actions/manageSettings"
2533
+ method = "POST"
2534
+ operation_name = "manage_settings"
2535
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/ManageSettings"
2536
+
2537
+ # Don't accept unknown kwargs
2538
+ expected_kwargs = [
2539
+ "allow_control_chars",
2540
+ "retry_strategy",
2541
+ "if_match",
2542
+ "opc_request_id",
2543
+ "opc_retry_token"
2544
+ ]
2545
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2546
+ if extra_kwargs:
2547
+ raise ValueError(
2548
+ f"manage_settings got unknown kwargs: {extra_kwargs!r}")
2549
+
2550
+ path_params = {
2551
+ "onboardingId": onboarding_id
2552
+ }
2553
+
2554
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2555
+
2556
+ for (k, v) in six.iteritems(path_params):
2557
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2558
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2559
+
2560
+ header_params = {
2561
+ "accept": "application/json",
2562
+ "content-type": "application/json",
2563
+ "if-match": kwargs.get("if_match", missing),
2564
+ "opc-request-id": kwargs.get("opc_request_id", missing),
2565
+ "opc-retry-token": kwargs.get("opc_retry_token", missing)
2566
+ }
2567
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2568
+
2569
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2570
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2571
+ client_retry_strategy=self.retry_strategy
2572
+ )
2573
+ if retry_strategy is None:
2574
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2575
+
2576
+ if retry_strategy:
2577
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2578
+ self.base_client.add_opc_retry_token_if_needed(header_params)
2579
+ self.base_client.add_opc_client_retries_header(header_params)
2580
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2581
+ return retry_strategy.make_retrying_call(
2582
+ self.base_client.call_api,
2583
+ resource_path=resource_path,
2584
+ method=method,
2585
+ path_params=path_params,
2586
+ header_params=header_params,
2587
+ body=manage_settings_details,
2588
+ allow_control_chars=kwargs.get('allow_control_chars'),
2589
+ operation_name=operation_name,
2590
+ api_reference_link=api_reference_link,
2591
+ required_arguments=required_arguments)
2592
+ else:
2593
+ return self.base_client.call_api(
2594
+ resource_path=resource_path,
2595
+ method=method,
2596
+ path_params=path_params,
2597
+ header_params=header_params,
2598
+ body=manage_settings_details,
2599
+ allow_control_chars=kwargs.get('allow_control_chars'),
2600
+ operation_name=operation_name,
2601
+ api_reference_link=api_reference_link,
2602
+ required_arguments=required_arguments)
744
2603
 
745
- query_params = {
746
- "compartmentId": kwargs.get("compartment_id", missing),
747
- "lifecycleState": kwargs.get("lifecycle_state", missing),
748
- "id": kwargs.get("id", missing),
749
- "limit": kwargs.get("limit", missing),
750
- "page": kwargs.get("page", missing),
751
- "sortOrder": kwargs.get("sort_order", missing),
752
- "sortBy": kwargs.get("sort_by", missing)
2604
+ def update_compliance_policy_rule(self, compliance_policy_rule_id, update_compliance_policy_rule_details, **kwargs):
2605
+ """
2606
+ Updates a CompliancePolicyRule.
2607
+
2608
+
2609
+ :param str compliance_policy_rule_id: (required)
2610
+ unique CompliancePolicyRule identifier.
2611
+
2612
+ :param oci.fleet_apps_management.models.UpdateCompliancePolicyRuleDetails update_compliance_policy_rule_details: (required)
2613
+ The information to be updated.
2614
+
2615
+ :param str if_match: (optional)
2616
+ For optimistic concurrency control. In the PUT or DELETE call
2617
+ for a resource, set the `if-match` parameter to the value of the
2618
+ etag from a previous GET or POST response for that resource.
2619
+ The resource will be updated or deleted only if the etag you
2620
+ provide matches the resource's current etag value.
2621
+
2622
+ :param str opc_request_id: (optional)
2623
+ The client request ID for tracing.
2624
+
2625
+ :param obj retry_strategy: (optional)
2626
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
2627
+
2628
+ 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.
2629
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
2630
+
2631
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
2632
+
2633
+ :param bool allow_control_chars: (optional)
2634
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2635
+ By default, the response will not allow control characters in strings
2636
+
2637
+ :return: A :class:`~oci.response.Response` object with data of type None
2638
+ :rtype: :class:`~oci.response.Response`
2639
+
2640
+ :example:
2641
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_compliance_policy_rule.py.html>`__ to see an example of how to use update_compliance_policy_rule API.
2642
+ """
2643
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2644
+ required_arguments = ['compliancePolicyRuleId']
2645
+ resource_path = "/compliancePolicyRules/{compliancePolicyRuleId}"
2646
+ method = "PUT"
2647
+ operation_name = "update_compliance_policy_rule"
2648
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/CompliancePolicyRule/UpdateCompliancePolicyRule"
2649
+
2650
+ # Don't accept unknown kwargs
2651
+ expected_kwargs = [
2652
+ "allow_control_chars",
2653
+ "retry_strategy",
2654
+ "if_match",
2655
+ "opc_request_id"
2656
+ ]
2657
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2658
+ if extra_kwargs:
2659
+ raise ValueError(
2660
+ f"update_compliance_policy_rule got unknown kwargs: {extra_kwargs!r}")
2661
+
2662
+ path_params = {
2663
+ "compliancePolicyRuleId": compliance_policy_rule_id
753
2664
  }
754
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2665
+
2666
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2667
+
2668
+ for (k, v) in six.iteritems(path_params):
2669
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2670
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
755
2671
 
756
2672
  header_params = {
757
2673
  "accept": "application/json",
758
2674
  "content-type": "application/json",
2675
+ "if-match": kwargs.get("if_match", missing),
759
2676
  "opc-request-id": kwargs.get("opc_request_id", missing)
760
2677
  }
761
2678
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -775,9 +2692,9 @@ class FleetAppsManagementAdminClient(object):
775
2692
  self.base_client.call_api,
776
2693
  resource_path=resource_path,
777
2694
  method=method,
778
- query_params=query_params,
2695
+ path_params=path_params,
779
2696
  header_params=header_params,
780
- response_type="OnboardingCollection",
2697
+ body=update_compliance_policy_rule_details,
781
2698
  allow_control_chars=kwargs.get('allow_control_chars'),
782
2699
  operation_name=operation_name,
783
2700
  api_reference_link=api_reference_link,
@@ -786,53 +2703,141 @@ class FleetAppsManagementAdminClient(object):
786
2703
  return self.base_client.call_api(
787
2704
  resource_path=resource_path,
788
2705
  method=method,
789
- query_params=query_params,
2706
+ path_params=path_params,
790
2707
  header_params=header_params,
791
- response_type="OnboardingCollection",
2708
+ body=update_compliance_policy_rule_details,
792
2709
  allow_control_chars=kwargs.get('allow_control_chars'),
793
2710
  operation_name=operation_name,
794
2711
  api_reference_link=api_reference_link,
795
2712
  required_arguments=required_arguments)
796
2713
 
797
- def list_properties(self, **kwargs):
2714
+ def update_onboarding(self, onboarding_id, update_onboarding_details, **kwargs):
798
2715
  """
799
- Returns a list of Properties for Tenancy.
2716
+ Updates the Onboarding
800
2717
 
801
2718
 
802
- :param str compartment_id: (optional)
803
- The ID of the compartment in which to list resources.
2719
+ :param str onboarding_id: (required)
2720
+ A filter to return resources whose Onboarding identifier matches the given identifier.
804
2721
 
805
- :param str lifecycle_state: (optional)
806
- A filter to return only resources their lifecycleState matches the given lifecycleState.
2722
+ :param oci.fleet_apps_management.models.UpdateOnboardingDetails update_onboarding_details: (required)
2723
+ The information to be updated.
807
2724
 
808
- Allowed values are: "ACTIVE", "DELETED", "FAILED"
2725
+ :param str if_match: (optional)
2726
+ For optimistic concurrency control. In the PUT or DELETE call
2727
+ for a resource, set the `if-match` parameter to the value of the
2728
+ etag from a previous GET or POST response for that resource.
2729
+ The resource will be updated or deleted only if the etag you
2730
+ provide matches the resource's current etag value.
809
2731
 
810
- :param str display_name: (optional)
811
- A filter to return only resources that match the entire display name given.
2732
+ :param str opc_request_id: (optional)
2733
+ The client request ID for tracing.
812
2734
 
813
- :param str id: (optional)
814
- unique Property identifier
2735
+ :param obj retry_strategy: (optional)
2736
+ A retry strategy to apply to this specific operation/call. This will override any retry strategy set at the client-level.
815
2737
 
816
- :param str scope: (optional)
817
- A filter to return only resources their scope matches the given lifecycleState.
2738
+ 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.
2739
+ The specifics of the default retry strategy are described `here <https://docs.oracle.com/en-us/iaas/tools/python/latest/sdk_behaviors/retries.html>`__.
818
2740
 
819
- Allowed values are: "TAXONOMY", "PLATFORM_CONFIG"
2741
+ To have this operation explicitly not perform any retries, pass an instance of :py:class:`~oci.retry.NoneRetryStrategy`.
820
2742
 
821
- :param int limit: (optional)
822
- The maximum number of items to return.
2743
+ :param bool allow_control_chars: (optional)
2744
+ allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
2745
+ By default, the response will not allow control characters in strings
823
2746
 
824
- :param str page: (optional)
825
- 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.
2747
+ :return: A :class:`~oci.response.Response` object with data of type None
2748
+ :rtype: :class:`~oci.response.Response`
826
2749
 
827
- :param str sort_order: (optional)
828
- The sort order to use, either 'ASC' or 'DESC'.
2750
+ :example:
2751
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_onboarding.py.html>`__ to see an example of how to use update_onboarding API.
2752
+ """
2753
+ # Required path and query arguments. These are in camelCase to replace values in service endpoints.
2754
+ required_arguments = ['onboardingId']
2755
+ resource_path = "/Onboardings/{onboardingId}"
2756
+ method = "PUT"
2757
+ operation_name = "update_onboarding"
2758
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/Onboarding/UpdateOnboarding"
829
2759
 
830
- Allowed values are: "ASC", "DESC"
2760
+ # Don't accept unknown kwargs
2761
+ expected_kwargs = [
2762
+ "allow_control_chars",
2763
+ "retry_strategy",
2764
+ "if_match",
2765
+ "opc_request_id"
2766
+ ]
2767
+ extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
2768
+ if extra_kwargs:
2769
+ raise ValueError(
2770
+ f"update_onboarding got unknown kwargs: {extra_kwargs!r}")
831
2771
 
832
- :param str sort_by: (optional)
833
- The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
2772
+ path_params = {
2773
+ "onboardingId": onboarding_id
2774
+ }
2775
+
2776
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
2777
+
2778
+ for (k, v) in six.iteritems(path_params):
2779
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2780
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
2781
+
2782
+ header_params = {
2783
+ "accept": "application/json",
2784
+ "content-type": "application/json",
2785
+ "if-match": kwargs.get("if_match", missing),
2786
+ "opc-request-id": kwargs.get("opc_request_id", missing)
2787
+ }
2788
+ header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
2789
+
2790
+ retry_strategy = self.base_client.get_preferred_retry_strategy(
2791
+ operation_retry_strategy=kwargs.get('retry_strategy'),
2792
+ client_retry_strategy=self.retry_strategy
2793
+ )
2794
+ if retry_strategy is None:
2795
+ retry_strategy = retry.DEFAULT_RETRY_STRATEGY
2796
+
2797
+ if retry_strategy:
2798
+ if not isinstance(retry_strategy, retry.NoneRetryStrategy):
2799
+ self.base_client.add_opc_client_retries_header(header_params)
2800
+ retry_strategy.add_circuit_breaker_callback(self.circuit_breaker_callback)
2801
+ return retry_strategy.make_retrying_call(
2802
+ self.base_client.call_api,
2803
+ resource_path=resource_path,
2804
+ method=method,
2805
+ path_params=path_params,
2806
+ header_params=header_params,
2807
+ body=update_onboarding_details,
2808
+ allow_control_chars=kwargs.get('allow_control_chars'),
2809
+ operation_name=operation_name,
2810
+ api_reference_link=api_reference_link,
2811
+ required_arguments=required_arguments)
2812
+ else:
2813
+ return self.base_client.call_api(
2814
+ resource_path=resource_path,
2815
+ method=method,
2816
+ path_params=path_params,
2817
+ header_params=header_params,
2818
+ body=update_onboarding_details,
2819
+ allow_control_chars=kwargs.get('allow_control_chars'),
2820
+ operation_name=operation_name,
2821
+ api_reference_link=api_reference_link,
2822
+ required_arguments=required_arguments)
2823
+
2824
+ def update_platform_configuration(self, platform_configuration_id, update_platform_configuration_details, **kwargs):
2825
+ """
2826
+ Updates the PlatformConfiguration
834
2827
 
835
- Allowed values are: "timeCreated", "displayName"
2828
+
2829
+ :param str platform_configuration_id: (required)
2830
+ unique PlatformConfiguration identifier
2831
+
2832
+ :param oci.fleet_apps_management.models.UpdatePlatformConfigurationDetails update_platform_configuration_details: (required)
2833
+ The information to be updated.
2834
+
2835
+ :param str if_match: (optional)
2836
+ For optimistic concurrency control. In the PUT or DELETE call
2837
+ for a resource, set the `if-match` parameter to the value of the
2838
+ etag from a previous GET or POST response for that resource.
2839
+ The resource will be updated or deleted only if the etag you
2840
+ provide matches the resource's current etag value.
836
2841
 
837
2842
  :param str opc_request_id: (optional)
838
2843
  The client request ID for tracing.
@@ -849,83 +2854,45 @@ class FleetAppsManagementAdminClient(object):
849
2854
  allow_control_chars is a boolean to indicate whether or not this request should allow control characters in the response object.
850
2855
  By default, the response will not allow control characters in strings
851
2856
 
852
- :return: A :class:`~oci.response.Response` object with data of type :class:`~oci.fleet_apps_management.models.PropertyCollection`
2857
+ :return: A :class:`~oci.response.Response` object with data of type None
853
2858
  :rtype: :class:`~oci.response.Response`
854
2859
 
855
2860
  :example:
856
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/list_properties.py.html>`__ to see an example of how to use list_properties API.
2861
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_platform_configuration.py.html>`__ to see an example of how to use update_platform_configuration API.
857
2862
  """
858
2863
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
859
- required_arguments = []
860
- resource_path = "/properties"
861
- method = "GET"
862
- operation_name = "list_properties"
863
- api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PropertyCollection/ListProperties"
2864
+ required_arguments = ['platformConfigurationId']
2865
+ resource_path = "/platformConfigurations/{platformConfigurationId}"
2866
+ method = "PUT"
2867
+ operation_name = "update_platform_configuration"
2868
+ api_reference_link = "https://docs.oracle.com/iaas/api/#/en/fleet-management/20230831/PlatformConfiguration/UpdatePlatformConfiguration"
864
2869
 
865
2870
  # Don't accept unknown kwargs
866
2871
  expected_kwargs = [
867
2872
  "allow_control_chars",
868
2873
  "retry_strategy",
869
- "compartment_id",
870
- "lifecycle_state",
871
- "display_name",
872
- "id",
873
- "scope",
874
- "limit",
875
- "page",
876
- "sort_order",
877
- "sort_by",
2874
+ "if_match",
878
2875
  "opc_request_id"
879
2876
  ]
880
2877
  extra_kwargs = [_key for _key in six.iterkeys(kwargs) if _key not in expected_kwargs]
881
2878
  if extra_kwargs:
882
2879
  raise ValueError(
883
- f"list_properties got unknown kwargs: {extra_kwargs!r}")
884
-
885
- if 'lifecycle_state' in kwargs:
886
- lifecycle_state_allowed_values = ["ACTIVE", "DELETED", "FAILED"]
887
- if kwargs['lifecycle_state'] not in lifecycle_state_allowed_values:
888
- raise ValueError(
889
- f"Invalid value for `lifecycle_state`, must be one of { lifecycle_state_allowed_values }"
890
- )
891
-
892
- if 'scope' in kwargs:
893
- scope_allowed_values = ["TAXONOMY", "PLATFORM_CONFIG"]
894
- if kwargs['scope'] not in scope_allowed_values:
895
- raise ValueError(
896
- f"Invalid value for `scope`, must be one of { scope_allowed_values }"
897
- )
2880
+ f"update_platform_configuration got unknown kwargs: {extra_kwargs!r}")
898
2881
 
899
- if 'sort_order' in kwargs:
900
- sort_order_allowed_values = ["ASC", "DESC"]
901
- if kwargs['sort_order'] not in sort_order_allowed_values:
902
- raise ValueError(
903
- f"Invalid value for `sort_order`, must be one of { sort_order_allowed_values }"
904
- )
2882
+ path_params = {
2883
+ "platformConfigurationId": platform_configuration_id
2884
+ }
905
2885
 
906
- if 'sort_by' in kwargs:
907
- sort_by_allowed_values = ["timeCreated", "displayName"]
908
- if kwargs['sort_by'] not in sort_by_allowed_values:
909
- raise ValueError(
910
- f"Invalid value for `sort_by`, must be one of { sort_by_allowed_values }"
911
- )
2886
+ path_params = {k: v for (k, v) in six.iteritems(path_params) if v is not missing}
912
2887
 
913
- query_params = {
914
- "compartmentId": kwargs.get("compartment_id", missing),
915
- "lifecycleState": kwargs.get("lifecycle_state", missing),
916
- "displayName": kwargs.get("display_name", missing),
917
- "id": kwargs.get("id", missing),
918
- "scope": kwargs.get("scope", missing),
919
- "limit": kwargs.get("limit", missing),
920
- "page": kwargs.get("page", missing),
921
- "sortOrder": kwargs.get("sort_order", missing),
922
- "sortBy": kwargs.get("sort_by", missing)
923
- }
924
- query_params = {k: v for (k, v) in six.iteritems(query_params) if v is not missing and v is not None}
2888
+ for (k, v) in six.iteritems(path_params):
2889
+ if v is None or (isinstance(v, six.string_types) and len(v.strip()) == 0):
2890
+ raise ValueError(f'Parameter {k} cannot be None, whitespace or empty string')
925
2891
 
926
2892
  header_params = {
927
2893
  "accept": "application/json",
928
2894
  "content-type": "application/json",
2895
+ "if-match": kwargs.get("if_match", missing),
929
2896
  "opc-request-id": kwargs.get("opc_request_id", missing)
930
2897
  }
931
2898
  header_params = {k: v for (k, v) in six.iteritems(header_params) if v is not missing and v is not None}
@@ -945,9 +2912,9 @@ class FleetAppsManagementAdminClient(object):
945
2912
  self.base_client.call_api,
946
2913
  resource_path=resource_path,
947
2914
  method=method,
948
- query_params=query_params,
2915
+ path_params=path_params,
949
2916
  header_params=header_params,
950
- response_type="PropertyCollection",
2917
+ body=update_platform_configuration_details,
951
2918
  allow_control_chars=kwargs.get('allow_control_chars'),
952
2919
  operation_name=operation_name,
953
2920
  api_reference_link=api_reference_link,
@@ -956,9 +2923,9 @@ class FleetAppsManagementAdminClient(object):
956
2923
  return self.base_client.call_api(
957
2924
  resource_path=resource_path,
958
2925
  method=method,
959
- query_params=query_params,
2926
+ path_params=path_params,
960
2927
  header_params=header_params,
961
- response_type="PropertyCollection",
2928
+ body=update_platform_configuration_details,
962
2929
  allow_control_chars=kwargs.get('allow_control_chars'),
963
2930
  operation_name=operation_name,
964
2931
  api_reference_link=api_reference_link,
@@ -966,7 +2933,7 @@ class FleetAppsManagementAdminClient(object):
966
2933
 
967
2934
  def update_property(self, property_id, update_property_details, **kwargs):
968
2935
  """
969
- Updates the Property
2936
+ Update a property in Fleet Application Management.
970
2937
 
971
2938
 
972
2939
  :param str property_id: (required)
@@ -1001,7 +2968,7 @@ class FleetAppsManagementAdminClient(object):
1001
2968
  :rtype: :class:`~oci.response.Response`
1002
2969
 
1003
2970
  :example:
1004
- Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.136.0/fleetappsmanagement/update_property.py.html>`__ to see an example of how to use update_property API.
2971
+ Click `here <https://docs.cloud.oracle.com/en-us/iaas/tools/python-sdk-examples/2.137.0/fleetappsmanagement/update_property.py.html>`__ to see an example of how to use update_property API.
1005
2972
  """
1006
2973
  # Required path and query arguments. These are in camelCase to replace values in service endpoints.
1007
2974
  required_arguments = ['propertyId']