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
@@ -1,173 +0,0 @@
1
- # coding: utf-8
2
- # Modified Work: Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
3
- # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
- # Original Work: Copyright (c) 2015 José Padilla
5
-
6
- #!/usr/bin/env python
7
-
8
- from __future__ import absolute_import, print_function
9
-
10
- import argparse
11
- import json
12
- import sys
13
- import time
14
-
15
- from . import DecodeError, __version__, decode, encode
16
-
17
-
18
- def encode_payload(args):
19
- # Try to encode
20
- if args.key is None:
21
- raise ValueError('Key is required when encoding. See --help for usage.')
22
-
23
- # Build payload object to encode
24
- payload = {}
25
-
26
- for arg in args.payload:
27
- k, v = arg.split('=', 1)
28
-
29
- # exp +offset special case?
30
- if k == 'exp' and v[0] == '+' and len(v) > 1:
31
- v = str(int(time.time()+int(v[1:])))
32
-
33
- # Cast to integer?
34
- if v.isdigit():
35
- v = int(v)
36
- else:
37
- # Cast to float?
38
- try:
39
- v = float(v)
40
- except ValueError:
41
- pass
42
-
43
- # Cast to true, false, or null?
44
- constants = {'true': True, 'false': False, 'null': None}
45
-
46
- if v in constants:
47
- v = constants[v]
48
-
49
- payload[k] = v
50
-
51
- token = encode(
52
- payload,
53
- key=args.key,
54
- algorithm=args.algorithm
55
- )
56
-
57
- return token.decode('utf-8')
58
-
59
-
60
- def decode_payload(args):
61
- try:
62
- if args.token:
63
- token = args.token
64
- else:
65
- if sys.stdin.isatty():
66
- token = sys.stdin.readline().strip()
67
- else:
68
- raise IOError('Cannot read from stdin: terminal not a TTY')
69
-
70
- token = token.encode('utf-8')
71
- data = decode(token, key=args.key, verify=args.verify)
72
-
73
- return json.dumps(data)
74
-
75
- except DecodeError as e:
76
- raise DecodeError('There was an error decoding the token: %s' % e)
77
-
78
-
79
- def build_argparser():
80
-
81
- usage = '''
82
- Encodes or decodes JSON Web Tokens based on input.
83
-
84
- %(prog)s [options] <command> [options] input
85
-
86
- Decoding examples:
87
-
88
- %(prog)s --key=secret decode json.web.token
89
- %(prog)s decode --no-verify json.web.token
90
-
91
- Encoding requires the key option and takes space separated key/value pairs
92
- separated by equals (=) as input. Examples:
93
-
94
- %(prog)s --key=secret encode iss=me exp=1302049071
95
- %(prog)s --key=secret encode foo=bar exp=+10
96
-
97
- The exp key is special and can take an offset to current Unix time.
98
- '''
99
-
100
- arg_parser = argparse.ArgumentParser(
101
- prog='pyjwt',
102
- usage=usage
103
- )
104
-
105
- arg_parser.add_argument(
106
- '-v', '--version',
107
- action='version',
108
- version='%(prog)s ' + __version__
109
- )
110
-
111
- arg_parser.add_argument(
112
- '--key',
113
- dest='key',
114
- metavar='KEY',
115
- default=None,
116
- help='set the secret key to sign with'
117
- )
118
-
119
- arg_parser.add_argument(
120
- '--alg',
121
- dest='algorithm',
122
- metavar='ALG',
123
- default='HS256',
124
- help='set crypto algorithm to sign with. default=HS256'
125
- )
126
-
127
- subparsers = arg_parser.add_subparsers(
128
- title='PyJWT subcommands',
129
- description='valid subcommands',
130
- help='additional help'
131
- )
132
-
133
- # Encode subcommand
134
- encode_parser = subparsers.add_parser('encode', help='use to encode a supplied payload')
135
-
136
- payload_help = """Payload to encode. Must be a space separated list of key/value
137
- pairs separated by equals (=) sign."""
138
-
139
- encode_parser.add_argument('payload', nargs='+', help=payload_help)
140
- encode_parser.set_defaults(func=encode_payload)
141
-
142
- # Decode subcommand
143
- decode_parser = subparsers.add_parser('decode', help='use to decode a supplied JSON web token')
144
- decode_parser.add_argument(
145
- 'token',
146
- help='JSON web token to decode.',
147
- nargs='?')
148
-
149
- decode_parser.add_argument(
150
- '-n', '--no-verify',
151
- action='store_false',
152
- dest='verify',
153
- default=True,
154
- help='ignore signature and claims verification on decode'
155
- )
156
-
157
- decode_parser.set_defaults(func=decode_payload)
158
-
159
- return arg_parser
160
-
161
-
162
- def main():
163
- arg_parser = build_argparser()
164
-
165
- try:
166
- arguments = arg_parser.parse_args(sys.argv[1:])
167
-
168
- output = arguments.func(arguments)
169
-
170
- print(output)
171
- except Exception as e:
172
- print('There was an unforseen error: ', e)
173
- arg_parser.print_help()
oci/_vendor/jwt/compat.py DELETED
@@ -1,73 +0,0 @@
1
- # coding: utf-8
2
- # Modified Work: Copyright (c) 2018, 2024, Oracle and/or its affiliates. All rights reserved.
3
- # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
- # Original Work: Copyright (c) 2015 José Padilla
5
-
6
- """
7
- The `compat` module provides support for backwards compatibility with older
8
- versions of python, and compatibility wrappers around optional packages.
9
- """
10
- # flake8: noqa
11
- import hmac
12
- import struct
13
- import sys
14
-
15
-
16
- PY3 = sys.version_info[0] == 3
17
-
18
-
19
- if PY3:
20
- text_type = str
21
- binary_type = bytes
22
- else:
23
- text_type = unicode
24
- binary_type = str
25
-
26
- string_types = (text_type, binary_type)
27
-
28
- try:
29
- # Importing ABCs from collections will be removed in PY3.8
30
- from collections.abc import Iterable, Mapping
31
- except ImportError:
32
- from collections import Iterable, Mapping
33
-
34
- try:
35
- constant_time_compare = hmac.compare_digest
36
- except AttributeError:
37
- # Fallback for Python < 2.7
38
- def constant_time_compare(val1, val2):
39
- """
40
- Returns True if the two strings are equal, False otherwise.
41
-
42
- The time taken is independent of the number of characters that match.
43
- """
44
- if len(val1) != len(val2):
45
- return False
46
-
47
- result = 0
48
-
49
- for x, y in zip(val1, val2):
50
- result |= ord(x) ^ ord(y)
51
-
52
- return result == 0
53
-
54
- # Use int.to_bytes if it exists (Python 3)
55
- if getattr(int, 'to_bytes', None):
56
- def bytes_from_int(val):
57
- remaining = val
58
- byte_length = 0
59
-
60
- while remaining != 0:
61
- remaining = remaining >> 8
62
- byte_length += 1
63
-
64
- return val.to_bytes(byte_length, 'big', signed=False)
65
- else:
66
- def bytes_from_int(val):
67
- buf = []
68
- while val:
69
- val, remainder = divmod(val, 256)
70
- buf.append(remainder)
71
-
72
- buf.reverse()
73
- return struct.pack('%sB' % len(buf), *buf)
File without changes
File without changes
@@ -1,60 +0,0 @@
1
- # Note: This file is named py_ecdsa.py because import behavior in Python 2
2
- # would cause ecdsa.py to squash the ecdsa library that it depends upon.
3
-
4
- import hashlib
5
-
6
- import ecdsa
7
-
8
- from oci._vendor.jwt.algorithms import Algorithm
9
- from oci._vendor.jwt.compat import string_types, text_type
10
-
11
-
12
- class ECAlgorithm(Algorithm):
13
- """
14
- Performs signing and verification operations using
15
- ECDSA and the specified hash function
16
-
17
- This class requires the ecdsa package to be installed.
18
-
19
- This is based off of the implementation in PyJWT 0.3.2
20
- """
21
- SHA256 = hashlib.sha256
22
- SHA384 = hashlib.sha384
23
- SHA512 = hashlib.sha512
24
-
25
- def __init__(self, hash_alg):
26
- self.hash_alg = hash_alg
27
-
28
- def prepare_key(self, key):
29
-
30
- if isinstance(key, ecdsa.SigningKey) or \
31
- isinstance(key, ecdsa.VerifyingKey):
32
- return key
33
-
34
- if isinstance(key, string_types):
35
- if isinstance(key, text_type):
36
- key = key.encode('utf-8')
37
-
38
- # Attempt to load key. We don't know if it's
39
- # a Signing Key or a Verifying Key, so we try
40
- # the Verifying Key first.
41
- try:
42
- key = ecdsa.VerifyingKey.from_pem(key)
43
- except ecdsa.der.UnexpectedDER:
44
- key = ecdsa.SigningKey.from_pem(key)
45
-
46
- else:
47
- raise TypeError('Expecting a PEM-formatted key.')
48
-
49
- return key
50
-
51
- def sign(self, msg, key):
52
- return key.sign(msg, hashfunc=self.hash_alg,
53
- sigencode=ecdsa.util.sigencode_string)
54
-
55
- def verify(self, msg, key, sig):
56
- try:
57
- return key.verify(sig, msg, hashfunc=self.hash_alg,
58
- sigdecode=ecdsa.util.sigdecode_string)
59
- except AssertionError:
60
- return False
@@ -1,46 +0,0 @@
1
- import Crypto.Hash.SHA256
2
- import Crypto.Hash.SHA384
3
- import Crypto.Hash.SHA512
4
- from Crypto.PublicKey import RSA
5
- from Crypto.Signature import PKCS1_v1_5
6
-
7
- from oci._vendor.jwt.algorithms import Algorithm
8
- from oci._vendor.jwt.compat import string_types, text_type
9
-
10
-
11
- class RSAAlgorithm(Algorithm):
12
- """
13
- Performs signing and verification operations using
14
- RSASSA-PKCS-v1_5 and the specified hash function.
15
-
16
- This class requires PyCrypto package to be installed.
17
-
18
- This is based off of the implementation in PyJWT 0.3.2
19
- """
20
- SHA256 = Crypto.Hash.SHA256
21
- SHA384 = Crypto.Hash.SHA384
22
- SHA512 = Crypto.Hash.SHA512
23
-
24
- def __init__(self, hash_alg):
25
- self.hash_alg = hash_alg
26
-
27
- def prepare_key(self, key):
28
-
29
- if isinstance(key, RSA._RSAobj):
30
- return key
31
-
32
- if isinstance(key, string_types):
33
- if isinstance(key, text_type):
34
- key = key.encode('utf-8')
35
-
36
- key = RSA.importKey(key)
37
- else:
38
- raise TypeError('Expecting a PEM- or RSA-formatted key.')
39
-
40
- return key
41
-
42
- def sign(self, msg, key):
43
- return PKCS1_v1_5.new(key).sign(self.hash_alg.new(msg))
44
-
45
- def verify(self, msg, key, sig):
46
- return PKCS1_v1_5.new(key).verify(self.hash_alg.new(msg), sig)
File without changes