oci 2.16.0 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (570) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -2
  3. data/lib/oci/ai_vision/ai_service_vision_client.rb +1677 -0
  4. data/lib/oci/ai_vision/ai_service_vision_client_composite_operations.rb +399 -0
  5. data/lib/oci/ai_vision/ai_vision.rb +105 -0
  6. data/lib/oci/ai_vision/models/action_type.rb +15 -0
  7. data/lib/oci/ai_vision/models/analyze_document_details.rb +268 -0
  8. data/lib/oci/ai_vision/models/analyze_document_result.rb +286 -0
  9. data/lib/oci/ai_vision/models/analyze_image_details.rb +174 -0
  10. data/lib/oci/ai_vision/models/analyze_image_result.rb +243 -0
  11. data/lib/oci/ai_vision/models/bounding_polygon.rb +156 -0
  12. data/lib/oci/ai_vision/models/cell.rb +216 -0
  13. data/lib/oci/ai_vision/models/change_model_compartment_details.rb +156 -0
  14. data/lib/oci/ai_vision/models/change_project_compartment_details.rb +156 -0
  15. data/lib/oci/ai_vision/models/create_document_job_details.rb +304 -0
  16. data/lib/oci/ai_vision/models/create_image_job_details.rb +222 -0
  17. data/lib/oci/ai_vision/models/create_model_details.rb +325 -0
  18. data/lib/oci/ai_vision/models/create_project_details.rb +213 -0
  19. data/lib/oci/ai_vision/models/data_science_labeling_dataset.rb +162 -0
  20. data/lib/oci/ai_vision/models/dataset.rb +191 -0
  21. data/lib/oci/ai_vision/models/detected_document_type.rb +164 -0
  22. data/lib/oci/ai_vision/models/detected_language.rb +207 -0
  23. data/lib/oci/ai_vision/models/dimensions.rb +190 -0
  24. data/lib/oci/ai_vision/models/document_classification_feature.rb +176 -0
  25. data/lib/oci/ai_vision/models/document_details.rb +184 -0
  26. data/lib/oci/ai_vision/models/document_feature.rb +204 -0
  27. data/lib/oci/ai_vision/models/document_field.rb +216 -0
  28. data/lib/oci/ai_vision/models/document_job.rb +451 -0
  29. data/lib/oci/ai_vision/models/document_key_value_detection_feature.rb +145 -0
  30. data/lib/oci/ai_vision/models/document_language.rb +34 -0
  31. data/lib/oci/ai_vision/models/document_language_classification_feature.rb +162 -0
  32. data/lib/oci/ai_vision/models/document_metadata.rb +168 -0
  33. data/lib/oci/ai_vision/models/document_table_detection_feature.rb +145 -0
  34. data/lib/oci/ai_vision/models/document_text_detection_feature.rb +164 -0
  35. data/lib/oci/ai_vision/models/document_type.rb +19 -0
  36. data/lib/oci/ai_vision/models/field_label.rb +160 -0
  37. data/lib/oci/ai_vision/models/field_name.rb +187 -0
  38. data/lib/oci/ai_vision/models/field_value.rb +250 -0
  39. data/lib/oci/ai_vision/models/image_classification_feature.rb +176 -0
  40. data/lib/oci/ai_vision/models/image_details.rb +184 -0
  41. data/lib/oci/ai_vision/models/image_feature.rb +198 -0
  42. data/lib/oci/ai_vision/models/image_job.rb +358 -0
  43. data/lib/oci/ai_vision/models/image_object.rb +174 -0
  44. data/lib/oci/ai_vision/models/image_object_detection_feature.rb +176 -0
  45. data/lib/oci/ai_vision/models/image_text.rb +160 -0
  46. data/lib/oci/ai_vision/models/image_text_detection_feature.rb +201 -0
  47. data/lib/oci/ai_vision/models/inline_document_details.rb +158 -0
  48. data/lib/oci/ai_vision/models/inline_image_details.rb +158 -0
  49. data/lib/oci/ai_vision/models/input_location.rb +192 -0
  50. data/lib/oci/ai_vision/models/label.rb +160 -0
  51. data/lib/oci/ai_vision/models/line.rb +188 -0
  52. data/lib/oci/ai_vision/models/model.rb +547 -0
  53. data/lib/oci/ai_vision/models/model_collection.rb +150 -0
  54. data/lib/oci/ai_vision/models/model_summary.rb +384 -0
  55. data/lib/oci/ai_vision/models/normalized_vertex.rb +163 -0
  56. data/lib/oci/ai_vision/models/object_list_inline_input_location.rb +162 -0
  57. data/lib/oci/ai_vision/models/object_location.rb +182 -0
  58. data/lib/oci/ai_vision/models/object_storage_dataset.rb +190 -0
  59. data/lib/oci/ai_vision/models/object_storage_document_details.rb +190 -0
  60. data/lib/oci/ai_vision/models/object_storage_image_details.rb +190 -0
  61. data/lib/oci/ai_vision/models/ontology_class.rb +178 -0
  62. data/lib/oci/ai_vision/models/operation_status.rb +16 -0
  63. data/lib/oci/ai_vision/models/operation_type.rb +17 -0
  64. data/lib/oci/ai_vision/models/output_location.rb +178 -0
  65. data/lib/oci/ai_vision/models/page.rb +235 -0
  66. data/lib/oci/ai_vision/models/processing_error.rb +160 -0
  67. data/lib/oci/ai_vision/models/project.rb +316 -0
  68. data/lib/oci/ai_vision/models/project_collection.rb +150 -0
  69. data/lib/oci/ai_vision/models/project_summary.rb +283 -0
  70. data/lib/oci/ai_vision/models/sort_order.rb +11 -0
  71. data/lib/oci/ai_vision/models/table.rb +235 -0
  72. data/lib/oci/ai_vision/models/table_row.rb +150 -0
  73. data/lib/oci/ai_vision/models/update_model_details.rb +196 -0
  74. data/lib/oci/ai_vision/models/update_project_details.rb +196 -0
  75. data/lib/oci/ai_vision/models/value_array.rb +174 -0
  76. data/lib/oci/ai_vision/models/value_date.rb +174 -0
  77. data/lib/oci/ai_vision/models/value_integer.rb +174 -0
  78. data/lib/oci/ai_vision/models/value_number.rb +174 -0
  79. data/lib/oci/ai_vision/models/value_phone_number.rb +174 -0
  80. data/lib/oci/ai_vision/models/value_string.rb +174 -0
  81. data/lib/oci/ai_vision/models/value_time.rb +174 -0
  82. data/lib/oci/ai_vision/models/word.rb +174 -0
  83. data/lib/oci/ai_vision/models/work_request.rb +311 -0
  84. data/lib/oci/ai_vision/models/work_request_error.rb +173 -0
  85. data/lib/oci/ai_vision/models/work_request_error_collection.rb +150 -0
  86. data/lib/oci/ai_vision/models/work_request_log_entry.rb +160 -0
  87. data/lib/oci/ai_vision/models/work_request_log_entry_collection.rb +150 -0
  88. data/lib/oci/ai_vision/models/work_request_resource.rb +220 -0
  89. data/lib/oci/ai_vision/models/work_request_summary.rb +313 -0
  90. data/lib/oci/ai_vision/models/work_request_summary_collection.rb +150 -0
  91. data/lib/oci/ai_vision/util.rb +3 -0
  92. data/lib/oci/announcements_service/announcement_client.rb +26 -5
  93. data/lib/oci/announcements_service/announcement_subscription_client.rb +703 -0
  94. data/lib/oci/announcements_service/announcement_subscription_client_composite_operations.rb +144 -0
  95. data/lib/oci/announcements_service/announcements_preferences_client.rb +10 -3
  96. data/lib/oci/announcements_service/announcements_service.rb +14 -0
  97. data/lib/oci/announcements_service/models/announcement.rb +9 -1
  98. data/lib/oci/announcements_service/models/announcement_subscription.rb +348 -0
  99. data/lib/oci/announcements_service/models/announcement_subscription_collection.rb +150 -0
  100. data/lib/oci/announcements_service/models/announcement_subscription_summary.rb +299 -0
  101. data/lib/oci/announcements_service/models/announcement_summary.rb +12 -4
  102. data/lib/oci/announcements_service/models/base_announcement.rb +47 -4
  103. data/lib/oci/announcements_service/models/change_announcement_subscription_compartment_details.rb +156 -0
  104. data/lib/oci/announcements_service/models/create_announcement_subscription_details.rb +241 -0
  105. data/lib/oci/announcements_service/models/create_filter_group_details.rb +160 -0
  106. data/lib/oci/announcements_service/models/filter.rb +184 -0
  107. data/lib/oci/announcements_service/models/filter_group.rb +160 -0
  108. data/lib/oci/announcements_service/models/filter_group_details.rb +150 -0
  109. data/lib/oci/announcements_service/models/sort_order.rb +11 -0
  110. data/lib/oci/announcements_service/models/update_announcement_subscription_details.rb +211 -0
  111. data/lib/oci/announcements_service/models/update_filter_group_details.rb +150 -0
  112. data/lib/oci/apm_config/config_client.rb +31 -29
  113. data/lib/oci/apm_config/models/apdex.rb +20 -20
  114. data/lib/oci/apm_config/models/apdex_rules.rb +2 -2
  115. data/lib/oci/apm_config/models/apdex_rules_summary.rb +2 -2
  116. data/lib/oci/apm_config/models/config.rb +3 -3
  117. data/lib/oci/apm_config/models/config_collection.rb +1 -1
  118. data/lib/oci/apm_config/models/config_summary.rb +3 -3
  119. data/lib/oci/apm_config/models/create_apdex_rules_details.rb +2 -3
  120. data/lib/oci/apm_config/models/create_config_details.rb +3 -3
  121. data/lib/oci/apm_config/models/create_metric_group_details.rb +9 -6
  122. data/lib/oci/apm_config/models/create_span_filter_details.rb +2 -2
  123. data/lib/oci/apm_config/models/dimension.rb +3 -3
  124. data/lib/oci/apm_config/models/metric.rb +5 -5
  125. data/lib/oci/apm_config/models/metric_group.rb +9 -5
  126. data/lib/oci/apm_config/models/metric_group_summary.rb +9 -5
  127. data/lib/oci/apm_config/models/span_filter.rb +3 -3
  128. data/lib/oci/apm_config/models/span_filter_summary.rb +2 -2
  129. data/lib/oci/apm_config/models/update_apdex_rules_details.rb +1 -1
  130. data/lib/oci/apm_config/models/update_config_details.rb +2 -2
  131. data/lib/oci/apm_config/models/update_metric_group_details.rb +9 -5
  132. data/lib/oci/apm_config/models/update_span_filter_details.rb +2 -2
  133. data/lib/oci/apm_traces/apm_traces.rb +7 -0
  134. data/lib/oci/apm_traces/models/aggregated_snapshot.rb +167 -0
  135. data/lib/oci/apm_traces/models/aggregated_stack_trace.rb +165 -0
  136. data/lib/oci/apm_traces/models/query_details.rb +2 -2
  137. data/lib/oci/apm_traces/models/query_result_metadata_summary.rb +2 -2
  138. data/lib/oci/apm_traces/models/query_result_row.rb +6 -7
  139. data/lib/oci/apm_traces/models/query_result_row_type_summary.rb +1 -1
  140. data/lib/oci/apm_traces/models/query_results_grouped_by_summary.rb +2 -2
  141. data/lib/oci/apm_traces/models/query_results_ordered_by_summary.rb +2 -2
  142. data/lib/oci/apm_traces/models/quick_pick_summary.rb +3 -3
  143. data/lib/oci/apm_traces/models/snapshot_detail.rb +163 -0
  144. data/lib/oci/apm_traces/models/span.rb +4 -4
  145. data/lib/oci/apm_traces/models/span_log.rb +1 -1
  146. data/lib/oci/apm_traces/models/span_snapshot.rb +238 -0
  147. data/lib/oci/apm_traces/models/stack_trace_element.rb +212 -0
  148. data/lib/oci/apm_traces/models/tag.rb +1 -1
  149. data/lib/oci/apm_traces/models/thread_snapshot.rb +186 -0
  150. data/lib/oci/apm_traces/models/trace.rb +15 -16
  151. data/lib/oci/apm_traces/models/trace_service_summary.rb +3 -3
  152. data/lib/oci/apm_traces/models/trace_snapshot.rb +214 -0
  153. data/lib/oci/apm_traces/models/trace_span_summary.rb +16 -18
  154. data/lib/oci/apm_traces/query_client.rb +9 -89
  155. data/lib/oci/apm_traces/trace_client.rb +141 -8
  156. data/lib/oci/common.rb +33 -0
  157. data/lib/oci/container_engine/container_engine.rb +2 -0
  158. data/lib/oci/container_engine/models/cluster.rb +51 -1
  159. data/lib/oci/container_engine/models/cluster_create_options.rb +30 -4
  160. data/lib/oci/container_engine/models/cluster_summary.rb +51 -1
  161. data/lib/oci/container_engine/models/create_cluster_details.rb +35 -1
  162. data/lib/oci/container_engine/models/create_node_pool_details.rb +38 -4
  163. data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +35 -1
  164. data/lib/oci/container_engine/models/node.rb +51 -1
  165. data/lib/oci/container_engine/models/node_pool.rb +54 -4
  166. data/lib/oci/container_engine/models/node_pool_node_config_details.rb +35 -1
  167. data/lib/oci/container_engine/models/node_pool_placement_config_details.rb +18 -4
  168. data/lib/oci/container_engine/models/node_pool_summary.rb +54 -4
  169. data/lib/oci/container_engine/models/persistent_volume_config_details.rb +174 -0
  170. data/lib/oci/container_engine/models/service_lb_config_details.rb +174 -0
  171. data/lib/oci/container_engine/models/update_cluster_details.rb +35 -1
  172. data/lib/oci/container_engine/models/update_cluster_options_details.rb +30 -4
  173. data/lib/oci/container_engine/models/update_node_pool_details.rb +38 -4
  174. data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +35 -1
  175. data/lib/oci/dashboard_service/dashboard_client.rb +477 -0
  176. data/lib/oci/dashboard_service/dashboard_client_composite_operations.rb +144 -0
  177. data/lib/oci/dashboard_service/dashboard_group_client.rb +477 -0
  178. data/lib/oci/dashboard_service/dashboard_group_client_composite_operations.rb +144 -0
  179. data/lib/oci/dashboard_service/dashboard_service.rb +36 -0
  180. data/lib/oci/dashboard_service/models/create_dashboard_details.rb +247 -0
  181. data/lib/oci/dashboard_service/models/create_dashboard_group_details.rb +214 -0
  182. data/lib/oci/dashboard_service/models/create_v1_dashboard_details.rb +191 -0
  183. data/lib/oci/dashboard_service/models/dashboard.rb +377 -0
  184. data/lib/oci/dashboard_service/models/dashboard_collection.rb +150 -0
  185. data/lib/oci/dashboard_service/models/dashboard_group.rb +312 -0
  186. data/lib/oci/dashboard_service/models/dashboard_group_collection.rb +150 -0
  187. data/lib/oci/dashboard_service/models/dashboard_group_summary.rb +288 -0
  188. data/lib/oci/dashboard_service/models/dashboard_summary.rb +302 -0
  189. data/lib/oci/dashboard_service/models/sort_order.rb +11 -0
  190. data/lib/oci/dashboard_service/models/update_dashboard_details.rb +233 -0
  191. data/lib/oci/dashboard_service/models/update_dashboard_group_details.rb +200 -0
  192. data/lib/oci/dashboard_service/models/update_v1_dashboard_details.rb +187 -0
  193. data/lib/oci/dashboard_service/models/v1_dashboard.rb +215 -0
  194. data/lib/oci/dashboard_service/util.rb +3 -0
  195. data/lib/oci/data_integration/models/filter.rb +1 -0
  196. data/lib/oci/data_safe/data_safe.rb +239 -0
  197. data/lib/oci/data_safe/data_safe_client.rb +11900 -1705
  198. data/lib/oci/data_safe/data_safe_client_composite_operations.rb +3157 -156
  199. data/lib/oci/data_safe/models/alert.rb +535 -0
  200. data/lib/oci/data_safe/models/alert_aggregation_items.rb +201 -0
  201. data/lib/oci/data_safe/models/alert_analytics_collection.rb +150 -0
  202. data/lib/oci/data_safe/models/alert_collection.rb +150 -0
  203. data/lib/oci/data_safe/models/alert_lifecycle_state.rb +12 -0
  204. data/lib/oci/data_safe/models/alert_policy.rb +387 -0
  205. data/lib/oci/data_safe/models/alert_policy_collection.rb +150 -0
  206. data/lib/oci/data_safe/models/alert_policy_lifecycle_state.rb +15 -0
  207. data/lib/oci/data_safe/models/alert_policy_rule.rb +170 -0
  208. data/lib/oci/data_safe/models/alert_policy_rule_collection.rb +150 -0
  209. data/lib/oci/data_safe/models/alert_policy_rule_summary.rb +170 -0
  210. data/lib/oci/data_safe/models/alert_policy_summary.rb +368 -0
  211. data/lib/oci/data_safe/models/alert_policy_type.rb +12 -0
  212. data/lib/oci/data_safe/models/alert_severity.rb +14 -0
  213. data/lib/oci/data_safe/models/alert_status.rb +11 -0
  214. data/lib/oci/data_safe/models/alert_summary.rb +495 -0
  215. data/lib/oci/data_safe/models/alert_type.rb +12 -0
  216. data/lib/oci/data_safe/models/alerts_aggregation_dimension.rb +154 -0
  217. data/lib/oci/data_safe/models/apply_discovery_job_results_details.rb +154 -0
  218. data/lib/oci/data_safe/models/audit_archive_retrieval.rb +404 -0
  219. data/lib/oci/data_safe/models/audit_archive_retrieval_collection.rb +150 -0
  220. data/lib/oci/data_safe/models/audit_archive_retrieval_lifecycle_state.rb +15 -0
  221. data/lib/oci/data_safe/models/audit_archive_retrieval_summary.rb +386 -0
  222. data/lib/oci/data_safe/models/audit_conditions.rb +197 -0
  223. data/lib/oci/data_safe/models/audit_event_aggregation_dimensions.rb +352 -0
  224. data/lib/oci/data_safe/models/audit_event_aggregation_items.rb +215 -0
  225. data/lib/oci/data_safe/models/audit_event_analytics_collection.rb +150 -0
  226. data/lib/oci/data_safe/models/audit_event_collection.rb +150 -0
  227. data/lib/oci/data_safe/models/audit_event_summary.rb +719 -0
  228. data/lib/oci/data_safe/models/audit_policy.rb +410 -0
  229. data/lib/oci/data_safe/models/audit_policy_aggregation_items.rb +159 -0
  230. data/lib/oci/data_safe/models/audit_policy_analytic_collection.rb +150 -0
  231. data/lib/oci/data_safe/models/audit_policy_category.rb +15 -0
  232. data/lib/oci/data_safe/models/audit_policy_collection.rb +150 -0
  233. data/lib/oci/data_safe/models/audit_policy_dimensions.rb +186 -0
  234. data/lib/oci/data_safe/models/audit_policy_lifecycle_state.rb +16 -0
  235. data/lib/oci/data_safe/models/audit_policy_summary.rb +380 -0
  236. data/lib/oci/data_safe/models/audit_profile.rb +429 -0
  237. data/lib/oci/data_safe/models/audit_profile_aggregation_items.rb +159 -0
  238. data/lib/oci/data_safe/models/audit_profile_analytic_collection.rb +151 -0
  239. data/lib/oci/data_safe/models/audit_profile_collection.rb +150 -0
  240. data/lib/oci/data_safe/models/audit_profile_dimensions.rb +157 -0
  241. data/lib/oci/data_safe/models/audit_profile_lifecycle_state.rb +16 -0
  242. data/lib/oci/data_safe/models/audit_profile_summary.rb +400 -0
  243. data/lib/oci/data_safe/models/audit_specification.rb +367 -0
  244. data/lib/oci/data_safe/models/audit_trail.rb +447 -0
  245. data/lib/oci/data_safe/models/audit_trail_aggregation_items.rb +159 -0
  246. data/lib/oci/data_safe/models/audit_trail_analytic_collection.rb +151 -0
  247. data/lib/oci/data_safe/models/audit_trail_collection.rb +150 -0
  248. data/lib/oci/data_safe/models/audit_trail_dimensions.rb +212 -0
  249. data/lib/oci/data_safe/models/audit_trail_lifecycle_state.rb +15 -0
  250. data/lib/oci/data_safe/models/audit_trail_status.rb +17 -0
  251. data/lib/oci/data_safe/models/audit_trail_summary.rb +411 -0
  252. data/lib/oci/data_safe/models/available_audit_volume_collection.rb +150 -0
  253. data/lib/oci/data_safe/models/available_audit_volume_summary.rb +197 -0
  254. data/lib/oci/data_safe/models/calculate_audit_volume_available_details.rb +168 -0
  255. data/lib/oci/data_safe/models/calculate_audit_volume_collected_details.rb +168 -0
  256. data/lib/oci/data_safe/models/change_alert_compartment_details.rb +154 -0
  257. data/lib/oci/data_safe/models/change_alert_policy_compartment_details.rb +154 -0
  258. data/lib/oci/data_safe/models/change_audit_archive_retrieval_compartment_details.rb +156 -0
  259. data/lib/oci/data_safe/models/change_audit_policy_compartment_details.rb +154 -0
  260. data/lib/oci/data_safe/models/change_audit_profile_compartment_details.rb +155 -0
  261. data/lib/oci/data_safe/models/change_discovery_job_compartment_details.rb +154 -0
  262. data/lib/oci/data_safe/models/change_library_masking_format_compartment_details.rb +154 -0
  263. data/lib/oci/data_safe/models/change_masking_policy_compartment_details.rb +154 -0
  264. data/lib/oci/data_safe/models/change_report_compartment_details.rb +156 -0
  265. data/lib/oci/data_safe/models/change_report_definition_compartment_details.rb +156 -0
  266. data/lib/oci/data_safe/models/change_retention_details.rb +189 -0
  267. data/lib/oci/data_safe/models/change_sensitive_data_model_compartment_details.rb +154 -0
  268. data/lib/oci/data_safe/models/change_sensitive_type_compartment_details.rb +154 -0
  269. data/lib/oci/data_safe/models/change_target_alert_policy_association_compartment_details.rb +154 -0
  270. data/lib/oci/data_safe/models/collected_audit_volume_collection.rb +150 -0
  271. data/lib/oci/data_safe/models/collected_audit_volume_summary.rb +199 -0
  272. data/lib/oci/data_safe/models/column.rb +212 -0
  273. data/lib/oci/data_safe/models/column_filter.rb +234 -0
  274. data/lib/oci/data_safe/models/column_sorting.rb +182 -0
  275. data/lib/oci/data_safe/models/column_source_details.rb +191 -0
  276. data/lib/oci/data_safe/models/column_source_from_sdm_details.rb +162 -0
  277. data/lib/oci/data_safe/models/column_source_from_target_details.rb +162 -0
  278. data/lib/oci/data_safe/models/column_summary.rb +240 -0
  279. data/lib/oci/data_safe/models/compatible_formats_for_data_types.rb +161 -0
  280. data/lib/oci/data_safe/models/compatible_formats_for_sensitive_types.rb +154 -0
  281. data/lib/oci/data_safe/models/create_alert_policy_details.rb +267 -0
  282. data/lib/oci/data_safe/models/create_alert_policy_rule_details.rb +161 -0
  283. data/lib/oci/data_safe/models/create_audit_archive_retrieval_details.rb +254 -0
  284. data/lib/oci/data_safe/models/create_audit_policy_details.rb +226 -0
  285. data/lib/oci/data_safe/models/create_audit_profile_details.rb +243 -0
  286. data/lib/oci/data_safe/models/create_column_source_details.rb +184 -0
  287. data/lib/oci/data_safe/models/create_column_source_from_sdm_details.rb +162 -0
  288. data/lib/oci/data_safe/models/create_column_source_from_target_details.rb +162 -0
  289. data/lib/oci/data_safe/models/create_discovery_job_details.rb +350 -0
  290. data/lib/oci/data_safe/models/create_library_masking_format_details.rb +247 -0
  291. data/lib/oci/data_safe/models/create_masking_column_details.rb +312 -0
  292. data/lib/oci/data_safe/models/create_masking_policy_details.rb +371 -0
  293. data/lib/oci/data_safe/models/create_report_definition_details.rb +278 -0
  294. data/lib/oci/data_safe/models/create_sensitive_category_details.rb +173 -0
  295. data/lib/oci/data_safe/models/create_sensitive_column_details.rb +371 -0
  296. data/lib/oci/data_safe/models/create_sensitive_data_model_details.rb +359 -0
  297. data/lib/oci/data_safe/models/create_sensitive_type_details.rb +286 -0
  298. data/lib/oci/data_safe/models/create_sensitive_type_pattern_details.rb +250 -0
  299. data/lib/oci/data_safe/models/create_target_alert_policy_association_details.rb +257 -0
  300. data/lib/oci/data_safe/models/data_model_format.rb +10 -0
  301. data/lib/oci/data_safe/models/data_safe_configuration.rb +29 -1
  302. data/lib/oci/data_safe/models/delete_rows_format_entry.rb +157 -0
  303. data/lib/oci/data_safe/models/deterministic_encryption_date_format_entry.rb +201 -0
  304. data/lib/oci/data_safe/models/deterministic_encryption_format_entry.rb +193 -0
  305. data/lib/oci/data_safe/models/deterministic_substitution_format_entry.rb +205 -0
  306. data/lib/oci/data_safe/models/dimensions.rb +168 -0
  307. data/lib/oci/data_safe/models/discovery_analytics_collection.rb +150 -0
  308. data/lib/oci/data_safe/models/discovery_analytics_summary.rb +197 -0
  309. data/lib/oci/data_safe/models/discovery_job.rb +544 -0
  310. data/lib/oci/data_safe/models/discovery_job_collection.rb +150 -0
  311. data/lib/oci/data_safe/models/discovery_job_result.rb +506 -0
  312. data/lib/oci/data_safe/models/discovery_job_result_collection.rb +150 -0
  313. data/lib/oci/data_safe/models/discovery_job_result_summary.rb +406 -0
  314. data/lib/oci/data_safe/models/discovery_job_summary.rb +320 -0
  315. data/lib/oci/data_safe/models/discovery_lifecycle_state.rb +15 -0
  316. data/lib/oci/data_safe/models/download_discovery_report_details.rb +183 -0
  317. data/lib/oci/data_safe/models/download_masking_log_details.rb +154 -0
  318. data/lib/oci/data_safe/models/download_masking_policy_details.rb +168 -0
  319. data/lib/oci/data_safe/models/download_masking_report_details.rb +183 -0
  320. data/lib/oci/data_safe/models/download_security_assessment_report_details.rb +1 -0
  321. data/lib/oci/data_safe/models/download_sensitive_data_model_details.rb +168 -0
  322. data/lib/oci/data_safe/models/download_user_assessment_report_details.rb +1 -0
  323. data/lib/oci/data_safe/models/enable_conditions.rb +256 -0
  324. data/lib/oci/data_safe/models/fixed_number_format_entry.rb +168 -0
  325. data/lib/oci/data_safe/models/fixed_string_format_entry.rb +168 -0
  326. data/lib/oci/data_safe/models/format_entry.rb +243 -0
  327. data/lib/oci/data_safe/models/format_entry_type.rb +32 -0
  328. data/lib/oci/data_safe/models/format_summary.rb +170 -0
  329. data/lib/oci/data_safe/models/formats_for_data_type.rb +174 -0
  330. data/lib/oci/data_safe/models/formats_for_sensitive_type.rb +168 -0
  331. data/lib/oci/data_safe/models/generate_discovery_report_for_download_details.rb +183 -0
  332. data/lib/oci/data_safe/models/generate_masking_policy_for_download_details.rb +168 -0
  333. data/lib/oci/data_safe/models/generate_masking_report_for_download_details.rb +183 -0
  334. data/lib/oci/data_safe/models/generate_report_details.rb +263 -0
  335. data/lib/oci/data_safe/models/generate_security_assessment_report_details.rb +1 -0
  336. data/lib/oci/data_safe/models/generate_sensitive_data_model_for_download_details.rb +168 -0
  337. data/lib/oci/data_safe/models/generate_user_assessment_report_details.rb +1 -0
  338. data/lib/oci/data_safe/models/global_settings.rb +185 -0
  339. data/lib/oci/data_safe/models/library_masking_format.rb +354 -0
  340. data/lib/oci/data_safe/models/library_masking_format_collection.rb +150 -0
  341. data/lib/oci/data_safe/models/library_masking_format_entry.rb +171 -0
  342. data/lib/oci/data_safe/models/library_masking_format_source.rb +11 -0
  343. data/lib/oci/data_safe/models/library_masking_format_summary.rb +332 -0
  344. data/lib/oci/data_safe/models/mask_data_details.rb +274 -0
  345. data/lib/oci/data_safe/models/masked_column_collection.rb +150 -0
  346. data/lib/oci/data_safe/models/masked_column_summary.rb +296 -0
  347. data/lib/oci/data_safe/models/masking_analytics_collection.rb +150 -0
  348. data/lib/oci/data_safe/models/masking_analytics_dimensions.rb +168 -0
  349. data/lib/oci/data_safe/models/masking_analytics_summary.rb +199 -0
  350. data/lib/oci/data_safe/models/masking_column.rb +414 -0
  351. data/lib/oci/data_safe/models/masking_column_collection.rb +150 -0
  352. data/lib/oci/data_safe/models/masking_column_lifecycle_state.rb +15 -0
  353. data/lib/oci/data_safe/models/masking_column_summary.rb +410 -0
  354. data/lib/oci/data_safe/models/masking_format.rb +190 -0
  355. data/lib/oci/data_safe/models/masking_lifecycle_state.rb +16 -0
  356. data/lib/oci/data_safe/models/masking_policy.rb +448 -0
  357. data/lib/oci/data_safe/models/masking_policy_collection.rb +150 -0
  358. data/lib/oci/data_safe/models/masking_policy_summary.rb +304 -0
  359. data/lib/oci/data_safe/models/masking_report.rb +306 -0
  360. data/lib/oci/data_safe/models/masking_report_collection.rb +150 -0
  361. data/lib/oci/data_safe/models/masking_report_summary.rb +304 -0
  362. data/lib/oci/data_safe/models/modified_attributes.rb +170 -0
  363. data/lib/oci/data_safe/models/modify_global_settings_details.rb +184 -0
  364. data/lib/oci/data_safe/models/null_value_format_entry.rb +152 -0
  365. data/lib/oci/data_safe/models/object_type.rb +11 -0
  366. data/lib/oci/data_safe/models/patch_alert_policy_rule_details.rb +150 -0
  367. data/lib/oci/data_safe/models/patch_alerts_details.rb +150 -0
  368. data/lib/oci/data_safe/models/patch_discovery_job_result_details.rb +150 -0
  369. data/lib/oci/data_safe/models/patch_insert_instruction.rb +162 -0
  370. data/lib/oci/data_safe/models/patch_instruction.rb +192 -0
  371. data/lib/oci/data_safe/models/patch_masking_columns_details.rb +150 -0
  372. data/lib/oci/data_safe/models/patch_merge_instruction.rb +162 -0
  373. data/lib/oci/data_safe/models/patch_remove_instruction.rb +149 -0
  374. data/lib/oci/data_safe/models/patch_sensitive_column_details.rb +150 -0
  375. data/lib/oci/data_safe/models/policy_format.rb +10 -0
  376. data/lib/oci/data_safe/models/ppf_format_entry.rb +179 -0
  377. data/lib/oci/data_safe/models/preserve_original_data_format_entry.rb +153 -0
  378. data/lib/oci/data_safe/models/provision_audit_conditions.rb +199 -0
  379. data/lib/oci/data_safe/models/provision_audit_policy_details.rb +170 -0
  380. data/lib/oci/data_safe/models/random_date_format_entry.rb +189 -0
  381. data/lib/oci/data_safe/models/random_decimal_number_format_entry.rb +190 -0
  382. data/lib/oci/data_safe/models/random_digits_format_entry.rb +193 -0
  383. data/lib/oci/data_safe/models/random_list_format_entry.rb +173 -0
  384. data/lib/oci/data_safe/models/random_number_format_entry.rb +192 -0
  385. data/lib/oci/data_safe/models/random_string_format_entry.rb +192 -0
  386. data/lib/oci/data_safe/models/random_substitution_format_entry.rb +204 -0
  387. data/lib/oci/data_safe/models/regular_expression_format_entry.rb +189 -0
  388. data/lib/oci/data_safe/models/report.rb +333 -0
  389. data/lib/oci/data_safe/models/report_collection.rb +150 -0
  390. data/lib/oci/data_safe/models/report_definition.rb +474 -0
  391. data/lib/oci/data_safe/models/report_definition_collection.rb +150 -0
  392. data/lib/oci/data_safe/models/report_definition_data_source.rb +11 -0
  393. data/lib/oci/data_safe/models/report_definition_lifecycle_state.rb +14 -0
  394. data/lib/oci/data_safe/models/report_definition_summary.rb +378 -0
  395. data/lib/oci/data_safe/models/report_lifecycle_state.rb +11 -0
  396. data/lib/oci/data_safe/models/report_summary.rb +317 -0
  397. data/lib/oci/data_safe/models/role_summary.rb +238 -0
  398. data/lib/oci/data_safe/models/schema_summary.rb +168 -0
  399. data/lib/oci/data_safe/models/sensitive_category.rb +197 -0
  400. data/lib/oci/data_safe/models/sensitive_column.rb +559 -0
  401. data/lib/oci/data_safe/models/sensitive_column_collection.rb +150 -0
  402. data/lib/oci/data_safe/models/sensitive_column_lifecycle_state.rb +14 -0
  403. data/lib/oci/data_safe/models/sensitive_column_summary.rb +512 -0
  404. data/lib/oci/data_safe/models/sensitive_data_model.rb +438 -0
  405. data/lib/oci/data_safe/models/sensitive_data_model_collection.rb +150 -0
  406. data/lib/oci/data_safe/models/sensitive_data_model_summary.rb +320 -0
  407. data/lib/oci/data_safe/models/sensitive_type.rb +416 -0
  408. data/lib/oci/data_safe/models/sensitive_type_collection.rb +150 -0
  409. data/lib/oci/data_safe/models/sensitive_type_entity.rb +11 -0
  410. data/lib/oci/data_safe/models/sensitive_type_pattern.rb +292 -0
  411. data/lib/oci/data_safe/models/sensitive_type_source.rb +11 -0
  412. data/lib/oci/data_safe/models/sensitive_type_summary.rb +394 -0
  413. data/lib/oci/data_safe/models/service_list.rb +1 -0
  414. data/lib/oci/data_safe/models/shuffle_format_entry.rb +177 -0
  415. data/lib/oci/data_safe/models/sql_expression_format_entry.rb +176 -0
  416. data/lib/oci/data_safe/models/start_audit_trail_details.rb +172 -0
  417. data/lib/oci/data_safe/models/substring_format_entry.rb +187 -0
  418. data/lib/oci/data_safe/models/summary.rb +222 -0
  419. data/lib/oci/data_safe/models/table_summary.rb +168 -0
  420. data/lib/oci/data_safe/models/target_alert_policy_association.rb +348 -0
  421. data/lib/oci/data_safe/models/target_alert_policy_association_collection.rb +150 -0
  422. data/lib/oci/data_safe/models/target_alert_policy_association_summary.rb +332 -0
  423. data/lib/oci/data_safe/models/target_database.rb +15 -1
  424. data/lib/oci/data_safe/models/target_database_summary.rb +15 -1
  425. data/lib/oci/data_safe/models/truncate_table_format_entry.rb +154 -0
  426. data/lib/oci/data_safe/models/udf_format_entry.rb +173 -0
  427. data/lib/oci/data_safe/models/update_alert_details.rb +207 -0
  428. data/lib/oci/data_safe/models/update_alert_policy_rule_details.rb +160 -0
  429. data/lib/oci/data_safe/models/update_audit_archive_retrieval_details.rb +198 -0
  430. data/lib/oci/data_safe/models/update_audit_policy_details.rb +198 -0
  431. data/lib/oci/data_safe/models/update_audit_profile_details.rb +215 -0
  432. data/lib/oci/data_safe/models/update_audit_trail_details.rb +216 -0
  433. data/lib/oci/data_safe/models/update_column_source_details.rb +184 -0
  434. data/lib/oci/data_safe/models/update_column_source_sdm_details.rb +162 -0
  435. data/lib/oci/data_safe/models/update_column_source_target_details.rb +162 -0
  436. data/lib/oci/data_safe/models/update_library_masking_format_details.rb +228 -0
  437. data/lib/oci/data_safe/models/update_masking_column_details.rb +239 -0
  438. data/lib/oci/data_safe/models/update_masking_policy_details.rb +329 -0
  439. data/lib/oci/data_safe/models/update_report_definition_details.rb +250 -0
  440. data/lib/oci/data_safe/models/update_sensitive_category_details.rb +169 -0
  441. data/lib/oci/data_safe/models/update_sensitive_column_details.rb +280 -0
  442. data/lib/oci/data_safe/models/update_sensitive_data_model_details.rb +299 -0
  443. data/lib/oci/data_safe/models/update_sensitive_type_details.rb +272 -0
  444. data/lib/oci/data_safe/models/update_sensitive_type_pattern_details.rb +244 -0
  445. data/lib/oci/data_safe/models/update_target_alert_policy_association_details.rb +213 -0
  446. data/lib/oci/data_safe/models/work_request.rb +57 -0
  447. data/lib/oci/data_safe/models/work_request_summary.rb +56 -0
  448. data/lib/oci/data_science/data_science.rb +1 -0
  449. data/lib/oci/data_science/data_science_client.rb +71 -2
  450. data/lib/oci/data_science/data_science_client_composite_operations.rb +1 -1
  451. data/lib/oci/data_science/models/fast_launch_job_config_summary.rb +272 -0
  452. data/lib/oci/database/models/autonomous_database.rb +2 -1
  453. data/lib/oci/database/models/autonomous_database_summary.rb +2 -1
  454. data/lib/oci/database_management/database_management.rb +14 -0
  455. data/lib/oci/database_management/db_management_client.rb +544 -8
  456. data/lib/oci/database_management/models/add_data_files_details.rb +303 -0
  457. data/lib/oci/database_management/models/asm_property.rb +151 -0
  458. data/lib/oci/database_management/models/asm_property_collection.rb +150 -0
  459. data/lib/oci/database_management/models/asm_property_summary.rb +154 -0
  460. data/lib/oci/database_management/models/clone_sql_tuning_task_details.rb +4 -4
  461. data/lib/oci/database_management/models/consumer_group_privilege_collection.rb +2 -2
  462. data/lib/oci/database_management/models/consumer_group_privilege_summary.rb +4 -4
  463. data/lib/oci/database_management/models/create_tablespace_details.rb +508 -0
  464. data/lib/oci/database_management/models/data_access_container_collection.rb +2 -2
  465. data/lib/oci/database_management/models/data_access_container_summary.rb +2 -2
  466. data/lib/oci/database_management/models/drop_sql_tuning_task_details.rb +3 -3
  467. data/lib/oci/database_management/models/drop_tablespace_details.rb +199 -0
  468. data/lib/oci/database_management/models/execution_plan_stats_comparision.rb +1 -1
  469. data/lib/oci/database_management/models/object_privilege_collection.rb +2 -2
  470. data/lib/oci/database_management/models/object_privilege_summary.rb +9 -9
  471. data/lib/oci/database_management/models/proxied_for_user_collection.rb +2 -2
  472. data/lib/oci/database_management/models/proxied_for_user_summary.rb +4 -4
  473. data/lib/oci/database_management/models/proxy_user_collection.rb +2 -2
  474. data/lib/oci/database_management/models/proxy_user_summary.rb +4 -4
  475. data/lib/oci/database_management/models/remove_data_file_details.rb +197 -0
  476. data/lib/oci/database_management/models/resize_data_file_details.rb +272 -0
  477. data/lib/oci/database_management/models/role_collection.rb +2 -2
  478. data/lib/oci/database_management/models/role_summary.rb +9 -9
  479. data/lib/oci/database_management/models/sql_tuning_advisor_task_finding_collection.rb +1 -1
  480. data/lib/oci/database_management/models/sql_tuning_advisor_task_finding_summary.rb +19 -19
  481. data/lib/oci/database_management/models/sql_tuning_advisor_task_recommendation_summary.rb +6 -6
  482. data/lib/oci/database_management/models/sql_tuning_advisor_task_sql_execution_plan.rb +1 -1
  483. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary.rb +13 -13
  484. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_finding_benefits.rb +21 -21
  485. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_finding_counts.rb +7 -7
  486. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_statement_counts.rb +5 -5
  487. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_statistics.rb +1 -1
  488. data/lib/oci/database_management/models/sql_tuning_advisor_task_summary_report_task_info.rb +9 -9
  489. data/lib/oci/database_management/models/sql_tuning_task_credential_details.rb +3 -3
  490. data/lib/oci/database_management/models/sql_tuning_task_password_credential_details.rb +1 -1
  491. data/lib/oci/database_management/models/sql_tuning_task_plan_stats.rb +2 -2
  492. data/lib/oci/database_management/models/sql_tuning_task_return.rb +3 -3
  493. data/lib/oci/database_management/models/sql_tuning_task_secret_credential_details.rb +1 -1
  494. data/lib/oci/database_management/models/sql_tuning_task_sql_detail.rb +1 -1
  495. data/lib/oci/database_management/models/sql_tuning_task_sql_execution_plan_step.rb +30 -30
  496. data/lib/oci/database_management/models/start_sql_tuning_task_details.rb +8 -8
  497. data/lib/oci/database_management/models/system_privilege_collection.rb +2 -2
  498. data/lib/oci/database_management/models/system_privilege_summary.rb +7 -7
  499. data/lib/oci/database_management/models/tablespace.rb +217 -81
  500. data/lib/oci/database_management/models/tablespace_admin_credential_details.rb +217 -0
  501. data/lib/oci/database_management/models/tablespace_admin_password_credential_details.rb +166 -0
  502. data/lib/oci/database_management/models/tablespace_admin_secret_credential_details.rb +173 -0
  503. data/lib/oci/database_management/models/tablespace_admin_status.rb +201 -0
  504. data/lib/oci/database_management/models/tablespace_storage_size.rb +178 -0
  505. data/lib/oci/database_management/models/tablespace_summary.rb +16 -1
  506. data/lib/oci/database_management/models/update_tablespace_details.rb +303 -0
  507. data/lib/oci/database_management/models/user.rb +15 -15
  508. data/lib/oci/database_management/models/user_collection.rb +1 -1
  509. data/lib/oci/database_management/models/user_summary.rb +3 -3
  510. data/lib/oci/database_management/sql_tuning_client.rb +24 -21
  511. data/lib/oci/loggingsearch/log_search_client.rb +4 -1
  512. data/lib/oci/marketplace/account_client.rb +1 -1
  513. data/lib/oci/marketplace/marketplace_client.rb +7 -4
  514. data/lib/oci/marketplace/models/free_text_search_details.rb +2 -1
  515. data/lib/oci/marketplace/models/listing_summary.rb +17 -1
  516. data/lib/oci/marketplace/models/search_listings_details.rb +4 -2
  517. data/lib/oci/marketplace/models/structured_search_details.rb +3 -1
  518. data/lib/oci/nosql/models/table_collection.rb +32 -4
  519. data/lib/oci/nosql/models/table_limits.rb +41 -4
  520. data/lib/oci/osp_gateway/invoice_service_client.rb +1 -1
  521. data/lib/oci/osp_gateway/models/authorize_subscription_payment_details.rb +174 -0
  522. data/lib/oci/osp_gateway/models/authorize_subscription_payment_receipt.rb +182 -0
  523. data/lib/oci/osp_gateway/models/{address.rb → bill_to_address.rb} +1 -1
  524. data/lib/oci/osp_gateway/models/billing_address.rb +274 -0
  525. data/lib/oci/osp_gateway/models/credit_card_payment_option.rb +153 -0
  526. data/lib/oci/osp_gateway/models/credit_card_type.rb +16 -0
  527. data/lib/oci/osp_gateway/models/invoice.rb +3 -3
  528. data/lib/oci/osp_gateway/models/merchant_defined_data.rb +168 -0
  529. data/lib/oci/osp_gateway/models/pay_subscription_details.rb +174 -0
  530. data/lib/oci/osp_gateway/models/pay_subscription_receipt.rb +182 -0
  531. data/lib/oci/osp_gateway/models/payment_detail.rb +1 -1
  532. data/lib/oci/osp_gateway/models/payment_gateway.rb +153 -0
  533. data/lib/oci/osp_gateway/models/payment_method.rb +11 -0
  534. data/lib/oci/osp_gateway/models/payment_option.rb +219 -0
  535. data/lib/oci/osp_gateway/models/paypal_payment_option.rb +153 -0
  536. data/lib/oci/osp_gateway/models/subscription.rb +456 -0
  537. data/lib/oci/osp_gateway/models/subscription_collection.rb +150 -0
  538. data/lib/oci/osp_gateway/models/subscription_summary.rb +459 -0
  539. data/lib/oci/osp_gateway/models/tax_info.rb +210 -0
  540. data/lib/oci/osp_gateway/models/update_subscription_details.rb +160 -0
  541. data/lib/oci/osp_gateway/osp_gateway.rb +19 -1
  542. data/lib/oci/osp_gateway/subscription_service_client.rb +481 -0
  543. data/lib/oci/osp_gateway/subscription_service_client_composite_operations.rb +25 -0
  544. data/lib/oci/regions_definitions.rb +9 -4
  545. data/lib/oci/threat_intelligence/models/data_attribution.rb +198 -0
  546. data/lib/oci/threat_intelligence/models/data_visibility.rb +187 -0
  547. data/lib/oci/threat_intelligence/models/entity_reference.rb +185 -0
  548. data/lib/oci/threat_intelligence/models/indicator.rb +320 -0
  549. data/lib/oci/threat_intelligence/models/indicator_attribute.rb +170 -0
  550. data/lib/oci/threat_intelligence/models/indicator_count_collection.rb +150 -0
  551. data/lib/oci/threat_intelligence/models/indicator_count_dimensions.rb +189 -0
  552. data/lib/oci/threat_intelligence/models/indicator_count_summary.rb +160 -0
  553. data/lib/oci/threat_intelligence/models/indicator_reference.rb +162 -0
  554. data/lib/oci/threat_intelligence/models/indicator_relationship.rb +174 -0
  555. data/lib/oci/threat_intelligence/models/indicator_source_summary.rb +150 -0
  556. data/lib/oci/threat_intelligence/models/indicator_summary.rb +294 -0
  557. data/lib/oci/threat_intelligence/models/indicator_summary_collection.rb +150 -0
  558. data/lib/oci/threat_intelligence/models/indicator_type.rb +16 -0
  559. data/lib/oci/threat_intelligence/models/lifecycle_state.rb +11 -0
  560. data/lib/oci/threat_intelligence/models/sort_order.rb +11 -0
  561. data/lib/oci/threat_intelligence/models/threat_type.rb +170 -0
  562. data/lib/oci/threat_intelligence/models/threat_type_summary.rb +160 -0
  563. data/lib/oci/threat_intelligence/models/threat_types_collection.rb +150 -0
  564. data/lib/oci/threat_intelligence/threat_intelligence.rb +38 -0
  565. data/lib/oci/threat_intelligence/threatintel_client.rb +375 -0
  566. data/lib/oci/threat_intelligence/threatintel_client_composite_operations.rb +25 -0
  567. data/lib/oci/threat_intelligence/util.rb +3 -0
  568. data/lib/oci/version.rb +1 -1
  569. data/lib/oci.rb +6 -23
  570. metadata +432 -3
@@ -0,0 +1,1677 @@
1
+ # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved.
2
+ # 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.
3
+
4
+ require 'uri'
5
+ require 'logger'
6
+
7
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
8
+ module OCI
9
+ # A description of the VisionService API.
10
+ class AiVision::AIServiceVisionClient
11
+ # Client used to make HTTP requests.
12
+ # @return [OCI::ApiClient]
13
+ attr_reader :api_client
14
+
15
+ # Fully qualified endpoint URL
16
+ # @return [String]
17
+ attr_reader :endpoint
18
+
19
+ # The default retry configuration to apply to all operations in this service client. This can be overridden
20
+ # on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
21
+ # will not perform any retries
22
+ # @return [OCI::Retry::RetryConfig]
23
+ attr_reader :retry_config
24
+
25
+ # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
26
+ # @return [String]
27
+ attr_reader :region
28
+
29
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
30
+
31
+
32
+ # Creates a new AIServiceVisionClient.
33
+ # Notes:
34
+ # If a config is not specified, then the global OCI.config will be used.
35
+ #
36
+ # This client is not thread-safe
37
+ #
38
+ # Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
39
+ # region. A region may be specified in the config or via or the region parameter. If specified in both, then the
40
+ # region parameter will be used.
41
+ # @param [Config] config A Config object.
42
+ # @param [String] region A region used to determine the service endpoint. This will usually
43
+ # correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
44
+ # @param [String] endpoint The fully qualified endpoint URL
45
+ # @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
46
+ # a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
47
+ # so that the instance principals signer can be provided to the client
48
+ # @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
49
+ # the details for the proxy can be provided in this parameter
50
+ # @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
51
+ # apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
52
+ # will not perform any retries
53
+ def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
54
+ # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
55
+ # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
56
+ # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
57
+ # pass it to this constructor.
58
+ #
59
+ # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
60
+ # so try and load the config from the default file.
61
+ config = OCI::Config.validate_and_build_config_with_signer(config, signer)
62
+
63
+ signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
64
+
65
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
66
+ @retry_config = retry_config
67
+
68
+ if endpoint
69
+ @endpoint = endpoint + '/20220125'
70
+ else
71
+ region ||= config.region
72
+ region ||= signer.region if signer.respond_to?(:region)
73
+ self.region = region
74
+ end
75
+ logger.info "AIServiceVisionClient endpoint set to '#{@endpoint}'." if logger
76
+ end
77
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
78
+
79
+ # Set the region that will be used to determine the service endpoint.
80
+ # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
81
+ # but may be an arbitrary string.
82
+ def region=(new_region)
83
+ @region = new_region
84
+
85
+ raise 'A region must be specified.' unless @region
86
+
87
+ @endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://vision.aiservice.{region}.oci.{secondLevelDomain}') + '/20220125'
88
+ logger.info "AIServiceVisionClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
89
+ end
90
+
91
+ # @return [Logger] The logger for this client. May be nil.
92
+ def logger
93
+ @api_client.config.logger
94
+ end
95
+
96
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
97
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
98
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
99
+
100
+
101
+ # Perform different types of image analysis.
102
+ #
103
+ # @param [OCI::AiVision::Models::AnalyzeDocumentDetails] analyze_document_details Details about how to analyze a document.
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
106
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
107
+ # @option opts [String] :opc_request_id The client request ID for tracing.
108
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::AnalyzeDocumentResult AnalyzeDocumentResult}
109
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/analyze_document.rb.html) to see an example of how to use analyze_document API.
110
+ def analyze_document(analyze_document_details, opts = {})
111
+ logger.debug 'Calling operation AIServiceVisionClient#analyze_document.' if logger
112
+
113
+ raise "Missing the required parameter 'analyze_document_details' when calling analyze_document." if analyze_document_details.nil?
114
+
115
+ path = '/actions/analyzeDocument'
116
+ operation_signing_strategy = :standard
117
+
118
+ # rubocop:disable Style/NegatedIf
119
+ # Query Params
120
+ query_params = {}
121
+
122
+ # Header Params
123
+ header_params = {}
124
+ header_params[:accept] = 'application/json'
125
+ header_params[:'content-type'] = 'application/json'
126
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
127
+ # rubocop:enable Style/NegatedIf
128
+
129
+ post_body = @api_client.object_to_http_body(analyze_document_details)
130
+
131
+ # rubocop:disable Metrics/BlockLength
132
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#analyze_document') do
133
+ @api_client.call_api(
134
+ :POST,
135
+ path,
136
+ endpoint,
137
+ header_params: header_params,
138
+ query_params: query_params,
139
+ operation_signing_strategy: operation_signing_strategy,
140
+ body: post_body,
141
+ return_type: 'OCI::AiVision::Models::AnalyzeDocumentResult'
142
+ )
143
+ end
144
+ # rubocop:enable Metrics/BlockLength
145
+ end
146
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
147
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
148
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
149
+
150
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
151
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
152
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
153
+
154
+
155
+ # Perform different types of image analysis.
156
+ #
157
+ # @param [OCI::AiVision::Models::AnalyzeImageDetails] analyze_image_details Details about how to analyze an image.
158
+ # @param [Hash] opts the optional parameters
159
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
160
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
161
+ # @option opts [String] :opc_request_id The client request ID for tracing.
162
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::AnalyzeImageResult AnalyzeImageResult}
163
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/analyze_image.rb.html) to see an example of how to use analyze_image API.
164
+ def analyze_image(analyze_image_details, opts = {})
165
+ logger.debug 'Calling operation AIServiceVisionClient#analyze_image.' if logger
166
+
167
+ raise "Missing the required parameter 'analyze_image_details' when calling analyze_image." if analyze_image_details.nil?
168
+
169
+ path = '/actions/analyzeImage'
170
+ operation_signing_strategy = :standard
171
+
172
+ # rubocop:disable Style/NegatedIf
173
+ # Query Params
174
+ query_params = {}
175
+
176
+ # Header Params
177
+ header_params = {}
178
+ header_params[:accept] = 'application/json'
179
+ header_params[:'content-type'] = 'application/json'
180
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
181
+ # rubocop:enable Style/NegatedIf
182
+
183
+ post_body = @api_client.object_to_http_body(analyze_image_details)
184
+
185
+ # rubocop:disable Metrics/BlockLength
186
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#analyze_image') do
187
+ @api_client.call_api(
188
+ :POST,
189
+ path,
190
+ endpoint,
191
+ header_params: header_params,
192
+ query_params: query_params,
193
+ operation_signing_strategy: operation_signing_strategy,
194
+ body: post_body,
195
+ return_type: 'OCI::AiVision::Models::AnalyzeImageResult'
196
+ )
197
+ end
198
+ # rubocop:enable Metrics/BlockLength
199
+ end
200
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
201
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
202
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
203
+
204
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
205
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
206
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
207
+
208
+
209
+ # Cancel a batch document job.
210
+ #
211
+ # @param [String] document_job_id Document job id.
212
+ # @param [Hash] opts the optional parameters
213
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
214
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
215
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
216
+ # for a resource, set the `if-match` parameter to the value of the
217
+ # etag from a previous GET or POST response for that resource.
218
+ # The resource will be updated or deleted only if the etag you
219
+ # provide matches the resource's current etag value.
220
+ #
221
+ # @option opts [String] :opc_request_id The client request ID for tracing.
222
+ # @return [Response] A Response object with data of type nil
223
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/cancel_document_job.rb.html) to see an example of how to use cancel_document_job API.
224
+ def cancel_document_job(document_job_id, opts = {})
225
+ logger.debug 'Calling operation AIServiceVisionClient#cancel_document_job.' if logger
226
+
227
+ raise "Missing the required parameter 'document_job_id' when calling cancel_document_job." if document_job_id.nil?
228
+ raise "Parameter value for 'document_job_id' must not be blank" if OCI::Internal::Util.blank_string?(document_job_id)
229
+
230
+ path = '/documentJobs/{documentJobId}/actions/cancel'.sub('{documentJobId}', document_job_id.to_s)
231
+ operation_signing_strategy = :standard
232
+
233
+ # rubocop:disable Style/NegatedIf
234
+ # Query Params
235
+ query_params = {}
236
+
237
+ # Header Params
238
+ header_params = {}
239
+ header_params[:accept] = 'application/json'
240
+ header_params[:'content-type'] = 'application/json'
241
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
242
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
243
+ # rubocop:enable Style/NegatedIf
244
+
245
+ post_body = nil
246
+
247
+ # rubocop:disable Metrics/BlockLength
248
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#cancel_document_job') do
249
+ @api_client.call_api(
250
+ :POST,
251
+ path,
252
+ endpoint,
253
+ header_params: header_params,
254
+ query_params: query_params,
255
+ operation_signing_strategy: operation_signing_strategy,
256
+ body: post_body
257
+ )
258
+ end
259
+ # rubocop:enable Metrics/BlockLength
260
+ end
261
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
262
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
263
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
264
+
265
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
266
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
267
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
268
+
269
+
270
+ # Cancel a batch image job.
271
+ #
272
+ # @param [String] image_job_id Image job id.
273
+ # @param [Hash] opts the optional parameters
274
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
275
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
276
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
277
+ # for a resource, set the `if-match` parameter to the value of the
278
+ # etag from a previous GET or POST response for that resource.
279
+ # The resource will be updated or deleted only if the etag you
280
+ # provide matches the resource's current etag value.
281
+ #
282
+ # @option opts [String] :opc_request_id The client request ID for tracing.
283
+ # @return [Response] A Response object with data of type nil
284
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/cancel_image_job.rb.html) to see an example of how to use cancel_image_job API.
285
+ def cancel_image_job(image_job_id, opts = {})
286
+ logger.debug 'Calling operation AIServiceVisionClient#cancel_image_job.' if logger
287
+
288
+ raise "Missing the required parameter 'image_job_id' when calling cancel_image_job." if image_job_id.nil?
289
+ raise "Parameter value for 'image_job_id' must not be blank" if OCI::Internal::Util.blank_string?(image_job_id)
290
+
291
+ path = '/imageJobs/{imageJobId}/actions/cancel'.sub('{imageJobId}', image_job_id.to_s)
292
+ operation_signing_strategy = :standard
293
+
294
+ # rubocop:disable Style/NegatedIf
295
+ # Query Params
296
+ query_params = {}
297
+
298
+ # Header Params
299
+ header_params = {}
300
+ header_params[:accept] = 'application/json'
301
+ header_params[:'content-type'] = 'application/json'
302
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
303
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
304
+ # rubocop:enable Style/NegatedIf
305
+
306
+ post_body = nil
307
+
308
+ # rubocop:disable Metrics/BlockLength
309
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#cancel_image_job') do
310
+ @api_client.call_api(
311
+ :POST,
312
+ path,
313
+ endpoint,
314
+ header_params: header_params,
315
+ query_params: query_params,
316
+ operation_signing_strategy: operation_signing_strategy,
317
+ body: post_body
318
+ )
319
+ end
320
+ # rubocop:enable Metrics/BlockLength
321
+ end
322
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
323
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
324
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
325
+
326
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
327
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
328
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
329
+
330
+
331
+ # Cancel work request with the given ID.
332
+ # @param [String] work_request_id The ID of the asynchronous request.
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
335
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
336
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
337
+ # for a resource, set the `if-match` parameter to the value of the
338
+ # etag from a previous GET or POST response for that resource.
339
+ # The resource will be updated or deleted only if the etag you
340
+ # provide matches the resource's current etag value.
341
+ #
342
+ # @option opts [String] :opc_request_id The client request ID for tracing.
343
+ # @return [Response] A Response object with data of type nil
344
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/cancel_work_request.rb.html) to see an example of how to use cancel_work_request API.
345
+ def cancel_work_request(work_request_id, opts = {})
346
+ logger.debug 'Calling operation AIServiceVisionClient#cancel_work_request.' if logger
347
+
348
+ raise "Missing the required parameter 'work_request_id' when calling cancel_work_request." if work_request_id.nil?
349
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
350
+
351
+ path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
352
+ operation_signing_strategy = :standard
353
+
354
+ # rubocop:disable Style/NegatedIf
355
+ # Query Params
356
+ query_params = {}
357
+
358
+ # Header Params
359
+ header_params = {}
360
+ header_params[:accept] = 'application/json'
361
+ header_params[:'content-type'] = 'application/json'
362
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
363
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
364
+ # rubocop:enable Style/NegatedIf
365
+
366
+ post_body = nil
367
+
368
+ # rubocop:disable Metrics/BlockLength
369
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#cancel_work_request') do
370
+ @api_client.call_api(
371
+ :DELETE,
372
+ path,
373
+ endpoint,
374
+ header_params: header_params,
375
+ query_params: query_params,
376
+ operation_signing_strategy: operation_signing_strategy,
377
+ body: post_body
378
+ )
379
+ end
380
+ # rubocop:enable Metrics/BlockLength
381
+ end
382
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
383
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
384
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
385
+
386
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
387
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
388
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
389
+
390
+
391
+ # Moves a model from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
392
+ # @param [String] model_id unique model identifier.
393
+ # @param [OCI::AiVision::Models::ChangeModelCompartmentDetails] change_model_compartment_details The deatils of the move.
394
+ # @param [Hash] opts the optional parameters
395
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
396
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
397
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
398
+ # for a resource, set the `if-match` parameter to the value of the
399
+ # etag from a previous GET or POST response for that resource.
400
+ # The resource will be updated or deleted only if the etag you
401
+ # provide matches the resource's current etag value.
402
+ #
403
+ # @option opts [String] :opc_request_id The client request ID for tracing.
404
+ # @return [Response] A Response object with data of type nil
405
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/change_model_compartment.rb.html) to see an example of how to use change_model_compartment API.
406
+ def change_model_compartment(model_id, change_model_compartment_details, opts = {})
407
+ logger.debug 'Calling operation AIServiceVisionClient#change_model_compartment.' if logger
408
+
409
+ raise "Missing the required parameter 'model_id' when calling change_model_compartment." if model_id.nil?
410
+ raise "Missing the required parameter 'change_model_compartment_details' when calling change_model_compartment." if change_model_compartment_details.nil?
411
+ raise "Parameter value for 'model_id' must not be blank" if OCI::Internal::Util.blank_string?(model_id)
412
+
413
+ path = '/models/{modelId}/actions/changeCompartment'.sub('{modelId}', model_id.to_s)
414
+ operation_signing_strategy = :standard
415
+
416
+ # rubocop:disable Style/NegatedIf
417
+ # Query Params
418
+ query_params = {}
419
+
420
+ # Header Params
421
+ header_params = {}
422
+ header_params[:accept] = 'application/json'
423
+ header_params[:'content-type'] = 'application/json'
424
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
425
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
426
+ # rubocop:enable Style/NegatedIf
427
+
428
+ post_body = @api_client.object_to_http_body(change_model_compartment_details)
429
+
430
+ # rubocop:disable Metrics/BlockLength
431
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#change_model_compartment') do
432
+ @api_client.call_api(
433
+ :POST,
434
+ path,
435
+ endpoint,
436
+ header_params: header_params,
437
+ query_params: query_params,
438
+ operation_signing_strategy: operation_signing_strategy,
439
+ body: post_body
440
+ )
441
+ end
442
+ # rubocop:enable Metrics/BlockLength
443
+ end
444
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
445
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
446
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
447
+
448
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
449
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
450
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
451
+
452
+
453
+ # Moves a project from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
454
+ # @param [String] project_id unique project identifier.
455
+ # @param [OCI::AiVision::Models::ChangeProjectCompartmentDetails] change_project_compartment_details The deatils of the move.
456
+ # @param [Hash] opts the optional parameters
457
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
458
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
459
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
460
+ # for a resource, set the `if-match` parameter to the value of the
461
+ # etag from a previous GET or POST response for that resource.
462
+ # The resource will be updated or deleted only if the etag you
463
+ # provide matches the resource's current etag value.
464
+ #
465
+ # @option opts [String] :opc_request_id The client request ID for tracing.
466
+ # @return [Response] A Response object with data of type nil
467
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/change_project_compartment.rb.html) to see an example of how to use change_project_compartment API.
468
+ def change_project_compartment(project_id, change_project_compartment_details, opts = {})
469
+ logger.debug 'Calling operation AIServiceVisionClient#change_project_compartment.' if logger
470
+
471
+ raise "Missing the required parameter 'project_id' when calling change_project_compartment." if project_id.nil?
472
+ raise "Missing the required parameter 'change_project_compartment_details' when calling change_project_compartment." if change_project_compartment_details.nil?
473
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
474
+
475
+ path = '/projects/{projectId}/actions/changeCompartment'.sub('{projectId}', project_id.to_s)
476
+ operation_signing_strategy = :standard
477
+
478
+ # rubocop:disable Style/NegatedIf
479
+ # Query Params
480
+ query_params = {}
481
+
482
+ # Header Params
483
+ header_params = {}
484
+ header_params[:accept] = 'application/json'
485
+ header_params[:'content-type'] = 'application/json'
486
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
487
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
488
+ # rubocop:enable Style/NegatedIf
489
+
490
+ post_body = @api_client.object_to_http_body(change_project_compartment_details)
491
+
492
+ # rubocop:disable Metrics/BlockLength
493
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#change_project_compartment') do
494
+ @api_client.call_api(
495
+ :POST,
496
+ path,
497
+ endpoint,
498
+ header_params: header_params,
499
+ query_params: query_params,
500
+ operation_signing_strategy: operation_signing_strategy,
501
+ body: post_body
502
+ )
503
+ end
504
+ # rubocop:enable Metrics/BlockLength
505
+ end
506
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
507
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
508
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
509
+
510
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
511
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
512
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
513
+
514
+
515
+ # Create a batch document analysis job
516
+ #
517
+ # @param [OCI::AiVision::Models::CreateDocumentJobDetails] create_document_job_details Details about the batch document analysis.
518
+ # @param [Hash] opts the optional parameters
519
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
520
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
521
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
522
+ # server error without risk of executing that same action again. Retry tokens expire after 24
523
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
524
+ # has been deleted and purged from the system, then a retry of the original creation request
525
+ # might be rejected.
526
+ #
527
+ # @option opts [String] :opc_request_id The client request ID for tracing.
528
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::DocumentJob DocumentJob}
529
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/create_document_job.rb.html) to see an example of how to use create_document_job API.
530
+ def create_document_job(create_document_job_details, opts = {})
531
+ logger.debug 'Calling operation AIServiceVisionClient#create_document_job.' if logger
532
+
533
+ raise "Missing the required parameter 'create_document_job_details' when calling create_document_job." if create_document_job_details.nil?
534
+
535
+ path = '/documentJobs'
536
+ operation_signing_strategy = :standard
537
+
538
+ # rubocop:disable Style/NegatedIf
539
+ # Query Params
540
+ query_params = {}
541
+
542
+ # Header Params
543
+ header_params = {}
544
+ header_params[:accept] = 'application/json'
545
+ header_params[:'content-type'] = 'application/json'
546
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
547
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
548
+ # rubocop:enable Style/NegatedIf
549
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
550
+
551
+ post_body = @api_client.object_to_http_body(create_document_job_details)
552
+
553
+ # rubocop:disable Metrics/BlockLength
554
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#create_document_job') do
555
+ @api_client.call_api(
556
+ :POST,
557
+ path,
558
+ endpoint,
559
+ header_params: header_params,
560
+ query_params: query_params,
561
+ operation_signing_strategy: operation_signing_strategy,
562
+ body: post_body,
563
+ return_type: 'OCI::AiVision::Models::DocumentJob'
564
+ )
565
+ end
566
+ # rubocop:enable Metrics/BlockLength
567
+ end
568
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
569
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
570
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
571
+
572
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
573
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
574
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
575
+
576
+
577
+ # Create a batch image analysis job.
578
+ #
579
+ # @param [OCI::AiVision::Models::CreateImageJobDetails] create_image_job_details Details about the batch image analysis.
580
+ # @param [Hash] opts the optional parameters
581
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
582
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
583
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
584
+ # server error without risk of executing that same action again. Retry tokens expire after 24
585
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
586
+ # has been deleted and purged from the system, then a retry of the original creation request
587
+ # might be rejected.
588
+ #
589
+ # @option opts [String] :opc_request_id The client request ID for tracing.
590
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::ImageJob ImageJob}
591
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/create_image_job.rb.html) to see an example of how to use create_image_job API.
592
+ def create_image_job(create_image_job_details, opts = {})
593
+ logger.debug 'Calling operation AIServiceVisionClient#create_image_job.' if logger
594
+
595
+ raise "Missing the required parameter 'create_image_job_details' when calling create_image_job." if create_image_job_details.nil?
596
+
597
+ path = '/imageJobs'
598
+ operation_signing_strategy = :standard
599
+
600
+ # rubocop:disable Style/NegatedIf
601
+ # Query Params
602
+ query_params = {}
603
+
604
+ # Header Params
605
+ header_params = {}
606
+ header_params[:accept] = 'application/json'
607
+ header_params[:'content-type'] = 'application/json'
608
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
609
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
610
+ # rubocop:enable Style/NegatedIf
611
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
612
+
613
+ post_body = @api_client.object_to_http_body(create_image_job_details)
614
+
615
+ # rubocop:disable Metrics/BlockLength
616
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#create_image_job') do
617
+ @api_client.call_api(
618
+ :POST,
619
+ path,
620
+ endpoint,
621
+ header_params: header_params,
622
+ query_params: query_params,
623
+ operation_signing_strategy: operation_signing_strategy,
624
+ body: post_body,
625
+ return_type: 'OCI::AiVision::Models::ImageJob'
626
+ )
627
+ end
628
+ # rubocop:enable Metrics/BlockLength
629
+ end
630
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
631
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
632
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
633
+
634
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
635
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
636
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
637
+
638
+
639
+ # Creates a new model.
640
+ #
641
+ # @param [OCI::AiVision::Models::CreateModelDetails] create_model_details Metadata about the new model.
642
+ # @param [Hash] opts the optional parameters
643
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
644
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
645
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
646
+ # server error without risk of executing that same action again. Retry tokens expire after 24
647
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
648
+ # has been deleted and purged from the system, then a retry of the original creation request
649
+ # might be rejected.
650
+ #
651
+ # @option opts [String] :opc_request_id The client request ID for tracing.
652
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::Model Model}
653
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/create_model.rb.html) to see an example of how to use create_model API.
654
+ def create_model(create_model_details, opts = {})
655
+ logger.debug 'Calling operation AIServiceVisionClient#create_model.' if logger
656
+
657
+ raise "Missing the required parameter 'create_model_details' when calling create_model." if create_model_details.nil?
658
+
659
+ path = '/models'
660
+ operation_signing_strategy = :standard
661
+
662
+ # rubocop:disable Style/NegatedIf
663
+ # Query Params
664
+ query_params = {}
665
+
666
+ # Header Params
667
+ header_params = {}
668
+ header_params[:accept] = 'application/json'
669
+ header_params[:'content-type'] = 'application/json'
670
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
671
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
672
+ # rubocop:enable Style/NegatedIf
673
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
674
+
675
+ post_body = @api_client.object_to_http_body(create_model_details)
676
+
677
+ # rubocop:disable Metrics/BlockLength
678
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#create_model') do
679
+ @api_client.call_api(
680
+ :POST,
681
+ path,
682
+ endpoint,
683
+ header_params: header_params,
684
+ query_params: query_params,
685
+ operation_signing_strategy: operation_signing_strategy,
686
+ body: post_body,
687
+ return_type: 'OCI::AiVision::Models::Model'
688
+ )
689
+ end
690
+ # rubocop:enable Metrics/BlockLength
691
+ end
692
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
693
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
694
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
695
+
696
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
697
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
698
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
699
+
700
+
701
+ # Creates a new project.
702
+ #
703
+ # @param [OCI::AiVision::Models::CreateProjectDetails] create_project_details Details for the new Project.
704
+ # @param [Hash] opts the optional parameters
705
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
706
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
707
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
708
+ # server error without risk of executing that same action again. Retry tokens expire after 24
709
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
710
+ # has been deleted and purged from the system, then a retry of the original creation request
711
+ # might be rejected.
712
+ #
713
+ # @option opts [String] :opc_request_id The client request ID for tracing.
714
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::Project Project}
715
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/create_project.rb.html) to see an example of how to use create_project API.
716
+ def create_project(create_project_details, opts = {})
717
+ logger.debug 'Calling operation AIServiceVisionClient#create_project.' if logger
718
+
719
+ raise "Missing the required parameter 'create_project_details' when calling create_project." if create_project_details.nil?
720
+
721
+ path = '/projects'
722
+ operation_signing_strategy = :standard
723
+
724
+ # rubocop:disable Style/NegatedIf
725
+ # Query Params
726
+ query_params = {}
727
+
728
+ # Header Params
729
+ header_params = {}
730
+ header_params[:accept] = 'application/json'
731
+ header_params[:'content-type'] = 'application/json'
732
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
733
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
734
+ # rubocop:enable Style/NegatedIf
735
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
736
+
737
+ post_body = @api_client.object_to_http_body(create_project_details)
738
+
739
+ # rubocop:disable Metrics/BlockLength
740
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#create_project') do
741
+ @api_client.call_api(
742
+ :POST,
743
+ path,
744
+ endpoint,
745
+ header_params: header_params,
746
+ query_params: query_params,
747
+ operation_signing_strategy: operation_signing_strategy,
748
+ body: post_body,
749
+ return_type: 'OCI::AiVision::Models::Project'
750
+ )
751
+ end
752
+ # rubocop:enable Metrics/BlockLength
753
+ end
754
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
755
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
756
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
757
+
758
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
759
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
760
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
761
+
762
+
763
+ # Deletes a model by identifier.
764
+ # @param [String] model_id unique model identifier.
765
+ # @param [Hash] opts the optional parameters
766
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
767
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
768
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
769
+ # for a resource, set the `if-match` parameter to the value of the
770
+ # etag from a previous GET or POST response for that resource.
771
+ # The resource will be updated or deleted only if the etag you
772
+ # provide matches the resource's current etag value.
773
+ #
774
+ # @option opts [String] :opc_request_id The client request ID for tracing.
775
+ # @return [Response] A Response object with data of type nil
776
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/delete_model.rb.html) to see an example of how to use delete_model API.
777
+ def delete_model(model_id, opts = {})
778
+ logger.debug 'Calling operation AIServiceVisionClient#delete_model.' if logger
779
+
780
+ raise "Missing the required parameter 'model_id' when calling delete_model." if model_id.nil?
781
+ raise "Parameter value for 'model_id' must not be blank" if OCI::Internal::Util.blank_string?(model_id)
782
+
783
+ path = '/models/{modelId}'.sub('{modelId}', model_id.to_s)
784
+ operation_signing_strategy = :standard
785
+
786
+ # rubocop:disable Style/NegatedIf
787
+ # Query Params
788
+ query_params = {}
789
+
790
+ # Header Params
791
+ header_params = {}
792
+ header_params[:accept] = 'application/json'
793
+ header_params[:'content-type'] = 'application/json'
794
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
795
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
796
+ # rubocop:enable Style/NegatedIf
797
+
798
+ post_body = nil
799
+
800
+ # rubocop:disable Metrics/BlockLength
801
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#delete_model') do
802
+ @api_client.call_api(
803
+ :DELETE,
804
+ path,
805
+ endpoint,
806
+ header_params: header_params,
807
+ query_params: query_params,
808
+ operation_signing_strategy: operation_signing_strategy,
809
+ body: post_body
810
+ )
811
+ end
812
+ # rubocop:enable Metrics/BlockLength
813
+ end
814
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
815
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
816
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
817
+
818
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
819
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
820
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
821
+
822
+
823
+ # Deletes a project by identifier.
824
+ # @param [String] project_id unique project identifier.
825
+ # @param [Hash] opts the optional parameters
826
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
827
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
828
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
829
+ # for a resource, set the `if-match` parameter to the value of the
830
+ # etag from a previous GET or POST response for that resource.
831
+ # The resource will be updated or deleted only if the etag you
832
+ # provide matches the resource's current etag value.
833
+ #
834
+ # @option opts [String] :opc_request_id The client request ID for tracing.
835
+ # @return [Response] A Response object with data of type nil
836
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/delete_project.rb.html) to see an example of how to use delete_project API.
837
+ def delete_project(project_id, opts = {})
838
+ logger.debug 'Calling operation AIServiceVisionClient#delete_project.' if logger
839
+
840
+ raise "Missing the required parameter 'project_id' when calling delete_project." if project_id.nil?
841
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
842
+
843
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
844
+ operation_signing_strategy = :standard
845
+
846
+ # rubocop:disable Style/NegatedIf
847
+ # Query Params
848
+ query_params = {}
849
+
850
+ # Header Params
851
+ header_params = {}
852
+ header_params[:accept] = 'application/json'
853
+ header_params[:'content-type'] = 'application/json'
854
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
855
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
856
+ # rubocop:enable Style/NegatedIf
857
+
858
+ post_body = nil
859
+
860
+ # rubocop:disable Metrics/BlockLength
861
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#delete_project') do
862
+ @api_client.call_api(
863
+ :DELETE,
864
+ path,
865
+ endpoint,
866
+ header_params: header_params,
867
+ query_params: query_params,
868
+ operation_signing_strategy: operation_signing_strategy,
869
+ body: post_body
870
+ )
871
+ end
872
+ # rubocop:enable Metrics/BlockLength
873
+ end
874
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
875
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
876
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
877
+
878
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
879
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
880
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
881
+
882
+
883
+ # Get details of a batch document job.
884
+ #
885
+ # @param [String] document_job_id Document job id.
886
+ # @param [Hash] opts the optional parameters
887
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
888
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
889
+ # @option opts [String] :opc_request_id The client request ID for tracing.
890
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::DocumentJob DocumentJob}
891
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/get_document_job.rb.html) to see an example of how to use get_document_job API.
892
+ def get_document_job(document_job_id, opts = {})
893
+ logger.debug 'Calling operation AIServiceVisionClient#get_document_job.' if logger
894
+
895
+ raise "Missing the required parameter 'document_job_id' when calling get_document_job." if document_job_id.nil?
896
+ raise "Parameter value for 'document_job_id' must not be blank" if OCI::Internal::Util.blank_string?(document_job_id)
897
+
898
+ path = '/documentJobs/{documentJobId}'.sub('{documentJobId}', document_job_id.to_s)
899
+ operation_signing_strategy = :standard
900
+
901
+ # rubocop:disable Style/NegatedIf
902
+ # Query Params
903
+ query_params = {}
904
+
905
+ # Header Params
906
+ header_params = {}
907
+ header_params[:accept] = 'application/json'
908
+ header_params[:'content-type'] = 'application/json'
909
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
910
+ # rubocop:enable Style/NegatedIf
911
+
912
+ post_body = nil
913
+
914
+ # rubocop:disable Metrics/BlockLength
915
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#get_document_job') do
916
+ @api_client.call_api(
917
+ :GET,
918
+ path,
919
+ endpoint,
920
+ header_params: header_params,
921
+ query_params: query_params,
922
+ operation_signing_strategy: operation_signing_strategy,
923
+ body: post_body,
924
+ return_type: 'OCI::AiVision::Models::DocumentJob'
925
+ )
926
+ end
927
+ # rubocop:enable Metrics/BlockLength
928
+ end
929
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
930
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
931
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
932
+
933
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
934
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
935
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
936
+
937
+
938
+ # Get details of a batch image job.
939
+ #
940
+ # @param [String] image_job_id Image job id.
941
+ # @param [Hash] opts the optional parameters
942
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
943
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
944
+ # @option opts [String] :opc_request_id The client request ID for tracing.
945
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::ImageJob ImageJob}
946
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/get_image_job.rb.html) to see an example of how to use get_image_job API.
947
+ def get_image_job(image_job_id, opts = {})
948
+ logger.debug 'Calling operation AIServiceVisionClient#get_image_job.' if logger
949
+
950
+ raise "Missing the required parameter 'image_job_id' when calling get_image_job." if image_job_id.nil?
951
+ raise "Parameter value for 'image_job_id' must not be blank" if OCI::Internal::Util.blank_string?(image_job_id)
952
+
953
+ path = '/imageJobs/{imageJobId}'.sub('{imageJobId}', image_job_id.to_s)
954
+ operation_signing_strategy = :standard
955
+
956
+ # rubocop:disable Style/NegatedIf
957
+ # Query Params
958
+ query_params = {}
959
+
960
+ # Header Params
961
+ header_params = {}
962
+ header_params[:accept] = 'application/json'
963
+ header_params[:'content-type'] = 'application/json'
964
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
965
+ # rubocop:enable Style/NegatedIf
966
+
967
+ post_body = nil
968
+
969
+ # rubocop:disable Metrics/BlockLength
970
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#get_image_job') do
971
+ @api_client.call_api(
972
+ :GET,
973
+ path,
974
+ endpoint,
975
+ header_params: header_params,
976
+ query_params: query_params,
977
+ operation_signing_strategy: operation_signing_strategy,
978
+ body: post_body,
979
+ return_type: 'OCI::AiVision::Models::ImageJob'
980
+ )
981
+ end
982
+ # rubocop:enable Metrics/BlockLength
983
+ end
984
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
985
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
986
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
987
+
988
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
989
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
990
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
991
+
992
+
993
+ # Gets a model by identifier.
994
+ # @param [String] model_id unique model identifier.
995
+ # @param [Hash] opts the optional parameters
996
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
997
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
998
+ # @option opts [String] :opc_request_id The client request ID for tracing.
999
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::Model Model}
1000
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/get_model.rb.html) to see an example of how to use get_model API.
1001
+ def get_model(model_id, opts = {})
1002
+ logger.debug 'Calling operation AIServiceVisionClient#get_model.' if logger
1003
+
1004
+ raise "Missing the required parameter 'model_id' when calling get_model." if model_id.nil?
1005
+ raise "Parameter value for 'model_id' must not be blank" if OCI::Internal::Util.blank_string?(model_id)
1006
+
1007
+ path = '/models/{modelId}'.sub('{modelId}', model_id.to_s)
1008
+ operation_signing_strategy = :standard
1009
+
1010
+ # rubocop:disable Style/NegatedIf
1011
+ # Query Params
1012
+ query_params = {}
1013
+
1014
+ # Header Params
1015
+ header_params = {}
1016
+ header_params[:accept] = 'application/json'
1017
+ header_params[:'content-type'] = 'application/json'
1018
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1019
+ # rubocop:enable Style/NegatedIf
1020
+
1021
+ post_body = nil
1022
+
1023
+ # rubocop:disable Metrics/BlockLength
1024
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#get_model') do
1025
+ @api_client.call_api(
1026
+ :GET,
1027
+ path,
1028
+ endpoint,
1029
+ header_params: header_params,
1030
+ query_params: query_params,
1031
+ operation_signing_strategy: operation_signing_strategy,
1032
+ body: post_body,
1033
+ return_type: 'OCI::AiVision::Models::Model'
1034
+ )
1035
+ end
1036
+ # rubocop:enable Metrics/BlockLength
1037
+ end
1038
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1039
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1040
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1041
+
1042
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1043
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1044
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1045
+
1046
+
1047
+ # Gets a project by identifier.
1048
+ # @param [String] project_id unique project identifier.
1049
+ # @param [Hash] opts the optional parameters
1050
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1051
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1052
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1053
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::Project Project}
1054
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/get_project.rb.html) to see an example of how to use get_project API.
1055
+ def get_project(project_id, opts = {})
1056
+ logger.debug 'Calling operation AIServiceVisionClient#get_project.' if logger
1057
+
1058
+ raise "Missing the required parameter 'project_id' when calling get_project." if project_id.nil?
1059
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
1060
+
1061
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
1062
+ operation_signing_strategy = :standard
1063
+
1064
+ # rubocop:disable Style/NegatedIf
1065
+ # Query Params
1066
+ query_params = {}
1067
+
1068
+ # Header Params
1069
+ header_params = {}
1070
+ header_params[:accept] = 'application/json'
1071
+ header_params[:'content-type'] = 'application/json'
1072
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1073
+ # rubocop:enable Style/NegatedIf
1074
+
1075
+ post_body = nil
1076
+
1077
+ # rubocop:disable Metrics/BlockLength
1078
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#get_project') do
1079
+ @api_client.call_api(
1080
+ :GET,
1081
+ path,
1082
+ endpoint,
1083
+ header_params: header_params,
1084
+ query_params: query_params,
1085
+ operation_signing_strategy: operation_signing_strategy,
1086
+ body: post_body,
1087
+ return_type: 'OCI::AiVision::Models::Project'
1088
+ )
1089
+ end
1090
+ # rubocop:enable Metrics/BlockLength
1091
+ end
1092
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1093
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1094
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1095
+
1096
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1097
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1098
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1099
+
1100
+
1101
+ # Gets the status of the work request with the given ID.
1102
+ # @param [String] work_request_id The ID of the asynchronous request.
1103
+ # @param [Hash] opts the optional parameters
1104
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1105
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1106
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1107
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::WorkRequest WorkRequest}
1108
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/get_work_request.rb.html) to see an example of how to use get_work_request API.
1109
+ def get_work_request(work_request_id, opts = {})
1110
+ logger.debug 'Calling operation AIServiceVisionClient#get_work_request.' if logger
1111
+
1112
+ raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
1113
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1114
+
1115
+ path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
1116
+ operation_signing_strategy = :standard
1117
+
1118
+ # rubocop:disable Style/NegatedIf
1119
+ # Query Params
1120
+ query_params = {}
1121
+
1122
+ # Header Params
1123
+ header_params = {}
1124
+ header_params[:accept] = 'application/json'
1125
+ header_params[:'content-type'] = 'application/json'
1126
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1127
+ # rubocop:enable Style/NegatedIf
1128
+
1129
+ post_body = nil
1130
+
1131
+ # rubocop:disable Metrics/BlockLength
1132
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#get_work_request') do
1133
+ @api_client.call_api(
1134
+ :GET,
1135
+ path,
1136
+ endpoint,
1137
+ header_params: header_params,
1138
+ query_params: query_params,
1139
+ operation_signing_strategy: operation_signing_strategy,
1140
+ body: post_body,
1141
+ return_type: 'OCI::AiVision::Models::WorkRequest'
1142
+ )
1143
+ end
1144
+ # rubocop:enable Metrics/BlockLength
1145
+ end
1146
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1147
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1148
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1149
+
1150
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1151
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1152
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1153
+
1154
+
1155
+ # Returns a list of models in a compartment.
1156
+ #
1157
+ # @param [Hash] opts the optional parameters
1158
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1159
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1160
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1161
+ # @option opts [String] :project_id The ID of the project for which to list the objects.
1162
+ # @option opts [String] :lifecycle_state Filter to match models with the given lifecycleState.
1163
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1164
+ # @option opts [String] :id Filter to find the model with the given identifier.
1165
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1166
+ # @option opts [String] :page The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1167
+ # @option opts [String] :sort_order The sort order to use, either 'ASC' or 'DESC'.
1168
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
1169
+ # (default to timeCreated)
1170
+ # Allowed values are: timeCreated, displayName
1171
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1172
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::ModelCollection ModelCollection}
1173
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/list_models.rb.html) to see an example of how to use list_models API.
1174
+ def list_models(opts = {})
1175
+ logger.debug 'Calling operation AIServiceVisionClient#list_models.' if logger
1176
+
1177
+
1178
+ if opts[:lifecycle_state] && !OCI::AiVision::Models::Model::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1179
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::AiVision::Models::Model::LIFECYCLE_STATE_ENUM.'
1180
+ end
1181
+
1182
+ if opts[:sort_order] && !OCI::AiVision::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1183
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AiVision::Models::SORT_ORDER_ENUM.'
1184
+ end
1185
+
1186
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1187
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1188
+ end
1189
+
1190
+ path = '/models'
1191
+ operation_signing_strategy = :standard
1192
+
1193
+ # rubocop:disable Style/NegatedIf
1194
+ # Query Params
1195
+ query_params = {}
1196
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1197
+ query_params[:projectId] = opts[:project_id] if opts[:project_id]
1198
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1199
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1200
+ query_params[:id] = opts[:id] if opts[:id]
1201
+ query_params[:limit] = opts[:limit] if opts[:limit]
1202
+ query_params[:page] = opts[:page] if opts[:page]
1203
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1204
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1205
+
1206
+ # Header Params
1207
+ header_params = {}
1208
+ header_params[:accept] = 'application/json'
1209
+ header_params[:'content-type'] = 'application/json'
1210
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1211
+ # rubocop:enable Style/NegatedIf
1212
+
1213
+ post_body = nil
1214
+
1215
+ # rubocop:disable Metrics/BlockLength
1216
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#list_models') do
1217
+ @api_client.call_api(
1218
+ :GET,
1219
+ path,
1220
+ endpoint,
1221
+ header_params: header_params,
1222
+ query_params: query_params,
1223
+ operation_signing_strategy: operation_signing_strategy,
1224
+ body: post_body,
1225
+ return_type: 'OCI::AiVision::Models::ModelCollection'
1226
+ )
1227
+ end
1228
+ # rubocop:enable Metrics/BlockLength
1229
+ end
1230
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1231
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1232
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1233
+
1234
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1235
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1236
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1237
+
1238
+
1239
+ # Returns a list of projects.
1240
+ #
1241
+ # @param [Hash] opts the optional parameters
1242
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1243
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1244
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1245
+ # @option opts [String] :lifecycle_state Filter to match projects with the given lifecycleState.
1246
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1247
+ # @option opts [String] :id Filter to find the project with the given identifier.
1248
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1249
+ # @option opts [String] :page The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1250
+ # @option opts [String] :sort_order The sort order to use, either 'ASC' or 'DESC'.
1251
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.
1252
+ # (default to timeCreated)
1253
+ # Allowed values are: timeCreated, displayName
1254
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1255
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::ProjectCollection ProjectCollection}
1256
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/list_projects.rb.html) to see an example of how to use list_projects API.
1257
+ def list_projects(opts = {})
1258
+ logger.debug 'Calling operation AIServiceVisionClient#list_projects.' if logger
1259
+
1260
+
1261
+ if opts[:lifecycle_state] && !OCI::AiVision::Models::Project::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1262
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::AiVision::Models::Project::LIFECYCLE_STATE_ENUM.'
1263
+ end
1264
+
1265
+ if opts[:sort_order] && !OCI::AiVision::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1266
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AiVision::Models::SORT_ORDER_ENUM.'
1267
+ end
1268
+
1269
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1270
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1271
+ end
1272
+
1273
+ path = '/projects'
1274
+ operation_signing_strategy = :standard
1275
+
1276
+ # rubocop:disable Style/NegatedIf
1277
+ # Query Params
1278
+ query_params = {}
1279
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1280
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1281
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1282
+ query_params[:id] = opts[:id] if opts[:id]
1283
+ query_params[:limit] = opts[:limit] if opts[:limit]
1284
+ query_params[:page] = opts[:page] if opts[:page]
1285
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1286
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1287
+
1288
+ # Header Params
1289
+ header_params = {}
1290
+ header_params[:accept] = 'application/json'
1291
+ header_params[:'content-type'] = 'application/json'
1292
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1293
+ # rubocop:enable Style/NegatedIf
1294
+
1295
+ post_body = nil
1296
+
1297
+ # rubocop:disable Metrics/BlockLength
1298
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#list_projects') do
1299
+ @api_client.call_api(
1300
+ :GET,
1301
+ path,
1302
+ endpoint,
1303
+ header_params: header_params,
1304
+ query_params: query_params,
1305
+ operation_signing_strategy: operation_signing_strategy,
1306
+ body: post_body,
1307
+ return_type: 'OCI::AiVision::Models::ProjectCollection'
1308
+ )
1309
+ end
1310
+ # rubocop:enable Metrics/BlockLength
1311
+ end
1312
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1313
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1314
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1315
+
1316
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1317
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1318
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1319
+
1320
+
1321
+ # Return a (paginated) list of errors for a given work request.
1322
+ #
1323
+ # @param [String] work_request_id The ID of the asynchronous request.
1324
+ # @param [Hash] opts the optional parameters
1325
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1326
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1327
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1328
+ # @option opts [String] :page The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1329
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1330
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1331
+ # (default to timeAccepted)
1332
+ # Allowed values are: timeAccepted
1333
+ # @option opts [String] :sort_order The sort order to use, either 'ASC' or 'DESC'.
1334
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
1335
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
1336
+ def list_work_request_errors(work_request_id, opts = {})
1337
+ logger.debug 'Calling operation AIServiceVisionClient#list_work_request_errors.' if logger
1338
+
1339
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
1340
+
1341
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1342
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1343
+ end
1344
+
1345
+ if opts[:sort_order] && !OCI::AiVision::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1346
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AiVision::Models::SORT_ORDER_ENUM.'
1347
+ end
1348
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1349
+
1350
+ path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
1351
+ operation_signing_strategy = :standard
1352
+
1353
+ # rubocop:disable Style/NegatedIf
1354
+ # Query Params
1355
+ query_params = {}
1356
+ query_params[:page] = opts[:page] if opts[:page]
1357
+ query_params[:limit] = opts[:limit] if opts[:limit]
1358
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1359
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1360
+
1361
+ # Header Params
1362
+ header_params = {}
1363
+ header_params[:accept] = 'application/json'
1364
+ header_params[:'content-type'] = 'application/json'
1365
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1366
+ # rubocop:enable Style/NegatedIf
1367
+
1368
+ post_body = nil
1369
+
1370
+ # rubocop:disable Metrics/BlockLength
1371
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#list_work_request_errors') do
1372
+ @api_client.call_api(
1373
+ :GET,
1374
+ path,
1375
+ endpoint,
1376
+ header_params: header_params,
1377
+ query_params: query_params,
1378
+ operation_signing_strategy: operation_signing_strategy,
1379
+ body: post_body,
1380
+ return_type: 'OCI::AiVision::Models::WorkRequestErrorCollection'
1381
+ )
1382
+ end
1383
+ # rubocop:enable Metrics/BlockLength
1384
+ end
1385
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1386
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1387
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1388
+
1389
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1390
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1391
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1392
+
1393
+
1394
+ # Return a (paginated) list of logs for a given work request.
1395
+ #
1396
+ # @param [String] work_request_id The ID of the asynchronous request.
1397
+ # @param [Hash] opts the optional parameters
1398
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1399
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1400
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1401
+ # @option opts [String] :page The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1402
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1403
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1404
+ # (default to timeAccepted)
1405
+ # Allowed values are: timeAccepted
1406
+ # @option opts [String] :sort_order The sort order to use, either 'ASC' or 'DESC'.
1407
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
1408
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
1409
+ def list_work_request_logs(work_request_id, opts = {})
1410
+ logger.debug 'Calling operation AIServiceVisionClient#list_work_request_logs.' if logger
1411
+
1412
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
1413
+
1414
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1415
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1416
+ end
1417
+
1418
+ if opts[:sort_order] && !OCI::AiVision::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1419
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AiVision::Models::SORT_ORDER_ENUM.'
1420
+ end
1421
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1422
+
1423
+ path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
1424
+ operation_signing_strategy = :standard
1425
+
1426
+ # rubocop:disable Style/NegatedIf
1427
+ # Query Params
1428
+ query_params = {}
1429
+ query_params[:page] = opts[:page] if opts[:page]
1430
+ query_params[:limit] = opts[:limit] if opts[:limit]
1431
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1432
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1433
+
1434
+ # Header Params
1435
+ header_params = {}
1436
+ header_params[:accept] = 'application/json'
1437
+ header_params[:'content-type'] = 'application/json'
1438
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1439
+ # rubocop:enable Style/NegatedIf
1440
+
1441
+ post_body = nil
1442
+
1443
+ # rubocop:disable Metrics/BlockLength
1444
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#list_work_request_logs') do
1445
+ @api_client.call_api(
1446
+ :GET,
1447
+ path,
1448
+ endpoint,
1449
+ header_params: header_params,
1450
+ query_params: query_params,
1451
+ operation_signing_strategy: operation_signing_strategy,
1452
+ body: post_body,
1453
+ return_type: 'OCI::AiVision::Models::WorkRequestLogEntryCollection'
1454
+ )
1455
+ end
1456
+ # rubocop:enable Metrics/BlockLength
1457
+ end
1458
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1459
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1460
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1461
+
1462
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1463
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1464
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1465
+
1466
+
1467
+ # Lists the work requests in a compartment.
1468
+ #
1469
+ # @param [Hash] opts the optional parameters
1470
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1471
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1472
+ # @option opts [String] :compartment_id The ID of the compartment in which to list resources.
1473
+ # @option opts [String] :work_request_id The ID of the asynchronous work request.
1474
+ # @option opts [String] :status A filter to return only resources their lifecycleState matches the given OperationStatus.
1475
+ # @option opts [String] :resource_id The ID of the resource affected by the work request.
1476
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1477
+ # @option opts [String] :page The position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.
1478
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1479
+ # @option opts [String] :sort_order The sort order to use, either 'ASC' or 'DESC'.
1480
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.
1481
+ # (default to timeAccepted)
1482
+ # Allowed values are: timeAccepted
1483
+ # @return [Response] A Response object with data of type {OCI::AiVision::Models::WorkRequestSummaryCollection WorkRequestSummaryCollection}
1484
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
1485
+ def list_work_requests(opts = {})
1486
+ logger.debug 'Calling operation AIServiceVisionClient#list_work_requests.' if logger
1487
+
1488
+
1489
+ if opts[:status] && !OCI::AiVision::Models::OPERATION_STATUS_ENUM.include?(opts[:status])
1490
+ raise 'Invalid value for "status", must be one of the values in OCI::AiVision::Models::OPERATION_STATUS_ENUM.'
1491
+ end
1492
+
1493
+ if opts[:sort_order] && !OCI::AiVision::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1494
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AiVision::Models::SORT_ORDER_ENUM.'
1495
+ end
1496
+
1497
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1498
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1499
+ end
1500
+
1501
+ path = '/workRequests'
1502
+ operation_signing_strategy = :standard
1503
+
1504
+ # rubocop:disable Style/NegatedIf
1505
+ # Query Params
1506
+ query_params = {}
1507
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1508
+ query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
1509
+ query_params[:status] = opts[:status] if opts[:status]
1510
+ query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
1511
+ query_params[:page] = opts[:page] if opts[:page]
1512
+ query_params[:limit] = opts[:limit] if opts[:limit]
1513
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1514
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1515
+
1516
+ # Header Params
1517
+ header_params = {}
1518
+ header_params[:accept] = 'application/json'
1519
+ header_params[:'content-type'] = 'application/json'
1520
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1521
+ # rubocop:enable Style/NegatedIf
1522
+
1523
+ post_body = nil
1524
+
1525
+ # rubocop:disable Metrics/BlockLength
1526
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#list_work_requests') do
1527
+ @api_client.call_api(
1528
+ :GET,
1529
+ path,
1530
+ endpoint,
1531
+ header_params: header_params,
1532
+ query_params: query_params,
1533
+ operation_signing_strategy: operation_signing_strategy,
1534
+ body: post_body,
1535
+ return_type: 'OCI::AiVision::Models::WorkRequestSummaryCollection'
1536
+ )
1537
+ end
1538
+ # rubocop:enable Metrics/BlockLength
1539
+ end
1540
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1541
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1542
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1543
+
1544
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1545
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1546
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1547
+
1548
+
1549
+ # Updates model metadata.
1550
+ # @param [String] model_id unique model identifier.
1551
+ # @param [OCI::AiVision::Models::UpdateModelDetails] update_model_details Model metadata to be updated.
1552
+ # @param [Hash] opts the optional parameters
1553
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1554
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1555
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1556
+ # for a resource, set the `if-match` parameter to the value of the
1557
+ # etag from a previous GET or POST response for that resource.
1558
+ # The resource will be updated or deleted only if the etag you
1559
+ # provide matches the resource's current etag value.
1560
+ #
1561
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1562
+ # @return [Response] A Response object with data of type nil
1563
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/update_model.rb.html) to see an example of how to use update_model API.
1564
+ def update_model(model_id, update_model_details, opts = {})
1565
+ logger.debug 'Calling operation AIServiceVisionClient#update_model.' if logger
1566
+
1567
+ raise "Missing the required parameter 'model_id' when calling update_model." if model_id.nil?
1568
+ raise "Missing the required parameter 'update_model_details' when calling update_model." if update_model_details.nil?
1569
+ raise "Parameter value for 'model_id' must not be blank" if OCI::Internal::Util.blank_string?(model_id)
1570
+
1571
+ path = '/models/{modelId}'.sub('{modelId}', model_id.to_s)
1572
+ operation_signing_strategy = :standard
1573
+
1574
+ # rubocop:disable Style/NegatedIf
1575
+ # Query Params
1576
+ query_params = {}
1577
+
1578
+ # Header Params
1579
+ header_params = {}
1580
+ header_params[:accept] = 'application/json'
1581
+ header_params[:'content-type'] = 'application/json'
1582
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1583
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1584
+ # rubocop:enable Style/NegatedIf
1585
+
1586
+ post_body = @api_client.object_to_http_body(update_model_details)
1587
+
1588
+ # rubocop:disable Metrics/BlockLength
1589
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#update_model') do
1590
+ @api_client.call_api(
1591
+ :PUT,
1592
+ path,
1593
+ endpoint,
1594
+ header_params: header_params,
1595
+ query_params: query_params,
1596
+ operation_signing_strategy: operation_signing_strategy,
1597
+ body: post_body
1598
+ )
1599
+ end
1600
+ # rubocop:enable Metrics/BlockLength
1601
+ end
1602
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1603
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1604
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1605
+
1606
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1607
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1608
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1609
+
1610
+
1611
+ # Updates project metadata.
1612
+ # @param [String] project_id unique project identifier.
1613
+ # @param [OCI::AiVision::Models::UpdateProjectDetails] update_project_details Project metadata to be updated.
1614
+ # @param [Hash] opts the optional parameters
1615
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1616
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1617
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call
1618
+ # for a resource, set the `if-match` parameter to the value of the
1619
+ # etag from a previous GET or POST response for that resource.
1620
+ # The resource will be updated or deleted only if the etag you
1621
+ # provide matches the resource's current etag value.
1622
+ #
1623
+ # @option opts [String] :opc_request_id The client request ID for tracing.
1624
+ # @return [Response] A Response object with data of type nil
1625
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/aivision/update_project.rb.html) to see an example of how to use update_project API.
1626
+ def update_project(project_id, update_project_details, opts = {})
1627
+ logger.debug 'Calling operation AIServiceVisionClient#update_project.' if logger
1628
+
1629
+ raise "Missing the required parameter 'project_id' when calling update_project." if project_id.nil?
1630
+ raise "Missing the required parameter 'update_project_details' when calling update_project." if update_project_details.nil?
1631
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
1632
+
1633
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
1634
+ operation_signing_strategy = :standard
1635
+
1636
+ # rubocop:disable Style/NegatedIf
1637
+ # Query Params
1638
+ query_params = {}
1639
+
1640
+ # Header Params
1641
+ header_params = {}
1642
+ header_params[:accept] = 'application/json'
1643
+ header_params[:'content-type'] = 'application/json'
1644
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1645
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1646
+ # rubocop:enable Style/NegatedIf
1647
+
1648
+ post_body = @api_client.object_to_http_body(update_project_details)
1649
+
1650
+ # rubocop:disable Metrics/BlockLength
1651
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AIServiceVisionClient#update_project') do
1652
+ @api_client.call_api(
1653
+ :PUT,
1654
+ path,
1655
+ endpoint,
1656
+ header_params: header_params,
1657
+ query_params: query_params,
1658
+ operation_signing_strategy: operation_signing_strategy,
1659
+ body: post_body
1660
+ )
1661
+ end
1662
+ # rubocop:enable Metrics/BlockLength
1663
+ end
1664
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1665
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1666
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1667
+
1668
+ private
1669
+
1670
+ def applicable_retry_config(opts = {})
1671
+ return @retry_config unless opts.key?(:retry_config)
1672
+
1673
+ opts[:retry_config]
1674
+ end
1675
+ end
1676
+ end
1677
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength