oci 2.10.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (611) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -1
  3. data/lib/oci.rb +4 -0
  4. data/lib/oci/api_client.rb +1 -3
  5. data/lib/oci/apigateway/api_gateway_client.rb +619 -0
  6. data/lib/oci/apigateway/api_gateway_client_composite_operations.rb +198 -0
  7. data/lib/oci/apigateway/apigateway.rb +10 -0
  8. data/lib/oci/apigateway/models/api.rb +340 -0
  9. data/lib/oci/apigateway/models/api_collection.rb +150 -0
  10. data/lib/oci/apigateway/models/api_summary.rb +342 -0
  11. data/lib/oci/apigateway/models/api_validation_detail.rb +191 -0
  12. data/lib/oci/apigateway/models/api_validation_details.rb +192 -0
  13. data/lib/oci/apigateway/models/api_validation_result.rb +182 -0
  14. data/lib/oci/apigateway/models/api_validations.rb +150 -0
  15. data/lib/oci/{log_analytics/models/create_namespace_details.rb → apigateway/models/change_api_compartment_details.rb} +5 -3
  16. data/lib/oci/apigateway/models/create_api_details.rb +222 -0
  17. data/lib/oci/apigateway/models/update_api_details.rb +206 -0
  18. data/lib/oci/apigateway/models/work_request.rb +4 -0
  19. data/lib/oci/application_migration/application_migration.rb +2 -0
  20. data/lib/oci/application_migration/application_migration_client.rb +169 -52
  21. data/lib/oci/application_migration/application_migration_client_composite_operations.rb +447 -0
  22. data/lib/oci/application_migration/models/authorization_details.rb +4 -2
  23. data/lib/oci/application_migration/models/change_compartment_details.rb +2 -2
  24. data/lib/oci/application_migration/models/configuration_field.rb +9 -7
  25. data/lib/oci/application_migration/models/create_migration_details.rb +54 -12
  26. data/lib/oci/application_migration/models/create_source_details.rb +13 -8
  27. data/lib/oci/application_migration/models/discovery_details.rb +2 -2
  28. data/lib/oci/application_migration/models/ics_discovery_details.rb +4 -3
  29. data/lib/oci/application_migration/models/internal_authorization_details.rb +1 -1
  30. data/lib/oci/application_migration/models/internal_source_details.rb +2 -2
  31. data/lib/oci/application_migration/models/jcs_discovery_details.rb +5 -3
  32. data/lib/oci/application_migration/models/migration.rb +111 -18
  33. data/lib/oci/application_migration/models/migration_summary.rb +63 -15
  34. data/lib/oci/application_migration/models/oac_discovery_details.rb +3 -3
  35. data/lib/oci/application_migration/models/ocic_authorization_details.rb +1 -1
  36. data/lib/oci/application_migration/models/ocic_source_details.rb +8 -3
  37. data/lib/oci/application_migration/models/oic_discovery_details.rb +4 -3
  38. data/lib/oci/application_migration/models/pcs_discovery_details.rb +4 -3
  39. data/lib/oci/application_migration/models/soacs_discovery_details.rb +5 -3
  40. data/lib/oci/application_migration/models/source.rb +41 -13
  41. data/lib/oci/application_migration/models/source_application.rb +6 -6
  42. data/lib/oci/application_migration/models/source_application_summary.rb +7 -6
  43. data/lib/oci/application_migration/models/source_details.rb +10 -2
  44. data/lib/oci/application_migration/models/source_summary.rb +36 -14
  45. data/lib/oci/application_migration/models/target_database_types.rb +11 -0
  46. data/lib/oci/application_migration/models/update_migration_details.rb +15 -7
  47. data/lib/oci/application_migration/models/update_source_details.rb +7 -7
  48. data/lib/oci/application_migration/models/work_request.rb +54 -3
  49. data/lib/oci/application_migration/models/work_request_error.rb +1 -1
  50. data/lib/oci/application_migration/models/work_request_log_entry.rb +2 -2
  51. data/lib/oci/application_migration/models/work_request_resource.rb +1 -1
  52. data/lib/oci/application_migration/models/work_request_summary.rb +54 -3
  53. data/lib/oci/auth/signers/instance_principals_delegation_token_signer.rb +1 -1
  54. data/lib/oci/compute_instance_agent/compute_instance_agent.rb +39 -0
  55. data/lib/oci/compute_instance_agent/compute_instance_agent_client.rb +522 -0
  56. data/lib/oci/compute_instance_agent/compute_instance_agent_client_composite_operations.rb +25 -0
  57. data/lib/oci/compute_instance_agent/models/create_instance_agent_command_details.rb +205 -0
  58. data/lib/oci/compute_instance_agent/models/instance_agent_command.rb +256 -0
  59. data/lib/oci/compute_instance_agent/models/instance_agent_command_content.rb +159 -0
  60. data/lib/oci/compute_instance_agent/models/instance_agent_command_content_info.rb +236 -0
  61. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution.rb +321 -0
  62. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_content.rb +218 -0
  63. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_tuple_details.rb +198 -0
  64. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_object_storage_uri_details.rb +170 -0
  65. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_output_via_text_details.rb +180 -0
  66. data/lib/oci/compute_instance_agent/models/instance_agent_command_execution_summary.rb +321 -0
  67. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_details.rb +197 -0
  68. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_tuple_details.rb +190 -0
  69. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_object_storage_uri_details.rb +162 -0
  70. data/lib/oci/compute_instance_agent/models/instance_agent_command_output_via_text_details.rb +145 -0
  71. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_details.rb +197 -0
  72. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_tuple_details.rb +190 -0
  73. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_object_storage_uri_details.rb +162 -0
  74. data/lib/oci/compute_instance_agent/models/instance_agent_command_source_via_text_details.rb +172 -0
  75. data/lib/oci/compute_instance_agent/models/instance_agent_command_summary.rb +224 -0
  76. data/lib/oci/compute_instance_agent/models/instance_agent_command_target.rb +154 -0
  77. data/lib/oci/compute_instance_agent/util.rb +3 -0
  78. data/lib/oci/container_engine/container_engine_client.rb +0 -11
  79. data/lib/oci/container_engine/models/create_node_shape_config_details.rb +19 -4
  80. data/lib/oci/container_engine/models/node_shape_config.rb +19 -4
  81. data/lib/oci/container_engine/models/update_node_shape_config_details.rb +19 -4
  82. data/lib/oci/core/core.rb +4 -0
  83. data/lib/oci/core/models/add_vcn_cidr_details.rb +155 -0
  84. data/lib/oci/core/models/create_vcn_details.rb +24 -2
  85. data/lib/oci/core/models/create_vlan_details.rb +1 -0
  86. data/lib/oci/core/models/image_memory_constraints.rb +17 -17
  87. data/lib/oci/core/models/modify_vcn_cidr_details.rb +172 -0
  88. data/lib/oci/core/models/remove_vcn_cidr_details.rb +155 -0
  89. data/lib/oci/core/models/subnet.rb +1 -0
  90. data/lib/oci/core/models/update_subnet_details.rb +27 -4
  91. data/lib/oci/core/models/update_vlan_details.rb +25 -4
  92. data/lib/oci/core/models/vcn.rb +18 -2
  93. data/lib/oci/core/models/vcn_dns_resolver_association.rb +206 -0
  94. data/lib/oci/core/virtual_network_client.rb +289 -4
  95. data/lib/oci/data_catalog/data_catalog.rb +30 -0
  96. data/lib/oci/data_catalog/data_catalog_client.rb +1763 -112
  97. data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +413 -0
  98. data/lib/oci/data_catalog/models/attribute.rb +15 -1
  99. data/lib/oci/data_catalog/models/connection.rb +15 -1
  100. data/lib/oci/data_catalog/models/create_attribute_details.rb +15 -1
  101. data/lib/oci/data_catalog/models/create_connection_details.rb +15 -1
  102. data/lib/oci/data_catalog/models/create_custom_property_details.rb +324 -0
  103. data/lib/oci/data_catalog/models/create_data_asset_details.rb +15 -1
  104. data/lib/oci/data_catalog/models/create_entity_details.rb +43 -1
  105. data/lib/oci/data_catalog/models/create_folder_details.rb +15 -1
  106. data/lib/oci/data_catalog/models/create_glossary_details.rb +18 -4
  107. data/lib/oci/data_catalog/models/create_namespace_details.rb +182 -0
  108. data/lib/oci/data_catalog/models/create_pattern_details.rb +243 -0
  109. data/lib/oci/data_catalog/models/create_term_details.rb +18 -4
  110. data/lib/oci/data_catalog/models/custom_property.rb +506 -0
  111. data/lib/oci/data_catalog/models/custom_property_collection.rb +161 -0
  112. data/lib/oci/data_catalog/models/custom_property_data_type.rb +14 -0
  113. data/lib/oci/data_catalog/models/custom_property_get_usage.rb +327 -0
  114. data/lib/oci/data_catalog/models/custom_property_set_usage.rb +188 -0
  115. data/lib/oci/data_catalog/models/custom_property_summary.rb +432 -0
  116. data/lib/oci/data_catalog/models/custom_property_type_usage.rb +178 -0
  117. data/lib/oci/data_catalog/models/data_asset.rb +29 -1
  118. data/lib/oci/{log_analytics/models/string_list_details.rb → data_catalog/models/data_selector_pattern_details.rb} +11 -10
  119. data/lib/oci/data_catalog/models/derived_logical_entities.rb +178 -0
  120. data/lib/oci/data_catalog/models/entity.rb +43 -1
  121. data/lib/oci/data_catalog/models/entity_summary.rb +29 -1
  122. data/lib/oci/data_catalog/models/faceted_search_aggregation.rb +160 -0
  123. data/lib/oci/data_catalog/models/faceted_search_custom_property.rb +174 -0
  124. data/lib/oci/data_catalog/models/faceted_search_date_filter_request.rb +186 -0
  125. data/lib/oci/data_catalog/models/faceted_search_filter_request.rb +168 -0
  126. data/lib/oci/data_catalog/models/faceted_search_sort_request.rb +181 -0
  127. data/lib/oci/data_catalog/models/faceted_search_string_filter_request.rb +160 -0
  128. data/lib/oci/data_catalog/models/folder.rb +15 -1
  129. data/lib/oci/data_catalog/models/glossary.rb +73 -1
  130. data/lib/oci/data_catalog/models/glossary_summary.rb +62 -4
  131. data/lib/oci/data_catalog/models/namespace.rb +290 -0
  132. data/lib/oci/data_catalog/models/namespace_collection.rb +161 -0
  133. data/lib/oci/data_catalog/models/namespace_summary.rb +247 -0
  134. data/lib/oci/data_catalog/models/pattern.rb +368 -0
  135. data/lib/oci/data_catalog/models/pattern_collection.rb +162 -0
  136. data/lib/oci/data_catalog/models/pattern_summary.rb +258 -0
  137. data/lib/oci/data_catalog/models/search_criteria.rb +47 -4
  138. data/lib/oci/data_catalog/models/search_result.rb +28 -4
  139. data/lib/oci/data_catalog/models/search_result_collection.rb +28 -4
  140. data/lib/oci/data_catalog/models/term.rb +18 -4
  141. data/lib/oci/data_catalog/models/type.rb +18 -4
  142. data/lib/oci/{log_analytics/models/register_entity_types_details.rb → data_catalog/models/type_custom_property_details.rb} +13 -13
  143. data/lib/oci/data_catalog/models/update_attribute_details.rb +15 -1
  144. data/lib/oci/data_catalog/models/update_connection_details.rb +15 -1
  145. data/lib/oci/data_catalog/models/update_custom_property_details.rb +291 -0
  146. data/lib/oci/data_catalog/models/update_data_asset_details.rb +15 -1
  147. data/lib/oci/data_catalog/models/update_entity_details.rb +43 -1
  148. data/lib/oci/data_catalog/models/update_folder_details.rb +15 -1
  149. data/lib/oci/data_catalog/models/update_glossary_details.rb +18 -4
  150. data/lib/oci/data_catalog/models/update_namespace_details.rb +182 -0
  151. data/lib/oci/data_catalog/models/update_pattern_details.rb +243 -0
  152. data/lib/oci/data_catalog/models/update_term_details.rb +18 -4
  153. data/lib/oci/data_catalog/models/validate_pattern_details.rb +187 -0
  154. data/lib/oci/data_catalog/models/validate_pattern_result.rb +184 -0
  155. data/lib/oci/data_integration/models/source.rb +1 -0
  156. data/lib/oci/database/database.rb +19 -0
  157. data/lib/oci/database/database_client.rb +1112 -8
  158. data/lib/oci/database/database_client_composite_operations.rb +281 -0
  159. data/lib/oci/database/models/autonomous_container_database.rb +80 -4
  160. data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +480 -0
  161. data/lib/oci/database/models/autonomous_container_database_summary.rb +80 -4
  162. data/lib/oci/database/models/autonomous_database.rb +141 -8
  163. data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
  164. data/lib/oci/database/models/autonomous_database_backup_config.rb +189 -0
  165. data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
  166. data/lib/oci/database/models/autonomous_database_dataguard_association.rb +468 -0
  167. data/lib/oci/database/models/autonomous_database_summary.rb +141 -8
  168. data/lib/oci/database/models/autonomous_db_version_summary.rb +46 -4
  169. data/lib/oci/{log_analytics/models/query.rb → database/models/change_key_store_compartment_details.rb} +5 -3
  170. data/lib/oci/database/models/create_autonomous_container_database_details.rb +138 -5
  171. data/lib/oci/database/models/create_autonomous_database_base.rb +30 -5
  172. data/lib/oci/database/models/create_autonomous_database_clone_details.rb +5 -1
  173. data/lib/oci/database/models/create_autonomous_database_details.rb +5 -1
  174. data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +5 -1
  175. data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +5 -1
  176. data/lib/oci/database/models/create_data_guard_association_details.rb +15 -1
  177. data/lib/oci/database/models/create_data_guard_association_to_existing_db_system_details.rb +24 -4
  178. data/lib/oci/database/models/create_data_guard_association_to_existing_vm_cluster_details.rb +24 -4
  179. data/lib/oci/database/models/create_data_guard_association_with_new_db_system_details.rb +5 -1
  180. data/lib/oci/database/models/create_database_details.rb +15 -1
  181. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +1 -1
  182. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +1 -1
  183. data/lib/oci/database/models/create_key_store_details.rb +217 -0
  184. data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +5 -1
  185. data/lib/oci/database/models/database.rb +1 -0
  186. data/lib/oci/database/models/database_software_image.rb +18 -4
  187. data/lib/oci/database/models/database_software_image_summary.rb +18 -4
  188. data/lib/oci/database/models/database_summary.rb +1 -0
  189. data/lib/oci/database/models/database_upgrade_history_entry.rb +352 -0
  190. data/lib/oci/database/models/database_upgrade_history_entry_summary.rb +355 -0
  191. data/lib/oci/database/models/database_upgrade_source_base.rb +188 -0
  192. data/lib/oci/database/models/database_upgrade_with_database_software_image_details.rb +164 -0
  193. data/lib/oci/database/models/database_upgrade_with_db_home_details.rb +164 -0
  194. data/lib/oci/database/models/database_upgrade_with_db_version_details.rb +164 -0
  195. data/lib/oci/database/models/db_system.rb +1 -0
  196. data/lib/oci/database/models/db_system_summary.rb +1 -0
  197. data/lib/oci/database/models/db_version_summary.rb +18 -4
  198. data/lib/oci/database/models/key_store.rb +300 -0
  199. data/lib/oci/database/models/key_store_associated_database_details.rb +164 -0
  200. data/lib/oci/database/models/key_store_summary.rb +303 -0
  201. data/lib/oci/database/models/key_store_type_details.rb +185 -0
  202. data/lib/oci/database/models/key_store_type_from_oracle_key_vault_details.rb +204 -0
  203. data/lib/oci/database/models/maintenance_run.rb +18 -4
  204. data/lib/oci/database/models/maintenance_run_summary.rb +18 -4
  205. data/lib/oci/database/models/peer_autonomous_container_database_backup_config.rb +172 -0
  206. data/lib/oci/database/models/update.rb +1 -0
  207. data/lib/oci/database/models/update_autonomous_container_database_details.rb +17 -1
  208. data/lib/oci/database/models/update_autonomous_database_details.rb +30 -5
  209. data/lib/oci/database/models/update_database_details.rb +43 -1
  210. data/lib/oci/database/models/update_history_entry.rb +1 -0
  211. data/lib/oci/database/models/update_history_entry_summary.rb +1 -0
  212. data/lib/oci/database/models/update_key_store_details.rb +187 -0
  213. data/lib/oci/database/models/update_summary.rb +1 -0
  214. data/lib/oci/database/models/upgrade_database_details.rb +179 -0
  215. data/lib/oci/dns/dns.rb +24 -0
  216. data/lib/oci/dns/dns_client.rb +1695 -175
  217. data/lib/oci/dns/dns_client_composite_operations.rb +240 -0
  218. data/lib/oci/{log_analytics/models/service_tenancy.rb → dns/models/attached_view.rb} +13 -12
  219. data/lib/oci/dns/models/attached_view_details.rb +155 -0
  220. data/lib/oci/dns/models/change_resolver_compartment_details.rb +156 -0
  221. data/lib/oci/{log_analytics/models/query_work_request_resource.rb → dns/models/change_view_compartment_details.rb} +5 -3
  222. data/lib/oci/dns/models/create_resolver_endpoint_details.rb +261 -0
  223. data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +203 -0
  224. data/lib/oci/dns/models/create_view_details.rb +210 -0
  225. data/lib/oci/dns/models/create_zone_details.rb +41 -2
  226. data/lib/oci/dns/models/migration_replacement.rb +1 -1
  227. data/lib/oci/dns/models/record.rb +1 -2
  228. data/lib/oci/dns/models/record_collection.rb +1 -0
  229. data/lib/oci/dns/models/record_details.rb +1 -2
  230. data/lib/oci/dns/models/record_operation.rb +1 -2
  231. data/lib/oci/dns/models/resolver.rb +393 -0
  232. data/lib/oci/dns/models/resolver_endpoint.rb +371 -0
  233. data/lib/oci/dns/models/resolver_endpoint_summary.rb +371 -0
  234. data/lib/oci/{log_analytics/models/generate_agent_object_name_details.rb → dns/models/resolver_forward_rule.rb} +42 -51
  235. data/lib/oci/dns/models/resolver_forward_rule_details.rb +187 -0
  236. data/lib/oci/dns/models/resolver_rule.rb +222 -0
  237. data/lib/oci/dns/models/resolver_rule_details.rb +215 -0
  238. data/lib/oci/dns/models/resolver_summary.rb +357 -0
  239. data/lib/oci/dns/models/resolver_vnic_endpoint.rb +220 -0
  240. data/lib/oci/dns/models/resolver_vnic_endpoint_summary.rb +205 -0
  241. data/lib/oci/dns/models/rr_set.rb +1 -0
  242. data/lib/oci/{log_analytics/models/sort_orders.rb → dns/models/scope.rb} +4 -4
  243. data/lib/oci/dns/models/steering_policy.rb +12 -12
  244. data/lib/oci/dns/models/steering_policy_answer.rb +1 -1
  245. data/lib/oci/dns/models/steering_policy_attachment.rb +10 -10
  246. data/lib/oci/dns/models/steering_policy_attachment_summary.rb +10 -10
  247. data/lib/oci/dns/models/steering_policy_summary.rb +10 -10
  248. data/lib/oci/dns/models/tsig_key.rb +10 -10
  249. data/lib/oci/dns/models/tsig_key_summary.rb +9 -9
  250. data/lib/oci/dns/models/update_resolver_details.rb +221 -0
  251. data/lib/oci/dns/models/update_resolver_endpoint_details.rb +188 -0
  252. data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +166 -0
  253. data/lib/oci/dns/models/update_view_details.rb +196 -0
  254. data/lib/oci/{log_analytics/models/log_analytics.rb → dns/models/view.rb} +105 -77
  255. data/lib/oci/dns/models/view_summary.rb +321 -0
  256. data/lib/oci/dns/models/zone.rb +75 -14
  257. data/lib/oci/dns/models/zone_summary.rb +76 -15
  258. data/lib/oci/functions/functions_management_client.rb +1 -1
  259. data/lib/oci/functions/models/application.rb +21 -2
  260. data/lib/oci/functions/models/application_summary.rb +1 -1
  261. data/lib/oci/functions/models/create_application_details.rb +20 -1
  262. data/lib/oci/functions/models/function.rb +1 -1
  263. data/lib/oci/functions/models/function_summary.rb +1 -1
  264. data/lib/oci/functions/models/update_application_details.rb +20 -1
  265. data/lib/oci/identity/identity.rb +5 -0
  266. data/lib/oci/identity/identity_client.rb +152 -23
  267. data/lib/oci/identity/identity_client_composite_operations.rb +48 -0
  268. data/lib/oci/identity/models/bulk_edit_operation_details.rb +193 -0
  269. data/lib/oci/identity/models/bulk_edit_resource.rb +175 -0
  270. data/lib/oci/identity/models/bulk_edit_tags_details.rb +181 -0
  271. data/lib/oci/identity/models/bulk_edit_tags_resource_type.rb +175 -0
  272. data/lib/oci/identity/models/bulk_edit_tags_resource_type_collection.rb +151 -0
  273. data/lib/oci/identity/models/customer_secret_key.rb +3 -3
  274. data/lib/oci/identity/models/tagging_work_request.rb +4 -0
  275. data/lib/oci/identity/models/tagging_work_request_summary.rb +4 -0
  276. data/lib/oci/identity/models/user.rb +54 -4
  277. data/lib/oci/identity/models/work_request_resource.rb +1 -0
  278. data/lib/oci/load_balancer/load_balancer.rb +1 -0
  279. data/lib/oci/load_balancer/models/add_http_request_header_rule.rb +2 -1
  280. data/lib/oci/load_balancer/models/create_load_balancer_details.rb +16 -1
  281. data/lib/oci/load_balancer/models/ip_address.rb +17 -4
  282. data/lib/oci/load_balancer/models/remove_http_request_header_rule.rb +0 -2
  283. data/lib/oci/{log_analytics/models/log_analytics_collection_warning.rb → load_balancer/models/reserved_ip.rb} +2 -4
  284. data/lib/oci/load_balancer/models/update_load_balancer_shape_details.rb +7 -6
  285. data/lib/oci/log_analytics/log_analytics.rb +0 -15
  286. data/lib/oci/log_analytics/log_analytics_client.rb +193 -180
  287. data/lib/oci/log_analytics/log_analytics_client_composite_operations.rb +68 -17
  288. data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +1 -1
  289. data/lib/oci/log_analytics/models/archiving_configuration.rb +3 -3
  290. data/lib/oci/log_analytics/models/bucket_range.rb +1 -1
  291. data/lib/oci/log_analytics/models/change_log_analytics_object_collection_rule_compartment_details.rb +1 -1
  292. data/lib/oci/log_analytics/models/char_encoding_collection.rb +2 -2
  293. data/lib/oci/log_analytics/models/create_log_analytics_object_collection_rule_details.rb +4 -6
  294. data/lib/oci/log_analytics/models/estimate_purge_data_size_details.rb +6 -6
  295. data/lib/oci/log_analytics/models/estimate_purge_data_size_result.rb +1 -1
  296. data/lib/oci/log_analytics/models/export_content.rb +1 -0
  297. data/lib/oci/log_analytics/models/extract_log_field_results.rb +1 -1
  298. data/lib/oci/log_analytics/models/extract_log_header_details.rb +1 -1
  299. data/lib/oci/log_analytics/models/extract_log_header_results.rb +1 -1
  300. data/lib/oci/log_analytics/models/file_validation_response.rb +3 -3
  301. data/lib/oci/log_analytics/models/filter.rb +1 -1
  302. data/lib/oci/log_analytics/models/filter_details.rb +1 -1
  303. data/lib/oci/log_analytics/models/label_source_summary.rb +1 -1
  304. data/lib/oci/log_analytics/models/log_analytics_entity_summary.rb +36 -4
  305. data/lib/oci/log_analytics/models/log_analytics_field_summary.rb +1 -1
  306. data/lib/oci/log_analytics/models/log_analytics_import_custom_content.rb +0 -1
  307. data/lib/oci/log_analytics/models/log_analytics_lookup.rb +0 -2
  308. data/lib/oci/log_analytics/models/log_analytics_object_collection_rule.rb +4 -6
  309. data/lib/oci/log_analytics/models/log_analytics_object_collection_rule_summary.rb +1 -3
  310. data/lib/oci/log_analytics/models/log_analytics_parser_filter.rb +3 -3
  311. data/lib/oci/log_analytics/models/namespace.rb +5 -4
  312. data/lib/oci/log_analytics/models/namespace_collection.rb +2 -2
  313. data/lib/oci/log_analytics/models/namespace_summary.rb +5 -4
  314. data/lib/oci/log_analytics/models/parsed_content.rb +2 -2
  315. data/lib/oci/log_analytics/models/parsed_field.rb +1 -1
  316. data/lib/oci/log_analytics/models/purge_storage_data_details.rb +6 -6
  317. data/lib/oci/log_analytics/models/query_aggregation.rb +1 -1
  318. data/lib/oci/log_analytics/models/query_details.rb +5 -5
  319. data/lib/oci/log_analytics/models/recall_archived_data_details.rb +5 -5
  320. data/lib/oci/log_analytics/models/release_recalled_data_details.rb +5 -5
  321. data/lib/oci/log_analytics/models/scope_filter.rb +1 -1
  322. data/lib/oci/log_analytics/models/source_validate_details.rb +1 -1
  323. data/lib/oci/log_analytics/models/source_validate_results.rb +1 -1
  324. data/lib/oci/log_analytics/models/storage.rb +2 -2
  325. data/lib/oci/log_analytics/models/storage_usage.rb +4 -4
  326. data/lib/oci/log_analytics/models/storage_work_request.rb +14 -14
  327. data/lib/oci/log_analytics/models/storage_work_request_collection.rb +2 -2
  328. data/lib/oci/log_analytics/models/storage_work_request_summary.rb +14 -14
  329. data/lib/oci/log_analytics/models/timezone_collection.rb +2 -2
  330. data/lib/oci/log_analytics/models/update_log_analytics_object_collection_rule_details.rb +3 -3
  331. data/lib/oci/log_analytics/models/update_storage_details.rb +1 -1
  332. data/lib/oci/log_analytics/models/upload.rb +1 -1
  333. data/lib/oci/log_analytics/models/upload_collection.rb +1 -1
  334. data/lib/oci/log_analytics/models/upload_file_collection.rb +1 -1
  335. data/lib/oci/log_analytics/models/upload_summary.rb +1 -1
  336. data/lib/oci/log_analytics/models/upload_warning_summary.rb +1 -1
  337. data/lib/oci/log_analytics/models/work_request_error_collection.rb +2 -2
  338. data/lib/oci/log_analytics/models/work_request_log.rb +3 -3
  339. data/lib/oci/log_analytics/models/work_request_log_collection.rb +2 -2
  340. data/lib/oci/logging/logging_management_client.rb +52 -52
  341. data/lib/oci/logging/logging_management_client_composite_operations.rb +128 -7
  342. data/lib/oci/logging/models/category.rb +4 -4
  343. data/lib/oci/logging/models/change_log_group_compartment_details.rb +2 -2
  344. data/lib/oci/logging/models/change_log_log_group_details.rb +1 -1
  345. data/lib/oci/logging/models/change_unified_agent_configuration_compartment_details.rb +2 -2
  346. data/lib/oci/logging/models/create_log_details.rb +3 -3
  347. data/lib/oci/logging/models/create_log_group_details.rb +1 -1
  348. data/lib/oci/logging/models/create_log_saved_search_details.rb +2 -16
  349. data/lib/oci/logging/models/create_unified_agent_configuration_details.rb +1 -1
  350. data/lib/oci/logging/models/grok_pattern.rb +6 -6
  351. data/lib/oci/logging/models/log.rb +5 -5
  352. data/lib/oci/logging/models/log_group.rb +3 -3
  353. data/lib/oci/logging/models/log_group_summary.rb +43 -5
  354. data/lib/oci/logging/models/log_included_search.rb +1 -1
  355. data/lib/oci/logging/models/log_included_search_summary.rb +1 -1
  356. data/lib/oci/logging/models/log_saved_search.rb +44 -19
  357. data/lib/oci/logging/models/log_saved_search_lifecycle_state.rb +5 -1
  358. data/lib/oci/logging/models/log_saved_search_summary.rb +63 -17
  359. data/lib/oci/logging/models/log_saved_search_summary_collection.rb +1 -1
  360. data/lib/oci/logging/models/log_summary.rb +4 -4
  361. data/lib/oci/logging/models/parameter.rb +2 -2
  362. data/lib/oci/logging/models/resource_type.rb +2 -2
  363. data/lib/oci/logging/models/service_summary.rb +6 -6
  364. data/lib/oci/logging/models/source.rb +1 -1
  365. data/lib/oci/logging/models/unified_agent_apache2_parser.rb +1 -1
  366. data/lib/oci/logging/models/unified_agent_apache_error_parser.rb +1 -1
  367. data/lib/oci/logging/models/unified_agent_configuration.rb +2 -2
  368. data/lib/oci/logging/models/unified_agent_configuration_collection.rb +1 -1
  369. data/lib/oci/logging/models/unified_agent_configuration_summary.rb +4 -4
  370. data/lib/oci/logging/models/unified_agent_csv_parser.rb +1 -1
  371. data/lib/oci/logging/models/unified_agent_grok_parser.rb +1 -1
  372. data/lib/oci/logging/models/unified_agent_logging_destination.rb +1 -1
  373. data/lib/oci/logging/models/unified_agent_logging_source.rb +2 -2
  374. data/lib/oci/logging/models/unified_agent_multiline_grok_parser.rb +1 -1
  375. data/lib/oci/logging/models/unified_agent_multiline_parser.rb +1 -1
  376. data/lib/oci/logging/models/unified_agent_none_parser.rb +1 -1
  377. data/lib/oci/logging/models/unified_agent_parser.rb +7 -7
  378. data/lib/oci/logging/models/unified_agent_regex_parser.rb +1 -1
  379. data/lib/oci/logging/models/unified_agent_service_configuration_details.rb +1 -1
  380. data/lib/oci/logging/models/unified_agent_syslog_parser.rb +1 -1
  381. data/lib/oci/logging/models/unified_agent_tail_log_source.rb +1 -1
  382. data/lib/oci/logging/models/unified_agent_tsv_parser.rb +1 -1
  383. data/lib/oci/logging/models/unified_agent_windows_event_source.rb +1 -1
  384. data/lib/oci/logging/models/unified_json_parser.rb +1 -1
  385. data/lib/oci/logging/models/update_configuration_details.rb +1 -1
  386. data/lib/oci/logging/models/update_log_details.rb +3 -3
  387. data/lib/oci/logging/models/update_log_group_details.rb +1 -1
  388. data/lib/oci/logging/models/update_log_saved_search_details.rb +2 -16
  389. data/lib/oci/logging/models/update_unified_agent_configuration_details.rb +2 -2
  390. data/lib/oci/logging/models/work_request.rb +2 -2
  391. data/lib/oci/logging/models/work_request_error.rb +3 -3
  392. data/lib/oci/logging/models/work_request_log.rb +1 -1
  393. data/lib/oci/logging/models/work_request_resource.rb +3 -3
  394. data/lib/oci/loggingingestion/logging_client.rb +3 -3
  395. data/lib/oci/loggingingestion/models/log_entry.rb +4 -5
  396. data/lib/oci/loggingingestion/models/log_entry_batch.rb +7 -7
  397. data/lib/oci/loggingsearch/log_search_client.rb +3 -3
  398. data/lib/oci/loggingsearch/models/field_info.rb +1 -1
  399. data/lib/oci/loggingsearch/models/search_logs_details.rb +2 -2
  400. data/lib/oci/loggingsearch/models/search_result.rb +2 -2
  401. data/lib/oci/management_dashboard/dashx_apis_client.rb +31 -32
  402. data/lib/oci/management_dashboard/models/change_management_dashboards_compartment_details.rb +2 -2
  403. data/lib/oci/management_dashboard/models/change_management_saved_searches_compartment_details.rb +2 -2
  404. data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +18 -18
  405. data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -15
  406. data/lib/oci/management_dashboard/models/management_dashboard.rb +23 -23
  407. data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +1 -1
  408. data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +19 -19
  409. data/lib/oci/management_dashboard/models/management_dashboard_import_details.rb +1 -1
  410. data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +14 -14
  411. data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +14 -12
  412. data/lib/oci/management_dashboard/models/management_saved_search.rb +19 -19
  413. data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +15 -15
  414. data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +46 -18
  415. data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +17 -17
  416. data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -15
  417. data/lib/oci/mysql/db_system_client.rb +611 -2
  418. data/lib/oci/mysql/db_system_client_composite_operations.rb +345 -0
  419. data/lib/oci/mysql/models/add_analytics_cluster_details.rb +173 -0
  420. data/lib/oci/mysql/models/analytics_cluster.rb +282 -0
  421. data/lib/oci/mysql/models/analytics_cluster_memory_estimate.rb +236 -0
  422. data/lib/oci/mysql/models/analytics_cluster_memory_estimate_status.rb +15 -0
  423. data/lib/oci/mysql/models/analytics_cluster_node.rb +222 -0
  424. data/lib/oci/mysql/models/analytics_cluster_schema_memory_estimate.rb +172 -0
  425. data/lib/oci/mysql/models/analytics_cluster_summary.rb +215 -0
  426. data/lib/oci/mysql/models/analytics_cluster_table_memory_estimate.rb +236 -0
  427. data/lib/oci/mysql/models/db_system.rb +31 -1
  428. data/lib/oci/mysql/models/db_system_summary.rb +31 -1
  429. data/lib/oci/mysql/models/shape_summary.rb +46 -4
  430. data/lib/oci/mysql/models/update_analytics_cluster_details.rb +179 -0
  431. data/lib/oci/mysql/models/work_request.rb +7 -0
  432. data/lib/oci/mysql/models/work_request_operation_type.rb +8 -1
  433. data/lib/oci/mysql/models/work_request_summary.rb +7 -0
  434. data/lib/oci/mysql/mysql.rb +9 -0
  435. data/lib/oci/mysql/mysqlaas_client.rb +14 -0
  436. data/lib/oci/nosql/models/create_table_details.rb +15 -1
  437. data/lib/oci/nosql/models/table.rb +55 -4
  438. data/lib/oci/nosql/models/table_collection.rb +32 -4
  439. data/lib/oci/nosql/models/table_summary.rb +54 -4
  440. data/lib/oci/nosql/nosql_client.rb +6 -6
  441. data/lib/oci/object_storage/models/object_lifecycle_rule.rb +6 -0
  442. data/lib/oci/ocvp/models/create_esxi_host_details.rb +4 -2
  443. data/lib/oci/ocvp/models/create_sddc_details.rb +35 -3
  444. data/lib/oci/ocvp/models/sddc.rb +89 -1
  445. data/lib/oci/ocvp/models/sddc_summary.rb +29 -1
  446. data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
  447. data/lib/oci/ocvp/models/update_sddc_details.rb +17 -1
  448. data/lib/oci/opsi/models/database_details.rb +210 -0
  449. data/lib/oci/opsi/models/database_insight_summary.rb +286 -0
  450. data/lib/oci/opsi/models/database_insights.rb +154 -0
  451. data/lib/oci/opsi/models/database_insights_collection.rb +150 -0
  452. data/lib/oci/opsi/models/historical_data_item.rb +165 -0
  453. data/lib/oci/opsi/models/ingest_sql_bucket_details.rb +151 -0
  454. data/lib/oci/opsi/models/ingest_sql_bucket_response_details.rb +152 -0
  455. data/lib/oci/opsi/models/ingest_sql_plan_lines_details.rb +151 -0
  456. data/lib/oci/opsi/models/ingest_sql_plan_lines_response_details.rb +152 -0
  457. data/lib/oci/opsi/models/ingest_sql_text_details.rb +151 -0
  458. data/lib/oci/opsi/models/ingest_sql_text_response_details.rb +152 -0
  459. data/lib/oci/opsi/models/projected_data_item.rb +195 -0
  460. data/lib/oci/opsi/models/resource_capacity_trend_aggregation.rb +180 -0
  461. data/lib/oci/opsi/models/resource_insight_current_utilization.rb +160 -0
  462. data/lib/oci/opsi/models/resource_insight_projected_utilization.rb +160 -0
  463. data/lib/oci/opsi/models/resource_insight_projected_utilization_item.rb +164 -0
  464. data/lib/oci/opsi/models/resource_statistics.rb +219 -0
  465. data/lib/oci/opsi/models/resource_statistics_aggregation.rb +166 -0
  466. data/lib/oci/opsi/models/resource_usage_trend_aggregation.rb +176 -0
  467. data/lib/oci/opsi/models/sort_order.rb +11 -0
  468. data/lib/oci/opsi/models/sql_bucket.rb +307 -0
  469. data/lib/oci/opsi/models/sql_insight_aggregation.rb +202 -0
  470. data/lib/oci/opsi/models/sql_insight_aggregation_collection.rb +199 -0
  471. data/lib/oci/opsi/models/sql_insight_thresholds.rb +243 -0
  472. data/lib/oci/opsi/models/sql_inventory.rb +182 -0
  473. data/lib/oci/opsi/models/sql_plan_collection.rb +180 -0
  474. data/lib/oci/opsi/models/sql_plan_insight_aggregation.rb +210 -0
  475. data/lib/oci/opsi/models/sql_plan_insight_aggregation_collection.rb +218 -0
  476. data/lib/oci/opsi/models/sql_plan_insights.rb +177 -0
  477. data/lib/oci/opsi/models/sql_plan_line.rb +673 -0
  478. data/lib/oci/opsi/models/sql_plan_summary.rb +169 -0
  479. data/lib/oci/opsi/models/sql_response_time_distribution_aggregation.rb +168 -0
  480. data/lib/oci/opsi/models/sql_response_time_distribution_aggregation_collection.rb +208 -0
  481. data/lib/oci/opsi/models/sql_search_collection.rb +209 -0
  482. data/lib/oci/opsi/models/sql_search_summary.rb +224 -0
  483. data/lib/oci/opsi/models/sql_statistic_aggregation.rb +189 -0
  484. data/lib/oci/opsi/models/sql_statistic_aggregation_collection.rb +179 -0
  485. data/lib/oci/opsi/models/sql_statistics.rb +402 -0
  486. data/lib/oci/opsi/models/sql_statistics_time_series.rb +162 -0
  487. data/lib/oci/opsi/models/sql_statistics_time_series_aggregation.rb +165 -0
  488. data/lib/oci/opsi/models/sql_statistics_time_series_aggregation_collection.rb +223 -0
  489. data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation.rb +165 -0
  490. data/lib/oci/opsi/models/sql_statistics_time_series_by_plan_aggregation_collection.rb +237 -0
  491. data/lib/oci/opsi/models/sql_text.rb +248 -0
  492. data/lib/oci/opsi/models/sql_text_collection.rb +151 -0
  493. data/lib/oci/opsi/models/sql_text_summary.rb +184 -0
  494. data/lib/oci/opsi/models/summarize_database_insight_resource_capacity_trend_aggregation_collection.rb +270 -0
  495. data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +302 -0
  496. data/lib/oci/opsi/models/summarize_database_insight_resource_statistics_aggregation_collection.rb +249 -0
  497. data/lib/oci/opsi/models/summarize_database_insight_resource_usage_aggregation.rb +275 -0
  498. data/lib/oci/opsi/models/summarize_database_insight_resource_usage_trend_aggregation_collection.rb +270 -0
  499. data/lib/oci/opsi/models/summarize_database_insight_resource_utilization_insight_aggregation.rb +232 -0
  500. data/lib/oci/opsi/models/usage_unit.rb +13 -0
  501. data/lib/oci/opsi/operations_insights_client.rb +2008 -0
  502. data/lib/oci/opsi/operations_insights_client_composite_operations.rb +25 -0
  503. data/lib/oci/opsi/opsi.rb +72 -0
  504. data/lib/oci/opsi/util.rb +3 -0
  505. data/lib/oci/optimizer/models/action.rb +192 -0
  506. data/lib/oci/optimizer/models/action_type.rb +10 -0
  507. data/lib/oci/optimizer/models/bulk_apply_recommendations_details.rb +197 -0
  508. data/lib/oci/optimizer/models/category.rb +298 -0
  509. data/lib/oci/optimizer/models/category_collection.rb +151 -0
  510. data/lib/oci/optimizer/models/category_summary.rb +298 -0
  511. data/lib/oci/optimizer/models/create_profile_details.rb +227 -0
  512. data/lib/oci/{log_analytics/models/log_analytics_summary.rb → optimizer/models/enrollment_status.rb} +81 -63
  513. data/lib/oci/optimizer/models/enrollment_status_collection.rb +151 -0
  514. data/lib/oci/optimizer/models/enrollment_status_summary.rb +279 -0
  515. data/lib/oci/optimizer/models/history_collection.rb +151 -0
  516. data/lib/oci/optimizer/models/history_summary.rb +429 -0
  517. data/lib/oci/optimizer/models/importance.rb +14 -0
  518. data/lib/oci/{log_analytics/models/field_map.rb → optimizer/models/level_configuration.rb} +19 -24
  519. data/lib/oci/optimizer/models/levels_configuration.rb +150 -0
  520. data/lib/oci/optimizer/models/lifecycle_state.rb +18 -0
  521. data/lib/oci/optimizer/models/operation_status.rb +15 -0
  522. data/lib/oci/optimizer/models/operation_type.rb +10 -0
  523. data/lib/oci/optimizer/models/optimizer_enrollment_status.rb +11 -0
  524. data/lib/oci/optimizer/models/profile.rb +305 -0
  525. data/lib/oci/optimizer/models/profile_collection.rb +151 -0
  526. data/lib/oci/optimizer/models/profile_summary.rb +303 -0
  527. data/lib/oci/optimizer/models/recommendation.rb +409 -0
  528. data/lib/oci/optimizer/models/recommendation_collection.rb +151 -0
  529. data/lib/oci/optimizer/models/recommendation_count.rb +183 -0
  530. data/lib/oci/optimizer/models/recommendation_summary.rb +409 -0
  531. data/lib/oci/optimizer/models/resource_action.rb +450 -0
  532. data/lib/oci/optimizer/models/resource_action_collection.rb +151 -0
  533. data/lib/oci/optimizer/models/resource_action_summary.rb +450 -0
  534. data/lib/oci/optimizer/models/resource_count.rb +182 -0
  535. data/lib/oci/optimizer/models/sort_order.rb +11 -0
  536. data/lib/oci/optimizer/models/status.rb +13 -0
  537. data/lib/oci/{log_analytics/models/agent_upload.rb → optimizer/models/supported_level.rb} +3 -3
  538. data/lib/oci/optimizer/models/supported_levels.rb +153 -0
  539. data/lib/oci/optimizer/models/update_enrollment_status_details.rb +166 -0
  540. data/lib/oci/optimizer/models/update_profile_details.rb +202 -0
  541. data/lib/oci/optimizer/models/update_recommendation_details.rb +183 -0
  542. data/lib/oci/optimizer/models/update_resource_action_details.rb +183 -0
  543. data/lib/oci/optimizer/models/work_request.rb +300 -0
  544. data/lib/oci/optimizer/models/work_request_action_type.rb +14 -0
  545. data/lib/oci/optimizer/models/work_request_collection.rb +151 -0
  546. data/lib/oci/optimizer/models/work_request_error.rb +173 -0
  547. data/lib/oci/optimizer/models/work_request_error_collection.rb +151 -0
  548. data/lib/oci/optimizer/models/work_request_log_entry.rb +161 -0
  549. data/lib/oci/optimizer/models/work_request_log_entry_collection.rb +151 -0
  550. data/lib/oci/{log_analytics/models/out_of_box_entity_type_details.rb → optimizer/models/work_request_resource.rb} +60 -57
  551. data/lib/oci/optimizer/optimizer.rb +66 -0
  552. data/lib/oci/optimizer/optimizer_client.rb +1652 -0
  553. data/lib/oci/optimizer/optimizer_client_composite_operations.rb +314 -0
  554. data/lib/oci/optimizer/util.rb +3 -0
  555. data/lib/oci/regions.rb +5 -1
  556. data/lib/oci/sch/models/service_connector.rb +1 -1
  557. data/lib/oci/sch/models/source_details.rb +1 -1
  558. data/lib/oci/sch/models/target_details.rb +1 -1
  559. data/lib/oci/sch/models/task_details.rb +1 -1
  560. data/lib/oci/sch/models/work_request.rb +1 -1
  561. data/lib/oci/sch/service_connector_client.rb +8 -8
  562. data/lib/oci/signer.rb +3 -1
  563. data/lib/oci/tenant_manager_control_plane/link_client.rb +287 -0
  564. data/lib/oci/tenant_manager_control_plane/link_client_composite_operations.rb +65 -0
  565. data/lib/oci/tenant_manager_control_plane/models/action_type.rb +14 -0
  566. data/lib/oci/tenant_manager_control_plane/models/create_sender_invitation_details.rb +228 -0
  567. data/lib/oci/tenant_manager_control_plane/models/lifecycle_state.rb +15 -0
  568. data/lib/oci/tenant_manager_control_plane/models/link.rb +258 -0
  569. data/lib/oci/tenant_manager_control_plane/models/link_collection.rb +150 -0
  570. data/lib/oci/tenant_manager_control_plane/models/link_summary.rb +258 -0
  571. data/lib/oci/tenant_manager_control_plane/models/operation_status.rb +15 -0
  572. data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +12 -0
  573. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation.rb +367 -0
  574. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_collection.rb +150 -0
  575. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_status.rb +15 -0
  576. data/lib/oci/tenant_manager_control_plane/models/recipient_invitation_summary.rb +367 -0
  577. data/lib/oci/tenant_manager_control_plane/models/sender_invitation.rb +366 -0
  578. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_collection.rb +150 -0
  579. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_status.rb +14 -0
  580. data/lib/oci/tenant_manager_control_plane/models/sender_invitation_summary.rb +366 -0
  581. data/lib/oci/tenant_manager_control_plane/models/sort_order.rb +11 -0
  582. data/lib/oci/tenant_manager_control_plane/models/update_recipient_invitation_details.rb +186 -0
  583. data/lib/oci/tenant_manager_control_plane/models/update_sender_invitation_details.rb +186 -0
  584. data/lib/oci/tenant_manager_control_plane/models/work_request.rb +307 -0
  585. data/lib/oci/tenant_manager_control_plane/models/work_request_collection.rb +150 -0
  586. data/lib/oci/tenant_manager_control_plane/models/work_request_error.rb +173 -0
  587. data/lib/oci/tenant_manager_control_plane/models/work_request_error_collection.rb +150 -0
  588. data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry.rb +160 -0
  589. data/lib/oci/tenant_manager_control_plane/models/work_request_log_entry_collection.rb +150 -0
  590. data/lib/oci/tenant_manager_control_plane/models/work_request_resource.rb +219 -0
  591. data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +307 -0
  592. data/lib/oci/tenant_manager_control_plane/recipient_invitation_client.rb +425 -0
  593. data/lib/oci/tenant_manager_control_plane/recipient_invitation_client_composite_operations.rb +153 -0
  594. data/lib/oci/tenant_manager_control_plane/sender_invitation_client.rb +435 -0
  595. data/lib/oci/tenant_manager_control_plane/sender_invitation_client_composite_operations.rb +163 -0
  596. data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +52 -0
  597. data/lib/oci/tenant_manager_control_plane/util.rb +3 -0
  598. data/lib/oci/tenant_manager_control_plane/work_request_client.rb +356 -0
  599. data/lib/oci/tenant_manager_control_plane/work_request_client_composite_operations.rb +25 -0
  600. data/lib/oci/usage_api/models/configuration.rb +3 -3
  601. data/lib/oci/usage_api/models/configuration_aggregation.rb +2 -2
  602. data/lib/oci/usage_api/models/dimension.rb +3 -3
  603. data/lib/oci/usage_api/models/filter.rb +1 -1
  604. data/lib/oci/usage_api/models/request_summarized_usages_details.rb +12 -12
  605. data/lib/oci/usage_api/models/tag.rb +3 -3
  606. data/lib/oci/usage_api/models/usage_aggregation.rb +1 -1
  607. data/lib/oci/usage_api/models/usage_summary.rb +47 -19
  608. data/lib/oci/usage_api/usageapi_client.rb +4 -4
  609. data/lib/oci/version.rb +1 -1
  610. metadata +273 -17
  611. data/lib/oci/log_analytics/models/attribute.rb +0 -435
@@ -99,6 +99,90 @@ module OCI
99
99
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
100
100
 
101
101
 
102
+ # Moves a resolver into a different compartment along with its protected default view and any endpoints.
103
+ # Zones in the default view are not moved.
104
+ #
105
+ # @param [String] resolver_id The OCID of the target resolver.
106
+ # @param [OCI::Dns::Models::ChangeResolverCompartmentDetails] change_resolver_compartment_details Details for moving a resolver, along with its protected default view and endpoints, into a
107
+ # different compartment.
108
+ #
109
+ # @param [Hash] opts the optional parameters
110
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
111
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
112
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
113
+ # existence of at least one current representation of the target resource,
114
+ # when the field-value is `*`, or having a current representation of the
115
+ # target resource that has an entity-tag matching a member of the list of
116
+ # entity-tags provided in the field-value.
117
+ #
118
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
119
+ # of a timeout or server error without risk of executing that same action
120
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
121
+ # then due to conflicting operations (for example, if a resource has been
122
+ # deleted and purged from the system, then a retry of the original creation
123
+ # request may be rejected).
124
+ #
125
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
126
+ # to contact Oracle about a particular request, please provide
127
+ # the request ID.
128
+ #
129
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
130
+ #
131
+ # @return [Response] A Response object with data of type nil
132
+ def change_resolver_compartment(resolver_id, change_resolver_compartment_details, opts = {})
133
+ logger.debug 'Calling operation DnsClient#change_resolver_compartment.' if logger
134
+
135
+ raise "Missing the required parameter 'resolver_id' when calling change_resolver_compartment." if resolver_id.nil?
136
+ raise "Missing the required parameter 'change_resolver_compartment_details' when calling change_resolver_compartment." if change_resolver_compartment_details.nil?
137
+
138
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
139
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
140
+ end
141
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
142
+
143
+ path = '/resolvers/{resolverId}/actions/changeCompartment'.sub('{resolverId}', resolver_id.to_s)
144
+ operation_signing_strategy = :standard
145
+
146
+ # rubocop:disable Style/NegatedIf
147
+ # Query Params
148
+ query_params = {}
149
+ query_params[:scope] = opts[:scope] if opts[:scope]
150
+
151
+ # Header Params
152
+ header_params = {}
153
+ header_params[:accept] = 'application/json'
154
+ header_params[:'content-type'] = 'application/json'
155
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
156
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
157
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
158
+ # rubocop:enable Style/NegatedIf
159
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
160
+
161
+ post_body = @api_client.object_to_http_body(change_resolver_compartment_details)
162
+
163
+ # rubocop:disable Metrics/BlockLength
164
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#change_resolver_compartment') do
165
+ @api_client.call_api(
166
+ :POST,
167
+ path,
168
+ endpoint,
169
+ header_params: header_params,
170
+ query_params: query_params,
171
+ operation_signing_strategy: operation_signing_strategy,
172
+ body: post_body
173
+ )
174
+ end
175
+ # rubocop:enable Metrics/BlockLength
176
+ end
177
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
178
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
179
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
180
+
181
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
182
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
183
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
184
+
185
+
102
186
  # Moves a steering policy into a different compartment.
103
187
  # @param [String] steering_policy_id The OCID of the target steering policy.
104
188
  # @param [OCI::Dns::Models::ChangeSteeringPolicyCompartmentDetails] change_steering_policy_compartment_details Details for moving a steering policy into a different compartment.
@@ -110,24 +194,30 @@ module OCI
110
194
  # when the field-value is `*`, or having a current representation of the
111
195
  # target resource that has an entity-tag matching a member of the list of
112
196
  # entity-tags provided in the field-value.
113
- # (default to nil)
197
+ #
114
198
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
115
199
  # of a timeout or server error without risk of executing that same action
116
200
  # again. Retry tokens expire after 24 hours, but can be invalidated before
117
201
  # then due to conflicting operations (for example, if a resource has been
118
202
  # deleted and purged from the system, then a retry of the original creation
119
203
  # request may be rejected).
120
- # (default to nil)
204
+ #
121
205
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
122
206
  # to contact Oracle about a particular request, please provide
123
207
  # the request ID.
124
- # (default to nil)
208
+ #
209
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
210
+ #
125
211
  # @return [Response] A Response object with data of type nil
126
212
  def change_steering_policy_compartment(steering_policy_id, change_steering_policy_compartment_details, opts = {})
127
213
  logger.debug 'Calling operation DnsClient#change_steering_policy_compartment.' if logger
128
214
 
129
215
  raise "Missing the required parameter 'steering_policy_id' when calling change_steering_policy_compartment." if steering_policy_id.nil?
130
216
  raise "Missing the required parameter 'change_steering_policy_compartment_details' when calling change_steering_policy_compartment." if change_steering_policy_compartment_details.nil?
217
+
218
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
219
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
220
+ end
131
221
  raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
132
222
 
133
223
  path = '/steeringPolicies/{steeringPolicyId}/actions/changeCompartment'.sub('{steeringPolicyId}', steering_policy_id.to_s)
@@ -136,6 +226,7 @@ module OCI
136
226
  # rubocop:disable Style/NegatedIf
137
227
  # Query Params
138
228
  query_params = {}
229
+ query_params[:scope] = opts[:scope] if opts[:scope]
139
230
 
140
231
  # Header Params
141
232
  header_params = {}
@@ -183,24 +274,30 @@ module OCI
183
274
  # when the field-value is `*`, or having a current representation of the
184
275
  # target resource that has an entity-tag matching a member of the list of
185
276
  # entity-tags provided in the field-value.
186
- # (default to nil)
277
+ #
187
278
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
188
279
  # of a timeout or server error without risk of executing that same action
189
280
  # again. Retry tokens expire after 24 hours, but can be invalidated before
190
281
  # then due to conflicting operations (for example, if a resource has been
191
282
  # deleted and purged from the system, then a retry of the original creation
192
283
  # request may be rejected).
193
- # (default to nil)
284
+ #
194
285
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
195
286
  # to contact Oracle about a particular request, please provide
196
287
  # the request ID.
197
- # (default to nil)
288
+ #
289
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
290
+ #
198
291
  # @return [Response] A Response object with data of type nil
199
292
  def change_tsig_key_compartment(tsig_key_id, change_tsig_key_compartment_details, opts = {})
200
293
  logger.debug 'Calling operation DnsClient#change_tsig_key_compartment.' if logger
201
294
 
202
295
  raise "Missing the required parameter 'tsig_key_id' when calling change_tsig_key_compartment." if tsig_key_id.nil?
203
296
  raise "Missing the required parameter 'change_tsig_key_compartment_details' when calling change_tsig_key_compartment." if change_tsig_key_compartment_details.nil?
297
+
298
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
299
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
300
+ end
204
301
  raise "Parameter value for 'tsig_key_id' must not be blank" if OCI::Internal::Util.blank_string?(tsig_key_id)
205
302
 
206
303
  path = '/tsigKeys/{tsigKeyId}/actions/changeCompartment'.sub('{tsigKeyId}', tsig_key_id.to_s)
@@ -209,6 +306,7 @@ module OCI
209
306
  # rubocop:disable Style/NegatedIf
210
307
  # Query Params
211
308
  query_params = {}
309
+ query_params[:scope] = opts[:scope] if opts[:scope]
212
310
 
213
311
  # Header Params
214
312
  header_params = {}
@@ -245,8 +343,91 @@ module OCI
245
343
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
246
344
 
247
345
 
248
- # Moves a zone into a different compartment.
346
+ # Moves a view into a different compartment. Protected views cannot have their compartment changed.
347
+ #
348
+ # @param [String] view_id The OCID of the target view.
349
+ # @param [OCI::Dns::Models::ChangeViewCompartmentDetails] change_view_compartment_details Details for moving a view into a different compartment.
350
+ # @param [Hash] opts the optional parameters
351
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
352
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
353
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
354
+ # existence of at least one current representation of the target resource,
355
+ # when the field-value is `*`, or having a current representation of the
356
+ # target resource that has an entity-tag matching a member of the list of
357
+ # entity-tags provided in the field-value.
358
+ #
359
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
360
+ # of a timeout or server error without risk of executing that same action
361
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
362
+ # then due to conflicting operations (for example, if a resource has been
363
+ # deleted and purged from the system, then a retry of the original creation
364
+ # request may be rejected).
365
+ #
366
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
367
+ # to contact Oracle about a particular request, please provide
368
+ # the request ID.
369
+ #
370
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
371
+ #
372
+ # @return [Response] A Response object with data of type nil
373
+ def change_view_compartment(view_id, change_view_compartment_details, opts = {})
374
+ logger.debug 'Calling operation DnsClient#change_view_compartment.' if logger
375
+
376
+ raise "Missing the required parameter 'view_id' when calling change_view_compartment." if view_id.nil?
377
+ raise "Missing the required parameter 'change_view_compartment_details' when calling change_view_compartment." if change_view_compartment_details.nil?
378
+
379
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
380
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
381
+ end
382
+ raise "Parameter value for 'view_id' must not be blank" if OCI::Internal::Util.blank_string?(view_id)
383
+
384
+ path = '/views/{viewId}/actions/changeCompartment'.sub('{viewId}', view_id.to_s)
385
+ operation_signing_strategy = :standard
386
+
387
+ # rubocop:disable Style/NegatedIf
388
+ # Query Params
389
+ query_params = {}
390
+ query_params[:scope] = opts[:scope] if opts[:scope]
391
+
392
+ # Header Params
393
+ header_params = {}
394
+ header_params[:accept] = 'application/json'
395
+ header_params[:'content-type'] = 'application/json'
396
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
397
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
398
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
399
+ # rubocop:enable Style/NegatedIf
400
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
401
+
402
+ post_body = @api_client.object_to_http_body(change_view_compartment_details)
403
+
404
+ # rubocop:disable Metrics/BlockLength
405
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#change_view_compartment') do
406
+ @api_client.call_api(
407
+ :POST,
408
+ path,
409
+ endpoint,
410
+ header_params: header_params,
411
+ query_params: query_params,
412
+ operation_signing_strategy: operation_signing_strategy,
413
+ body: post_body
414
+ )
415
+ end
416
+ # rubocop:enable Metrics/BlockLength
417
+ end
418
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
419
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
420
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
421
+
422
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
423
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
424
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
425
+
426
+
427
+ # Moves a zone into a different compartment. Protected zones cannot have their compartment changed.
428
+ #
249
429
  # **Note:** All SteeringPolicyAttachment objects associated with this zone will also be moved into the provided compartment.
430
+ #
250
431
  # @param [String] zone_id The OCID of the target zone.
251
432
  # @param [OCI::Dns::Models::ChangeZoneCompartmentDetails] change_zone_compartment_details Details for moving a zone into a different compartment.
252
433
  # @param [Hash] opts the optional parameters
@@ -257,24 +438,30 @@ module OCI
257
438
  # when the field-value is `*`, or having a current representation of the
258
439
  # target resource that has an entity-tag matching a member of the list of
259
440
  # entity-tags provided in the field-value.
260
- # (default to nil)
441
+ #
261
442
  # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
262
443
  # of a timeout or server error without risk of executing that same action
263
444
  # again. Retry tokens expire after 24 hours, but can be invalidated before
264
445
  # then due to conflicting operations (for example, if a resource has been
265
446
  # deleted and purged from the system, then a retry of the original creation
266
447
  # request may be rejected).
267
- # (default to nil)
448
+ #
268
449
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
269
450
  # to contact Oracle about a particular request, please provide
270
451
  # the request ID.
271
- # (default to nil)
452
+ #
453
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
454
+ #
272
455
  # @return [Response] A Response object with data of type nil
273
456
  def change_zone_compartment(zone_id, change_zone_compartment_details, opts = {})
274
457
  logger.debug 'Calling operation DnsClient#change_zone_compartment.' if logger
275
458
 
276
459
  raise "Missing the required parameter 'zone_id' when calling change_zone_compartment." if zone_id.nil?
277
460
  raise "Missing the required parameter 'change_zone_compartment_details' when calling change_zone_compartment." if change_zone_compartment_details.nil?
461
+
462
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
463
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
464
+ end
278
465
  raise "Parameter value for 'zone_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_id)
279
466
 
280
467
  path = '/zones/{zoneId}/actions/changeCompartment'.sub('{zoneId}', zone_id.to_s)
@@ -283,6 +470,7 @@ module OCI
283
470
  # rubocop:disable Style/NegatedIf
284
471
  # Query Params
285
472
  query_params = {}
473
+ query_params[:scope] = opts[:scope] if opts[:scope]
286
474
 
287
475
  # Header Params
288
476
  header_params = {}
@@ -319,6 +507,81 @@ module OCI
319
507
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
320
508
 
321
509
 
510
+ # Creates a new resolver endpoint.
511
+ #
512
+ # @param [String] resolver_id The OCID of the target resolver.
513
+ # @param [OCI::Dns::Models::CreateResolverEndpointDetails] create_resolver_endpoint_details Details for creating a new resolver endpoint.
514
+ # @param [Hash] opts the optional parameters
515
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
516
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
517
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
518
+ # of a timeout or server error without risk of executing that same action
519
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
520
+ # then due to conflicting operations (for example, if a resource has been
521
+ # deleted and purged from the system, then a retry of the original creation
522
+ # request may be rejected).
523
+ #
524
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
525
+ # to contact Oracle about a particular request, please provide
526
+ # the request ID.
527
+ #
528
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
529
+ #
530
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::ResolverEndpoint ResolverEndpoint}
531
+ def create_resolver_endpoint(resolver_id, create_resolver_endpoint_details, opts = {})
532
+ logger.debug 'Calling operation DnsClient#create_resolver_endpoint.' if logger
533
+
534
+ raise "Missing the required parameter 'resolver_id' when calling create_resolver_endpoint." if resolver_id.nil?
535
+ raise "Missing the required parameter 'create_resolver_endpoint_details' when calling create_resolver_endpoint." if create_resolver_endpoint_details.nil?
536
+
537
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
538
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
539
+ end
540
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
541
+
542
+ path = '/resolvers/{resolverId}/endpoints'.sub('{resolverId}', resolver_id.to_s)
543
+ operation_signing_strategy = :standard
544
+
545
+ # rubocop:disable Style/NegatedIf
546
+ # Query Params
547
+ query_params = {}
548
+ query_params[:scope] = opts[:scope] if opts[:scope]
549
+
550
+ # Header Params
551
+ header_params = {}
552
+ header_params[:accept] = 'application/json'
553
+ header_params[:'content-type'] = 'application/json'
554
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
555
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
556
+ # rubocop:enable Style/NegatedIf
557
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
558
+
559
+ post_body = @api_client.object_to_http_body(create_resolver_endpoint_details)
560
+
561
+ # rubocop:disable Metrics/BlockLength
562
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_resolver_endpoint') do
563
+ @api_client.call_api(
564
+ :POST,
565
+ path,
566
+ endpoint,
567
+ header_params: header_params,
568
+ query_params: query_params,
569
+ operation_signing_strategy: operation_signing_strategy,
570
+ body: post_body,
571
+ return_type: 'OCI::Dns::Models::ResolverEndpoint'
572
+ )
573
+ end
574
+ # rubocop:enable Metrics/BlockLength
575
+ end
576
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
577
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
578
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
579
+
580
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
581
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
582
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
583
+
584
+
322
585
  # Creates a new steering policy in the specified compartment. For more information on
323
586
  # creating policies with templates, see [Traffic Management API Guide](https://docs.cloud.oracle.com/iaas/Content/TrafficManagement/Concepts/trafficmanagementapi.htm).
324
587
  #
@@ -332,23 +595,30 @@ module OCI
332
595
  # then due to conflicting operations (for example, if a resource has been
333
596
  # deleted and purged from the system, then a retry of the original creation
334
597
  # request may be rejected).
335
- # (default to nil)
598
+ #
336
599
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
337
600
  # to contact Oracle about a particular request, please provide
338
601
  # the request ID.
339
- # (default to nil)
602
+ #
603
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
604
+ #
340
605
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
341
606
  def create_steering_policy(create_steering_policy_details, opts = {})
342
607
  logger.debug 'Calling operation DnsClient#create_steering_policy.' if logger
343
608
 
344
609
  raise "Missing the required parameter 'create_steering_policy_details' when calling create_steering_policy." if create_steering_policy_details.nil?
345
610
 
611
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
612
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
613
+ end
614
+
346
615
  path = '/steeringPolicies'
347
616
  operation_signing_strategy = :standard
348
617
 
349
618
  # rubocop:disable Style/NegatedIf
350
619
  # Query Params
351
620
  query_params = {}
621
+ query_params[:scope] = opts[:scope] if opts[:scope]
352
622
 
353
623
  # Header Params
354
624
  header_params = {}
@@ -402,23 +672,30 @@ module OCI
402
672
  # then due to conflicting operations (for example, if a resource has been
403
673
  # deleted and purged from the system, then a retry of the original creation
404
674
  # request may be rejected).
405
- # (default to nil)
675
+ #
406
676
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
407
677
  # to contact Oracle about a particular request, please provide
408
678
  # the request ID.
409
- # (default to nil)
679
+ #
680
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
681
+ #
410
682
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
411
683
  def create_steering_policy_attachment(create_steering_policy_attachment_details, opts = {})
412
684
  logger.debug 'Calling operation DnsClient#create_steering_policy_attachment.' if logger
413
685
 
414
686
  raise "Missing the required parameter 'create_steering_policy_attachment_details' when calling create_steering_policy_attachment." if create_steering_policy_attachment_details.nil?
415
687
 
688
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
689
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
690
+ end
691
+
416
692
  path = '/steeringPolicyAttachments'
417
693
  operation_signing_strategy = :standard
418
694
 
419
695
  # rubocop:disable Style/NegatedIf
420
696
  # Query Params
421
697
  query_params = {}
698
+ query_params[:scope] = opts[:scope] if opts[:scope]
422
699
 
423
700
  # Header Params
424
701
  header_params = {}
@@ -465,19 +742,26 @@ module OCI
465
742
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
466
743
  # to contact Oracle about a particular request, please provide
467
744
  # the request ID.
468
- # (default to nil)
745
+ #
746
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
747
+ #
469
748
  # @return [Response] A Response object with data of type {OCI::Dns::Models::TsigKey TsigKey}
470
749
  def create_tsig_key(create_tsig_key_details, opts = {})
471
750
  logger.debug 'Calling operation DnsClient#create_tsig_key.' if logger
472
751
 
473
752
  raise "Missing the required parameter 'create_tsig_key_details' when calling create_tsig_key." if create_tsig_key_details.nil?
474
753
 
754
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
755
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
756
+ end
757
+
475
758
  path = '/tsigKeys'
476
759
  operation_signing_strategy = :standard
477
760
 
478
761
  # rubocop:disable Style/NegatedIf
479
762
  # Query Params
480
763
  query_params = {}
764
+ query_params[:scope] = opts[:scope] if opts[:scope]
481
765
 
482
766
  # Header Params
483
767
  header_params = {}
@@ -512,44 +796,56 @@ module OCI
512
796
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
513
797
 
514
798
 
515
- # Creates a new zone in the specified compartment. The `compartmentId`
516
- # query parameter is required if the `Content-Type` header for the
517
- # request is `text/dns`.
799
+ # Creates a new view in the specified compartment.
518
800
  #
519
- # @param [OCI::Dns::Models::CreateZoneBaseDetails] create_zone_details Details for creating a new zone.
801
+ # @param [OCI::Dns::Models::CreateViewDetails] create_view_details Details for creating a new view.
520
802
  # @param [Hash] opts the optional parameters
521
803
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
522
804
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
805
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case
806
+ # of a timeout or server error without risk of executing that same action
807
+ # again. Retry tokens expire after 24 hours, but can be invalidated before
808
+ # then due to conflicting operations (for example, if a resource has been
809
+ # deleted and purged from the system, then a retry of the original creation
810
+ # request may be rejected).
811
+ #
523
812
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
524
813
  # to contact Oracle about a particular request, please provide
525
814
  # the request ID.
526
- # (default to nil)
527
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
528
- # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
529
- def create_zone(create_zone_details, opts = {})
530
- logger.debug 'Calling operation DnsClient#create_zone.' if logger
815
+ #
816
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
817
+ #
818
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::View View}
819
+ def create_view(create_view_details, opts = {})
820
+ logger.debug 'Calling operation DnsClient#create_view.' if logger
531
821
 
532
- raise "Missing the required parameter 'create_zone_details' when calling create_zone." if create_zone_details.nil?
822
+ raise "Missing the required parameter 'create_view_details' when calling create_view." if create_view_details.nil?
533
823
 
534
- path = '/zones'
824
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
825
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
826
+ end
827
+
828
+ path = '/views'
535
829
  operation_signing_strategy = :standard
536
830
 
537
831
  # rubocop:disable Style/NegatedIf
538
832
  # Query Params
539
833
  query_params = {}
540
- query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
834
+ query_params[:scope] = opts[:scope] if opts[:scope]
541
835
 
542
836
  # Header Params
543
837
  header_params = {}
544
838
  header_params[:accept] = 'application/json'
545
839
  header_params[:'content-type'] = 'application/json'
840
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
546
841
  header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
547
842
  # rubocop:enable Style/NegatedIf
843
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
548
844
 
549
- post_body = @api_client.object_to_http_body(create_zone_details)
845
+ post_body = @api_client.object_to_http_body(create_view_details)
550
846
 
551
847
  # rubocop:disable Metrics/BlockLength
552
- OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_zone') do
848
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_view') do
553
849
  @api_client.call_api(
554
850
  :POST,
555
851
  path,
@@ -558,7 +854,7 @@ module OCI
558
854
  query_params: query_params,
559
855
  operation_signing_strategy: operation_signing_strategy,
560
856
  body: post_body,
561
- return_type: 'OCI::Dns::Models::Zone'
857
+ return_type: 'OCI::Dns::Models::View'
562
858
  )
563
859
  end
564
860
  # rubocop:enable Metrics/BlockLength
@@ -572,35 +868,111 @@ module OCI
572
868
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
573
869
 
574
870
 
575
- # Deletes all records at the specified zone and domain.
576
- # @param [String] zone_name_or_id The name or OCID of the target zone.
577
- # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
871
+ # Creates a new zone in the specified compartment. If the `Content-Type` header for the request is `text/dns`, the
872
+ # `compartmentId` query parameter is required. Additionally, for `text/dns`, the `scope` and `viewId` query
873
+ # parameters are required to create a private zone.
874
+ #
875
+ # @param [OCI::Dns::Models::CreateZoneBaseDetails] create_zone_details Details for creating a new zone.
578
876
  # @param [Hash] opts the optional parameters
579
877
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
580
878
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
581
- # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
582
- # existence of at least one current representation of the target resource,
583
- # when the field-value is `*`, or having a current representation of the
879
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
880
+ # to contact Oracle about a particular request, please provide
881
+ # the request ID.
882
+ #
883
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
884
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
885
+ #
886
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
887
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
888
+ def create_zone(create_zone_details, opts = {})
889
+ logger.debug 'Calling operation DnsClient#create_zone.' if logger
890
+
891
+ raise "Missing the required parameter 'create_zone_details' when calling create_zone." if create_zone_details.nil?
892
+
893
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
894
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
895
+ end
896
+
897
+ path = '/zones'
898
+ operation_signing_strategy = :standard
899
+
900
+ # rubocop:disable Style/NegatedIf
901
+ # Query Params
902
+ query_params = {}
903
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
904
+ query_params[:scope] = opts[:scope] if opts[:scope]
905
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
906
+
907
+ # Header Params
908
+ header_params = {}
909
+ header_params[:accept] = 'application/json'
910
+ header_params[:'content-type'] = 'application/json'
911
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
912
+ # rubocop:enable Style/NegatedIf
913
+
914
+ post_body = @api_client.object_to_http_body(create_zone_details)
915
+
916
+ # rubocop:disable Metrics/BlockLength
917
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#create_zone') do
918
+ @api_client.call_api(
919
+ :POST,
920
+ path,
921
+ endpoint,
922
+ header_params: header_params,
923
+ query_params: query_params,
924
+ operation_signing_strategy: operation_signing_strategy,
925
+ body: post_body,
926
+ return_type: 'OCI::Dns::Models::Zone'
927
+ )
928
+ end
929
+ # rubocop:enable Metrics/BlockLength
930
+ end
931
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
932
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
933
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
934
+
935
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
936
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
937
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
938
+
939
+
940
+ # Deletes all records at the specified zone and domain.
941
+ # @param [String] zone_name_or_id The name or OCID of the target zone.
942
+ # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
943
+ # @param [Hash] opts the optional parameters
944
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
945
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
946
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
947
+ # existence of at least one current representation of the target resource,
948
+ # when the field-value is `*`, or having a current representation of the
584
949
  # target resource that has an entity-tag matching a member of the list of
585
950
  # entity-tags provided in the field-value.
586
- # (default to nil)
951
+ #
587
952
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
588
953
  # conditional on the selected representation's last modification date being
589
954
  # earlier than or equal to the date provided in the field-value. This
590
955
  # field accomplishes the same purpose as If-Match for cases where the user
591
956
  # agent does not have an entity-tag for the representation.
592
- # (default to nil)
957
+ #
593
958
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
594
959
  # to contact Oracle about a particular request, please provide
595
960
  # the request ID.
596
- # (default to nil)
597
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
961
+ #
962
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
963
+ #
964
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
965
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
598
966
  # @return [Response] A Response object with data of type nil
599
967
  def delete_domain_records(zone_name_or_id, domain, opts = {})
600
968
  logger.debug 'Calling operation DnsClient#delete_domain_records.' if logger
601
969
 
602
970
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_domain_records." if zone_name_or_id.nil?
603
971
  raise "Missing the required parameter 'domain' when calling delete_domain_records." if domain.nil?
972
+
973
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
974
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
975
+ end
604
976
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
605
977
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
606
978
 
@@ -610,6 +982,8 @@ module OCI
610
982
  # rubocop:disable Style/NegatedIf
611
983
  # Query Params
612
984
  query_params = {}
985
+ query_params[:scope] = opts[:scope] if opts[:scope]
986
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
613
987
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
614
988
 
615
989
  # Header Params
@@ -646,6 +1020,88 @@ module OCI
646
1020
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
647
1021
 
648
1022
 
1023
+ # Deletes the specified resolver endpoint. Note that attempting to delete a resolver endpoint in the
1024
+ # DELETED lifecycle state will result in a 404 to be consistent with other operations of the API.
1025
+ # Resolver endpoints may not be deleted if they are referenced by a resolver rule.
1026
+ #
1027
+ # @param [String] resolver_id The OCID of the target resolver.
1028
+ # @param [String] resolver_endpoint_name The name of the target resolver endpoint.
1029
+ # @param [Hash] opts the optional parameters
1030
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1031
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1032
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1033
+ # existence of at least one current representation of the target resource,
1034
+ # when the field-value is `*`, or having a current representation of the
1035
+ # target resource that has an entity-tag matching a member of the list of
1036
+ # entity-tags provided in the field-value.
1037
+ #
1038
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
1039
+ # conditional on the selected representation's last modification date being
1040
+ # earlier than or equal to the date provided in the field-value. This
1041
+ # field accomplishes the same purpose as If-Match for cases where the user
1042
+ # agent does not have an entity-tag for the representation.
1043
+ #
1044
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1045
+ # to contact Oracle about a particular request, please provide
1046
+ # the request ID.
1047
+ #
1048
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1049
+ #
1050
+ # @return [Response] A Response object with data of type nil
1051
+ def delete_resolver_endpoint(resolver_id, resolver_endpoint_name, opts = {})
1052
+ logger.debug 'Calling operation DnsClient#delete_resolver_endpoint.' if logger
1053
+
1054
+ raise "Missing the required parameter 'resolver_id' when calling delete_resolver_endpoint." if resolver_id.nil?
1055
+ raise "Missing the required parameter 'resolver_endpoint_name' when calling delete_resolver_endpoint." if resolver_endpoint_name.nil?
1056
+
1057
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1058
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1059
+ end
1060
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
1061
+ raise "Parameter value for 'resolver_endpoint_name' must not be blank" if OCI::Internal::Util.blank_string?(resolver_endpoint_name)
1062
+
1063
+ path = '/resolvers/{resolverId}/endpoints/{resolverEndpointName}'.sub('{resolverId}', resolver_id.to_s).sub('{resolverEndpointName}', resolver_endpoint_name.to_s)
1064
+ operation_signing_strategy = :standard
1065
+
1066
+ # rubocop:disable Style/NegatedIf
1067
+ # Query Params
1068
+ query_params = {}
1069
+ query_params[:scope] = opts[:scope] if opts[:scope]
1070
+
1071
+ # Header Params
1072
+ header_params = {}
1073
+ header_params[:accept] = 'application/json'
1074
+ header_params[:'content-type'] = 'application/json'
1075
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1076
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
1077
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1078
+ # rubocop:enable Style/NegatedIf
1079
+
1080
+ post_body = nil
1081
+
1082
+ # rubocop:disable Metrics/BlockLength
1083
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_resolver_endpoint') do
1084
+ @api_client.call_api(
1085
+ :DELETE,
1086
+ path,
1087
+ endpoint,
1088
+ header_params: header_params,
1089
+ query_params: query_params,
1090
+ operation_signing_strategy: operation_signing_strategy,
1091
+ body: post_body
1092
+ )
1093
+ end
1094
+ # rubocop:enable Metrics/BlockLength
1095
+ end
1096
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1097
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1098
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1099
+
1100
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1101
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1102
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1103
+
1104
+
649
1105
  # Deletes all records in the specified RRSet.
650
1106
  #
651
1107
  # @param [String] zone_name_or_id The name or OCID of the target zone.
@@ -659,18 +1115,21 @@ module OCI
659
1115
  # when the field-value is `*`, or having a current representation of the
660
1116
  # target resource that has an entity-tag matching a member of the list of
661
1117
  # entity-tags provided in the field-value.
662
- # (default to nil)
1118
+ #
663
1119
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
664
1120
  # conditional on the selected representation's last modification date being
665
1121
  # earlier than or equal to the date provided in the field-value. This
666
1122
  # field accomplishes the same purpose as If-Match for cases where the user
667
1123
  # agent does not have an entity-tag for the representation.
668
- # (default to nil)
1124
+ #
669
1125
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
670
1126
  # to contact Oracle about a particular request, please provide
671
1127
  # the request ID.
672
- # (default to nil)
673
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
1128
+ #
1129
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
1130
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1131
+ #
1132
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
674
1133
  # @return [Response] A Response object with data of type nil
675
1134
  def delete_rr_set(zone_name_or_id, domain, rtype, opts = {})
676
1135
  logger.debug 'Calling operation DnsClient#delete_rr_set.' if logger
@@ -678,6 +1137,10 @@ module OCI
678
1137
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_rr_set." if zone_name_or_id.nil?
679
1138
  raise "Missing the required parameter 'domain' when calling delete_rr_set." if domain.nil?
680
1139
  raise "Missing the required parameter 'rtype' when calling delete_rr_set." if rtype.nil?
1140
+
1141
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1142
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1143
+ end
681
1144
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
682
1145
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
683
1146
  raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
@@ -689,6 +1152,8 @@ module OCI
689
1152
  # Query Params
690
1153
  query_params = {}
691
1154
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1155
+ query_params[:scope] = opts[:scope] if opts[:scope]
1156
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
692
1157
 
693
1158
  # Header Params
694
1159
  header_params = {}
@@ -738,22 +1203,28 @@ module OCI
738
1203
  # when the field-value is `*`, or having a current representation of the
739
1204
  # target resource that has an entity-tag matching a member of the list of
740
1205
  # entity-tags provided in the field-value.
741
- # (default to nil)
1206
+ #
742
1207
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
743
1208
  # conditional on the selected representation's last modification date being
744
1209
  # earlier than or equal to the date provided in the field-value. This
745
1210
  # field accomplishes the same purpose as If-Match for cases where the user
746
1211
  # agent does not have an entity-tag for the representation.
747
- # (default to nil)
1212
+ #
748
1213
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
749
1214
  # to contact Oracle about a particular request, please provide
750
1215
  # the request ID.
751
- # (default to nil)
1216
+ #
1217
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1218
+ #
752
1219
  # @return [Response] A Response object with data of type nil
753
1220
  def delete_steering_policy(steering_policy_id, opts = {})
754
1221
  logger.debug 'Calling operation DnsClient#delete_steering_policy.' if logger
755
1222
 
756
1223
  raise "Missing the required parameter 'steering_policy_id' when calling delete_steering_policy." if steering_policy_id.nil?
1224
+
1225
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1226
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1227
+ end
757
1228
  raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
758
1229
 
759
1230
  path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
@@ -762,6 +1233,7 @@ module OCI
762
1233
  # rubocop:disable Style/NegatedIf
763
1234
  # Query Params
764
1235
  query_params = {}
1236
+ query_params[:scope] = opts[:scope] if opts[:scope]
765
1237
 
766
1238
  # Header Params
767
1239
  header_params = {}
@@ -809,22 +1281,28 @@ module OCI
809
1281
  # when the field-value is `*`, or having a current representation of the
810
1282
  # target resource that has an entity-tag matching a member of the list of
811
1283
  # entity-tags provided in the field-value.
812
- # (default to nil)
1284
+ #
813
1285
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
814
1286
  # conditional on the selected representation's last modification date being
815
1287
  # earlier than or equal to the date provided in the field-value. This
816
1288
  # field accomplishes the same purpose as If-Match for cases where the user
817
1289
  # agent does not have an entity-tag for the representation.
818
- # (default to nil)
1290
+ #
819
1291
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
820
1292
  # to contact Oracle about a particular request, please provide
821
1293
  # the request ID.
822
- # (default to nil)
1294
+ #
1295
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1296
+ #
823
1297
  # @return [Response] A Response object with data of type nil
824
1298
  def delete_steering_policy_attachment(steering_policy_attachment_id, opts = {})
825
1299
  logger.debug 'Calling operation DnsClient#delete_steering_policy_attachment.' if logger
826
1300
 
827
1301
  raise "Missing the required parameter 'steering_policy_attachment_id' when calling delete_steering_policy_attachment." if steering_policy_attachment_id.nil?
1302
+
1303
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1304
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1305
+ end
828
1306
  raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
829
1307
 
830
1308
  path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
@@ -833,6 +1311,7 @@ module OCI
833
1311
  # rubocop:disable Style/NegatedIf
834
1312
  # Query Params
835
1313
  query_params = {}
1314
+ query_params[:scope] = opts[:scope] if opts[:scope]
836
1315
 
837
1316
  # Header Params
838
1317
  header_params = {}
@@ -879,22 +1358,28 @@ module OCI
879
1358
  # when the field-value is `*`, or having a current representation of the
880
1359
  # target resource that has an entity-tag matching a member of the list of
881
1360
  # entity-tags provided in the field-value.
882
- # (default to nil)
1361
+ #
883
1362
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
884
1363
  # conditional on the selected representation's last modification date being
885
1364
  # earlier than or equal to the date provided in the field-value. This
886
1365
  # field accomplishes the same purpose as If-Match for cases where the user
887
1366
  # agent does not have an entity-tag for the representation.
888
- # (default to nil)
1367
+ #
889
1368
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
890
1369
  # to contact Oracle about a particular request, please provide
891
1370
  # the request ID.
892
- # (default to nil)
1371
+ #
1372
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1373
+ #
893
1374
  # @return [Response] A Response object with data of type nil
894
1375
  def delete_tsig_key(tsig_key_id, opts = {})
895
1376
  logger.debug 'Calling operation DnsClient#delete_tsig_key.' if logger
896
1377
 
897
1378
  raise "Missing the required parameter 'tsig_key_id' when calling delete_tsig_key." if tsig_key_id.nil?
1379
+
1380
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1381
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1382
+ end
898
1383
  raise "Parameter value for 'tsig_key_id' must not be blank" if OCI::Internal::Util.blank_string?(tsig_key_id)
899
1384
 
900
1385
  path = '/tsigKeys/{tsigKeyId}'.sub('{tsigKeyId}', tsig_key_id.to_s)
@@ -903,6 +1388,7 @@ module OCI
903
1388
  # rubocop:disable Style/NegatedIf
904
1389
  # Query Params
905
1390
  query_params = {}
1391
+ query_params[:scope] = opts[:scope] if opts[:scope]
906
1392
 
907
1393
  # Header Params
908
1394
  header_params = {}
@@ -938,8 +1424,90 @@ module OCI
938
1424
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
939
1425
 
940
1426
 
1427
+ # Deletes the specified view. Note that attempting to delete a
1428
+ # view in the DELETED lifecycleState will result in a 404 to be
1429
+ # consistent with other operations of the API. Views can not be
1430
+ # deleted if they are referenced by non-deleted zones or resolvers.
1431
+ # Protected views cannot be deleted.
1432
+ #
1433
+ # @param [String] view_id The OCID of the target view.
1434
+ # @param [Hash] opts the optional parameters
1435
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1436
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1437
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
1438
+ # existence of at least one current representation of the target resource,
1439
+ # when the field-value is `*`, or having a current representation of the
1440
+ # target resource that has an entity-tag matching a member of the list of
1441
+ # entity-tags provided in the field-value.
1442
+ #
1443
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
1444
+ # conditional on the selected representation's last modification date being
1445
+ # earlier than or equal to the date provided in the field-value. This
1446
+ # field accomplishes the same purpose as If-Match for cases where the user
1447
+ # agent does not have an entity-tag for the representation.
1448
+ #
1449
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1450
+ # to contact Oracle about a particular request, please provide
1451
+ # the request ID.
1452
+ #
1453
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1454
+ #
1455
+ # @return [Response] A Response object with data of type nil
1456
+ def delete_view(view_id, opts = {})
1457
+ logger.debug 'Calling operation DnsClient#delete_view.' if logger
1458
+
1459
+ raise "Missing the required parameter 'view_id' when calling delete_view." if view_id.nil?
1460
+
1461
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1462
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1463
+ end
1464
+ raise "Parameter value for 'view_id' must not be blank" if OCI::Internal::Util.blank_string?(view_id)
1465
+
1466
+ path = '/views/{viewId}'.sub('{viewId}', view_id.to_s)
1467
+ operation_signing_strategy = :standard
1468
+
1469
+ # rubocop:disable Style/NegatedIf
1470
+ # Query Params
1471
+ query_params = {}
1472
+ query_params[:scope] = opts[:scope] if opts[:scope]
1473
+
1474
+ # Header Params
1475
+ header_params = {}
1476
+ header_params[:accept] = 'application/json'
1477
+ header_params[:'content-type'] = 'application/json'
1478
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
1479
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
1480
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1481
+ # rubocop:enable Style/NegatedIf
1482
+
1483
+ post_body = nil
1484
+
1485
+ # rubocop:disable Metrics/BlockLength
1486
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#delete_view') do
1487
+ @api_client.call_api(
1488
+ :DELETE,
1489
+ path,
1490
+ endpoint,
1491
+ header_params: header_params,
1492
+ query_params: query_params,
1493
+ operation_signing_strategy: operation_signing_strategy,
1494
+ body: post_body
1495
+ )
1496
+ end
1497
+ # rubocop:enable Metrics/BlockLength
1498
+ end
1499
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1500
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1501
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1502
+
1503
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1504
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1505
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1506
+
1507
+
941
1508
  # Deletes the specified zone and all its steering policy attachments.
942
- # A `204` response indicates that zone has been successfully deleted.
1509
+ # A `204` response indicates that the zone has been successfully deleted.
1510
+ # Protected zones cannot be deleted.
943
1511
  #
944
1512
  # @param [String] zone_name_or_id The name or OCID of the target zone.
945
1513
  # @param [Hash] opts the optional parameters
@@ -950,23 +1518,30 @@ module OCI
950
1518
  # when the field-value is `*`, or having a current representation of the
951
1519
  # target resource that has an entity-tag matching a member of the list of
952
1520
  # entity-tags provided in the field-value.
953
- # (default to nil)
1521
+ #
954
1522
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
955
1523
  # conditional on the selected representation's last modification date being
956
1524
  # earlier than or equal to the date provided in the field-value. This
957
1525
  # field accomplishes the same purpose as If-Match for cases where the user
958
1526
  # agent does not have an entity-tag for the representation.
959
- # (default to nil)
1527
+ #
960
1528
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
961
1529
  # to contact Oracle about a particular request, please provide
962
1530
  # the request ID.
963
- # (default to nil)
964
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
1531
+ #
1532
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1533
+ #
1534
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
1535
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
965
1536
  # @return [Response] A Response object with data of type nil
966
1537
  def delete_zone(zone_name_or_id, opts = {})
967
1538
  logger.debug 'Calling operation DnsClient#delete_zone.' if logger
968
1539
 
969
1540
  raise "Missing the required parameter 'zone_name_or_id' when calling delete_zone." if zone_name_or_id.nil?
1541
+
1542
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1543
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1544
+ end
970
1545
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
971
1546
 
972
1547
  path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -975,6 +1550,8 @@ module OCI
975
1550
  # rubocop:disable Style/NegatedIf
976
1551
  # Query Params
977
1552
  query_params = {}
1553
+ query_params[:scope] = opts[:scope] if opts[:scope]
1554
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
978
1555
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
979
1556
 
980
1557
  # Header Params
@@ -1024,30 +1601,33 @@ module OCI
1024
1601
  # the absence of any current representation of the target resource, when
1025
1602
  # the field-value is `*`, or having a selected representation with an
1026
1603
  # entity-tag that does not match any of those listed in the field-value.
1027
- # (default to nil)
1604
+ #
1028
1605
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1029
1606
  # conditional on the selected representation's modification date being more
1030
1607
  # recent than the date provided in the field-value. Transfer of the
1031
1608
  # selected representation's data is avoided if that data has not changed.
1032
- # (default to nil)
1609
+ #
1033
1610
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1034
1611
  # to contact Oracle about a particular request, please provide
1035
1612
  # the request ID.
1036
- # (default to nil)
1613
+ #
1037
1614
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1038
1615
  # (default to 50)
1039
1616
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1040
- # (default to nil)
1617
+ #
1041
1618
  # @option opts [String] :zone_version The version of the zone for which data is requested.
1042
- # (default to nil)
1619
+ #
1043
1620
  # @option opts [String] :rtype Search by record type.
1044
1621
  # Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
1045
- # (default to nil)
1622
+ #
1623
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1624
+ #
1625
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
1046
1626
  # @option opts [String] :sort_by The field by which to sort records. (default to rtype)
1047
1627
  # Allowed values are: rtype, ttl
1048
1628
  # @option opts [String] :sort_order The order to sort the resources.
1049
- # (default to DESC)
1050
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
1629
+ # (default to ASC)
1630
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
1051
1631
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
1052
1632
  def get_domain_records(zone_name_or_id, domain, opts = {})
1053
1633
  logger.debug 'Calling operation DnsClient#get_domain_records.' if logger
@@ -1055,6 +1635,10 @@ module OCI
1055
1635
  raise "Missing the required parameter 'zone_name_or_id' when calling get_domain_records." if zone_name_or_id.nil?
1056
1636
  raise "Missing the required parameter 'domain' when calling get_domain_records." if domain.nil?
1057
1637
 
1638
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1639
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1640
+ end
1641
+
1058
1642
  if opts[:sort_by] && !%w[rtype ttl].include?(opts[:sort_by])
1059
1643
  raise 'Invalid value for "sort_by", must be one of rtype, ttl.'
1060
1644
  end
@@ -1075,6 +1659,8 @@ module OCI
1075
1659
  query_params[:page] = opts[:page] if opts[:page]
1076
1660
  query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
1077
1661
  query_params[:rtype] = opts[:rtype] if opts[:rtype]
1662
+ query_params[:scope] = opts[:scope] if opts[:scope]
1663
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
1078
1664
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1079
1665
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1080
1666
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
@@ -1114,36 +1700,197 @@ module OCI
1114
1700
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1115
1701
 
1116
1702
 
1117
- # Gets a list of all records in the specified RRSet. The results are
1118
- # sorted by `recordHash` by default.
1703
+ # Get information about a specific resolver. Note that attempting to get a
1704
+ # resolver in the DELETED lifecycleState will result in a 404 to be
1705
+ # consistent with other operations of the API.
1119
1706
  #
1120
- # @param [String] zone_name_or_id The name or OCID of the target zone.
1121
- # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
1122
- # @param [String] rtype The type of the target RRSet within the target zone.
1707
+ # @param [String] resolver_id The OCID of the target resolver.
1123
1708
  # @param [Hash] opts the optional parameters
1124
1709
  # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1125
1710
  # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1126
- # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
1127
- # the absence of any current representation of the target resource, when
1128
- # the field-value is `*`, or having a selected representation with an
1129
- # entity-tag that does not match any of those listed in the field-value.
1130
- # (default to nil)
1131
1711
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1132
1712
  # conditional on the selected representation's modification date being more
1133
1713
  # recent than the date provided in the field-value. Transfer of the
1134
1714
  # selected representation's data is avoided if that data has not changed.
1135
- # (default to nil)
1715
+ #
1716
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
1717
+ # the absence of any current representation of the target resource, when
1718
+ # the field-value is `*`, or having a selected representation with an
1719
+ # entity-tag that does not match any of those listed in the field-value.
1720
+ #
1136
1721
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1137
1722
  # to contact Oracle about a particular request, please provide
1138
1723
  # the request ID.
1139
- # (default to nil)
1140
- # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1141
- # (default to 50)
1724
+ #
1725
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1726
+ #
1727
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::Resolver Resolver}
1728
+ def get_resolver(resolver_id, opts = {})
1729
+ logger.debug 'Calling operation DnsClient#get_resolver.' if logger
1730
+
1731
+ raise "Missing the required parameter 'resolver_id' when calling get_resolver." if resolver_id.nil?
1732
+
1733
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1734
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1735
+ end
1736
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
1737
+
1738
+ path = '/resolvers/{resolverId}'.sub('{resolverId}', resolver_id.to_s)
1739
+ operation_signing_strategy = :standard
1740
+
1741
+ # rubocop:disable Style/NegatedIf
1742
+ # Query Params
1743
+ query_params = {}
1744
+ query_params[:scope] = opts[:scope] if opts[:scope]
1745
+
1746
+ # Header Params
1747
+ header_params = {}
1748
+ header_params[:accept] = 'application/json'
1749
+ header_params[:'content-type'] = 'application/json'
1750
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
1751
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
1752
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1753
+ # rubocop:enable Style/NegatedIf
1754
+
1755
+ post_body = nil
1756
+
1757
+ # rubocop:disable Metrics/BlockLength
1758
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_resolver') do
1759
+ @api_client.call_api(
1760
+ :GET,
1761
+ path,
1762
+ endpoint,
1763
+ header_params: header_params,
1764
+ query_params: query_params,
1765
+ operation_signing_strategy: operation_signing_strategy,
1766
+ body: post_body,
1767
+ return_type: 'OCI::Dns::Models::Resolver'
1768
+ )
1769
+ end
1770
+ # rubocop:enable Metrics/BlockLength
1771
+ end
1772
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1773
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1774
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1775
+
1776
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1777
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1778
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1779
+
1780
+
1781
+ # Get information about a specific resolver endpoint. Note that attempting to get a resolver endpoint
1782
+ # in the DELETED lifecycle state will result in a 404 to be consistent with other operations of the API.
1783
+ #
1784
+ # @param [String] resolver_id The OCID of the target resolver.
1785
+ # @param [String] resolver_endpoint_name The name of the target resolver endpoint.
1786
+ # @param [Hash] opts the optional parameters
1787
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1788
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1789
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1790
+ # conditional on the selected representation's modification date being more
1791
+ # recent than the date provided in the field-value. Transfer of the
1792
+ # selected representation's data is avoided if that data has not changed.
1793
+ #
1794
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
1795
+ # the absence of any current representation of the target resource, when
1796
+ # the field-value is `*`, or having a selected representation with an
1797
+ # entity-tag that does not match any of those listed in the field-value.
1798
+ #
1799
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1800
+ # to contact Oracle about a particular request, please provide
1801
+ # the request ID.
1802
+ #
1803
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1804
+ #
1805
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::ResolverEndpoint ResolverEndpoint}
1806
+ def get_resolver_endpoint(resolver_id, resolver_endpoint_name, opts = {})
1807
+ logger.debug 'Calling operation DnsClient#get_resolver_endpoint.' if logger
1808
+
1809
+ raise "Missing the required parameter 'resolver_id' when calling get_resolver_endpoint." if resolver_id.nil?
1810
+ raise "Missing the required parameter 'resolver_endpoint_name' when calling get_resolver_endpoint." if resolver_endpoint_name.nil?
1811
+
1812
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1813
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1814
+ end
1815
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
1816
+ raise "Parameter value for 'resolver_endpoint_name' must not be blank" if OCI::Internal::Util.blank_string?(resolver_endpoint_name)
1817
+
1818
+ path = '/resolvers/{resolverId}/endpoints/{resolverEndpointName}'.sub('{resolverId}', resolver_id.to_s).sub('{resolverEndpointName}', resolver_endpoint_name.to_s)
1819
+ operation_signing_strategy = :standard
1820
+
1821
+ # rubocop:disable Style/NegatedIf
1822
+ # Query Params
1823
+ query_params = {}
1824
+ query_params[:scope] = opts[:scope] if opts[:scope]
1825
+
1826
+ # Header Params
1827
+ header_params = {}
1828
+ header_params[:accept] = 'application/json'
1829
+ header_params[:'content-type'] = 'application/json'
1830
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
1831
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
1832
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1833
+ # rubocop:enable Style/NegatedIf
1834
+
1835
+ post_body = nil
1836
+
1837
+ # rubocop:disable Metrics/BlockLength
1838
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_resolver_endpoint') do
1839
+ @api_client.call_api(
1840
+ :GET,
1841
+ path,
1842
+ endpoint,
1843
+ header_params: header_params,
1844
+ query_params: query_params,
1845
+ operation_signing_strategy: operation_signing_strategy,
1846
+ body: post_body,
1847
+ return_type: 'OCI::Dns::Models::ResolverEndpoint'
1848
+ )
1849
+ end
1850
+ # rubocop:enable Metrics/BlockLength
1851
+ end
1852
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1853
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1854
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1855
+
1856
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1857
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1858
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1859
+
1860
+
1861
+ # Gets a list of all records in the specified RRSet. The results are
1862
+ # sorted by `recordHash` by default.
1863
+ #
1864
+ # @param [String] zone_name_or_id The name or OCID of the target zone.
1865
+ # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
1866
+ # @param [String] rtype The type of the target RRSet within the target zone.
1867
+ # @param [Hash] opts the optional parameters
1868
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1869
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1870
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
1871
+ # the absence of any current representation of the target resource, when
1872
+ # the field-value is `*`, or having a selected representation with an
1873
+ # entity-tag that does not match any of those listed in the field-value.
1874
+ #
1875
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1876
+ # conditional on the selected representation's modification date being more
1877
+ # recent than the date provided in the field-value. Transfer of the
1878
+ # selected representation's data is avoided if that data has not changed.
1879
+ #
1880
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1881
+ # to contact Oracle about a particular request, please provide
1882
+ # the request ID.
1883
+ #
1884
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1885
+ # (default to 50)
1142
1886
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1143
- # (default to nil)
1887
+ #
1144
1888
  # @option opts [String] :zone_version The version of the zone for which data is requested.
1145
- # (default to nil)
1146
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
1889
+ #
1890
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
1891
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1892
+ #
1893
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
1147
1894
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RRSet RRSet}
1148
1895
  def get_rr_set(zone_name_or_id, domain, rtype, opts = {})
1149
1896
  logger.debug 'Calling operation DnsClient#get_rr_set.' if logger
@@ -1151,6 +1898,10 @@ module OCI
1151
1898
  raise "Missing the required parameter 'zone_name_or_id' when calling get_rr_set." if zone_name_or_id.nil?
1152
1899
  raise "Missing the required parameter 'domain' when calling get_rr_set." if domain.nil?
1153
1900
  raise "Missing the required parameter 'rtype' when calling get_rr_set." if rtype.nil?
1901
+
1902
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1903
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1904
+ end
1154
1905
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
1155
1906
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
1156
1907
  raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
@@ -1165,6 +1916,8 @@ module OCI
1165
1916
  query_params[:page] = opts[:page] if opts[:page]
1166
1917
  query_params[:zoneVersion] = opts[:zone_version] if opts[:zone_version]
1167
1918
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1919
+ query_params[:scope] = opts[:scope] if opts[:scope]
1920
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
1168
1921
 
1169
1922
  # Header Params
1170
1923
  header_params = {}
@@ -1211,21 +1964,27 @@ module OCI
1211
1964
  # the absence of any current representation of the target resource, when
1212
1965
  # the field-value is `*`, or having a selected representation with an
1213
1966
  # entity-tag that does not match any of those listed in the field-value.
1214
- # (default to nil)
1967
+ #
1215
1968
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1216
1969
  # conditional on the selected representation's modification date being more
1217
1970
  # recent than the date provided in the field-value. Transfer of the
1218
1971
  # selected representation's data is avoided if that data has not changed.
1219
- # (default to nil)
1972
+ #
1220
1973
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1221
1974
  # to contact Oracle about a particular request, please provide
1222
1975
  # the request ID.
1223
- # (default to nil)
1976
+ #
1977
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
1978
+ #
1224
1979
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
1225
1980
  def get_steering_policy(steering_policy_id, opts = {})
1226
1981
  logger.debug 'Calling operation DnsClient#get_steering_policy.' if logger
1227
1982
 
1228
1983
  raise "Missing the required parameter 'steering_policy_id' when calling get_steering_policy." if steering_policy_id.nil?
1984
+
1985
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
1986
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
1987
+ end
1229
1988
  raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
1230
1989
 
1231
1990
  path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
@@ -1234,6 +1993,7 @@ module OCI
1234
1993
  # rubocop:disable Style/NegatedIf
1235
1994
  # Query Params
1236
1995
  query_params = {}
1996
+ query_params[:scope] = opts[:scope] if opts[:scope]
1237
1997
 
1238
1998
  # Header Params
1239
1999
  header_params = {}
@@ -1280,21 +2040,27 @@ module OCI
1280
2040
  # the absence of any current representation of the target resource, when
1281
2041
  # the field-value is `*`, or having a selected representation with an
1282
2042
  # entity-tag that does not match any of those listed in the field-value.
1283
- # (default to nil)
2043
+ #
1284
2044
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1285
2045
  # conditional on the selected representation's modification date being more
1286
2046
  # recent than the date provided in the field-value. Transfer of the
1287
2047
  # selected representation's data is avoided if that data has not changed.
1288
- # (default to nil)
2048
+ #
1289
2049
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1290
2050
  # to contact Oracle about a particular request, please provide
1291
2051
  # the request ID.
1292
- # (default to nil)
2052
+ #
2053
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2054
+ #
1293
2055
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
1294
2056
  def get_steering_policy_attachment(steering_policy_attachment_id, opts = {})
1295
2057
  logger.debug 'Calling operation DnsClient#get_steering_policy_attachment.' if logger
1296
2058
 
1297
2059
  raise "Missing the required parameter 'steering_policy_attachment_id' when calling get_steering_policy_attachment." if steering_policy_attachment_id.nil?
2060
+
2061
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2062
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2063
+ end
1298
2064
  raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
1299
2065
 
1300
2066
  path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
@@ -1303,6 +2069,7 @@ module OCI
1303
2069
  # rubocop:disable Style/NegatedIf
1304
2070
  # Query Params
1305
2071
  query_params = {}
2072
+ query_params[:scope] = opts[:scope] if opts[:scope]
1306
2073
 
1307
2074
  # Header Params
1308
2075
  header_params = {}
@@ -1349,21 +2116,27 @@ module OCI
1349
2116
  # the absence of any current representation of the target resource, when
1350
2117
  # the field-value is `*`, or having a selected representation with an
1351
2118
  # entity-tag that does not match any of those listed in the field-value.
1352
- # (default to nil)
2119
+ #
1353
2120
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1354
2121
  # conditional on the selected representation's modification date being more
1355
2122
  # recent than the date provided in the field-value. Transfer of the
1356
2123
  # selected representation's data is avoided if that data has not changed.
1357
- # (default to nil)
2124
+ #
1358
2125
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1359
2126
  # to contact Oracle about a particular request, please provide
1360
2127
  # the request ID.
1361
- # (default to nil)
2128
+ #
2129
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2130
+ #
1362
2131
  # @return [Response] A Response object with data of type {OCI::Dns::Models::TsigKey TsigKey}
1363
2132
  def get_tsig_key(tsig_key_id, opts = {})
1364
2133
  logger.debug 'Calling operation DnsClient#get_tsig_key.' if logger
1365
2134
 
1366
2135
  raise "Missing the required parameter 'tsig_key_id' when calling get_tsig_key." if tsig_key_id.nil?
2136
+
2137
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2138
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2139
+ end
1367
2140
  raise "Parameter value for 'tsig_key_id' must not be blank" if OCI::Internal::Util.blank_string?(tsig_key_id)
1368
2141
 
1369
2142
  path = '/tsigKeys/{tsigKeyId}'.sub('{tsigKeyId}', tsig_key_id.to_s)
@@ -1372,6 +2145,7 @@ module OCI
1372
2145
  # rubocop:disable Style/NegatedIf
1373
2146
  # Query Params
1374
2147
  query_params = {}
2148
+ query_params[:scope] = opts[:scope] if opts[:scope]
1375
2149
 
1376
2150
  # Header Params
1377
2151
  header_params = {}
@@ -1408,6 +2182,84 @@ module OCI
1408
2182
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1409
2183
 
1410
2184
 
2185
+ # Get information about a specific view. Note that attempting to get a
2186
+ # view in the DELETED lifecycleState will result in a 404 to be
2187
+ # consistent with other operations of the API.
2188
+ #
2189
+ # @param [String] view_id The OCID of the target view.
2190
+ # @param [Hash] opts the optional parameters
2191
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2192
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2193
+ # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
2194
+ # conditional on the selected representation's modification date being more
2195
+ # recent than the date provided in the field-value. Transfer of the
2196
+ # selected representation's data is avoided if that data has not changed.
2197
+ #
2198
+ # @option opts [String] :if_none_match The `If-None-Match` header field makes the request method conditional on
2199
+ # the absence of any current representation of the target resource, when
2200
+ # the field-value is `*`, or having a selected representation with an
2201
+ # entity-tag that does not match any of those listed in the field-value.
2202
+ #
2203
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2204
+ # to contact Oracle about a particular request, please provide
2205
+ # the request ID.
2206
+ #
2207
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2208
+ #
2209
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::View View}
2210
+ def get_view(view_id, opts = {})
2211
+ logger.debug 'Calling operation DnsClient#get_view.' if logger
2212
+
2213
+ raise "Missing the required parameter 'view_id' when calling get_view." if view_id.nil?
2214
+
2215
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2216
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2217
+ end
2218
+ raise "Parameter value for 'view_id' must not be blank" if OCI::Internal::Util.blank_string?(view_id)
2219
+
2220
+ path = '/views/{viewId}'.sub('{viewId}', view_id.to_s)
2221
+ operation_signing_strategy = :standard
2222
+
2223
+ # rubocop:disable Style/NegatedIf
2224
+ # Query Params
2225
+ query_params = {}
2226
+ query_params[:scope] = opts[:scope] if opts[:scope]
2227
+
2228
+ # Header Params
2229
+ header_params = {}
2230
+ header_params[:accept] = 'application/json'
2231
+ header_params[:'content-type'] = 'application/json'
2232
+ header_params[:'if-modified-since'] = opts[:if_modified_since] if opts[:if_modified_since]
2233
+ header_params[:'if-none-match'] = opts[:if_none_match] if opts[:if_none_match]
2234
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2235
+ # rubocop:enable Style/NegatedIf
2236
+
2237
+ post_body = nil
2238
+
2239
+ # rubocop:disable Metrics/BlockLength
2240
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#get_view') do
2241
+ @api_client.call_api(
2242
+ :GET,
2243
+ path,
2244
+ endpoint,
2245
+ header_params: header_params,
2246
+ query_params: query_params,
2247
+ operation_signing_strategy: operation_signing_strategy,
2248
+ body: post_body,
2249
+ return_type: 'OCI::Dns::Models::View'
2250
+ )
2251
+ end
2252
+ # rubocop:enable Metrics/BlockLength
2253
+ end
2254
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2255
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2256
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2257
+
2258
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2259
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2260
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2261
+
2262
+
1411
2263
  # Gets information about the specified zone, including its creation date,
1412
2264
  # zone type, and serial.
1413
2265
  #
@@ -1419,22 +2271,29 @@ module OCI
1419
2271
  # the absence of any current representation of the target resource, when
1420
2272
  # the field-value is `*`, or having a selected representation with an
1421
2273
  # entity-tag that does not match any of those listed in the field-value.
1422
- # (default to nil)
2274
+ #
1423
2275
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1424
2276
  # conditional on the selected representation's modification date being more
1425
2277
  # recent than the date provided in the field-value. Transfer of the
1426
2278
  # selected representation's data is avoided if that data has not changed.
1427
- # (default to nil)
2279
+ #
1428
2280
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1429
2281
  # to contact Oracle about a particular request, please provide
1430
2282
  # the request ID.
1431
- # (default to nil)
1432
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
2283
+ #
2284
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2285
+ #
2286
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
2287
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
1433
2288
  # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
1434
2289
  def get_zone(zone_name_or_id, opts = {})
1435
2290
  logger.debug 'Calling operation DnsClient#get_zone.' if logger
1436
2291
 
1437
2292
  raise "Missing the required parameter 'zone_name_or_id' when calling get_zone." if zone_name_or_id.nil?
2293
+
2294
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2295
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2296
+ end
1438
2297
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
1439
2298
 
1440
2299
  path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -1443,6 +2302,8 @@ module OCI
1443
2302
  # rubocop:disable Style/NegatedIf
1444
2303
  # Query Params
1445
2304
  query_params = {}
2305
+ query_params[:scope] = opts[:scope] if opts[:scope]
2306
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
1446
2307
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1447
2308
 
1448
2309
  # Header Params
@@ -1492,36 +2353,39 @@ module OCI
1492
2353
  # the absence of any current representation of the target resource, when
1493
2354
  # the field-value is `*`, or having a selected representation with an
1494
2355
  # entity-tag that does not match any of those listed in the field-value.
1495
- # (default to nil)
2356
+ #
1496
2357
  # @option opts [String] :if_modified_since The `If-Modified-Since` header field makes a GET or HEAD request method
1497
2358
  # conditional on the selected representation's modification date being more
1498
2359
  # recent than the date provided in the field-value. Transfer of the
1499
2360
  # selected representation's data is avoided if that data has not changed.
1500
- # (default to nil)
2361
+ #
1501
2362
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1502
2363
  # to contact Oracle about a particular request, please provide
1503
2364
  # the request ID.
1504
- # (default to nil)
2365
+ #
1505
2366
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1506
2367
  # (default to 50)
1507
2368
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1508
- # (default to nil)
2369
+ #
1509
2370
  # @option opts [String] :zone_version The version of the zone for which data is requested.
1510
- # (default to nil)
2371
+ #
1511
2372
  # @option opts [String] :domain Search by domain.
1512
2373
  # Will match any record whose domain (case-insensitive) equals the provided value.
1513
- # (default to nil)
2374
+ #
1514
2375
  # @option opts [String] :domain_contains Search by domain.
1515
2376
  # Will match any record whose domain (case-insensitive) contains the provided value.
1516
- # (default to nil)
2377
+ #
1517
2378
  # @option opts [String] :rtype Search by record type.
1518
2379
  # Will match any record whose [type](https://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-4) (case-insensitive) equals the provided value.
1519
- # (default to nil)
2380
+ #
1520
2381
  # @option opts [String] :sort_by The field by which to sort records. (default to domain)
1521
2382
  # Allowed values are: domain, rtype, ttl
1522
2383
  # @option opts [String] :sort_order The order to sort the resources.
1523
- # (default to DESC)
1524
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
2384
+ # (default to ASC)
2385
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2386
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2387
+ #
2388
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
1525
2389
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
1526
2390
  def get_zone_records(zone_name_or_id, opts = {})
1527
2391
  logger.debug 'Calling operation DnsClient#get_zone_records.' if logger
@@ -1535,6 +2399,10 @@ module OCI
1535
2399
  if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1536
2400
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1537
2401
  end
2402
+
2403
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2404
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2405
+ end
1538
2406
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
1539
2407
 
1540
2408
  path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -1552,6 +2420,8 @@ module OCI
1552
2420
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1553
2421
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1554
2422
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2423
+ query_params[:scope] = opts[:scope] if opts[:scope]
2424
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
1555
2425
 
1556
2426
  # Header Params
1557
2427
  header_params = {}
@@ -1588,6 +2458,200 @@ module OCI
1588
2458
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1589
2459
 
1590
2460
 
2461
+ # Gets a list of all endpoints within a resolver. The collection can be filtered by name or lifecycle state.
2462
+ # It can be sorted on creation time or name both in ASC or DESC order. Note that when no lifecycleState
2463
+ # query parameter is provided that the collection does not include resolver endpoints in the DELETED
2464
+ # lifecycle state to be consistent with other operations of the API.
2465
+ #
2466
+ # @param [String] resolver_id The OCID of the target resolver.
2467
+ # @param [Hash] opts the optional parameters
2468
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2469
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2470
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2471
+ # to contact Oracle about a particular request, please provide
2472
+ # the request ID.
2473
+ #
2474
+ # @option opts [String] :name The name of a resource.
2475
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
2476
+ #
2477
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
2478
+ # (default to 50)
2479
+ # @option opts [String] :sort_order The order to sort the resources.
2480
+ # (default to DESC)
2481
+ # @option opts [String] :sort_by The field by which to sort resolver endpoints. (default to timeCreated)
2482
+ # Allowed values are: name, timeCreated
2483
+ # @option opts [String] :lifecycle_state The state of a resource.
2484
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2485
+ #
2486
+ # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ResolverEndpointSummary ResolverEndpointSummary}>
2487
+ def list_resolver_endpoints(resolver_id, opts = {})
2488
+ logger.debug 'Calling operation DnsClient#list_resolver_endpoints.' if logger
2489
+
2490
+ raise "Missing the required parameter 'resolver_id' when calling list_resolver_endpoints." if resolver_id.nil?
2491
+
2492
+ if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
2493
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
2494
+ end
2495
+
2496
+ if opts[:sort_by] && !%w[name timeCreated].include?(opts[:sort_by])
2497
+ raise 'Invalid value for "sort_by", must be one of name, timeCreated.'
2498
+ end
2499
+
2500
+ if opts[:lifecycle_state] && !OCI::Dns::Models::ResolverEndpointSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
2501
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Dns::Models::ResolverEndpointSummary::LIFECYCLE_STATE_ENUM.'
2502
+ end
2503
+
2504
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2505
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2506
+ end
2507
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
2508
+
2509
+ path = '/resolvers/{resolverId}/endpoints'.sub('{resolverId}', resolver_id.to_s)
2510
+ operation_signing_strategy = :standard
2511
+
2512
+ # rubocop:disable Style/NegatedIf
2513
+ # Query Params
2514
+ query_params = {}
2515
+ query_params[:name] = opts[:name] if opts[:name]
2516
+ query_params[:page] = opts[:page] if opts[:page]
2517
+ query_params[:limit] = opts[:limit] if opts[:limit]
2518
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2519
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2520
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
2521
+ query_params[:scope] = opts[:scope] if opts[:scope]
2522
+
2523
+ # Header Params
2524
+ header_params = {}
2525
+ header_params[:accept] = 'application/json'
2526
+ header_params[:'content-type'] = 'application/json'
2527
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2528
+ # rubocop:enable Style/NegatedIf
2529
+
2530
+ post_body = nil
2531
+
2532
+ # rubocop:disable Metrics/BlockLength
2533
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_resolver_endpoints') do
2534
+ @api_client.call_api(
2535
+ :GET,
2536
+ path,
2537
+ endpoint,
2538
+ header_params: header_params,
2539
+ query_params: query_params,
2540
+ operation_signing_strategy: operation_signing_strategy,
2541
+ body: post_body,
2542
+ return_type: 'Array<OCI::Dns::Models::ResolverEndpointSummary>'
2543
+ )
2544
+ end
2545
+ # rubocop:enable Metrics/BlockLength
2546
+ end
2547
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2548
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2549
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2550
+
2551
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2552
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2553
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2554
+
2555
+
2556
+ # Gets a list of all resolvers within a compartment. The collection can
2557
+ # be filtered by display name, id, or lifecycle state. It can be sorted
2558
+ # on creation time or displayName both in ASC or DESC order. Note that
2559
+ # when no lifecycleState query parameter is provided that the collection
2560
+ # does not include resolvers in the DELETED lifecycleState to be consistent
2561
+ # with other operations of the API.
2562
+ #
2563
+ # @param [String] compartment_id The OCID of the compartment the resource belongs to.
2564
+ # @param [Hash] opts the optional parameters
2565
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2566
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2567
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2568
+ # to contact Oracle about a particular request, please provide
2569
+ # the request ID.
2570
+ #
2571
+ # @option opts [String] :display_name The displayName of a resource.
2572
+ # @option opts [String] :id The OCID of a resource.
2573
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
2574
+ #
2575
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
2576
+ # (default to 50)
2577
+ # @option opts [String] :sort_order The order to sort the resources.
2578
+ # (default to DESC)
2579
+ # @option opts [String] :sort_by The field by which to sort resolvers. (default to timeCreated)
2580
+ # Allowed values are: displayName, timeCreated
2581
+ # @option opts [String] :lifecycle_state The state of a resource.
2582
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2583
+ #
2584
+ # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ResolverSummary ResolverSummary}>
2585
+ def list_resolvers(compartment_id, opts = {})
2586
+ logger.debug 'Calling operation DnsClient#list_resolvers.' if logger
2587
+
2588
+ raise "Missing the required parameter 'compartment_id' when calling list_resolvers." if compartment_id.nil?
2589
+
2590
+ if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
2591
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
2592
+ end
2593
+
2594
+ if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by])
2595
+ raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.'
2596
+ end
2597
+
2598
+ if opts[:lifecycle_state] && !OCI::Dns::Models::ResolverSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
2599
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Dns::Models::ResolverSummary::LIFECYCLE_STATE_ENUM.'
2600
+ end
2601
+
2602
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2603
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2604
+ end
2605
+
2606
+ path = '/resolvers'
2607
+ operation_signing_strategy = :standard
2608
+
2609
+ # rubocop:disable Style/NegatedIf
2610
+ # Query Params
2611
+ query_params = {}
2612
+ query_params[:compartmentId] = compartment_id
2613
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
2614
+ query_params[:id] = opts[:id] if opts[:id]
2615
+ query_params[:page] = opts[:page] if opts[:page]
2616
+ query_params[:limit] = opts[:limit] if opts[:limit]
2617
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2618
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
2619
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
2620
+ query_params[:scope] = opts[:scope] if opts[:scope]
2621
+
2622
+ # Header Params
2623
+ header_params = {}
2624
+ header_params[:accept] = 'application/json'
2625
+ header_params[:'content-type'] = 'application/json'
2626
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2627
+ # rubocop:enable Style/NegatedIf
2628
+
2629
+ post_body = nil
2630
+
2631
+ # rubocop:disable Metrics/BlockLength
2632
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_resolvers') do
2633
+ @api_client.call_api(
2634
+ :GET,
2635
+ path,
2636
+ endpoint,
2637
+ header_params: header_params,
2638
+ query_params: query_params,
2639
+ operation_signing_strategy: operation_signing_strategy,
2640
+ body: post_body,
2641
+ return_type: 'Array<OCI::Dns::Models::ResolverSummary>'
2642
+ )
2643
+ end
2644
+ # rubocop:enable Metrics/BlockLength
2645
+ end
2646
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2647
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2648
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2649
+
2650
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2651
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2652
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2653
+
2654
+
1591
2655
  # Gets a list of all steering policies in the specified compartment.
1592
2656
  #
1593
2657
  # @param [String] compartment_id The OCID of the compartment the resource belongs to.
@@ -1597,33 +2661,35 @@ module OCI
1597
2661
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1598
2662
  # to contact Oracle about a particular request, please provide
1599
2663
  # the request ID.
1600
- # (default to nil)
2664
+ #
1601
2665
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1602
2666
  # (default to 50)
1603
2667
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1604
- # (default to nil)
1605
- # @option opts [String] :id The OCID of a resource. (default to nil)
1606
- # @option opts [String] :display_name The displayName of a resource. (default to nil)
2668
+ #
2669
+ # @option opts [String] :id The OCID of a resource.
2670
+ # @option opts [String] :display_name The displayName of a resource.
1607
2671
  # @option opts [String] :display_name_contains The partial displayName of a resource. Will match any resource whose name
1608
2672
  # (case-insensitive) contains the provided value.
1609
- # (default to nil)
2673
+ #
1610
2674
  # @option opts [String] :health_check_monitor_id Search by health check monitor OCID.
1611
2675
  # Will match any resource whose health check monitor ID matches the provided value.
1612
- # (default to nil)
2676
+ #
1613
2677
  # @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1614
2678
  # all returned resources were created on or after the indicated time.
1615
- # (default to nil)
2679
+ #
1616
2680
  # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1617
2681
  # all returned resources were created before the indicated time.
1618
- # (default to nil)
2682
+ #
1619
2683
  # @option opts [String] :template Search by steering template type.
1620
2684
  # Will match any resource whose template type matches the provided value.
1621
- # (default to nil)
2685
+ #
1622
2686
  # @option opts [String] :lifecycle_state The state of a resource. (default to ACTIVE)
1623
2687
  # @option opts [String] :sort_by The field by which to sort steering policies. If unspecified, defaults to `timeCreated`. (default to timeCreated)
1624
2688
  # Allowed values are: displayName, timeCreated, template
1625
2689
  # @option opts [String] :sort_order The order to sort the resources.
1626
2690
  # (default to DESC)
2691
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2692
+ #
1627
2693
  # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::SteeringPolicySummary SteeringPolicySummary}>
1628
2694
  def list_steering_policies(compartment_id, opts = {})
1629
2695
  logger.debug 'Calling operation DnsClient#list_steering_policies.' if logger
@@ -1642,6 +2708,10 @@ module OCI
1642
2708
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1643
2709
  end
1644
2710
 
2711
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2712
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2713
+ end
2714
+
1645
2715
  path = '/steeringPolicies'
1646
2716
  operation_signing_strategy = :standard
1647
2717
 
@@ -1661,6 +2731,7 @@ module OCI
1661
2731
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1662
2732
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1663
2733
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2734
+ query_params[:scope] = opts[:scope] if opts[:scope]
1664
2735
 
1665
2736
  # Header Params
1666
2737
  header_params = {}
@@ -1704,36 +2775,38 @@ module OCI
1704
2775
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1705
2776
  # to contact Oracle about a particular request, please provide
1706
2777
  # the request ID.
1707
- # (default to nil)
2778
+ #
1708
2779
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1709
2780
  # (default to 50)
1710
2781
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1711
- # (default to nil)
1712
- # @option opts [String] :id The OCID of a resource. (default to nil)
1713
- # @option opts [String] :display_name The displayName of a resource. (default to nil)
2782
+ #
2783
+ # @option opts [String] :id The OCID of a resource.
2784
+ # @option opts [String] :display_name The displayName of a resource.
1714
2785
  # @option opts [String] :steering_policy_id Search by steering policy OCID.
1715
2786
  # Will match any resource whose steering policy ID matches the provided value.
1716
- # (default to nil)
2787
+ #
1717
2788
  # @option opts [String] :zone_id Search by zone OCID.
1718
2789
  # Will match any resource whose zone ID matches the provided value.
1719
- # (default to nil)
2790
+ #
1720
2791
  # @option opts [String] :domain Search by domain.
1721
2792
  # Will match any record whose domain (case-insensitive) equals the provided value.
1722
- # (default to nil)
2793
+ #
1723
2794
  # @option opts [String] :domain_contains Search by domain.
1724
2795
  # Will match any record whose domain (case-insensitive) contains the provided value.
1725
- # (default to nil)
2796
+ #
1726
2797
  # @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1727
2798
  # all returned resources were created on or after the indicated time.
1728
- # (default to nil)
2799
+ #
1729
2800
  # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1730
2801
  # all returned resources were created before the indicated time.
1731
- # (default to nil)
2802
+ #
1732
2803
  # @option opts [String] :lifecycle_state The state of a resource. (default to ACTIVE)
1733
2804
  # @option opts [String] :sort_by The field by which to sort steering policy attachments. If unspecified, defaults to `timeCreated`. (default to timeCreated)
1734
2805
  # Allowed values are: displayName, timeCreated, domainName
1735
2806
  # @option opts [String] :sort_order The order to sort the resources.
1736
2807
  # (default to DESC)
2808
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2809
+ #
1737
2810
  # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::SteeringPolicyAttachmentSummary SteeringPolicyAttachmentSummary}>
1738
2811
  def list_steering_policy_attachments(compartment_id, opts = {})
1739
2812
  logger.debug 'Calling operation DnsClient#list_steering_policy_attachments.' if logger
@@ -1752,6 +2825,10 @@ module OCI
1752
2825
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1753
2826
  end
1754
2827
 
2828
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2829
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2830
+ end
2831
+
1755
2832
  path = '/steeringPolicyAttachments'
1756
2833
  operation_signing_strategy = :standard
1757
2834
 
@@ -1772,6 +2849,7 @@ module OCI
1772
2849
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1773
2850
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1774
2851
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2852
+ query_params[:scope] = opts[:scope] if opts[:scope]
1775
2853
 
1776
2854
  # Header Params
1777
2855
  header_params = {}
@@ -1815,18 +2893,20 @@ module OCI
1815
2893
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1816
2894
  # to contact Oracle about a particular request, please provide
1817
2895
  # the request ID.
1818
- # (default to nil)
2896
+ #
1819
2897
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1820
2898
  # (default to 50)
1821
2899
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1822
- # (default to nil)
1823
- # @option opts [String] :id The OCID of a resource. (default to nil)
1824
- # @option opts [String] :name The name of a resource. (default to nil)
1825
- # @option opts [String] :lifecycle_state The state of a resource. (default to nil)
2900
+ #
2901
+ # @option opts [String] :id The OCID of a resource.
2902
+ # @option opts [String] :name The name of a resource.
2903
+ # @option opts [String] :lifecycle_state The state of a resource.
1826
2904
  # @option opts [String] :sort_by The field by which to sort TSIG keys. If unspecified, defaults to `timeCreated`. (default to timeCreated)
1827
2905
  # Allowed values are: name, timeCreated
1828
2906
  # @option opts [String] :sort_order The order to sort the resources.
1829
2907
  # (default to DESC)
2908
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
2909
+ #
1830
2910
  # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::TsigKeySummary TsigKeySummary}>
1831
2911
  def list_tsig_keys(compartment_id, opts = {})
1832
2912
  logger.debug 'Calling operation DnsClient#list_tsig_keys.' if logger
@@ -1845,6 +2925,10 @@ module OCI
1845
2925
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1846
2926
  end
1847
2927
 
2928
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
2929
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
2930
+ end
2931
+
1848
2932
  path = '/tsigKeys'
1849
2933
  operation_signing_strategy = :standard
1850
2934
 
@@ -1859,6 +2943,7 @@ module OCI
1859
2943
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1860
2944
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1861
2945
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
2946
+ query_params[:scope] = opts[:scope] if opts[:scope]
1862
2947
 
1863
2948
  # Header Params
1864
2949
  header_params = {}
@@ -1893,8 +2978,107 @@ module OCI
1893
2978
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1894
2979
 
1895
2980
 
2981
+ # Gets a list of all views within a compartment. The collection can
2982
+ # be filtered by display name, id, or lifecycle state. It can be sorted
2983
+ # on creation time or displayName both in ASC or DESC order. Note that
2984
+ # when no lifecycleState query parameter is provided that the collection
2985
+ # does not include views in the DELETED lifecycleState to be consistent
2986
+ # with other operations of the API.
2987
+ #
2988
+ # @param [String] compartment_id The OCID of the compartment the resource belongs to.
2989
+ # @param [Hash] opts the optional parameters
2990
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2991
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2992
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2993
+ # to contact Oracle about a particular request, please provide
2994
+ # the request ID.
2995
+ #
2996
+ # @option opts [String] :display_name The displayName of a resource.
2997
+ # @option opts [String] :id The OCID of a resource.
2998
+ # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
2999
+ #
3000
+ # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
3001
+ # (default to 50)
3002
+ # @option opts [String] :sort_order The order to sort the resources.
3003
+ # (default to DESC)
3004
+ # @option opts [String] :sort_by The field by which to sort views. (default to timeCreated)
3005
+ # Allowed values are: displayName, timeCreated
3006
+ # @option opts [String] :lifecycle_state The state of a resource.
3007
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3008
+ #
3009
+ # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ViewSummary ViewSummary}>
3010
+ def list_views(compartment_id, opts = {})
3011
+ logger.debug 'Calling operation DnsClient#list_views.' if logger
3012
+
3013
+ raise "Missing the required parameter 'compartment_id' when calling list_views." if compartment_id.nil?
3014
+
3015
+ if opts[:sort_order] && !OCI::Dns::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
3016
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
3017
+ end
3018
+
3019
+ if opts[:sort_by] && !%w[displayName timeCreated].include?(opts[:sort_by])
3020
+ raise 'Invalid value for "sort_by", must be one of displayName, timeCreated.'
3021
+ end
3022
+
3023
+ if opts[:lifecycle_state] && !OCI::Dns::Models::ViewSummary::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
3024
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Dns::Models::ViewSummary::LIFECYCLE_STATE_ENUM.'
3025
+ end
3026
+
3027
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3028
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3029
+ end
3030
+
3031
+ path = '/views'
3032
+ operation_signing_strategy = :standard
3033
+
3034
+ # rubocop:disable Style/NegatedIf
3035
+ # Query Params
3036
+ query_params = {}
3037
+ query_params[:compartmentId] = compartment_id
3038
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
3039
+ query_params[:id] = opts[:id] if opts[:id]
3040
+ query_params[:page] = opts[:page] if opts[:page]
3041
+ query_params[:limit] = opts[:limit] if opts[:limit]
3042
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3043
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
3044
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
3045
+ query_params[:scope] = opts[:scope] if opts[:scope]
3046
+
3047
+ # Header Params
3048
+ header_params = {}
3049
+ header_params[:accept] = 'application/json'
3050
+ header_params[:'content-type'] = 'application/json'
3051
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3052
+ # rubocop:enable Style/NegatedIf
3053
+
3054
+ post_body = nil
3055
+
3056
+ # rubocop:disable Metrics/BlockLength
3057
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#list_views') do
3058
+ @api_client.call_api(
3059
+ :GET,
3060
+ path,
3061
+ endpoint,
3062
+ header_params: header_params,
3063
+ query_params: query_params,
3064
+ operation_signing_strategy: operation_signing_strategy,
3065
+ body: post_body,
3066
+ return_type: 'Array<OCI::Dns::Models::ViewSummary>'
3067
+ )
3068
+ end
3069
+ # rubocop:enable Metrics/BlockLength
3070
+ end
3071
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3072
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3073
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3074
+
3075
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3076
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3077
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3078
+
3079
+
1896
3080
  # Gets a list of all zones in the specified compartment. The collection
1897
- # can be filtered by name, time created, and zone type.
3081
+ # can be filtered by name, time created, scope, associated view, and zone type.
1898
3082
  #
1899
3083
  # @param [String] compartment_id The OCID of the compartment the resource belongs to.
1900
3084
  # @param [Hash] opts the optional parameters
@@ -1903,33 +3087,36 @@ module OCI
1903
3087
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
1904
3088
  # to contact Oracle about a particular request, please provide
1905
3089
  # the request ID.
1906
- # (default to nil)
3090
+ #
1907
3091
  # @option opts [Integer] :limit The maximum number of items to return in a page of the collection.
1908
3092
  # (default to 50)
1909
3093
  # @option opts [String] :page The value of the `opc-next-page` response header from the previous \"List\" call.
1910
- # (default to nil)
3094
+ #
1911
3095
  # @option opts [String] :name A case-sensitive filter for zone names.
1912
3096
  # Will match any zone with a name that equals the provided value.
1913
- # (default to nil)
3097
+ #
1914
3098
  # @option opts [String] :name_contains Search by zone name.
1915
3099
  # Will match any zone whose name (case-insensitive) contains the provided value.
1916
- # (default to nil)
3100
+ #
1917
3101
  # @option opts [String] :zone_type Search by zone type, `PRIMARY` or `SECONDARY`.
1918
3102
  # Will match any zone whose type equals the provided value.
1919
- # (default to nil)
3103
+ #
1920
3104
  # Allowed values are: PRIMARY, SECONDARY
1921
3105
  # @option opts [DateTime] :time_created_greater_than_or_equal_to An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1922
3106
  # all returned resources were created on or after the indicated time.
1923
- # (default to nil)
3107
+ #
1924
3108
  # @option opts [DateTime] :time_created_less_than An [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) timestamp that states
1925
3109
  # all returned resources were created before the indicated time.
1926
- # (default to nil)
3110
+ #
1927
3111
  # @option opts [String] :lifecycle_state The state of a resource. (default to ACTIVE)
1928
3112
  # Allowed values are: ACTIVE, CREATING, DELETED, DELETING, FAILED
1929
3113
  # @option opts [String] :sort_by The field by which to sort zones. (default to timeCreated)
1930
3114
  # Allowed values are: name, zoneType, timeCreated
1931
3115
  # @option opts [String] :sort_order The order to sort the resources.
1932
3116
  # (default to DESC)
3117
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3118
+ #
3119
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
1933
3120
  # @return [Response] A Response object with data of type Array<{OCI::Dns::Models::ZoneSummary ZoneSummary}>
1934
3121
  def list_zones(compartment_id, opts = {})
1935
3122
  logger.debug 'Calling operation DnsClient#list_zones.' if logger
@@ -1952,6 +3139,10 @@ module OCI
1952
3139
  raise 'Invalid value for "sort_order", must be one of the values in OCI::Dns::Models::SORT_ORDER_ENUM.'
1953
3140
  end
1954
3141
 
3142
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3143
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3144
+ end
3145
+
1955
3146
  path = '/zones'
1956
3147
  operation_signing_strategy = :standard
1957
3148
 
@@ -1969,6 +3160,8 @@ module OCI
1969
3160
  query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1970
3161
  query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1971
3162
  query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
3163
+ query_params[:scope] = opts[:scope] if opts[:scope]
3164
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
1972
3165
 
1973
3166
  # Header Params
1974
3167
  header_params = {}
@@ -2019,18 +3212,21 @@ module OCI
2019
3212
  # when the field-value is `*`, or having a current representation of the
2020
3213
  # target resource that has an entity-tag matching a member of the list of
2021
3214
  # entity-tags provided in the field-value.
2022
- # (default to nil)
3215
+ #
2023
3216
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2024
3217
  # conditional on the selected representation's last modification date being
2025
3218
  # earlier than or equal to the date provided in the field-value. This
2026
3219
  # field accomplishes the same purpose as If-Match for cases where the user
2027
3220
  # agent does not have an entity-tag for the representation.
2028
- # (default to nil)
3221
+ #
2029
3222
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2030
3223
  # to contact Oracle about a particular request, please provide
2031
3224
  # the request ID.
2032
- # (default to nil)
2033
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
3225
+ #
3226
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3227
+ #
3228
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
3229
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2034
3230
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2035
3231
  def patch_domain_records(zone_name_or_id, domain, patch_domain_records_details, opts = {})
2036
3232
  logger.debug 'Calling operation DnsClient#patch_domain_records.' if logger
@@ -2038,6 +3234,10 @@ module OCI
2038
3234
  raise "Missing the required parameter 'zone_name_or_id' when calling patch_domain_records." if zone_name_or_id.nil?
2039
3235
  raise "Missing the required parameter 'domain' when calling patch_domain_records." if domain.nil?
2040
3236
  raise "Missing the required parameter 'patch_domain_records_details' when calling patch_domain_records." if patch_domain_records_details.nil?
3237
+
3238
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3239
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3240
+ end
2041
3241
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2042
3242
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
2043
3243
 
@@ -2047,6 +3247,8 @@ module OCI
2047
3247
  # rubocop:disable Style/NegatedIf
2048
3248
  # Query Params
2049
3249
  query_params = {}
3250
+ query_params[:scope] = opts[:scope] if opts[:scope]
3251
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2050
3252
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2051
3253
 
2052
3254
  # Header Params
@@ -2097,18 +3299,21 @@ module OCI
2097
3299
  # when the field-value is `*`, or having a current representation of the
2098
3300
  # target resource that has an entity-tag matching a member of the list of
2099
3301
  # entity-tags provided in the field-value.
2100
- # (default to nil)
3302
+ #
2101
3303
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2102
3304
  # conditional on the selected representation's last modification date being
2103
3305
  # earlier than or equal to the date provided in the field-value. This
2104
3306
  # field accomplishes the same purpose as If-Match for cases where the user
2105
3307
  # agent does not have an entity-tag for the representation.
2106
- # (default to nil)
3308
+ #
2107
3309
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2108
3310
  # to contact Oracle about a particular request, please provide
2109
3311
  # the request ID.
2110
- # (default to nil)
2111
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
3312
+ #
3313
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3314
+ #
3315
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
3316
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2112
3317
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2113
3318
  def patch_rr_set(zone_name_or_id, domain, rtype, patch_rr_set_details, opts = {})
2114
3319
  logger.debug 'Calling operation DnsClient#patch_rr_set.' if logger
@@ -2117,6 +3322,10 @@ module OCI
2117
3322
  raise "Missing the required parameter 'domain' when calling patch_rr_set." if domain.nil?
2118
3323
  raise "Missing the required parameter 'rtype' when calling patch_rr_set." if rtype.nil?
2119
3324
  raise "Missing the required parameter 'patch_rr_set_details' when calling patch_rr_set." if patch_rr_set_details.nil?
3325
+
3326
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3327
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3328
+ end
2120
3329
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2121
3330
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
2122
3331
  raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
@@ -2127,6 +3336,8 @@ module OCI
2127
3336
  # rubocop:disable Style/NegatedIf
2128
3337
  # Query Params
2129
3338
  query_params = {}
3339
+ query_params[:scope] = opts[:scope] if opts[:scope]
3340
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2130
3341
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2131
3342
 
2132
3343
  # Header Params
@@ -2180,24 +3391,31 @@ module OCI
2180
3391
  # when the field-value is `*`, or having a current representation of the
2181
3392
  # target resource that has an entity-tag matching a member of the list of
2182
3393
  # entity-tags provided in the field-value.
2183
- # (default to nil)
3394
+ #
2184
3395
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2185
3396
  # conditional on the selected representation's last modification date being
2186
3397
  # earlier than or equal to the date provided in the field-value. This
2187
3398
  # field accomplishes the same purpose as If-Match for cases where the user
2188
3399
  # agent does not have an entity-tag for the representation.
2189
- # (default to nil)
3400
+ #
2190
3401
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2191
3402
  # to contact Oracle about a particular request, please provide
2192
3403
  # the request ID.
2193
- # (default to nil)
2194
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
3404
+ #
3405
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3406
+ #
3407
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
3408
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2195
3409
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2196
3410
  def patch_zone_records(zone_name_or_id, patch_zone_records_details, opts = {})
2197
3411
  logger.debug 'Calling operation DnsClient#patch_zone_records.' if logger
2198
3412
 
2199
3413
  raise "Missing the required parameter 'zone_name_or_id' when calling patch_zone_records." if zone_name_or_id.nil?
2200
3414
  raise "Missing the required parameter 'patch_zone_records_details' when calling patch_zone_records." if patch_zone_records_details.nil?
3415
+
3416
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3417
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3418
+ end
2201
3419
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2202
3420
 
2203
3421
  path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -2206,6 +3424,8 @@ module OCI
2206
3424
  # rubocop:disable Style/NegatedIf
2207
3425
  # Query Params
2208
3426
  query_params = {}
3427
+ query_params[:scope] = opts[:scope] if opts[:scope]
3428
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2209
3429
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2210
3430
 
2211
3431
  # Header Params
@@ -2261,18 +3481,21 @@ module OCI
2261
3481
  # when the field-value is `*`, or having a current representation of the
2262
3482
  # target resource that has an entity-tag matching a member of the list of
2263
3483
  # entity-tags provided in the field-value.
2264
- # (default to nil)
3484
+ #
2265
3485
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2266
3486
  # conditional on the selected representation's last modification date being
2267
3487
  # earlier than or equal to the date provided in the field-value. This
2268
3488
  # field accomplishes the same purpose as If-Match for cases where the user
2269
3489
  # agent does not have an entity-tag for the representation.
2270
- # (default to nil)
3490
+ #
2271
3491
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2272
3492
  # to contact Oracle about a particular request, please provide
2273
3493
  # the request ID.
2274
- # (default to nil)
2275
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
3494
+ #
3495
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3496
+ #
3497
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
3498
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2276
3499
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2277
3500
  def update_domain_records(zone_name_or_id, domain, update_domain_records_details, opts = {})
2278
3501
  logger.debug 'Calling operation DnsClient#update_domain_records.' if logger
@@ -2280,6 +3503,10 @@ module OCI
2280
3503
  raise "Missing the required parameter 'zone_name_or_id' when calling update_domain_records." if zone_name_or_id.nil?
2281
3504
  raise "Missing the required parameter 'domain' when calling update_domain_records." if domain.nil?
2282
3505
  raise "Missing the required parameter 'update_domain_records_details' when calling update_domain_records." if update_domain_records_details.nil?
3506
+
3507
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3508
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3509
+ end
2283
3510
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2284
3511
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
2285
3512
 
@@ -2289,6 +3516,8 @@ module OCI
2289
3516
  # rubocop:disable Style/NegatedIf
2290
3517
  # Query Params
2291
3518
  query_params = {}
3519
+ query_params[:scope] = opts[:scope] if opts[:scope]
3520
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2292
3521
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2293
3522
 
2294
3523
  # Header Params
@@ -2326,6 +3555,169 @@ module OCI
2326
3555
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2327
3556
 
2328
3557
 
3558
+ # Updates the specified resolver with your new information.
3559
+ #
3560
+ # @param [String] resolver_id The OCID of the target resolver.
3561
+ # @param [OCI::Dns::Models::UpdateResolverDetails] update_resolver_details New data for the resolver.
3562
+ # @param [Hash] opts the optional parameters
3563
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3564
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3565
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
3566
+ # existence of at least one current representation of the target resource,
3567
+ # when the field-value is `*`, or having a current representation of the
3568
+ # target resource that has an entity-tag matching a member of the list of
3569
+ # entity-tags provided in the field-value.
3570
+ #
3571
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
3572
+ # conditional on the selected representation's last modification date being
3573
+ # earlier than or equal to the date provided in the field-value. This
3574
+ # field accomplishes the same purpose as If-Match for cases where the user
3575
+ # agent does not have an entity-tag for the representation.
3576
+ #
3577
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
3578
+ # to contact Oracle about a particular request, please provide
3579
+ # the request ID.
3580
+ #
3581
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3582
+ #
3583
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::Resolver Resolver}
3584
+ def update_resolver(resolver_id, update_resolver_details, opts = {})
3585
+ logger.debug 'Calling operation DnsClient#update_resolver.' if logger
3586
+
3587
+ raise "Missing the required parameter 'resolver_id' when calling update_resolver." if resolver_id.nil?
3588
+ raise "Missing the required parameter 'update_resolver_details' when calling update_resolver." if update_resolver_details.nil?
3589
+
3590
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3591
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3592
+ end
3593
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
3594
+
3595
+ path = '/resolvers/{resolverId}'.sub('{resolverId}', resolver_id.to_s)
3596
+ operation_signing_strategy = :standard
3597
+
3598
+ # rubocop:disable Style/NegatedIf
3599
+ # Query Params
3600
+ query_params = {}
3601
+ query_params[:scope] = opts[:scope] if opts[:scope]
3602
+
3603
+ # Header Params
3604
+ header_params = {}
3605
+ header_params[:accept] = 'application/json'
3606
+ header_params[:'content-type'] = 'application/json'
3607
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3608
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
3609
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3610
+ # rubocop:enable Style/NegatedIf
3611
+
3612
+ post_body = @api_client.object_to_http_body(update_resolver_details)
3613
+
3614
+ # rubocop:disable Metrics/BlockLength
3615
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_resolver') do
3616
+ @api_client.call_api(
3617
+ :PUT,
3618
+ path,
3619
+ endpoint,
3620
+ header_params: header_params,
3621
+ query_params: query_params,
3622
+ operation_signing_strategy: operation_signing_strategy,
3623
+ body: post_body,
3624
+ return_type: 'OCI::Dns::Models::Resolver'
3625
+ )
3626
+ end
3627
+ # rubocop:enable Metrics/BlockLength
3628
+ end
3629
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3630
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3631
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3632
+
3633
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3634
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3635
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3636
+
3637
+
3638
+ # Updates the specified resolver endpoint with your new information.
3639
+ #
3640
+ # @param [String] resolver_id The OCID of the target resolver.
3641
+ # @param [String] resolver_endpoint_name The name of the target resolver endpoint.
3642
+ # @param [OCI::Dns::Models::UpdateResolverEndpointDetails] update_resolver_endpoint_details New data for the resolver endpoint.
3643
+ # @param [Hash] opts the optional parameters
3644
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
3645
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
3646
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
3647
+ # existence of at least one current representation of the target resource,
3648
+ # when the field-value is `*`, or having a current representation of the
3649
+ # target resource that has an entity-tag matching a member of the list of
3650
+ # entity-tags provided in the field-value.
3651
+ #
3652
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
3653
+ # conditional on the selected representation's last modification date being
3654
+ # earlier than or equal to the date provided in the field-value. This
3655
+ # field accomplishes the same purpose as If-Match for cases where the user
3656
+ # agent does not have an entity-tag for the representation.
3657
+ #
3658
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
3659
+ # to contact Oracle about a particular request, please provide
3660
+ # the request ID.
3661
+ #
3662
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3663
+ #
3664
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::ResolverEndpoint ResolverEndpoint}
3665
+ def update_resolver_endpoint(resolver_id, resolver_endpoint_name, update_resolver_endpoint_details, opts = {})
3666
+ logger.debug 'Calling operation DnsClient#update_resolver_endpoint.' if logger
3667
+
3668
+ raise "Missing the required parameter 'resolver_id' when calling update_resolver_endpoint." if resolver_id.nil?
3669
+ raise "Missing the required parameter 'resolver_endpoint_name' when calling update_resolver_endpoint." if resolver_endpoint_name.nil?
3670
+ raise "Missing the required parameter 'update_resolver_endpoint_details' when calling update_resolver_endpoint." if update_resolver_endpoint_details.nil?
3671
+
3672
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3673
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3674
+ end
3675
+ raise "Parameter value for 'resolver_id' must not be blank" if OCI::Internal::Util.blank_string?(resolver_id)
3676
+ raise "Parameter value for 'resolver_endpoint_name' must not be blank" if OCI::Internal::Util.blank_string?(resolver_endpoint_name)
3677
+
3678
+ path = '/resolvers/{resolverId}/endpoints/{resolverEndpointName}'.sub('{resolverId}', resolver_id.to_s).sub('{resolverEndpointName}', resolver_endpoint_name.to_s)
3679
+ operation_signing_strategy = :standard
3680
+
3681
+ # rubocop:disable Style/NegatedIf
3682
+ # Query Params
3683
+ query_params = {}
3684
+ query_params[:scope] = opts[:scope] if opts[:scope]
3685
+
3686
+ # Header Params
3687
+ header_params = {}
3688
+ header_params[:accept] = 'application/json'
3689
+ header_params[:'content-type'] = 'application/json'
3690
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
3691
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
3692
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
3693
+ # rubocop:enable Style/NegatedIf
3694
+
3695
+ post_body = @api_client.object_to_http_body(update_resolver_endpoint_details)
3696
+
3697
+ # rubocop:disable Metrics/BlockLength
3698
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_resolver_endpoint') do
3699
+ @api_client.call_api(
3700
+ :PUT,
3701
+ path,
3702
+ endpoint,
3703
+ header_params: header_params,
3704
+ query_params: query_params,
3705
+ operation_signing_strategy: operation_signing_strategy,
3706
+ body: post_body,
3707
+ return_type: 'OCI::Dns::Models::ResolverEndpoint'
3708
+ )
3709
+ end
3710
+ # rubocop:enable Metrics/BlockLength
3711
+ end
3712
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3713
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
3714
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
3715
+
3716
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
3717
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
3718
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
3719
+
3720
+
2329
3721
  # Replaces records in the specified RRSet.
2330
3722
  # @param [String] zone_name_or_id The name or OCID of the target zone.
2331
3723
  # @param [String] domain The target fully-qualified domain name (FQDN) within the target zone.
@@ -2339,18 +3731,21 @@ module OCI
2339
3731
  # when the field-value is `*`, or having a current representation of the
2340
3732
  # target resource that has an entity-tag matching a member of the list of
2341
3733
  # entity-tags provided in the field-value.
2342
- # (default to nil)
3734
+ #
2343
3735
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2344
3736
  # conditional on the selected representation's last modification date being
2345
3737
  # earlier than or equal to the date provided in the field-value. This
2346
3738
  # field accomplishes the same purpose as If-Match for cases where the user
2347
3739
  # agent does not have an entity-tag for the representation.
2348
- # (default to nil)
3740
+ #
2349
3741
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2350
3742
  # to contact Oracle about a particular request, please provide
2351
3743
  # the request ID.
2352
- # (default to nil)
2353
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
3744
+ #
3745
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3746
+ #
3747
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
3748
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2354
3749
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2355
3750
  def update_rr_set(zone_name_or_id, domain, rtype, update_rr_set_details, opts = {})
2356
3751
  logger.debug 'Calling operation DnsClient#update_rr_set.' if logger
@@ -2359,6 +3754,10 @@ module OCI
2359
3754
  raise "Missing the required parameter 'domain' when calling update_rr_set." if domain.nil?
2360
3755
  raise "Missing the required parameter 'rtype' when calling update_rr_set." if rtype.nil?
2361
3756
  raise "Missing the required parameter 'update_rr_set_details' when calling update_rr_set." if update_rr_set_details.nil?
3757
+
3758
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3759
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3760
+ end
2362
3761
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2363
3762
  raise "Parameter value for 'domain' must not be blank" if OCI::Internal::Util.blank_string?(domain)
2364
3763
  raise "Parameter value for 'rtype' must not be blank" if OCI::Internal::Util.blank_string?(rtype)
@@ -2369,6 +3768,8 @@ module OCI
2369
3768
  # rubocop:disable Style/NegatedIf
2370
3769
  # Query Params
2371
3770
  query_params = {}
3771
+ query_params[:scope] = opts[:scope] if opts[:scope]
3772
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2372
3773
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2373
3774
 
2374
3775
  # Header Params
@@ -2418,23 +3819,29 @@ module OCI
2418
3819
  # when the field-value is `*`, or having a current representation of the
2419
3820
  # target resource that has an entity-tag matching a member of the list of
2420
3821
  # entity-tags provided in the field-value.
2421
- # (default to nil)
3822
+ #
2422
3823
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2423
3824
  # conditional on the selected representation's last modification date being
2424
3825
  # earlier than or equal to the date provided in the field-value. This
2425
3826
  # field accomplishes the same purpose as If-Match for cases where the user
2426
3827
  # agent does not have an entity-tag for the representation.
2427
- # (default to nil)
3828
+ #
2428
3829
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2429
3830
  # to contact Oracle about a particular request, please provide
2430
3831
  # the request ID.
2431
- # (default to nil)
3832
+ #
3833
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3834
+ #
2432
3835
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicy SteeringPolicy}
2433
3836
  def update_steering_policy(steering_policy_id, update_steering_policy_details, opts = {})
2434
3837
  logger.debug 'Calling operation DnsClient#update_steering_policy.' if logger
2435
3838
 
2436
3839
  raise "Missing the required parameter 'steering_policy_id' when calling update_steering_policy." if steering_policy_id.nil?
2437
3840
  raise "Missing the required parameter 'update_steering_policy_details' when calling update_steering_policy." if update_steering_policy_details.nil?
3841
+
3842
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3843
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3844
+ end
2438
3845
  raise "Parameter value for 'steering_policy_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_id)
2439
3846
 
2440
3847
  path = '/steeringPolicies/{steeringPolicyId}'.sub('{steeringPolicyId}', steering_policy_id.to_s)
@@ -2443,6 +3850,7 @@ module OCI
2443
3850
  # rubocop:disable Style/NegatedIf
2444
3851
  # Query Params
2445
3852
  query_params = {}
3853
+ query_params[:scope] = opts[:scope] if opts[:scope]
2446
3854
 
2447
3855
  # Header Params
2448
3856
  header_params = {}
@@ -2491,23 +3899,29 @@ module OCI
2491
3899
  # when the field-value is `*`, or having a current representation of the
2492
3900
  # target resource that has an entity-tag matching a member of the list of
2493
3901
  # entity-tags provided in the field-value.
2494
- # (default to nil)
3902
+ #
2495
3903
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2496
3904
  # conditional on the selected representation's last modification date being
2497
3905
  # earlier than or equal to the date provided in the field-value. This
2498
3906
  # field accomplishes the same purpose as If-Match for cases where the user
2499
3907
  # agent does not have an entity-tag for the representation.
2500
- # (default to nil)
3908
+ #
2501
3909
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2502
3910
  # to contact Oracle about a particular request, please provide
2503
3911
  # the request ID.
2504
- # (default to nil)
3912
+ #
3913
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3914
+ #
2505
3915
  # @return [Response] A Response object with data of type {OCI::Dns::Models::SteeringPolicyAttachment SteeringPolicyAttachment}
2506
3916
  def update_steering_policy_attachment(steering_policy_attachment_id, update_steering_policy_attachment_details, opts = {})
2507
3917
  logger.debug 'Calling operation DnsClient#update_steering_policy_attachment.' if logger
2508
3918
 
2509
3919
  raise "Missing the required parameter 'steering_policy_attachment_id' when calling update_steering_policy_attachment." if steering_policy_attachment_id.nil?
2510
3920
  raise "Missing the required parameter 'update_steering_policy_attachment_details' when calling update_steering_policy_attachment." if update_steering_policy_attachment_details.nil?
3921
+
3922
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
3923
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
3924
+ end
2511
3925
  raise "Parameter value for 'steering_policy_attachment_id' must not be blank" if OCI::Internal::Util.blank_string?(steering_policy_attachment_id)
2512
3926
 
2513
3927
  path = '/steeringPolicyAttachments/{steeringPolicyAttachmentId}'.sub('{steeringPolicyAttachmentId}', steering_policy_attachment_id.to_s)
@@ -2516,6 +3930,7 @@ module OCI
2516
3930
  # rubocop:disable Style/NegatedIf
2517
3931
  # Query Params
2518
3932
  query_params = {}
3933
+ query_params[:scope] = opts[:scope] if opts[:scope]
2519
3934
 
2520
3935
  # Header Params
2521
3936
  header_params = {}
@@ -2564,23 +3979,29 @@ module OCI
2564
3979
  # when the field-value is `*`, or having a current representation of the
2565
3980
  # target resource that has an entity-tag matching a member of the list of
2566
3981
  # entity-tags provided in the field-value.
2567
- # (default to nil)
3982
+ #
2568
3983
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2569
3984
  # conditional on the selected representation's last modification date being
2570
3985
  # earlier than or equal to the date provided in the field-value. This
2571
3986
  # field accomplishes the same purpose as If-Match for cases where the user
2572
3987
  # agent does not have an entity-tag for the representation.
2573
- # (default to nil)
3988
+ #
2574
3989
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2575
3990
  # to contact Oracle about a particular request, please provide
2576
3991
  # the request ID.
2577
- # (default to nil)
3992
+ #
3993
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
3994
+ #
2578
3995
  # @return [Response] A Response object with data of type {OCI::Dns::Models::TsigKey TsigKey}
2579
3996
  def update_tsig_key(tsig_key_id, update_tsig_key_details, opts = {})
2580
3997
  logger.debug 'Calling operation DnsClient#update_tsig_key.' if logger
2581
3998
 
2582
3999
  raise "Missing the required parameter 'tsig_key_id' when calling update_tsig_key." if tsig_key_id.nil?
2583
4000
  raise "Missing the required parameter 'update_tsig_key_details' when calling update_tsig_key." if update_tsig_key_details.nil?
4001
+
4002
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
4003
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
4004
+ end
2584
4005
  raise "Parameter value for 'tsig_key_id' must not be blank" if OCI::Internal::Util.blank_string?(tsig_key_id)
2585
4006
 
2586
4007
  path = '/tsigKeys/{tsigKeyId}'.sub('{tsigKeyId}', tsig_key_id.to_s)
@@ -2589,6 +4010,7 @@ module OCI
2589
4010
  # rubocop:disable Style/NegatedIf
2590
4011
  # Query Params
2591
4012
  query_params = {}
4013
+ query_params[:scope] = opts[:scope] if opts[:scope]
2592
4014
 
2593
4015
  # Header Params
2594
4016
  header_params = {}
@@ -2625,6 +4047,86 @@ module OCI
2625
4047
  # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2626
4048
 
2627
4049
 
4050
+ # Updates the specified view with your new information.
4051
+ #
4052
+ # @param [String] view_id The OCID of the target view.
4053
+ # @param [OCI::Dns::Models::UpdateViewDetails] update_view_details New data for the view.
4054
+ # @param [Hash] opts the optional parameters
4055
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
4056
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
4057
+ # @option opts [String] :if_match The `If-Match` header field makes the request method conditional on the
4058
+ # existence of at least one current representation of the target resource,
4059
+ # when the field-value is `*`, or having a current representation of the
4060
+ # target resource that has an entity-tag matching a member of the list of
4061
+ # entity-tags provided in the field-value.
4062
+ #
4063
+ # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
4064
+ # conditional on the selected representation's last modification date being
4065
+ # earlier than or equal to the date provided in the field-value. This
4066
+ # field accomplishes the same purpose as If-Match for cases where the user
4067
+ # agent does not have an entity-tag for the representation.
4068
+ #
4069
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
4070
+ # to contact Oracle about a particular request, please provide
4071
+ # the request ID.
4072
+ #
4073
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
4074
+ #
4075
+ # @return [Response] A Response object with data of type {OCI::Dns::Models::View View}
4076
+ def update_view(view_id, update_view_details, opts = {})
4077
+ logger.debug 'Calling operation DnsClient#update_view.' if logger
4078
+
4079
+ raise "Missing the required parameter 'view_id' when calling update_view." if view_id.nil?
4080
+ raise "Missing the required parameter 'update_view_details' when calling update_view." if update_view_details.nil?
4081
+
4082
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
4083
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
4084
+ end
4085
+ raise "Parameter value for 'view_id' must not be blank" if OCI::Internal::Util.blank_string?(view_id)
4086
+
4087
+ path = '/views/{viewId}'.sub('{viewId}', view_id.to_s)
4088
+ operation_signing_strategy = :standard
4089
+
4090
+ # rubocop:disable Style/NegatedIf
4091
+ # Query Params
4092
+ query_params = {}
4093
+ query_params[:scope] = opts[:scope] if opts[:scope]
4094
+
4095
+ # Header Params
4096
+ header_params = {}
4097
+ header_params[:accept] = 'application/json'
4098
+ header_params[:'content-type'] = 'application/json'
4099
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
4100
+ header_params[:'if-unmodified-since'] = opts[:if_unmodified_since] if opts[:if_unmodified_since]
4101
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
4102
+ # rubocop:enable Style/NegatedIf
4103
+
4104
+ post_body = @api_client.object_to_http_body(update_view_details)
4105
+
4106
+ # rubocop:disable Metrics/BlockLength
4107
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DnsClient#update_view') do
4108
+ @api_client.call_api(
4109
+ :PUT,
4110
+ path,
4111
+ endpoint,
4112
+ header_params: header_params,
4113
+ query_params: query_params,
4114
+ operation_signing_strategy: operation_signing_strategy,
4115
+ body: post_body,
4116
+ return_type: 'OCI::Dns::Models::View'
4117
+ )
4118
+ end
4119
+ # rubocop:enable Metrics/BlockLength
4120
+ end
4121
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
4122
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
4123
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
4124
+
4125
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
4126
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
4127
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
4128
+
4129
+
2628
4130
  # Updates the specified secondary zone with your new external master
2629
4131
  # server information. For more information about secondary zone, see
2630
4132
  # [Manage DNS Service Zone](https://docs.cloud.oracle.com/iaas/Content/DNS/Tasks/managingdnszones.htm).
@@ -2639,24 +4141,31 @@ module OCI
2639
4141
  # when the field-value is `*`, or having a current representation of the
2640
4142
  # target resource that has an entity-tag matching a member of the list of
2641
4143
  # entity-tags provided in the field-value.
2642
- # (default to nil)
4144
+ #
2643
4145
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2644
4146
  # conditional on the selected representation's last modification date being
2645
4147
  # earlier than or equal to the date provided in the field-value. This
2646
4148
  # field accomplishes the same purpose as If-Match for cases where the user
2647
4149
  # agent does not have an entity-tag for the representation.
2648
- # (default to nil)
4150
+ #
2649
4151
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2650
4152
  # to contact Oracle about a particular request, please provide
2651
4153
  # the request ID.
2652
- # (default to nil)
2653
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
4154
+ #
4155
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
4156
+ #
4157
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
4158
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2654
4159
  # @return [Response] A Response object with data of type {OCI::Dns::Models::Zone Zone}
2655
4160
  def update_zone(zone_name_or_id, update_zone_details, opts = {})
2656
4161
  logger.debug 'Calling operation DnsClient#update_zone.' if logger
2657
4162
 
2658
4163
  raise "Missing the required parameter 'zone_name_or_id' when calling update_zone." if zone_name_or_id.nil?
2659
4164
  raise "Missing the required parameter 'update_zone_details' when calling update_zone." if update_zone_details.nil?
4165
+
4166
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
4167
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
4168
+ end
2660
4169
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2661
4170
 
2662
4171
  path = '/zones/{zoneNameOrId}'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -2665,6 +4174,8 @@ module OCI
2665
4174
  # rubocop:disable Style/NegatedIf
2666
4175
  # Query Params
2667
4176
  query_params = {}
4177
+ query_params[:scope] = opts[:scope] if opts[:scope]
4178
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2668
4179
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2669
4180
 
2670
4181
  # Header Params
@@ -2718,24 +4229,31 @@ module OCI
2718
4229
  # when the field-value is `*`, or having a current representation of the
2719
4230
  # target resource that has an entity-tag matching a member of the list of
2720
4231
  # entity-tags provided in the field-value.
2721
- # (default to nil)
4232
+ #
2722
4233
  # @option opts [String] :if_unmodified_since The `If-Unmodified-Since` header field makes the request method
2723
4234
  # conditional on the selected representation's last modification date being
2724
4235
  # earlier than or equal to the date provided in the field-value. This
2725
4236
  # field accomplishes the same purpose as If-Match for cases where the user
2726
4237
  # agent does not have an entity-tag for the representation.
2727
- # (default to nil)
4238
+ #
2728
4239
  # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need
2729
4240
  # to contact Oracle about a particular request, please provide
2730
4241
  # the request ID.
2731
- # (default to nil)
2732
- # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to. (default to nil)
4242
+ #
4243
+ # @option opts [String] :scope Specifies to operate only on resources that have a matching DNS scope.
4244
+ #
4245
+ # @option opts [String] :view_id The OCID of the view the resource is associated with.
4246
+ # @option opts [String] :compartment_id The OCID of the compartment the resource belongs to.
2733
4247
  # @return [Response] A Response object with data of type {OCI::Dns::Models::RecordCollection RecordCollection}
2734
4248
  def update_zone_records(zone_name_or_id, update_zone_records_details, opts = {})
2735
4249
  logger.debug 'Calling operation DnsClient#update_zone_records.' if logger
2736
4250
 
2737
4251
  raise "Missing the required parameter 'zone_name_or_id' when calling update_zone_records." if zone_name_or_id.nil?
2738
4252
  raise "Missing the required parameter 'update_zone_records_details' when calling update_zone_records." if update_zone_records_details.nil?
4253
+
4254
+ if opts[:scope] && !OCI::Dns::Models::SCOPE_ENUM.include?(opts[:scope])
4255
+ raise 'Invalid value for "scope", must be one of the values in OCI::Dns::Models::SCOPE_ENUM.'
4256
+ end
2739
4257
  raise "Parameter value for 'zone_name_or_id' must not be blank" if OCI::Internal::Util.blank_string?(zone_name_or_id)
2740
4258
 
2741
4259
  path = '/zones/{zoneNameOrId}/records'.sub('{zoneNameOrId}', zone_name_or_id.to_s)
@@ -2744,6 +4262,8 @@ module OCI
2744
4262
  # rubocop:disable Style/NegatedIf
2745
4263
  # Query Params
2746
4264
  query_params = {}
4265
+ query_params[:scope] = opts[:scope] if opts[:scope]
4266
+ query_params[:viewId] = opts[:view_id] if opts[:view_id]
2747
4267
  query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
2748
4268
 
2749
4269
  # Header Params