oci 2.16.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,703 @@
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
+ # Manage Oracle Cloud Infrastructure console announcements.
10
+ class AnnouncementsService::AnnouncementSubscriptionClient
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 AnnouncementSubscriptionClient.
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 + '/20180904'
70
+ else
71
+ region ||= config.region
72
+ region ||= signer.region if signer.respond_to?(:region)
73
+ self.region = region
74
+ end
75
+ logger.info "AnnouncementSubscriptionClient 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://announcements.{region}.oci.{secondLevelDomain}') + '/20180904'
88
+ logger.info "AnnouncementSubscriptionClient 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
+ # Moves the specified announcement subscription from one compartment to another compartment. When provided, If-Match is checked against ETag values of the resource.
102
+ #
103
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
104
+ #
105
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
106
+ # @param [OCI::AnnouncementsService::Models::ChangeAnnouncementSubscriptionCompartmentDetails] change_announcement_subscription_compartment_details The compartment information to update.
107
+ # @param [Hash] opts the optional parameters
108
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
109
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
110
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
111
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
112
+ # a particular request, please provide the complete request ID.
113
+ #
114
+ # @return [Response] A Response object with data of type nil
115
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/change_announcement_subscription_compartment.rb.html) to see an example of how to use change_announcement_subscription_compartment API.
116
+ def change_announcement_subscription_compartment(announcement_subscription_id, change_announcement_subscription_compartment_details, opts = {})
117
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#change_announcement_subscription_compartment.' if logger
118
+
119
+ raise "Missing the required parameter 'announcement_subscription_id' when calling change_announcement_subscription_compartment." if announcement_subscription_id.nil?
120
+ raise "Missing the required parameter 'change_announcement_subscription_compartment_details' when calling change_announcement_subscription_compartment." if change_announcement_subscription_compartment_details.nil?
121
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
122
+
123
+ path = '/announcementSubscriptions/{announcementSubscriptionId}/actions/changeCompartment'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s)
124
+ operation_signing_strategy = :standard
125
+
126
+ # rubocop:disable Style/NegatedIf
127
+ # Query Params
128
+ query_params = {}
129
+
130
+ # Header Params
131
+ header_params = {}
132
+ header_params[:accept] = 'application/json'
133
+ header_params[:'content-type'] = 'application/json'
134
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
135
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
136
+ # rubocop:enable Style/NegatedIf
137
+
138
+ post_body = @api_client.object_to_http_body(change_announcement_subscription_compartment_details)
139
+
140
+ # rubocop:disable Metrics/BlockLength
141
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#change_announcement_subscription_compartment') do
142
+ @api_client.call_api(
143
+ :POST,
144
+ path,
145
+ endpoint,
146
+ header_params: header_params,
147
+ query_params: query_params,
148
+ operation_signing_strategy: operation_signing_strategy,
149
+ body: post_body
150
+ )
151
+ end
152
+ # rubocop:enable Metrics/BlockLength
153
+ end
154
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
155
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
156
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
157
+
158
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
159
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
160
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
161
+
162
+
163
+ # Creates a new announcement subscription.
164
+ #
165
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
166
+ #
167
+ # @param [OCI::AnnouncementsService::Models::CreateAnnouncementSubscriptionDetails] create_announcement_subscription_details Details of the new announcement subscription.
168
+ # @param [Hash] opts the optional parameters
169
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
170
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
171
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
172
+ # server error without risk of executing that same action again. Retry tokens expire after 24
173
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
174
+ # has been deleted and purged from the system, then a retry of the original creation request
175
+ # might be rejected.
176
+ #
177
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
178
+ # a particular request, please provide the complete request ID.
179
+ #
180
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementSubscription AnnouncementSubscription}
181
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/create_announcement_subscription.rb.html) to see an example of how to use create_announcement_subscription API.
182
+ def create_announcement_subscription(create_announcement_subscription_details, opts = {})
183
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#create_announcement_subscription.' if logger
184
+
185
+ raise "Missing the required parameter 'create_announcement_subscription_details' when calling create_announcement_subscription." if create_announcement_subscription_details.nil?
186
+
187
+ path = '/announcementSubscriptions'
188
+ operation_signing_strategy = :standard
189
+
190
+ # rubocop:disable Style/NegatedIf
191
+ # Query Params
192
+ query_params = {}
193
+
194
+ # Header Params
195
+ header_params = {}
196
+ header_params[:accept] = 'application/json'
197
+ header_params[:'content-type'] = 'application/json'
198
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
199
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
200
+ # rubocop:enable Style/NegatedIf
201
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
202
+
203
+ post_body = @api_client.object_to_http_body(create_announcement_subscription_details)
204
+
205
+ # rubocop:disable Metrics/BlockLength
206
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#create_announcement_subscription') do
207
+ @api_client.call_api(
208
+ :POST,
209
+ path,
210
+ endpoint,
211
+ header_params: header_params,
212
+ query_params: query_params,
213
+ operation_signing_strategy: operation_signing_strategy,
214
+ body: post_body,
215
+ return_type: 'OCI::AnnouncementsService::Models::AnnouncementSubscription'
216
+ )
217
+ end
218
+ # rubocop:enable Metrics/BlockLength
219
+ end
220
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
221
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
222
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
223
+
224
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
225
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
226
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
227
+
228
+
229
+ # Creates a new filter group in the specified announcement subscription.
230
+ #
231
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
232
+ #
233
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
234
+ # @param [OCI::AnnouncementsService::Models::CreateFilterGroupDetails] create_filter_group_details Details of the new filter group.
235
+ # @param [Hash] opts the optional parameters
236
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
237
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
238
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or
239
+ # server error without risk of executing that same action again. Retry tokens expire after 24
240
+ # hours, but can be invalidated before then due to conflicting operations. For example, if a resource
241
+ # has been deleted and purged from the system, then a retry of the original creation request
242
+ # might be rejected.
243
+ #
244
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
245
+ # a particular request, please provide the complete request ID.
246
+ #
247
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
248
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::FilterGroup FilterGroup}
249
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/create_filter_group.rb.html) to see an example of how to use create_filter_group API.
250
+ def create_filter_group(announcement_subscription_id, create_filter_group_details, opts = {})
251
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#create_filter_group.' if logger
252
+
253
+ raise "Missing the required parameter 'announcement_subscription_id' when calling create_filter_group." if announcement_subscription_id.nil?
254
+ raise "Missing the required parameter 'create_filter_group_details' when calling create_filter_group." if create_filter_group_details.nil?
255
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
256
+
257
+ path = '/announcementSubscriptions/{announcementSubscriptionId}/filterGroups'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s)
258
+ operation_signing_strategy = :standard
259
+
260
+ # rubocop:disable Style/NegatedIf
261
+ # Query Params
262
+ query_params = {}
263
+
264
+ # Header Params
265
+ header_params = {}
266
+ header_params[:accept] = 'application/json'
267
+ header_params[:'content-type'] = 'application/json'
268
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
269
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
270
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
271
+ # rubocop:enable Style/NegatedIf
272
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
273
+
274
+ post_body = @api_client.object_to_http_body(create_filter_group_details)
275
+
276
+ # rubocop:disable Metrics/BlockLength
277
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#create_filter_group') do
278
+ @api_client.call_api(
279
+ :POST,
280
+ path,
281
+ endpoint,
282
+ header_params: header_params,
283
+ query_params: query_params,
284
+ operation_signing_strategy: operation_signing_strategy,
285
+ body: post_body,
286
+ return_type: 'OCI::AnnouncementsService::Models::FilterGroup'
287
+ )
288
+ end
289
+ # rubocop:enable Metrics/BlockLength
290
+ end
291
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
292
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
293
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
294
+
295
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
296
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
297
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
298
+
299
+
300
+ # Deletes the specified announcement subscription.
301
+ #
302
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
303
+ #
304
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
305
+ # @param [Hash] opts the optional parameters
306
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
307
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
308
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
309
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
310
+ # a particular request, please provide the complete request ID.
311
+ #
312
+ # @return [Response] A Response object with data of type nil
313
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/delete_announcement_subscription.rb.html) to see an example of how to use delete_announcement_subscription API.
314
+ def delete_announcement_subscription(announcement_subscription_id, opts = {})
315
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#delete_announcement_subscription.' if logger
316
+
317
+ raise "Missing the required parameter 'announcement_subscription_id' when calling delete_announcement_subscription." if announcement_subscription_id.nil?
318
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
319
+
320
+ path = '/announcementSubscriptions/{announcementSubscriptionId}'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s)
321
+ operation_signing_strategy = :standard
322
+
323
+ # rubocop:disable Style/NegatedIf
324
+ # Query Params
325
+ query_params = {}
326
+
327
+ # Header Params
328
+ header_params = {}
329
+ header_params[:accept] = 'application/json'
330
+ header_params[:'content-type'] = 'application/json'
331
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
332
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
333
+ # rubocop:enable Style/NegatedIf
334
+
335
+ post_body = nil
336
+
337
+ # rubocop:disable Metrics/BlockLength
338
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#delete_announcement_subscription') do
339
+ @api_client.call_api(
340
+ :DELETE,
341
+ path,
342
+ endpoint,
343
+ header_params: header_params,
344
+ query_params: query_params,
345
+ operation_signing_strategy: operation_signing_strategy,
346
+ body: post_body
347
+ )
348
+ end
349
+ # rubocop:enable Metrics/BlockLength
350
+ end
351
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
352
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
353
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
354
+
355
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
356
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
357
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
358
+
359
+
360
+ # Deletes a filter group in the specified announcement subscription.
361
+ #
362
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
363
+ #
364
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
365
+ # @param [String] filter_group_name The name of the filter group.
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
368
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
369
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
370
+ # a particular request, please provide the complete request ID.
371
+ #
372
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
373
+ # @return [Response] A Response object with data of type nil
374
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/delete_filter_group.rb.html) to see an example of how to use delete_filter_group API.
375
+ def delete_filter_group(announcement_subscription_id, filter_group_name, opts = {})
376
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#delete_filter_group.' if logger
377
+
378
+ raise "Missing the required parameter 'announcement_subscription_id' when calling delete_filter_group." if announcement_subscription_id.nil?
379
+ raise "Missing the required parameter 'filter_group_name' when calling delete_filter_group." if filter_group_name.nil?
380
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
381
+ raise "Parameter value for 'filter_group_name' must not be blank" if OCI::Internal::Util.blank_string?(filter_group_name)
382
+
383
+ path = '/announcementSubscriptions/{announcementSubscriptionId}/filterGroups/{filterGroupName}'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s).sub('{filterGroupName}', filter_group_name.to_s)
384
+ operation_signing_strategy = :standard
385
+
386
+ # rubocop:disable Style/NegatedIf
387
+ # Query Params
388
+ query_params = {}
389
+
390
+ # Header Params
391
+ header_params = {}
392
+ header_params[:accept] = 'application/json'
393
+ header_params[:'content-type'] = 'application/json'
394
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
395
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
396
+ # rubocop:enable Style/NegatedIf
397
+
398
+ post_body = nil
399
+
400
+ # rubocop:disable Metrics/BlockLength
401
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#delete_filter_group') do
402
+ @api_client.call_api(
403
+ :DELETE,
404
+ path,
405
+ endpoint,
406
+ header_params: header_params,
407
+ query_params: query_params,
408
+ operation_signing_strategy: operation_signing_strategy,
409
+ body: post_body
410
+ )
411
+ end
412
+ # rubocop:enable Metrics/BlockLength
413
+ end
414
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
415
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
416
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
417
+
418
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
419
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
420
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
421
+
422
+
423
+ # Gets the specified announcement subscription.
424
+ #
425
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
426
+ #
427
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
428
+ # @param [Hash] opts the optional parameters
429
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
430
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
431
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
432
+ # a particular request, please provide the complete request ID.
433
+ #
434
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementSubscription AnnouncementSubscription}
435
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/get_announcement_subscription.rb.html) to see an example of how to use get_announcement_subscription API.
436
+ def get_announcement_subscription(announcement_subscription_id, opts = {})
437
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#get_announcement_subscription.' if logger
438
+
439
+ raise "Missing the required parameter 'announcement_subscription_id' when calling get_announcement_subscription." if announcement_subscription_id.nil?
440
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
441
+
442
+ path = '/announcementSubscriptions/{announcementSubscriptionId}'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s)
443
+ operation_signing_strategy = :standard
444
+
445
+ # rubocop:disable Style/NegatedIf
446
+ # Query Params
447
+ query_params = {}
448
+
449
+ # Header Params
450
+ header_params = {}
451
+ header_params[:accept] = 'application/json'
452
+ header_params[:'content-type'] = 'application/json'
453
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
454
+ # rubocop:enable Style/NegatedIf
455
+
456
+ post_body = nil
457
+
458
+ # rubocop:disable Metrics/BlockLength
459
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#get_announcement_subscription') do
460
+ @api_client.call_api(
461
+ :GET,
462
+ path,
463
+ endpoint,
464
+ header_params: header_params,
465
+ query_params: query_params,
466
+ operation_signing_strategy: operation_signing_strategy,
467
+ body: post_body,
468
+ return_type: 'OCI::AnnouncementsService::Models::AnnouncementSubscription'
469
+ )
470
+ end
471
+ # rubocop:enable Metrics/BlockLength
472
+ end
473
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
474
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
475
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
476
+
477
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
478
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
479
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
480
+
481
+
482
+ # Gets a list of all announcement subscriptions in the specified compartment.
483
+ #
484
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
485
+ #
486
+ # @param [String] compartment_id The OCID of the compartment.
487
+ #
488
+ # @param [Hash] opts the optional parameters
489
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
490
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
491
+ # @option opts [String] :lifecycle_state A filter to return only announcement subscriptions that match the given lifecycle state.
492
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
493
+ # @option opts [String] :id The OCID of the announcement subscription.
494
+ # @option opts [Integer] :limit The maximum number of items to return in a paginated \"List\" call.
495
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
496
+ # @option opts [String] :sort_order The sort order to use, whether ascending ('ASC') or descending ('DESC').
497
+ # @option opts [String] :sort_by The criteria to sort by. You can specify only one sort order. The default sort order for the creation date of resources is descending. The default sort order for display names is ascending.
498
+ # (default to timeCreated)
499
+ # Allowed values are: timeCreated, displayName
500
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
501
+ # a particular request, please provide the complete request ID.
502
+ #
503
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementSubscriptionCollection AnnouncementSubscriptionCollection}
504
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/list_announcement_subscriptions.rb.html) to see an example of how to use list_announcement_subscriptions API.
505
+ def list_announcement_subscriptions(compartment_id, opts = {})
506
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#list_announcement_subscriptions.' if logger
507
+
508
+ raise "Missing the required parameter 'compartment_id' when calling list_announcement_subscriptions." if compartment_id.nil?
509
+
510
+ if opts[:lifecycle_state] && !OCI::AnnouncementsService::Models::AnnouncementSubscription::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
511
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::AnnouncementsService::Models::AnnouncementSubscription::LIFECYCLE_STATE_ENUM.'
512
+ end
513
+
514
+ if opts[:sort_order] && !OCI::AnnouncementsService::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
515
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::AnnouncementsService::Models::SORT_ORDER_ENUM.'
516
+ end
517
+
518
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
519
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
520
+ end
521
+
522
+ path = '/announcementSubscriptions'
523
+ operation_signing_strategy = :standard
524
+
525
+ # rubocop:disable Style/NegatedIf
526
+ # Query Params
527
+ query_params = {}
528
+ query_params[:compartmentId] = compartment_id
529
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
530
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
531
+ query_params[:id] = opts[:id] if opts[:id]
532
+ query_params[:limit] = opts[:limit] if opts[:limit]
533
+ query_params[:page] = opts[:page] if opts[:page]
534
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
535
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
536
+
537
+ # Header Params
538
+ header_params = {}
539
+ header_params[:accept] = 'application/json'
540
+ header_params[:'content-type'] = 'application/json'
541
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
542
+ # rubocop:enable Style/NegatedIf
543
+
544
+ post_body = nil
545
+
546
+ # rubocop:disable Metrics/BlockLength
547
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#list_announcement_subscriptions') do
548
+ @api_client.call_api(
549
+ :GET,
550
+ path,
551
+ endpoint,
552
+ header_params: header_params,
553
+ query_params: query_params,
554
+ operation_signing_strategy: operation_signing_strategy,
555
+ body: post_body,
556
+ return_type: 'OCI::AnnouncementsService::Models::AnnouncementSubscriptionCollection'
557
+ )
558
+ end
559
+ # rubocop:enable Metrics/BlockLength
560
+ end
561
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
562
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
563
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
564
+
565
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
566
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
567
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
568
+
569
+
570
+ # Updates the specified announcement subscription.
571
+ #
572
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
573
+ #
574
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
575
+ # @param [OCI::AnnouncementsService::Models::UpdateAnnouncementSubscriptionDetails] update_announcement_subscription_details The subscription information to update.
576
+ # @param [Hash] opts the optional parameters
577
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
578
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
579
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
580
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
581
+ # a particular request, please provide the complete request ID.
582
+ #
583
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::AnnouncementSubscription AnnouncementSubscription}
584
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/update_announcement_subscription.rb.html) to see an example of how to use update_announcement_subscription API.
585
+ def update_announcement_subscription(announcement_subscription_id, update_announcement_subscription_details, opts = {})
586
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#update_announcement_subscription.' if logger
587
+
588
+ raise "Missing the required parameter 'announcement_subscription_id' when calling update_announcement_subscription." if announcement_subscription_id.nil?
589
+ raise "Missing the required parameter 'update_announcement_subscription_details' when calling update_announcement_subscription." if update_announcement_subscription_details.nil?
590
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
591
+
592
+ path = '/announcementSubscriptions/{announcementSubscriptionId}'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s)
593
+ operation_signing_strategy = :standard
594
+
595
+ # rubocop:disable Style/NegatedIf
596
+ # Query Params
597
+ query_params = {}
598
+
599
+ # Header Params
600
+ header_params = {}
601
+ header_params[:accept] = 'application/json'
602
+ header_params[:'content-type'] = 'application/json'
603
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
604
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
605
+ # rubocop:enable Style/NegatedIf
606
+
607
+ post_body = @api_client.object_to_http_body(update_announcement_subscription_details)
608
+
609
+ # rubocop:disable Metrics/BlockLength
610
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#update_announcement_subscription') do
611
+ @api_client.call_api(
612
+ :PUT,
613
+ path,
614
+ endpoint,
615
+ header_params: header_params,
616
+ query_params: query_params,
617
+ operation_signing_strategy: operation_signing_strategy,
618
+ body: post_body,
619
+ return_type: 'OCI::AnnouncementsService::Models::AnnouncementSubscription'
620
+ )
621
+ end
622
+ # rubocop:enable Metrics/BlockLength
623
+ end
624
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
625
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
626
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
627
+
628
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
629
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
630
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
631
+
632
+
633
+ # Updates a filter group in the specified announcement subscription.
634
+ #
635
+ # This call is subject to an Announcements limit that applies to the total number of requests across all read or write operations. Announcements might throttle this call to reject an otherwise valid request when the total rate of operations exceeds 20 requests per second for a given user. The service might also throttle this call to reject an otherwise valid request when the total rate of operations exceeds 100 requests per second for a given tenancy.
636
+ #
637
+ # @param [String] announcement_subscription_id The OCID of the announcement subscription.
638
+ # @param [String] filter_group_name The name of the filter group.
639
+ # @param [OCI::AnnouncementsService::Models::UpdateFilterGroupDetails] update_filter_group_details The filter group information to update.
640
+ # @param [Hash] opts the optional parameters
641
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
642
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
643
+ # @option opts [String] :opc_request_id The unique Oracle-assigned identifier for the request. If you need to contact Oracle about
644
+ # a particular request, please provide the complete request ID.
645
+ #
646
+ # @option opts [String] :if_match The locking version, used for optimistic concurrency control.
647
+ # @return [Response] A Response object with data of type {OCI::AnnouncementsService::Models::FilterGroup FilterGroup}
648
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/announcementsservice/update_filter_group.rb.html) to see an example of how to use update_filter_group API.
649
+ def update_filter_group(announcement_subscription_id, filter_group_name, update_filter_group_details, opts = {})
650
+ logger.debug 'Calling operation AnnouncementSubscriptionClient#update_filter_group.' if logger
651
+
652
+ raise "Missing the required parameter 'announcement_subscription_id' when calling update_filter_group." if announcement_subscription_id.nil?
653
+ raise "Missing the required parameter 'filter_group_name' when calling update_filter_group." if filter_group_name.nil?
654
+ raise "Missing the required parameter 'update_filter_group_details' when calling update_filter_group." if update_filter_group_details.nil?
655
+ raise "Parameter value for 'announcement_subscription_id' must not be blank" if OCI::Internal::Util.blank_string?(announcement_subscription_id)
656
+ raise "Parameter value for 'filter_group_name' must not be blank" if OCI::Internal::Util.blank_string?(filter_group_name)
657
+
658
+ path = '/announcementSubscriptions/{announcementSubscriptionId}/filterGroups/{filterGroupName}'.sub('{announcementSubscriptionId}', announcement_subscription_id.to_s).sub('{filterGroupName}', filter_group_name.to_s)
659
+ operation_signing_strategy = :standard
660
+
661
+ # rubocop:disable Style/NegatedIf
662
+ # Query Params
663
+ query_params = {}
664
+
665
+ # Header Params
666
+ header_params = {}
667
+ header_params[:accept] = 'application/json'
668
+ header_params[:'content-type'] = 'application/json'
669
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
670
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
671
+ # rubocop:enable Style/NegatedIf
672
+
673
+ post_body = @api_client.object_to_http_body(update_filter_group_details)
674
+
675
+ # rubocop:disable Metrics/BlockLength
676
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'AnnouncementSubscriptionClient#update_filter_group') do
677
+ @api_client.call_api(
678
+ :PUT,
679
+ path,
680
+ endpoint,
681
+ header_params: header_params,
682
+ query_params: query_params,
683
+ operation_signing_strategy: operation_signing_strategy,
684
+ body: post_body,
685
+ return_type: 'OCI::AnnouncementsService::Models::FilterGroup'
686
+ )
687
+ end
688
+ # rubocop:enable Metrics/BlockLength
689
+ end
690
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
691
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
692
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
693
+
694
+ private
695
+
696
+ def applicable_retry_config(opts = {})
697
+ return @retry_config unless opts.key?(:retry_config)
698
+
699
+ opts[:retry_config]
700
+ end
701
+ end
702
+ end
703
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength