oci 2.14.0 → 2.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (894) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -2
  3. data/lib/oci.rb +5 -0
  4. data/lib/oci/ai_anomaly_detection/ai_anomaly_detection.rb +76 -0
  5. data/lib/oci/ai_anomaly_detection/anomaly_detection_client.rb +2054 -0
  6. data/lib/oci/ai_anomaly_detection/anomaly_detection_client_composite_operations.rb +658 -0
  7. data/lib/oci/ai_anomaly_detection/models/action_type.rb +14 -0
  8. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint.rb +350 -0
  9. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_collection.rb +150 -0
  10. data/lib/oci/ai_anomaly_detection/models/ai_private_endpoint_summary.rb +312 -0
  11. data/lib/oci/ai_anomaly_detection/models/anomaly.rb +210 -0
  12. data/lib/oci/ai_anomaly_detection/models/anomaly_detect_result.rb +154 -0
  13. data/lib/oci/ai_anomaly_detection/models/change_ai_private_endpoint_compartment_details.rb +154 -0
  14. data/lib/oci/ai_anomaly_detection/models/change_data_asset_compartment_details.rb +154 -0
  15. data/lib/oci/ai_anomaly_detection/models/change_model_compartment_details.rb +156 -0
  16. data/lib/oci/ai_anomaly_detection/models/change_project_compartment_details.rb +156 -0
  17. data/lib/oci/ai_anomaly_detection/models/create_ai_private_endpoint_details.rb +231 -0
  18. data/lib/oci/ai_anomaly_detection/models/create_data_asset_details.rb +253 -0
  19. data/lib/oci/ai_anomaly_detection/models/create_model_details.rb +238 -0
  20. data/lib/oci/ai_anomaly_detection/models/create_project_details.rb +211 -0
  21. data/lib/oci/ai_anomaly_detection/models/data_asset.rb +340 -0
  22. data/lib/oci/ai_anomaly_detection/models/data_asset_collection.rb +150 -0
  23. data/lib/oci/ai_anomaly_detection/models/data_asset_summary.rb +341 -0
  24. data/lib/oci/ai_anomaly_detection/models/data_item.rb +160 -0
  25. data/lib/oci/ai_anomaly_detection/models/data_source_details.rb +193 -0
  26. data/lib/oci/ai_anomaly_detection/models/data_source_details_atp.rb +302 -0
  27. data/lib/oci/ai_anomaly_detection/models/data_source_details_influx.rb +214 -0
  28. data/lib/oci/ai_anomaly_detection/models/data_source_details_object_storage.rb +186 -0
  29. data/lib/oci/ai_anomaly_detection/models/data_source_type.rb +12 -0
  30. data/lib/oci/ai_anomaly_detection/models/detect_anomalies_details.rb +202 -0
  31. data/lib/oci/ai_anomaly_detection/models/detection_result_item.rb +184 -0
  32. data/lib/oci/ai_anomaly_detection/models/embedded_detect_anomalies_request.rb +192 -0
  33. data/lib/oci/ai_anomaly_detection/models/influx_details.rb +191 -0
  34. data/lib/oci/ai_anomaly_detection/models/influx_details_v1v8.rb +176 -0
  35. data/lib/oci/ai_anomaly_detection/models/influx_details_v2v0.rb +176 -0
  36. data/lib/oci/ai_anomaly_detection/models/influx_version.rb +11 -0
  37. data/lib/oci/ai_anomaly_detection/models/inline_detect_anomalies_request.rb +179 -0
  38. data/lib/oci/ai_anomaly_detection/models/model.rb +358 -0
  39. data/lib/oci/ai_anomaly_detection/models/model_collection.rb +150 -0
  40. data/lib/oci/ai_anomaly_detection/models/model_summary.rb +305 -0
  41. data/lib/oci/ai_anomaly_detection/models/model_training_details.rb +186 -0
  42. data/lib/oci/ai_anomaly_detection/models/model_training_results.rb +215 -0
  43. data/lib/oci/ai_anomaly_detection/models/operation_status.rb +16 -0
  44. data/lib/oci/ai_anomaly_detection/models/operation_type.rb +16 -0
  45. data/lib/oci/ai_anomaly_detection/models/per_signal_details.rb +267 -0
  46. data/lib/oci/ai_anomaly_detection/models/project.rb +302 -0
  47. data/lib/oci/ai_anomaly_detection/models/project_collection.rb +150 -0
  48. data/lib/oci/ai_anomaly_detection/models/project_summary.rb +279 -0
  49. data/lib/oci/ai_anomaly_detection/models/row_reduction_details.rb +205 -0
  50. data/lib/oci/ai_anomaly_detection/models/sort_order.rb +11 -0
  51. data/lib/oci/ai_anomaly_detection/models/update_ai_private_endpoint_details.rb +202 -0
  52. data/lib/oci/ai_anomaly_detection/models/update_data_asset_details.rb +196 -0
  53. data/lib/oci/ai_anomaly_detection/models/update_model_details.rb +196 -0
  54. data/lib/oci/ai_anomaly_detection/models/update_project_details.rb +196 -0
  55. data/lib/oci/ai_anomaly_detection/models/work_request.rb +312 -0
  56. data/lib/oci/ai_anomaly_detection/models/work_request_error.rb +173 -0
  57. data/lib/oci/ai_anomaly_detection/models/work_request_error_collection.rb +150 -0
  58. data/lib/oci/ai_anomaly_detection/models/work_request_log_entry.rb +160 -0
  59. data/lib/oci/ai_anomaly_detection/models/work_request_log_entry_collection.rb +150 -0
  60. data/lib/oci/ai_anomaly_detection/models/work_request_resource.rb +219 -0
  61. data/lib/oci/ai_anomaly_detection/models/work_request_summary.rb +312 -0
  62. data/lib/oci/ai_anomaly_detection/models/work_request_summary_collection.rb +150 -0
  63. data/lib/oci/ai_anomaly_detection/util.rb +3 -0
  64. data/lib/oci/api_client.rb +4 -4
  65. data/lib/oci/application_migration/application_migration.rb +2 -0
  66. data/lib/oci/application_migration/models/authorization_details.rb +2 -1
  67. data/lib/oci/application_migration/models/import_manifest.rb +208 -0
  68. data/lib/oci/application_migration/models/import_source_details.rb +192 -0
  69. data/lib/oci/application_migration/models/source_details.rb +2 -0
  70. data/lib/oci/application_migration/models/source_summary.rb +1 -0
  71. data/lib/oci/application_migration/models/source_types.rb +2 -1
  72. data/lib/oci/artifacts/artifacts.rb +15 -0
  73. data/lib/oci/artifacts/artifacts_client.rb +1104 -147
  74. data/lib/oci/artifacts/artifacts_client_composite_operations.rb +211 -0
  75. data/lib/oci/artifacts/models/change_repository_compartment_details.rb +155 -0
  76. data/lib/oci/artifacts/models/container_repository.rb +18 -4
  77. data/lib/oci/artifacts/models/container_repository_summary.rb +18 -4
  78. data/lib/oci/artifacts/models/create_generic_repository_details.rb +169 -0
  79. data/lib/oci/artifacts/models/create_repository_details.rb +259 -0
  80. data/lib/oci/artifacts/models/generic_artifact.rb +337 -0
  81. data/lib/oci/artifacts/models/generic_artifact_collection.rb +150 -0
  82. data/lib/oci/artifacts/models/generic_artifact_summary.rb +316 -0
  83. data/lib/oci/artifacts/models/generic_repository.rb +181 -0
  84. data/lib/oci/artifacts/models/generic_repository_summary.rb +181 -0
  85. data/lib/oci/artifacts/models/repository.rb +338 -0
  86. data/lib/oci/{usage_api/models/schedule_report_collection.rb → artifacts/models/repository_collection.rb} +6 -6
  87. data/lib/oci/artifacts/models/repository_summary.rb +299 -0
  88. data/lib/oci/artifacts/models/update_generic_artifact_by_path_details.rb +176 -0
  89. data/lib/oci/artifacts/models/update_generic_artifact_details.rb +176 -0
  90. data/lib/oci/artifacts/models/update_generic_repository_details.rb +161 -0
  91. data/lib/oci/artifacts/models/update_repository_details.rb +230 -0
  92. data/lib/oci/bastion/bastion.rb +48 -0
  93. data/lib/oci/bastion/bastion_client.rb +1041 -0
  94. data/lib/oci/bastion/bastion_client_composite_operations.rb +311 -0
  95. data/lib/oci/bastion/models/action_type.rb +14 -0
  96. data/lib/oci/bastion/models/bastion.rb +434 -0
  97. data/lib/oci/bastion/models/bastion_lifecycle_state.rb +15 -0
  98. data/lib/oci/bastion/models/bastion_summary.rb +348 -0
  99. data/lib/oci/bastion/models/change_bastion_compartment_details.rb +154 -0
  100. data/lib/oci/bastion/models/create_bastion_details.rb +283 -0
  101. data/lib/oci/bastion/models/create_managed_ssh_session_target_resource_details.rb +194 -0
  102. data/lib/oci/bastion/models/create_port_forwarding_session_target_resource_details.rb +180 -0
  103. data/lib/oci/bastion/models/create_session_details.rb +238 -0
  104. data/lib/oci/bastion/models/create_session_target_resource_details.rb +198 -0
  105. data/lib/oci/bastion/models/managed_ssh_session_target_resource_details.rb +208 -0
  106. data/lib/oci/bastion/models/operation_status.rb +15 -0
  107. data/lib/oci/bastion/models/operation_type.rb +14 -0
  108. data/lib/oci/bastion/models/port_forwarding_session_target_resource_details.rb +194 -0
  109. data/lib/oci/bastion/models/public_key_details.rb +154 -0
  110. data/lib/oci/bastion/models/session.rb +393 -0
  111. data/lib/oci/bastion/models/session_lifecycle_state.rb +14 -0
  112. data/lib/oci/bastion/models/session_summary.rb +303 -0
  113. data/lib/oci/bastion/models/session_type.rb +11 -0
  114. data/lib/oci/bastion/models/sort_order.rb +11 -0
  115. data/lib/oci/bastion/models/target_resource_details.rb +205 -0
  116. data/lib/oci/bastion/models/update_bastion_details.rb +215 -0
  117. data/lib/oci/bastion/models/update_session_details.rb +154 -0
  118. data/lib/oci/bastion/models/work_request.rb +309 -0
  119. data/lib/oci/bastion/models/work_request_error.rb +173 -0
  120. data/lib/oci/bastion/models/work_request_log_entry.rb +160 -0
  121. data/lib/oci/bastion/models/work_request_resource.rb +219 -0
  122. data/lib/oci/bastion/models/work_request_summary.rb +309 -0
  123. data/lib/oci/bastion/util.rb +3 -0
  124. data/lib/oci/bds/bds_client.rb +70 -77
  125. data/lib/oci/bds/bds_client_composite_operations.rb +21 -21
  126. data/lib/oci/bds/models/add_auto_scaling_configuration_details.rb +5 -5
  127. data/lib/oci/bds/models/add_block_storage_details.rb +4 -4
  128. data/lib/oci/bds/models/add_cloud_sql_details.rb +4 -5
  129. data/lib/oci/bds/models/add_worker_nodes_details.rb +3 -3
  130. data/lib/oci/bds/models/auto_scale_policy.rb +3 -3
  131. data/lib/oci/bds/models/auto_scale_policy_metric_rule.rb +2 -2
  132. data/lib/oci/bds/models/auto_scale_policy_rule.rb +2 -2
  133. data/lib/oci/bds/models/auto_scaling_configuration.rb +7 -8
  134. data/lib/oci/bds/models/auto_scaling_configuration_summary.rb +7 -8
  135. data/lib/oci/bds/models/bds_instance.rb +17 -16
  136. data/lib/oci/bds/models/bds_instance_summary.rb +14 -14
  137. data/lib/oci/bds/models/change_bds_instance_compartment_details.rb +2 -2
  138. data/lib/oci/bds/models/change_shape_details.rb +1 -1
  139. data/lib/oci/bds/models/change_shape_nodes.rb +2 -2
  140. data/lib/oci/bds/models/cloud_sql_details.rb +3 -3
  141. data/lib/oci/bds/models/cluster_details.rb +26 -13
  142. data/lib/oci/bds/models/create_bds_instance_details.rb +11 -11
  143. data/lib/oci/bds/models/create_node_details.rb +6 -6
  144. data/lib/oci/bds/models/kerberos_details.rb +2 -2
  145. data/lib/oci/bds/models/metric_threshold_rule.rb +4 -4
  146. data/lib/oci/bds/models/network_config.rb +1 -1
  147. data/lib/oci/bds/models/node.rb +15 -15
  148. data/lib/oci/bds/models/remove_auto_scaling_configuration_details.rb +2 -2
  149. data/lib/oci/bds/models/remove_cloud_sql_details.rb +2 -2
  150. data/lib/oci/bds/models/restart_node_details.rb +2 -2
  151. data/lib/oci/bds/models/update_auto_scaling_configuration_details.rb +4 -4
  152. data/lib/oci/bds/models/update_bds_instance_details.rb +5 -5
  153. data/lib/oci/bds/models/work_request.rb +9 -14
  154. data/lib/oci/bds/models/work_request_error.rb +2 -3
  155. data/lib/oci/bds/models/work_request_log_entry.rb +1 -1
  156. data/lib/oci/bds/models/work_request_resource.rb +2 -5
  157. data/lib/oci/container_engine/container_engine.rb +2 -0
  158. data/lib/oci/container_engine/container_engine_client.rb +118 -0
  159. data/lib/oci/container_engine/container_engine_client_composite_operations.rb +50 -0
  160. data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_details.rb +169 -0
  161. data/lib/oci/container_engine/models/cluster_migrate_to_native_vcn_status.rb +187 -0
  162. data/lib/oci/container_engine/models/create_node_pool_node_config_details.rb +16 -1
  163. data/lib/oci/container_engine/models/node_pool_node_config_details.rb +16 -1
  164. data/lib/oci/container_engine/models/update_node_pool_node_config_details.rb +16 -1
  165. data/lib/oci/container_engine/models/work_request.rb +1 -0
  166. data/lib/oci/container_engine/models/work_request_operation_type.rb +1 -0
  167. data/lib/oci/container_engine/models/work_request_summary.rb +1 -0
  168. data/lib/oci/core/blockstorage_client.rb +70 -1
  169. data/lib/oci/core/blockstorage_client_composite_operations.rb +41 -0
  170. data/lib/oci/core/compute_client.rb +63 -0
  171. data/lib/oci/core/compute_client_composite_operations.rb +40 -0
  172. data/lib/oci/core/core.rb +4 -0
  173. data/lib/oci/core/models/attach_boot_volume_details.rb +35 -4
  174. data/lib/oci/core/models/attach_i_scsi_volume_details.rb +35 -4
  175. data/lib/oci/core/models/block_volume_replica.rb +1 -1
  176. data/lib/oci/core/models/boot_volume_attachment.rb +41 -4
  177. data/lib/oci/core/models/boot_volume_replica.rb +1 -1
  178. data/lib/oci/core/models/copy_volume_group_backup_details.rb +196 -0
  179. data/lib/oci/core/models/create_boot_volume_details.rb +1 -1
  180. data/lib/oci/core/models/create_dhcp_details.rb +32 -4
  181. data/lib/oci/core/models/create_vlan_details.rb +11 -3
  182. data/lib/oci/core/models/create_volume_details.rb +1 -1
  183. data/lib/oci/core/models/dhcp_options.rb +38 -4
  184. data/lib/oci/core/models/emulated_volume_attachment.rb +12 -4
  185. data/lib/oci/core/models/encryption_in_transit_type.rb +11 -0
  186. data/lib/oci/core/models/i_scsi_volume_attachment.rb +64 -4
  187. data/lib/oci/core/models/image.rb +18 -1
  188. data/lib/oci/core/models/instance_agent_features.rb +2 -2
  189. data/lib/oci/core/models/instance_configuration_instance_source_via_image_details.rb +1 -1
  190. data/lib/oci/core/models/instance_source_via_image_details.rb +1 -1
  191. data/lib/oci/core/models/launch_instance_availability_config_details.rb +2 -2
  192. data/lib/oci/core/models/multipath_device.rb +180 -0
  193. data/lib/oci/core/models/paravirtualized_volume_attachment.rb +12 -4
  194. data/lib/oci/core/models/update_dhcp_details.rb +32 -4
  195. data/lib/oci/core/models/update_instance_availability_config_details.rb +1 -1
  196. data/lib/oci/core/models/update_volume_attachment_details.rb +174 -0
  197. data/lib/oci/core/models/vlan.rb +2 -1
  198. data/lib/oci/core/models/volume_attachment.rb +58 -4
  199. data/lib/oci/core/virtual_network_client.rb +7 -5
  200. data/lib/oci/data_catalog/data_catalog.rb +11 -0
  201. data/lib/oci/data_catalog/data_catalog_client.rb +599 -7
  202. data/lib/oci/data_catalog/data_catalog_client_composite_operations.rb +188 -0
  203. data/lib/oci/data_catalog/models/attribute.rb +43 -1
  204. data/lib/oci/data_catalog/models/attribute_summary.rb +33 -4
  205. data/lib/oci/data_catalog/models/change_metastore_compartment_details.rb +154 -0
  206. data/lib/oci/data_catalog/models/create_custom_property_details.rb +17 -1
  207. data/lib/oci/data_catalog/models/create_job_definition_details.rb +2 -1
  208. data/lib/oci/data_catalog/models/create_job_execution_details.rb +2 -1
  209. data/lib/oci/data_catalog/models/create_metastore_details.rb +232 -0
  210. data/lib/oci/data_catalog/models/custom_property.rb +17 -1
  211. data/lib/oci/data_catalog/models/custom_property_get_usage.rb +17 -1
  212. data/lib/oci/data_catalog/models/custom_property_summary.rb +63 -4
  213. data/lib/oci/data_catalog/models/custom_property_type_usage.rb +20 -4
  214. data/lib/oci/data_catalog/models/data_asset.rb +16 -1
  215. data/lib/oci/data_catalog/models/data_asset_export_scope.rb +172 -0
  216. data/lib/oci/data_catalog/models/data_asset_import_export_type_filter.rb +11 -0
  217. data/lib/oci/data_catalog/models/entity.rb +30 -1
  218. data/lib/oci/data_catalog/models/export_data_asset_details.rb +154 -0
  219. data/lib/oci/data_catalog/models/folder.rb +44 -1
  220. data/lib/oci/data_catalog/models/folder_summary.rb +15 -1
  221. data/lib/oci/data_catalog/models/import_data_asset_details.rb +154 -0
  222. data/lib/oci/data_catalog/models/import_data_asset_job_result.rb +235 -0
  223. data/lib/oci/data_catalog/models/job.rb +1 -0
  224. data/lib/oci/data_catalog/models/job_definition.rb +1 -0
  225. data/lib/oci/data_catalog/models/job_definition_summary.rb +1 -0
  226. data/lib/oci/data_catalog/models/job_execution.rb +1 -0
  227. data/lib/oci/data_catalog/models/job_execution_summary.rb +1 -0
  228. data/lib/oci/data_catalog/models/job_summary.rb +1 -0
  229. data/lib/oci/data_catalog/models/job_type.rb +2 -1
  230. data/lib/oci/data_catalog/models/metastore.rb +325 -0
  231. data/lib/oci/data_catalog/models/metastore_summary.rb +292 -0
  232. data/lib/oci/data_catalog/models/object_relationship.rb +233 -0
  233. data/lib/oci/data_catalog/models/search_result.rb +15 -1
  234. data/lib/oci/data_catalog/models/type_custom_property_details.rb +20 -4
  235. data/lib/oci/data_catalog/models/update_custom_property_details.rb +17 -1
  236. data/lib/oci/data_catalog/models/update_metastore_details.rb +186 -0
  237. data/lib/oci/data_flow/data_flow_client.rb +3 -0
  238. data/lib/oci/data_flow/models/application.rb +16 -1
  239. data/lib/oci/data_flow/models/application_summary.rb +16 -1
  240. data/lib/oci/data_flow/models/create_application_details.rb +16 -1
  241. data/lib/oci/data_flow/models/create_run_details.rb +17 -1
  242. data/lib/oci/data_flow/models/run.rb +16 -1
  243. data/lib/oci/data_flow/models/update_application_details.rb +16 -1
  244. data/lib/oci/data_integration/data_integration.rb +52 -0
  245. data/lib/oci/data_integration/data_integration_client.rb +766 -24
  246. data/lib/oci/data_integration/models/abstract_format_attribute.rb +19 -4
  247. data/lib/oci/data_integration/models/abstract_read_attribute.rb +3 -0
  248. data/lib/oci/data_integration/models/abstract_write_attribute.rb +7 -0
  249. data/lib/oci/data_integration/models/auth_details.rb +213 -0
  250. data/lib/oci/data_integration/models/avro_format_attribute.rb +5 -1
  251. data/lib/oci/data_integration/models/bicc_read_attributes.rb +237 -0
  252. data/lib/oci/data_integration/models/config_parameter_value.rb +18 -4
  253. data/lib/oci/data_integration/models/connection.rb +4 -0
  254. data/lib/oci/data_integration/models/connection_details.rb +5 -1
  255. data/lib/oci/data_integration/models/connection_from_amazon_s3.rb +226 -0
  256. data/lib/oci/data_integration/models/connection_from_amazon_s3_details.rb +222 -0
  257. data/lib/oci/data_integration/models/connection_from_bicc.rb +236 -0
  258. data/lib/oci/data_integration/models/connection_from_bicc_details.rb +232 -0
  259. data/lib/oci/data_integration/models/connection_summary.rb +4 -0
  260. data/lib/oci/data_integration/models/connection_summary_from_amazon_s3.rb +227 -0
  261. data/lib/oci/data_integration/models/connection_summary_from_bicc.rb +223 -0
  262. data/lib/oci/data_integration/models/connector_attribute.rb +182 -0
  263. data/lib/oci/data_integration/models/create_connection_details.rb +5 -1
  264. data/lib/oci/data_integration/models/create_connection_from_amazon_s3.rb +210 -0
  265. data/lib/oci/data_integration/models/create_connection_from_bicc.rb +220 -0
  266. data/lib/oci/data_integration/models/create_data_asset_details.rb +5 -1
  267. data/lib/oci/data_integration/models/create_data_asset_from_adwc.rb +57 -1
  268. data/lib/oci/data_integration/models/create_data_asset_from_amazon_s3.rb +207 -0
  269. data/lib/oci/data_integration/models/create_data_asset_from_atp.rb +57 -1
  270. data/lib/oci/data_integration/models/create_data_asset_from_fusion_app.rb +211 -0
  271. data/lib/oci/data_integration/models/create_schedule_details.rb +272 -0
  272. data/lib/oci/data_integration/models/create_task_details.rb +7 -1
  273. data/lib/oci/data_integration/models/create_task_from_oci_dataflow_task.rb +213 -0
  274. data/lib/oci/data_integration/models/create_task_from_rest_task.rb +348 -0
  275. data/lib/oci/data_integration/models/create_task_from_sql_task.rb +246 -0
  276. data/lib/oci/data_integration/models/create_task_run_details.rb +15 -1
  277. data/lib/oci/data_integration/models/create_task_schedule_details.rb +476 -0
  278. data/lib/oci/data_integration/models/csv_format_attribute.rb +5 -15
  279. data/lib/oci/data_integration/models/data_asset.rb +4 -0
  280. data/lib/oci/data_integration/models/data_asset_from_amazon_s3.rb +223 -0
  281. data/lib/oci/data_integration/models/data_asset_from_fusion_app.rb +227 -0
  282. data/lib/oci/data_integration/models/data_asset_summary.rb +4 -0
  283. data/lib/oci/data_integration/models/data_asset_summary_from_amazon_s3.rb +219 -0
  284. data/lib/oci/data_integration/models/data_asset_summary_from_fusion_app.rb +223 -0
  285. data/lib/oci/data_integration/models/data_entity.rb +2 -0
  286. data/lib/oci/data_integration/models/data_entity_details.rb +3 -1
  287. data/lib/oci/data_integration/models/data_entity_from_data_store.rb +454 -0
  288. data/lib/oci/data_integration/models/data_entity_from_data_store_entity_details.rb +443 -0
  289. data/lib/oci/data_integration/models/data_entity_summary.rb +2 -0
  290. data/lib/oci/data_integration/models/data_entity_summary_from_data_store.rb +454 -0
  291. data/lib/oci/{usage_api/models/create_schedule_report_details.rb → data_integration/models/dataflow_application.rb} +20 -33
  292. data/lib/oci/data_integration/models/dependent_object_summary.rb +17 -4
  293. data/lib/oci/data_integration/models/enriched_entity.rb +31 -4
  294. data/lib/oci/data_integration/models/expression_operator.rb +250 -0
  295. data/lib/oci/data_integration/models/external_storage.rb +221 -0
  296. data/lib/oci/data_integration/models/json_format_attribute.rb +5 -1
  297. data/lib/oci/data_integration/models/lookup.rb +274 -0
  298. data/lib/oci/data_integration/models/native_shape_field.rb +3 -3
  299. data/lib/oci/data_integration/models/object_metadata.rb +17 -4
  300. data/lib/oci/data_integration/models/object_storage_write_attribute.rb +162 -0
  301. data/lib/oci/data_integration/models/object_storage_write_attributes.rb +164 -0
  302. data/lib/oci/data_integration/models/operator.rb +4 -1
  303. data/lib/oci/data_integration/models/oracle_adwc_write_attributes.rb +22 -12
  304. data/lib/oci/data_integration/models/oracle_atp_write_attributes.rb +22 -12
  305. data/lib/oci/data_integration/models/oracle_read_attributes.rb +13 -2
  306. data/lib/oci/data_integration/models/oracle_write_attributes.rb +13 -2
  307. data/lib/oci/data_integration/models/parameter.rb +4 -3
  308. data/lib/oci/data_integration/models/parent_reference.rb +18 -4
  309. data/lib/oci/data_integration/models/parquet_format_attribute.rb +162 -0
  310. data/lib/oci/data_integration/models/patch_change_summary.rb +3 -0
  311. data/lib/oci/data_integration/models/patch_object_metadata.rb +3 -0
  312. data/lib/oci/data_integration/models/published_object.rb +3 -0
  313. data/lib/oci/data_integration/models/published_object_summary.rb +3 -0
  314. data/lib/oci/data_integration/models/schedule_summary.rb +295 -0
  315. data/lib/oci/data_integration/models/schedule_summary_collection.rb +150 -0
  316. data/lib/oci/data_integration/models/script.rb +202 -0
  317. data/lib/oci/data_integration/models/shape_field.rb +3 -3
  318. data/lib/oci/data_integration/models/task.rb +23 -4
  319. data/lib/oci/data_integration/models/task_from_data_loader_task_details.rb +5 -1
  320. data/lib/oci/data_integration/models/task_from_integration_task_details.rb +5 -1
  321. data/lib/oci/data_integration/models/task_from_oci_dataflow_task_details.rb +225 -0
  322. data/lib/oci/data_integration/models/task_from_pipeline_task_details.rb +5 -1
  323. data/lib/oci/data_integration/models/task_from_rest_task_details.rb +379 -0
  324. data/lib/oci/data_integration/models/task_from_sql_task_details.rb +265 -0
  325. data/lib/oci/data_integration/models/task_operator.rb +3 -0
  326. data/lib/oci/data_integration/models/task_run.rb +62 -1
  327. data/lib/oci/data_integration/models/task_run_details.rb +3 -0
  328. data/lib/oci/data_integration/models/task_run_summary.rb +3 -0
  329. data/lib/oci/data_integration/models/task_schedule_summary.rb +532 -0
  330. data/lib/oci/data_integration/models/task_schedule_summary_collection.rb +150 -0
  331. data/lib/oci/data_integration/models/task_summary.rb +6 -0
  332. data/lib/oci/data_integration/models/task_summary_from_oci_dataflow_task.rb +221 -0
  333. data/lib/oci/data_integration/models/task_summary_from_rest_task.rb +356 -0
  334. data/lib/oci/data_integration/models/task_summary_from_sql_task.rb +254 -0
  335. data/lib/oci/data_integration/models/update_connection_details.rb +5 -1
  336. data/lib/oci/data_integration/models/update_connection_from_amazon_s3.rb +214 -0
  337. data/lib/oci/data_integration/models/update_connection_from_bicc.rb +224 -0
  338. data/lib/oci/data_integration/models/update_data_asset_details.rb +5 -1
  339. data/lib/oci/data_integration/models/update_data_asset_from_adwc.rb +57 -1
  340. data/lib/oci/data_integration/models/update_data_asset_from_amazon_s3.rb +198 -0
  341. data/lib/oci/data_integration/models/update_data_asset_from_atp.rb +57 -1
  342. data/lib/oci/data_integration/models/update_data_asset_from_fusion_app.rb +202 -0
  343. data/lib/oci/data_integration/models/update_schedule_details.rb +299 -0
  344. data/lib/oci/data_integration/models/update_task_details.rb +7 -1
  345. data/lib/oci/data_integration/models/update_task_from_oci_dataflow_task.rb +217 -0
  346. data/lib/oci/data_integration/models/update_task_from_rest_task.rb +366 -0
  347. data/lib/oci/data_integration/models/update_task_from_sql_task.rb +250 -0
  348. data/lib/oci/data_integration/models/update_task_run_details.rb +15 -1
  349. data/lib/oci/data_integration/models/update_task_schedule_details.rb +490 -0
  350. data/lib/oci/data_safe/data_safe.rb +18 -0
  351. data/lib/oci/data_safe/data_safe_client.rb +731 -17
  352. data/lib/oci/data_safe/data_safe_client_composite_operations.rb +247 -0
  353. data/lib/oci/{usage_api/models/update_schedule_report_details.rb → data_safe/models/activate_target_database_details.rb} +10 -14
  354. data/lib/oci/data_safe/models/autonomous_database_details.rb +166 -0
  355. data/lib/oci/data_safe/models/change_target_database_compartment_details.rb +154 -0
  356. data/lib/oci/data_safe/models/connection_option.rb +194 -0
  357. data/lib/oci/data_safe/models/create_target_database_details.rb +261 -0
  358. data/lib/oci/data_safe/models/credentials.rb +164 -0
  359. data/lib/oci/data_safe/models/data_safe_private_endpoint.rb +20 -4
  360. data/lib/oci/data_safe/models/data_safe_private_endpoint_summary.rb +54 -4
  361. data/lib/oci/data_safe/models/database_cloud_service_details.rb +194 -0
  362. data/lib/oci/data_safe/models/database_details.rb +231 -0
  363. data/lib/oci/data_safe/models/database_type.rb +12 -0
  364. data/lib/oci/data_safe/models/infrastructure_type.rb +13 -0
  365. data/lib/oci/data_safe/models/installed_database_details.rb +209 -0
  366. data/lib/oci/data_safe/models/on_prem_connector.rb +17 -1
  367. data/lib/oci/data_safe/models/on_prem_connector_summary.rb +17 -1
  368. data/lib/oci/data_safe/models/on_premise_connector.rb +162 -0
  369. data/lib/oci/data_safe/models/private_endpoint.rb +163 -0
  370. data/lib/oci/data_safe/models/service_list.rb +4 -0
  371. data/lib/oci/data_safe/models/target_database.rb +369 -0
  372. data/lib/oci/data_safe/models/target_database_lifecycle_state.rb +17 -0
  373. data/lib/oci/data_safe/models/target_database_summary.rb +359 -0
  374. data/lib/oci/data_safe/models/tls_config.rb +244 -0
  375. data/lib/oci/data_safe/models/update_target_database_details.rb +246 -0
  376. data/lib/oci/data_safe/models/work_request.rb +6 -0
  377. data/lib/oci/data_safe/models/work_request_summary.rb +6 -0
  378. data/lib/oci/data_science/data_science.rb +3 -0
  379. data/lib/oci/data_science/data_science_client.rb +16 -9
  380. data/lib/oci/data_science/data_science_client_composite_operations.rb +4 -4
  381. data/lib/oci/data_science/models/create_model_details.rb +60 -4
  382. data/lib/oci/data_science/models/create_model_provenance_details.rb +18 -4
  383. data/lib/oci/data_science/models/metadata.rb +197 -0
  384. data/lib/oci/data_science/models/model.rb +60 -4
  385. data/lib/oci/data_science/models/model_deployment.rb +1 -1
  386. data/lib/oci/data_science/models/model_provenance.rb +18 -4
  387. data/lib/oci/data_science/models/notebook_session_configuration_details.rb +17 -4
  388. data/lib/oci/data_science/models/notebook_session_shape_config_details.rb +169 -0
  389. data/lib/oci/data_science/models/notebook_session_shape_series.rb +13 -0
  390. data/lib/oci/data_science/models/notebook_session_shape_summary.rb +41 -4
  391. data/lib/oci/data_science/models/update_model_details.rb +32 -4
  392. data/lib/oci/data_science/models/update_model_provenance_details.rb +18 -4
  393. data/lib/oci/database/database.rb +17 -0
  394. data/lib/oci/database/database_client.rb +1228 -46
  395. data/lib/oci/database/database_client_composite_operations.rb +416 -0
  396. data/lib/oci/database/models/autonomous_container_database_dataguard_association.rb +2 -2
  397. data/lib/oci/database/models/autonomous_database.rb +213 -6
  398. data/lib/oci/database/models/autonomous_database_backup.rb +32 -4
  399. data/lib/oci/database/models/autonomous_database_backup_summary.rb +32 -4
  400. data/lib/oci/database/models/autonomous_database_dataguard_association.rb +2 -2
  401. data/lib/oci/{usage_api/models/schedule_report.rb → database/models/autonomous_database_key_history_entry.rb} +24 -36
  402. data/lib/oci/database/models/autonomous_database_standby_summary.rb +19 -4
  403. data/lib/oci/database/models/autonomous_database_summary.rb +213 -6
  404. data/lib/oci/database/models/cloud_exadata_infrastructure.rb +21 -4
  405. data/lib/oci/database/models/cloud_exadata_infrastructure_summary.rb +21 -4
  406. data/lib/oci/database/models/configure_autonomous_database_vault_key_details.rb +182 -0
  407. data/lib/oci/database/models/create_autonomous_database_base.rb +118 -7
  408. data/lib/oci/database/models/create_autonomous_database_clone_details.rb +21 -1
  409. data/lib/oci/database/models/create_autonomous_database_details.rb +24 -4
  410. data/lib/oci/database/models/create_autonomous_database_from_backup_details.rb +21 -1
  411. data/lib/oci/database/models/create_autonomous_database_from_backup_timestamp_details.rb +21 -1
  412. data/lib/oci/database/models/create_cloud_exadata_infrastructure_details.rb +18 -4
  413. data/lib/oci/database/models/create_cross_region_autonomous_database_data_guard_details.rb +283 -0
  414. data/lib/oci/database/models/create_database_software_image_details.rb +18 -4
  415. data/lib/oci/database/models/create_db_home_base.rb +18 -4
  416. data/lib/oci/database/models/create_db_home_with_db_system_id_details.rb +5 -1
  417. data/lib/oci/database/models/create_db_home_with_db_system_id_from_backup_details.rb +5 -1
  418. data/lib/oci/database/models/create_db_home_with_db_system_id_from_database_details.rb +5 -1
  419. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_details.rb +5 -1
  420. data/lib/oci/database/models/create_db_home_with_vm_cluster_id_from_backup_details.rb +5 -1
  421. data/lib/oci/database/models/create_exadata_infrastructure_details.rb +29 -1
  422. data/lib/oci/database/models/create_pluggable_database_details.rb +233 -0
  423. data/lib/oci/database/models/create_refreshable_autonomous_database_clone_details.rb +21 -1
  424. data/lib/oci/database/models/customer_contact.rb +2 -2
  425. data/lib/oci/database/models/db_home_from_agent_resource_id.rb +380 -0
  426. data/lib/oci/database/models/db_node.rb +69 -1
  427. data/lib/oci/database/models/db_node_summary.rb +69 -1
  428. data/lib/oci/database/models/db_system_shape_summary.rb +72 -2
  429. data/lib/oci/database/models/exadata_infrastructure.rb +57 -1
  430. data/lib/oci/database/models/exadata_infrastructure_summary.rb +57 -1
  431. data/lib/oci/database/models/local_clone_pluggable_database_details.rb +185 -0
  432. data/lib/oci/database/models/maintenance_run.rb +4 -1
  433. data/lib/oci/database/models/maintenance_run_summary.rb +4 -1
  434. data/lib/oci/database/models/pluggable_database.rb +358 -0
  435. data/lib/oci/database/models/pluggable_database_connection_strings.rb +183 -0
  436. data/lib/oci/database/models/pluggable_database_summary.rb +361 -0
  437. data/lib/oci/database/models/remote_clone_pluggable_database_details.rb +213 -0
  438. data/lib/oci/database/models/scan_details.rb +1 -1
  439. data/lib/oci/database/models/update_autonomous_database_details.rb +64 -5
  440. data/lib/oci/database/models/update_cloud_exadata_infrastructure_details.rb +18 -4
  441. data/lib/oci/database/models/update_data_guard_association_details.rb +237 -0
  442. data/lib/oci/database/models/update_exadata_infrastructure_details.rb +15 -1
  443. data/lib/oci/database/models/update_external_macs_connector_details.rb +2 -1
  444. data/lib/oci/database/models/update_maintenance_run_details.rb +4 -1
  445. data/lib/oci/database/models/update_pluggable_database_details.rb +177 -0
  446. data/lib/oci/database/models/update_vm_cluster_details.rb +14 -1
  447. data/lib/oci/database/models/vm_cluster.rb +15 -2
  448. data/lib/oci/database/models/vm_cluster_summary.rb +15 -2
  449. data/lib/oci/database/models/vm_cluster_update.rb +346 -0
  450. data/lib/oci/database/models/vm_cluster_update_details.rb +183 -0
  451. data/lib/oci/database/models/vm_cluster_update_history_entry.rb +308 -0
  452. data/lib/oci/database/models/vm_cluster_update_history_entry_summary.rb +311 -0
  453. data/lib/oci/database/models/vm_cluster_update_summary.rb +349 -0
  454. data/lib/oci/database_management/database_management.rb +25 -0
  455. data/lib/oci/database_management/db_management_client.rb +1467 -97
  456. data/lib/oci/database_management/models/awr_db_collection.rb +175 -0
  457. data/lib/oci/database_management/models/awr_db_cpu_usage_collection.rb +217 -0
  458. data/lib/oci/database_management/models/awr_db_cpu_usage_summary.rb +164 -0
  459. data/lib/oci/database_management/models/awr_db_metric_collection.rb +175 -0
  460. data/lib/oci/database_management/models/awr_db_metric_summary.rb +202 -0
  461. data/lib/oci/database_management/models/awr_db_parameter_change_collection.rb +175 -0
  462. data/lib/oci/database_management/models/awr_db_parameter_change_summary.rb +255 -0
  463. data/lib/oci/database_management/models/awr_db_parameter_collection.rb +175 -0
  464. data/lib/oci/database_management/models/awr_db_parameter_summary.rb +238 -0
  465. data/lib/oci/database_management/models/awr_db_report.rb +205 -0
  466. data/lib/oci/database_management/models/awr_db_snapshot_collection.rb +175 -0
  467. data/lib/oci/database_management/models/awr_db_snapshot_range_collection.rb +175 -0
  468. data/lib/oci/database_management/models/awr_db_snapshot_range_summary.rb +331 -0
  469. data/lib/oci/database_management/models/awr_db_snapshot_summary.rb +244 -0
  470. data/lib/oci/database_management/models/awr_db_sql_report.rb +204 -0
  471. data/lib/oci/database_management/models/awr_db_summary.rb +334 -0
  472. data/lib/oci/database_management/models/awr_db_sysstat_collection.rb +175 -0
  473. data/lib/oci/database_management/models/awr_db_sysstat_summary.rb +216 -0
  474. data/lib/oci/database_management/models/awr_db_top_wait_event_collection.rb +175 -0
  475. data/lib/oci/database_management/models/awr_db_top_wait_event_summary.rb +178 -0
  476. data/lib/oci/database_management/models/awr_db_wait_event_bucket_collection.rb +189 -0
  477. data/lib/oci/database_management/models/awr_db_wait_event_bucket_summary.rb +160 -0
  478. data/lib/oci/database_management/models/awr_db_wait_event_collection.rb +175 -0
  479. data/lib/oci/database_management/models/awr_db_wait_event_summary.rb +223 -0
  480. data/lib/oci/database_management/models/awr_query_result.rb +254 -0
  481. data/lib/oci/devops/devops.rb +177 -0
  482. data/lib/oci/devops/devops_client.rb +2344 -0
  483. data/lib/oci/devops/devops_client_composite_operations.rb +974 -0
  484. data/lib/oci/devops/models/absolute_wait_criteria.rb +162 -0
  485. data/lib/oci/devops/models/absolute_wait_criteria_summary.rb +162 -0
  486. data/lib/oci/devops/models/action_type.rb +15 -0
  487. data/lib/oci/devops/models/approval_action.rb +184 -0
  488. data/lib/oci/devops/models/approval_policy.rb +189 -0
  489. data/lib/oci/devops/models/approve_deployment_details.rb +187 -0
  490. data/lib/oci/devops/models/automated_deploy_stage_rollback_policy.rb +145 -0
  491. data/lib/oci/devops/models/backend_set_ip_collection.rb +150 -0
  492. data/lib/oci/devops/models/cancel_deployment_details.rb +150 -0
  493. data/lib/oci/devops/models/change_project_compartment_details.rb +154 -0
  494. data/lib/oci/devops/models/compute_instance_group_blue_green_deploy_stage_execution_progress.rb +173 -0
  495. data/lib/oci/devops/models/compute_instance_group_blue_green_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  496. data/lib/oci/devops/models/compute_instance_group_by_ids_selector.rb +162 -0
  497. data/lib/oci/devops/models/compute_instance_group_by_query_selector.rb +168 -0
  498. data/lib/oci/devops/models/compute_instance_group_canary_approval_deploy_stage_execution_progress.rb +189 -0
  499. data/lib/oci/devops/models/compute_instance_group_canary_deploy_stage_execution_progress.rb +173 -0
  500. data/lib/oci/devops/models/compute_instance_group_canary_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  501. data/lib/oci/devops/models/compute_instance_group_deploy_environment.rb +210 -0
  502. data/lib/oci/devops/models/compute_instance_group_deploy_environment_summary.rb +210 -0
  503. data/lib/oci/devops/models/compute_instance_group_deploy_stage.rb +299 -0
  504. data/lib/oci/devops/models/compute_instance_group_deploy_stage_execution_progress.rb +173 -0
  505. data/lib/oci/devops/models/compute_instance_group_deploy_stage_summary.rb +299 -0
  506. data/lib/oci/devops/models/compute_instance_group_failure_policy.rb +191 -0
  507. data/lib/oci/devops/models/compute_instance_group_failure_policy_by_count.rb +162 -0
  508. data/lib/oci/devops/models/compute_instance_group_failure_policy_by_percentage.rb +162 -0
  509. data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_count.rb +166 -0
  510. data/lib/oci/devops/models/compute_instance_group_linear_rollout_policy_by_percentage.rb +166 -0
  511. data/lib/oci/devops/models/compute_instance_group_rollout_policy.rb +207 -0
  512. data/lib/oci/devops/models/compute_instance_group_selector.rb +191 -0
  513. data/lib/oci/devops/models/compute_instance_group_selector_collection.rb +150 -0
  514. data/lib/oci/devops/models/count_based_approval_policy.rb +164 -0
  515. data/lib/oci/devops/models/create_compute_instance_group_deploy_environment_details.rb +182 -0
  516. data/lib/oci/devops/models/create_compute_instance_group_deploy_stage_details.rb +267 -0
  517. data/lib/oci/devops/models/create_deploy_artifact_details.rb +248 -0
  518. data/lib/oci/devops/models/create_deploy_environment_details.rb +238 -0
  519. data/lib/oci/devops/models/create_deploy_pipeline_deployment_details.rb +190 -0
  520. data/lib/oci/devops/models/create_deploy_pipeline_details.rb +219 -0
  521. data/lib/oci/devops/models/create_deploy_pipeline_redeployment_details.rb +178 -0
  522. data/lib/oci/devops/models/create_deploy_stage_details.rb +256 -0
  523. data/lib/oci/devops/models/create_deployment_details.rb +228 -0
  524. data/lib/oci/devops/models/create_function_deploy_environment_details.rb +182 -0
  525. data/lib/oci/devops/models/create_function_deploy_stage_details.rb +238 -0
  526. data/lib/oci/devops/models/create_invoke_function_deploy_stage_details.rb +228 -0
  527. data/lib/oci/devops/models/create_load_balancer_traffic_shift_deploy_stage_details.rb +255 -0
  528. data/lib/oci/devops/models/create_manual_approval_deploy_stage_details.rb +186 -0
  529. data/lib/oci/devops/models/create_oke_cluster_deploy_environment_details.rb +182 -0
  530. data/lib/oci/devops/models/create_oke_deploy_stage_details.rb +224 -0
  531. data/lib/oci/devops/models/create_project_details.rb +216 -0
  532. data/lib/oci/devops/models/create_single_deploy_stage_deployment_details.rb +204 -0
  533. data/lib/oci/devops/models/create_wait_deploy_stage_details.rb +186 -0
  534. data/lib/oci/devops/models/deploy_artifact.rb +407 -0
  535. data/lib/oci/devops/models/deploy_artifact_collection.rb +150 -0
  536. data/lib/oci/devops/models/deploy_artifact_override_argument.rb +174 -0
  537. data/lib/oci/devops/models/deploy_artifact_override_argument_collection.rb +150 -0
  538. data/lib/oci/devops/models/deploy_artifact_source.rb +193 -0
  539. data/lib/oci/devops/models/deploy_artifact_summary.rb +342 -0
  540. data/lib/oci/devops/models/deploy_environment.rb +376 -0
  541. data/lib/oci/devops/models/deploy_environment_collection.rb +150 -0
  542. data/lib/oci/devops/models/deploy_environment_summary.rb +332 -0
  543. data/lib/oci/devops/models/deploy_pipeline.rb +365 -0
  544. data/lib/oci/{usage_api/models/saved_schedule_report.rb → devops/models/deploy_pipeline_artifact.rb} +27 -39
  545. data/lib/oci/devops/models/deploy_pipeline_artifact_collection.rb +150 -0
  546. data/lib/oci/devops/models/deploy_pipeline_collection.rb +150 -0
  547. data/lib/oci/devops/models/deploy_pipeline_deployment.rb +213 -0
  548. data/lib/oci/devops/models/deploy_pipeline_deployment_summary.rb +201 -0
  549. data/lib/oci/devops/models/deploy_pipeline_environment.rb +182 -0
  550. data/lib/oci/devops/models/deploy_pipeline_environment_collection.rb +150 -0
  551. data/lib/oci/devops/models/deploy_pipeline_parameter.rb +174 -0
  552. data/lib/oci/devops/models/deploy_pipeline_parameter_collection.rb +150 -0
  553. data/lib/oci/devops/models/deploy_pipeline_redeployment.rb +230 -0
  554. data/lib/oci/devops/models/deploy_pipeline_redeployment_summary.rb +218 -0
  555. data/lib/oci/devops/models/deploy_pipeline_stage.rb +168 -0
  556. data/lib/oci/devops/models/deploy_pipeline_stage_collection.rb +150 -0
  557. data/lib/oci/devops/models/deploy_pipeline_summary.rb +299 -0
  558. data/lib/oci/devops/models/deploy_stage.rb +411 -0
  559. data/lib/oci/devops/models/deploy_stage_collection.rb +150 -0
  560. data/lib/oci/devops/models/deploy_stage_execution_progress.rb +303 -0
  561. data/lib/oci/devops/models/deploy_stage_execution_progress_details.rb +192 -0
  562. data/lib/oci/devops/models/deploy_stage_execution_step.rb +211 -0
  563. data/lib/oci/{usage_api/models/schedule_report_summary.rb → devops/models/deploy_stage_predecessor.rb} +7 -20
  564. data/lib/oci/devops/models/deploy_stage_predecessor_collection.rb +150 -0
  565. data/lib/oci/devops/models/deploy_stage_rollback_policy.rb +191 -0
  566. data/lib/oci/devops/models/deploy_stage_summary.rb +363 -0
  567. data/lib/oci/devops/models/deployment.rb +445 -0
  568. data/lib/oci/devops/models/deployment_argument.rb +160 -0
  569. data/lib/oci/devops/models/deployment_argument_collection.rb +150 -0
  570. data/lib/oci/devops/models/deployment_collection.rb +150 -0
  571. data/lib/oci/devops/models/deployment_execution_progress.rb +182 -0
  572. data/lib/oci/devops/models/deployment_summary.rb +363 -0
  573. data/lib/oci/devops/models/function_deploy_environment.rb +210 -0
  574. data/lib/oci/devops/models/function_deploy_environment_summary.rb +210 -0
  575. data/lib/oci/devops/models/function_deploy_stage.rb +270 -0
  576. data/lib/oci/devops/models/function_deploy_stage_execution_progress.rb +173 -0
  577. data/lib/oci/devops/models/function_deploy_stage_summary.rb +270 -0
  578. data/lib/oci/devops/models/generic_deploy_artifact_source.rb +190 -0
  579. data/lib/oci/devops/models/inline_deploy_artifact_source.rb +162 -0
  580. data/lib/oci/devops/models/invoke_function_deploy_stage.rb +260 -0
  581. data/lib/oci/devops/models/invoke_function_deploy_stage_execution_progress.rb +173 -0
  582. data/lib/oci/devops/models/invoke_function_deploy_stage_summary.rb +260 -0
  583. data/lib/oci/devops/models/load_balancer_config.rb +184 -0
  584. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage.rb +308 -0
  585. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_execution_progress.rb +173 -0
  586. data/lib/oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary.rb +287 -0
  587. data/lib/oci/devops/models/load_balancer_traffic_shift_rollout_policy.rb +184 -0
  588. data/lib/oci/devops/models/manual_approval_deploy_stage.rb +218 -0
  589. data/lib/oci/devops/models/manual_approval_deploy_stage_execution_progress.rb +189 -0
  590. data/lib/oci/devops/models/manual_approval_deploy_stage_summary.rb +218 -0
  591. data/lib/oci/devops/models/no_deploy_stage_rollback_policy.rb +145 -0
  592. data/lib/oci/devops/models/notification_config.rb +154 -0
  593. data/lib/oci/devops/models/ocir_deploy_artifact_source.rb +176 -0
  594. data/lib/oci/devops/models/oke_cluster_deploy_environment.rb +210 -0
  595. data/lib/oci/devops/models/oke_cluster_deploy_environment_summary.rb +210 -0
  596. data/lib/oci/devops/models/oke_deploy_stage.rb +256 -0
  597. data/lib/oci/devops/models/oke_deploy_stage_execution_progress.rb +173 -0
  598. data/lib/oci/devops/models/oke_deploy_stage_summary.rb +256 -0
  599. data/lib/oci/devops/models/operation_status.rb +15 -0
  600. data/lib/oci/devops/models/operation_type.rb +28 -0
  601. data/lib/oci/devops/models/project.rb +330 -0
  602. data/lib/oci/devops/models/project_collection.rb +150 -0
  603. data/lib/oci/devops/models/project_summary.rb +292 -0
  604. data/lib/oci/devops/models/run_pipeline_deploy_stage_execution_progress.rb +173 -0
  605. data/lib/oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress.rb +173 -0
  606. data/lib/oci/devops/models/single_deploy_stage_deployment.rb +230 -0
  607. data/lib/oci/devops/models/single_deploy_stage_deployment_summary.rb +218 -0
  608. data/lib/oci/devops/models/sort_order.rb +11 -0
  609. data/lib/oci/devops/models/update_compute_instance_group_deploy_environment_details.rb +177 -0
  610. data/lib/oci/devops/models/update_compute_instance_group_deploy_stage_details.rb +262 -0
  611. data/lib/oci/devops/models/update_deploy_artifact_details.rb +233 -0
  612. data/lib/oci/devops/models/update_deploy_environment_details.rb +224 -0
  613. data/lib/oci/devops/models/update_deploy_pipeline_deployment_details.rb +157 -0
  614. data/lib/oci/devops/models/update_deploy_pipeline_details.rb +205 -0
  615. data/lib/oci/devops/models/update_deploy_pipeline_redeployment_details.rb +157 -0
  616. data/lib/oci/devops/models/update_deploy_stage_details.rb +241 -0
  617. data/lib/oci/devops/models/update_deployment_details.rb +214 -0
  618. data/lib/oci/devops/models/update_function_deploy_environment_details.rb +178 -0
  619. data/lib/oci/devops/models/update_function_deploy_stage_details.rb +234 -0
  620. data/lib/oci/devops/models/update_invoke_function_deploy_stage_details.rb +224 -0
  621. data/lib/oci/devops/models/update_load_balancer_traffic_shift_deploy_stage_details.rb +247 -0
  622. data/lib/oci/devops/models/update_manual_approval_deploy_stage_details.rb +181 -0
  623. data/lib/oci/devops/models/update_oke_cluster_deploy_environment_details.rb +178 -0
  624. data/lib/oci/devops/models/update_oke_deploy_stage_details.rb +220 -0
  625. data/lib/oci/devops/models/update_project_details.rb +191 -0
  626. data/lib/oci/devops/models/update_single_deploy_stage_deployment_details.rb +157 -0
  627. data/lib/oci/devops/models/update_wait_deploy_stage_details.rb +181 -0
  628. data/lib/oci/devops/models/wait_criteria.rb +189 -0
  629. data/lib/oci/devops/models/wait_criteria_summary.rb +189 -0
  630. data/lib/oci/devops/models/wait_deploy_stage.rb +218 -0
  631. data/lib/oci/devops/models/wait_deploy_stage_execution_progress.rb +173 -0
  632. data/lib/oci/devops/models/wait_deploy_stage_summary.rb +218 -0
  633. data/lib/oci/devops/models/work_request.rb +314 -0
  634. data/lib/oci/devops/models/work_request_collection.rb +150 -0
  635. data/lib/oci/devops/models/work_request_error.rb +171 -0
  636. data/lib/oci/devops/models/work_request_error_collection.rb +150 -0
  637. data/lib/oci/devops/models/work_request_log_entry.rb +160 -0
  638. data/lib/oci/devops/models/work_request_log_entry_collection.rb +150 -0
  639. data/lib/oci/devops/models/work_request_resource.rb +216 -0
  640. data/lib/oci/devops/models/work_request_summary.rb +314 -0
  641. data/lib/oci/devops/util.rb +3 -0
  642. data/lib/oci/dns/dns.rb +1 -1
  643. data/lib/oci/dns/dns_client.rb +306 -75
  644. data/lib/oci/dns/models/create_resolver_endpoint_details.rb +2 -2
  645. data/lib/oci/dns/models/create_resolver_vnic_endpoint_details.rb +5 -5
  646. data/lib/oci/dns/models/external_master.rb +1 -12
  647. data/lib/oci/dns/models/resolver.rb +4 -4
  648. data/lib/oci/dns/models/resolver_endpoint.rb +2 -2
  649. data/lib/oci/dns/models/resolver_endpoint_summary.rb +2 -2
  650. data/lib/oci/dns/models/resolver_forward_rule.rb +2 -2
  651. data/lib/oci/dns/models/resolver_forward_rule_details.rb +2 -2
  652. data/lib/oci/dns/models/resolver_rule.rb +2 -2
  653. data/lib/oci/dns/models/resolver_rule_details.rb +2 -2
  654. data/lib/oci/dns/models/resolver_summary.rb +4 -4
  655. data/lib/oci/dns/models/resolver_vnic_endpoint.rb +2 -1
  656. data/lib/oci/dns/models/tsig_key.rb +4 -0
  657. data/lib/oci/dns/models/tsig_key_summary.rb +4 -0
  658. data/lib/oci/dns/models/update_resolver_vnic_endpoint_details.rb +2 -1
  659. data/lib/oci/dns/models/zone.rb +20 -4
  660. data/lib/oci/dns/models/zone_summary.rb +1 -0
  661. data/lib/oci/dns/models/zone_transfer_server.rb +192 -0
  662. data/lib/oci/email/email.rb +23 -0
  663. data/lib/oci/email/email_client.rb +1139 -139
  664. data/lib/oci/email/email_client_composite_operations.rb +346 -0
  665. data/lib/oci/email/models/action_type.rb +14 -0
  666. data/lib/oci/email/models/change_email_domain_compartment_details.rb +156 -0
  667. data/lib/oci/email/models/create_dkim_details.rb +225 -0
  668. data/lib/oci/email/models/create_email_domain_details.rb +220 -0
  669. data/lib/oci/email/models/create_sender_details.rb +2 -0
  670. data/lib/oci/email/models/dkim.rb +399 -0
  671. data/lib/oci/email/models/dkim_collection.rb +150 -0
  672. data/lib/oci/email/models/dkim_summary.rb +307 -0
  673. data/lib/oci/email/models/email_domain.rb +333 -0
  674. data/lib/oci/email/models/email_domain_collection.rb +150 -0
  675. data/lib/oci/email/models/email_domain_summary.rb +291 -0
  676. data/lib/oci/email/models/operation_status.rb +15 -0
  677. data/lib/oci/email/models/operation_type.rb +17 -0
  678. data/lib/oci/email/models/sender.rb +21 -4
  679. data/lib/oci/email/models/sender_summary.rb +5 -3
  680. data/lib/oci/email/models/sort_order.rb +11 -0
  681. data/lib/oci/email/models/suppression.rb +77 -7
  682. data/lib/oci/email/models/suppression_summary.rb +3 -3
  683. data/lib/oci/email/models/update_dkim_details.rb +189 -0
  684. data/lib/oci/email/models/update_email_domain_details.rb +189 -0
  685. data/lib/oci/email/models/update_sender_details.rb +2 -0
  686. data/lib/oci/email/models/work_request.rb +312 -0
  687. data/lib/oci/email/models/work_request_error.rb +172 -0
  688. data/lib/oci/email/models/work_request_error_collection.rb +150 -0
  689. data/lib/oci/email/models/work_request_log_entry.rb +160 -0
  690. data/lib/oci/email/models/work_request_log_entry_collection.rb +150 -0
  691. data/lib/oci/email/models/work_request_resource.rb +219 -0
  692. data/lib/oci/email/models/work_request_summary.rb +312 -0
  693. data/lib/oci/email/models/work_request_summary_collection.rb +150 -0
  694. data/lib/oci/generic_artifacts_content/generic_artifacts_content.rb +20 -0
  695. data/lib/oci/generic_artifacts_content/generic_artifacts_content_client.rb +410 -0
  696. data/lib/oci/generic_artifacts_content/generic_artifacts_content_client_composite_operations.rb +25 -0
  697. data/lib/oci/generic_artifacts_content/models/generic_artifact.rb +337 -0
  698. data/lib/oci/generic_artifacts_content/util.rb +3 -0
  699. data/lib/oci/jms/java_management_service_client.rb +1520 -0
  700. data/lib/oci/jms/java_management_service_client_composite_operations.rb +273 -0
  701. data/lib/oci/jms/jms.rb +63 -0
  702. data/lib/oci/jms/models/action_type.rb +14 -0
  703. data/lib/oci/jms/models/application_sort_by.rb +15 -0
  704. data/lib/oci/jms/models/application_usage.rb +292 -0
  705. data/lib/oci/jms/models/application_usage_collection.rb +150 -0
  706. data/lib/oci/jms/models/change_fleet_compartment_details.rb +154 -0
  707. data/lib/oci/jms/models/create_fleet_details.rb +210 -0
  708. data/lib/oci/jms/models/fleet.rb +358 -0
  709. data/lib/oci/jms/models/fleet_agent_configuration.rb +214 -0
  710. data/lib/oci/jms/models/fleet_agent_os_configuration.rb +171 -0
  711. data/lib/oci/jms/models/fleet_collection.rb +150 -0
  712. data/lib/oci/jms/models/fleet_summary.rb +359 -0
  713. data/lib/oci/jms/models/installation_sort_by.rb +17 -0
  714. data/lib/oci/jms/models/installation_usage.rb +306 -0
  715. data/lib/oci/jms/models/installation_usage_collection.rb +150 -0
  716. data/lib/oci/jms/models/jre_sort_by.rb +17 -0
  717. data/lib/oci/jms/models/jre_usage.rb +276 -0
  718. data/lib/oci/jms/models/jre_usage_collection.rb +150 -0
  719. data/lib/oci/jms/models/lifecycle_state.rb +15 -0
  720. data/lib/oci/jms/models/managed_instance_sort_by.rb +14 -0
  721. data/lib/oci/jms/models/managed_instance_type.rb +10 -0
  722. data/lib/oci/jms/models/managed_instance_usage.rb +308 -0
  723. data/lib/oci/jms/models/managed_instance_usage_collection.rb +150 -0
  724. data/lib/oci/jms/models/operation_status.rb +15 -0
  725. data/lib/oci/jms/models/operation_type.rb +13 -0
  726. data/lib/oci/jms/models/request_summarized_application_usage_details.rb +362 -0
  727. data/lib/oci/jms/models/request_summarized_installation_usage_details.rb +335 -0
  728. data/lib/oci/jms/models/request_summarized_jre_usage_details.rb +321 -0
  729. data/lib/oci/jms/models/request_summarized_managed_instance_usage_details.rb +358 -0
  730. data/lib/oci/jms/models/sort_by.rb +11 -0
  731. data/lib/oci/jms/models/sort_order.rb +11 -0
  732. data/lib/oci/jms/models/summarize_application_usage_fields.rb +12 -0
  733. data/lib/oci/jms/models/summarize_installation_usage_fields.rb +11 -0
  734. data/lib/oci/jms/models/summarize_jre_usage_fields.rb +12 -0
  735. data/lib/oci/jms/models/summarize_managed_instance_usage_fields.rb +12 -0
  736. data/lib/oci/jms/models/update_fleet_agent_configuration_details.rb +196 -0
  737. data/lib/oci/jms/models/update_fleet_details.rb +196 -0
  738. data/lib/oci/jms/models/work_request.rb +306 -0
  739. data/lib/oci/jms/models/work_request_collection.rb +150 -0
  740. data/lib/oci/jms/models/work_request_error.rb +173 -0
  741. data/lib/oci/jms/models/work_request_error_collection.rb +150 -0
  742. data/lib/oci/jms/models/work_request_log_entry.rb +160 -0
  743. data/lib/oci/jms/models/work_request_log_entry_collection.rb +150 -0
  744. data/lib/oci/jms/models/work_request_resource.rb +219 -0
  745. data/lib/oci/jms/util.rb +3 -0
  746. data/lib/oci/limits/limits_client.rb +12 -12
  747. data/lib/oci/limits/models/limit_definition_summary.rb +22 -7
  748. data/lib/oci/limits/models/quota.rb +6 -6
  749. data/lib/oci/limits/models/quota_summary.rb +3 -3
  750. data/lib/oci/limits/models/resource_availability.rb +7 -7
  751. data/lib/oci/limits/models/service_summary.rb +1 -1
  752. data/lib/oci/limits/quotas_client.rb +9 -9
  753. data/lib/oci/log_analytics/log_analytics.rb +1 -0
  754. data/lib/oci/log_analytics/log_analytics_client.rb +60 -0
  755. data/lib/oci/log_analytics/models/abstract_command_descriptor.rb +2 -0
  756. data/lib/oci/log_analytics/models/compare_command_descriptor.rb +166 -0
  757. data/lib/oci/log_analytics/models/cron_schedule.rb +5 -1
  758. data/lib/oci/log_analytics/models/fixed_frequency_schedule.rb +5 -1
  759. data/lib/oci/log_analytics/models/namespace.rb +20 -4
  760. data/lib/oci/log_analytics/models/namespace_summary.rb +20 -4
  761. data/lib/oci/log_analytics/models/schedule.rb +20 -4
  762. data/lib/oci/log_analytics/models/scheduled_task.rb +54 -1
  763. data/lib/oci/log_analytics/models/scheduled_task_summary.rb +15 -1
  764. data/lib/oci/log_analytics/models/standard_task.rb +9 -1
  765. data/lib/oci/log_analytics/models/stream_action.rb +40 -4
  766. data/lib/oci/loggingingestion/logging_client.rb +1 -1
  767. data/lib/oci/loggingingestion/models/log_entry.rb +1 -1
  768. data/lib/oci/loggingingestion/models/log_entry_batch.rb +2 -2
  769. data/lib/oci/management_dashboard/dashx_apis_client.rb +16 -6
  770. data/lib/oci/management_dashboard/dashx_apis_client_composite_operations.rb +238 -0
  771. data/lib/oci/management_dashboard/management_dashboard.rb +1 -0
  772. data/lib/oci/management_dashboard/models/create_management_dashboard_details.rb +15 -1
  773. data/lib/oci/management_dashboard/models/create_management_saved_search_details.rb +15 -1
  774. data/lib/oci/management_dashboard/models/management_dashboard.rb +59 -2
  775. data/lib/oci/management_dashboard/models/management_dashboard_export_details.rb +4 -36
  776. data/lib/oci/management_dashboard/models/management_dashboard_for_import_export_details.rb +15 -1
  777. data/lib/oci/management_dashboard/models/management_dashboard_summary.rb +12 -2
  778. data/lib/oci/management_dashboard/models/management_dashboard_tile_details.rb +18 -4
  779. data/lib/oci/management_dashboard/models/management_saved_search.rb +47 -1
  780. data/lib/oci/management_dashboard/models/management_saved_search_for_import_details.rb +18 -4
  781. data/lib/oci/management_dashboard/models/management_saved_search_summary.rb +15 -1
  782. data/lib/oci/management_dashboard/models/update_management_dashboard_details.rb +15 -1
  783. data/lib/oci/management_dashboard/models/update_management_saved_search_details.rb +15 -1
  784. data/lib/oci/marketplace/account_client.rb +220 -0
  785. data/lib/oci/marketplace/account_client_composite_operations.rb +25 -0
  786. data/lib/oci/marketplace/marketplace.rb +8 -0
  787. data/lib/oci/marketplace/marketplace_client.rb +86 -24
  788. data/lib/oci/marketplace/marketplace_client_composite_operations.rb +4 -4
  789. data/lib/oci/marketplace/models/change_publication_compartment_details.rb +2 -2
  790. data/lib/oci/marketplace/models/create_image_publication_package.rb +2 -2
  791. data/lib/oci/marketplace/models/create_publication_details.rb +10 -8
  792. data/lib/oci/marketplace/models/create_publication_package.rb +4 -4
  793. data/lib/oci/marketplace/models/eula.rb +2 -2
  794. data/lib/oci/marketplace/models/free_text_search_details.rb +162 -0
  795. data/lib/oci/marketplace/models/image_publication_package.rb +3 -3
  796. data/lib/oci/marketplace/models/launch_eligibility.rb +178 -0
  797. data/lib/oci/marketplace/models/listing.rb +2 -2
  798. data/lib/oci/marketplace/models/listing_package_summary.rb +10 -1
  799. data/lib/oci/marketplace/models/listing_summary.rb +2 -2
  800. data/lib/oci/marketplace/models/matching_context_type_enum.rb +11 -0
  801. data/lib/oci/marketplace/models/operating_system.rb +2 -2
  802. data/lib/oci/marketplace/models/orchestration_publication_package.rb +3 -3
  803. data/lib/oci/marketplace/models/publication.rb +11 -11
  804. data/lib/oci/marketplace/models/publication_package.rb +3 -3
  805. data/lib/oci/marketplace/models/publication_package_summary.rb +1 -1
  806. data/lib/oci/marketplace/models/publication_summary.rb +9 -9
  807. data/lib/oci/marketplace/models/publisher_summary.rb +1 -1
  808. data/lib/oci/marketplace/models/search_details_type_enum.rb +11 -0
  809. data/lib/oci/marketplace/models/search_listings_details.rb +207 -0
  810. data/lib/oci/marketplace/models/structured_search_details.rb +162 -0
  811. data/lib/oci/marketplace/models/text_based_eula.rb +2 -2
  812. data/lib/oci/marketplace/models/third_party_paid_listing_eligibility.rb +210 -0
  813. data/lib/oci/marketplace/models/update_publication_details.rb +5 -5
  814. data/lib/oci/mysql/db_backups_client.rb +76 -0
  815. data/lib/oci/mysql/db_backups_client_composite_operations.rb +50 -0
  816. data/lib/oci/mysql/models/change_backup_compartment_details.rb +154 -0
  817. data/lib/oci/mysql/mysql.rb +1 -0
  818. data/lib/oci/oce/models/create_oce_instance_details.rb +3 -1
  819. data/lib/oci/oce/models/license_type.rb +3 -1
  820. data/lib/oci/oce/models/oce_instance.rb +19 -1
  821. data/lib/oci/oce/models/oce_instance_summary.rb +22 -4
  822. data/lib/oci/oce/models/update_oce_instance_details.rb +3 -1
  823. data/lib/oci/oce/oce_instance_client.rb +2 -0
  824. data/lib/oci/ocvp/models/create_esxi_host_details.rb +3 -1
  825. data/lib/oci/ocvp/models/create_sddc_details.rb +21 -2
  826. data/lib/oci/ocvp/models/downgrade_hcx_details.rb +154 -0
  827. data/lib/oci/ocvp/models/esxi_host.rb +2 -0
  828. data/lib/oci/ocvp/models/esxi_host_summary.rb +2 -0
  829. data/lib/oci/ocvp/models/hcx_license_status.rb +13 -0
  830. data/lib/oci/ocvp/models/hcx_license_summary.rb +201 -0
  831. data/lib/oci/ocvp/models/operation_types.rb +5 -1
  832. data/lib/oci/ocvp/models/sddc.rb +86 -2
  833. data/lib/oci/ocvp/models/supported_sku_summary.rb +2 -1
  834. data/lib/oci/ocvp/models/supported_sku_summary_collection.rb +3 -1
  835. data/lib/oci/ocvp/models/update_esxi_host_details.rb +3 -1
  836. data/lib/oci/ocvp/models/work_request.rb +4 -0
  837. data/lib/oci/ocvp/ocvp.rb +3 -0
  838. data/lib/oci/ocvp/sddc_client.rb +291 -2
  839. data/lib/oci/ocvp/sddc_client_composite_operations.rb +201 -0
  840. data/lib/oci/opsi/models/autonomous_database_configuration_summary.rb +198 -0
  841. data/lib/oci/opsi/models/create_enterprise_manager_bridge_details.rb +2 -2
  842. data/lib/oci/opsi/models/create_host_insight_details.rb +1 -1
  843. data/lib/oci/opsi/models/create_macs_managed_external_host_insight_details.rb +1 -1
  844. data/lib/oci/opsi/models/database_configuration_collection.rb +150 -0
  845. data/lib/oci/opsi/models/database_configuration_summary.rb +323 -0
  846. data/lib/oci/opsi/models/database_details.rb +1 -0
  847. data/lib/oci/opsi/models/database_insight.rb +1 -0
  848. data/lib/oci/opsi/models/database_insight_summary.rb +1 -0
  849. data/lib/oci/opsi/models/em_managed_external_database_configuration_summary.rb +222 -0
  850. data/lib/oci/opsi/models/enable_host_insight_details.rb +1 -1
  851. data/lib/oci/opsi/models/enable_macs_managed_external_host_insight_details.rb +1 -1
  852. data/lib/oci/opsi/models/enterprise_manager_bridge.rb +16 -1
  853. data/lib/oci/opsi/models/enterprise_manager_bridge_summary.rb +16 -1
  854. data/lib/oci/opsi/models/host_insight.rb +1 -0
  855. data/lib/oci/opsi/models/host_insight_summary.rb +1 -0
  856. data/lib/oci/opsi/models/lifecycle_state.rb +2 -1
  857. data/lib/oci/opsi/models/macs_managed_external_database_configuration_summary.rb +236 -0
  858. data/lib/oci/opsi/models/macs_managed_external_host_insight.rb +1 -1
  859. data/lib/oci/opsi/models/macs_managed_external_host_insight_summary.rb +1 -1
  860. data/lib/oci/opsi/models/summarize_database_insight_resource_forecast_trend_aggregation.rb +15 -1
  861. data/lib/oci/opsi/models/tablespace_usage_trend_aggregation.rb +1 -1
  862. data/lib/oci/opsi/operations_insights_client.rb +631 -25
  863. data/lib/oci/opsi/opsi.rb +5 -0
  864. data/lib/oci/regions.rb +3 -0
  865. data/lib/oci/secrets/secrets_client.rb +71 -1
  866. data/lib/oci/tenant_manager_control_plane/models/activate_order_details.rb +154 -0
  867. data/lib/oci/tenant_manager_control_plane/models/operation_type.rb +5 -1
  868. data/lib/oci/tenant_manager_control_plane/models/order.rb +206 -0
  869. data/lib/oci/{dns/models/tsig.rb → tenant_manager_control_plane/models/sku.rb} +22 -25
  870. data/lib/oci/tenant_manager_control_plane/models/subscription_info.rb +202 -0
  871. data/lib/oci/tenant_manager_control_plane/models/work_request.rb +4 -0
  872. data/lib/oci/tenant_manager_control_plane/models/work_request_summary.rb +4 -0
  873. data/lib/oci/tenant_manager_control_plane/orders_client.rb +225 -0
  874. data/lib/oci/tenant_manager_control_plane/orders_client_composite_operations.rb +76 -0
  875. data/lib/oci/tenant_manager_control_plane/tenant_manager_control_plane.rb +6 -0
  876. data/lib/oci/usage_api/models/cost_analysis_ui.rb +2 -2
  877. data/lib/oci/usage_api/models/create_custom_table_details.rb +10 -10
  878. data/lib/oci/usage_api/models/create_query_details.rb +1 -1
  879. data/lib/oci/usage_api/models/custom_table.rb +13 -13
  880. data/lib/oci/usage_api/models/custom_table_summary.rb +1 -1
  881. data/lib/oci/usage_api/models/dimension.rb +1 -1
  882. data/lib/oci/usage_api/models/forecast.rb +3 -3
  883. data/lib/oci/usage_api/models/query_definition.rb +1 -1
  884. data/lib/oci/usage_api/models/query_summary.rb +1 -1
  885. data/lib/oci/usage_api/models/report_query.rb +11 -5
  886. data/lib/oci/usage_api/models/request_summarized_usages_details.rb +11 -5
  887. data/lib/oci/usage_api/models/saved_custom_table.rb +6 -6
  888. data/lib/oci/usage_api/models/update_custom_table_details.rb +1 -1
  889. data/lib/oci/usage_api/models/update_query_details.rb +1 -1
  890. data/lib/oci/usage_api/models/usage_summary.rb +1 -1
  891. data/lib/oci/usage_api/usage_api.rb +0 -6
  892. data/lib/oci/usage_api/usageapi_client.rb +332 -1
  893. data/lib/oci/version.rb +1 -1
  894. metadata +512 -16
@@ -0,0 +1,177 @@
1
+ # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3
+
4
+ module OCI
5
+ module Devops
6
+ # Module containing models for requests made to, and responses received from,
7
+ # OCI Devops services
8
+ module Models
9
+ end
10
+ end
11
+ end
12
+
13
+ # Require models
14
+ require 'oci/devops/models/absolute_wait_criteria'
15
+ require 'oci/devops/models/absolute_wait_criteria_summary'
16
+ require 'oci/devops/models/action_type'
17
+ require 'oci/devops/models/approval_action'
18
+ require 'oci/devops/models/approval_policy'
19
+ require 'oci/devops/models/approve_deployment_details'
20
+ require 'oci/devops/models/automated_deploy_stage_rollback_policy'
21
+ require 'oci/devops/models/backend_set_ip_collection'
22
+ require 'oci/devops/models/cancel_deployment_details'
23
+ require 'oci/devops/models/change_project_compartment_details'
24
+ require 'oci/devops/models/compute_instance_group_blue_green_deploy_stage_execution_progress'
25
+ require 'oci/devops/models/compute_instance_group_blue_green_traffic_shift_deploy_stage_execution_progress'
26
+ require 'oci/devops/models/compute_instance_group_by_ids_selector'
27
+ require 'oci/devops/models/compute_instance_group_by_query_selector'
28
+ require 'oci/devops/models/compute_instance_group_canary_approval_deploy_stage_execution_progress'
29
+ require 'oci/devops/models/compute_instance_group_canary_deploy_stage_execution_progress'
30
+ require 'oci/devops/models/compute_instance_group_canary_traffic_shift_deploy_stage_execution_progress'
31
+ require 'oci/devops/models/compute_instance_group_deploy_environment'
32
+ require 'oci/devops/models/compute_instance_group_deploy_environment_summary'
33
+ require 'oci/devops/models/compute_instance_group_deploy_stage'
34
+ require 'oci/devops/models/compute_instance_group_deploy_stage_execution_progress'
35
+ require 'oci/devops/models/compute_instance_group_deploy_stage_summary'
36
+ require 'oci/devops/models/compute_instance_group_failure_policy'
37
+ require 'oci/devops/models/compute_instance_group_failure_policy_by_count'
38
+ require 'oci/devops/models/compute_instance_group_failure_policy_by_percentage'
39
+ require 'oci/devops/models/compute_instance_group_linear_rollout_policy_by_count'
40
+ require 'oci/devops/models/compute_instance_group_linear_rollout_policy_by_percentage'
41
+ require 'oci/devops/models/compute_instance_group_rollout_policy'
42
+ require 'oci/devops/models/compute_instance_group_selector'
43
+ require 'oci/devops/models/compute_instance_group_selector_collection'
44
+ require 'oci/devops/models/count_based_approval_policy'
45
+ require 'oci/devops/models/create_compute_instance_group_deploy_environment_details'
46
+ require 'oci/devops/models/create_compute_instance_group_deploy_stage_details'
47
+ require 'oci/devops/models/create_deploy_artifact_details'
48
+ require 'oci/devops/models/create_deploy_environment_details'
49
+ require 'oci/devops/models/create_deploy_pipeline_deployment_details'
50
+ require 'oci/devops/models/create_deploy_pipeline_details'
51
+ require 'oci/devops/models/create_deploy_pipeline_redeployment_details'
52
+ require 'oci/devops/models/create_deploy_stage_details'
53
+ require 'oci/devops/models/create_deployment_details'
54
+ require 'oci/devops/models/create_function_deploy_environment_details'
55
+ require 'oci/devops/models/create_function_deploy_stage_details'
56
+ require 'oci/devops/models/create_invoke_function_deploy_stage_details'
57
+ require 'oci/devops/models/create_load_balancer_traffic_shift_deploy_stage_details'
58
+ require 'oci/devops/models/create_manual_approval_deploy_stage_details'
59
+ require 'oci/devops/models/create_oke_cluster_deploy_environment_details'
60
+ require 'oci/devops/models/create_oke_deploy_stage_details'
61
+ require 'oci/devops/models/create_project_details'
62
+ require 'oci/devops/models/create_single_deploy_stage_deployment_details'
63
+ require 'oci/devops/models/create_wait_deploy_stage_details'
64
+ require 'oci/devops/models/deploy_artifact'
65
+ require 'oci/devops/models/deploy_artifact_collection'
66
+ require 'oci/devops/models/deploy_artifact_override_argument'
67
+ require 'oci/devops/models/deploy_artifact_override_argument_collection'
68
+ require 'oci/devops/models/deploy_artifact_source'
69
+ require 'oci/devops/models/deploy_artifact_summary'
70
+ require 'oci/devops/models/deploy_environment'
71
+ require 'oci/devops/models/deploy_environment_collection'
72
+ require 'oci/devops/models/deploy_environment_summary'
73
+ require 'oci/devops/models/deploy_pipeline'
74
+ require 'oci/devops/models/deploy_pipeline_artifact'
75
+ require 'oci/devops/models/deploy_pipeline_artifact_collection'
76
+ require 'oci/devops/models/deploy_pipeline_collection'
77
+ require 'oci/devops/models/deploy_pipeline_deployment'
78
+ require 'oci/devops/models/deploy_pipeline_deployment_summary'
79
+ require 'oci/devops/models/deploy_pipeline_environment'
80
+ require 'oci/devops/models/deploy_pipeline_environment_collection'
81
+ require 'oci/devops/models/deploy_pipeline_parameter'
82
+ require 'oci/devops/models/deploy_pipeline_parameter_collection'
83
+ require 'oci/devops/models/deploy_pipeline_redeployment'
84
+ require 'oci/devops/models/deploy_pipeline_redeployment_summary'
85
+ require 'oci/devops/models/deploy_pipeline_stage'
86
+ require 'oci/devops/models/deploy_pipeline_stage_collection'
87
+ require 'oci/devops/models/deploy_pipeline_summary'
88
+ require 'oci/devops/models/deploy_stage'
89
+ require 'oci/devops/models/deploy_stage_collection'
90
+ require 'oci/devops/models/deploy_stage_execution_progress'
91
+ require 'oci/devops/models/deploy_stage_execution_progress_details'
92
+ require 'oci/devops/models/deploy_stage_execution_step'
93
+ require 'oci/devops/models/deploy_stage_predecessor'
94
+ require 'oci/devops/models/deploy_stage_predecessor_collection'
95
+ require 'oci/devops/models/deploy_stage_rollback_policy'
96
+ require 'oci/devops/models/deploy_stage_summary'
97
+ require 'oci/devops/models/deployment'
98
+ require 'oci/devops/models/deployment_argument'
99
+ require 'oci/devops/models/deployment_argument_collection'
100
+ require 'oci/devops/models/deployment_collection'
101
+ require 'oci/devops/models/deployment_execution_progress'
102
+ require 'oci/devops/models/deployment_summary'
103
+ require 'oci/devops/models/function_deploy_environment'
104
+ require 'oci/devops/models/function_deploy_environment_summary'
105
+ require 'oci/devops/models/function_deploy_stage'
106
+ require 'oci/devops/models/function_deploy_stage_execution_progress'
107
+ require 'oci/devops/models/function_deploy_stage_summary'
108
+ require 'oci/devops/models/generic_deploy_artifact_source'
109
+ require 'oci/devops/models/inline_deploy_artifact_source'
110
+ require 'oci/devops/models/invoke_function_deploy_stage'
111
+ require 'oci/devops/models/invoke_function_deploy_stage_execution_progress'
112
+ require 'oci/devops/models/invoke_function_deploy_stage_summary'
113
+ require 'oci/devops/models/load_balancer_config'
114
+ require 'oci/devops/models/load_balancer_traffic_shift_deploy_stage'
115
+ require 'oci/devops/models/load_balancer_traffic_shift_deploy_stage_execution_progress'
116
+ require 'oci/devops/models/load_balancer_traffic_shift_deploy_stage_summary'
117
+ require 'oci/devops/models/load_balancer_traffic_shift_rollout_policy'
118
+ require 'oci/devops/models/manual_approval_deploy_stage'
119
+ require 'oci/devops/models/manual_approval_deploy_stage_execution_progress'
120
+ require 'oci/devops/models/manual_approval_deploy_stage_summary'
121
+ require 'oci/devops/models/no_deploy_stage_rollback_policy'
122
+ require 'oci/devops/models/notification_config'
123
+ require 'oci/devops/models/ocir_deploy_artifact_source'
124
+ require 'oci/devops/models/oke_cluster_deploy_environment'
125
+ require 'oci/devops/models/oke_cluster_deploy_environment_summary'
126
+ require 'oci/devops/models/oke_deploy_stage'
127
+ require 'oci/devops/models/oke_deploy_stage_execution_progress'
128
+ require 'oci/devops/models/oke_deploy_stage_summary'
129
+ require 'oci/devops/models/operation_status'
130
+ require 'oci/devops/models/operation_type'
131
+ require 'oci/devops/models/project'
132
+ require 'oci/devops/models/project_collection'
133
+ require 'oci/devops/models/project_summary'
134
+ require 'oci/devops/models/run_pipeline_deploy_stage_execution_progress'
135
+ require 'oci/devops/models/run_validation_test_on_compute_instance_deploy_stage_execution_progress'
136
+ require 'oci/devops/models/single_deploy_stage_deployment'
137
+ require 'oci/devops/models/single_deploy_stage_deployment_summary'
138
+ require 'oci/devops/models/sort_order'
139
+ require 'oci/devops/models/update_compute_instance_group_deploy_environment_details'
140
+ require 'oci/devops/models/update_compute_instance_group_deploy_stage_details'
141
+ require 'oci/devops/models/update_deploy_artifact_details'
142
+ require 'oci/devops/models/update_deploy_environment_details'
143
+ require 'oci/devops/models/update_deploy_pipeline_deployment_details'
144
+ require 'oci/devops/models/update_deploy_pipeline_details'
145
+ require 'oci/devops/models/update_deploy_pipeline_redeployment_details'
146
+ require 'oci/devops/models/update_deploy_stage_details'
147
+ require 'oci/devops/models/update_deployment_details'
148
+ require 'oci/devops/models/update_function_deploy_environment_details'
149
+ require 'oci/devops/models/update_function_deploy_stage_details'
150
+ require 'oci/devops/models/update_invoke_function_deploy_stage_details'
151
+ require 'oci/devops/models/update_load_balancer_traffic_shift_deploy_stage_details'
152
+ require 'oci/devops/models/update_manual_approval_deploy_stage_details'
153
+ require 'oci/devops/models/update_oke_cluster_deploy_environment_details'
154
+ require 'oci/devops/models/update_oke_deploy_stage_details'
155
+ require 'oci/devops/models/update_project_details'
156
+ require 'oci/devops/models/update_single_deploy_stage_deployment_details'
157
+ require 'oci/devops/models/update_wait_deploy_stage_details'
158
+ require 'oci/devops/models/wait_criteria'
159
+ require 'oci/devops/models/wait_criteria_summary'
160
+ require 'oci/devops/models/wait_deploy_stage'
161
+ require 'oci/devops/models/wait_deploy_stage_execution_progress'
162
+ require 'oci/devops/models/wait_deploy_stage_summary'
163
+ require 'oci/devops/models/work_request'
164
+ require 'oci/devops/models/work_request_collection'
165
+ require 'oci/devops/models/work_request_error'
166
+ require 'oci/devops/models/work_request_error_collection'
167
+ require 'oci/devops/models/work_request_log_entry'
168
+ require 'oci/devops/models/work_request_log_entry_collection'
169
+ require 'oci/devops/models/work_request_resource'
170
+ require 'oci/devops/models/work_request_summary'
171
+
172
+ # Require generated clients
173
+ require 'oci/devops/devops_client'
174
+ require 'oci/devops/devops_client_composite_operations'
175
+
176
+ # Require service utilities
177
+ require 'oci/devops/util'
@@ -0,0 +1,2344 @@
1
+ # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
2
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
3
+
4
+ require 'uri'
5
+ require 'logger'
6
+
7
+ # rubocop:disable Lint/UnneededCopDisableDirective, Metrics/LineLength
8
+ module OCI
9
+ # Use the DevOps APIs to create a DevOps project to group the pipelines, add reference to target deployment environments, add artifacts to deploy, and create deployment pipelines needed to deploy your software.
10
+ class Devops::DevopsClient
11
+ # Client used to make HTTP requests.
12
+ # @return [OCI::ApiClient]
13
+ attr_reader :api_client
14
+
15
+ # Fully qualified endpoint URL
16
+ # @return [String]
17
+ attr_reader :endpoint
18
+
19
+ # The default retry configuration to apply to all operations in this service client. This can be overridden
20
+ # on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
21
+ # will not perform any retries
22
+ # @return [OCI::Retry::RetryConfig]
23
+ attr_reader :retry_config
24
+
25
+ # The region, which will usually correspond to a value in {OCI::Regions::REGION_ENUM}.
26
+ # @return [String]
27
+ attr_reader :region
28
+
29
+ # rubocop:disable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
30
+
31
+
32
+ # Creates a new DevopsClient.
33
+ # Notes:
34
+ # If a config is not specified, then the global OCI.config will be used.
35
+ #
36
+ # This client is not thread-safe
37
+ #
38
+ # Either a region or an endpoint must be specified. If an endpoint is specified, it will be used instead of the
39
+ # region. A region may be specified in the config or via or the region parameter. If specified in both, then the
40
+ # region parameter will be used.
41
+ # @param [Config] config A Config object.
42
+ # @param [String] region A region used to determine the service endpoint. This will usually
43
+ # correspond to a value in {OCI::Regions::REGION_ENUM}, but may be an arbitrary string.
44
+ # @param [String] endpoint The fully qualified endpoint URL
45
+ # @param [OCI::BaseSigner] signer A signer implementation which can be used by this client. If this is not provided then
46
+ # a signer will be constructed via the provided config. One use case of this parameter is instance principals authentication,
47
+ # so that the instance principals signer can be provided to the client
48
+ # @param [OCI::ApiClientProxySettings] proxy_settings If your environment requires you to use a proxy server for outgoing HTTP requests
49
+ # the details for the proxy can be provided in this parameter
50
+ # @param [OCI::Retry::RetryConfig] retry_config The retry configuration for this service client. This represents the default retry configuration to
51
+ # apply across all operations. This can be overridden on a per-operation basis. The default retry configuration value is `nil`, which means that an operation
52
+ # will not perform any retries
53
+ def initialize(config: nil, region: nil, endpoint: nil, signer: nil, proxy_settings: nil, retry_config: nil)
54
+ # If the signer is an InstancePrincipalsSecurityTokenSigner or SecurityTokenSigner and no config was supplied (they are self-sufficient signers)
55
+ # then create a dummy config to pass to the ApiClient constructor. If customers wish to create a client which uses instance principals
56
+ # and has config (either populated programmatically or loaded from a file), they must construct that config themselves and then
57
+ # pass it to this constructor.
58
+ #
59
+ # If there is no signer (or the signer is not an instance principals signer) and no config was supplied, this is not valid
60
+ # so try and load the config from the default file.
61
+ config = OCI::Config.validate_and_build_config_with_signer(config, signer)
62
+
63
+ signer = OCI::Signer.config_file_auth_builder(config) if signer.nil?
64
+
65
+ @api_client = OCI::ApiClient.new(config, signer, proxy_settings: proxy_settings)
66
+ @retry_config = retry_config
67
+
68
+ if endpoint
69
+ @endpoint = endpoint + '/20210630'
70
+ else
71
+ region ||= config.region
72
+ region ||= signer.region if signer.respond_to?(:region)
73
+ self.region = region
74
+ end
75
+ logger.info "DevopsClient endpoint set to '#{@endpoint}'." if logger
76
+ end
77
+ # rubocop:enable Metrics/AbcSize, Metrics/CyclomaticComplexity, Layout/EmptyLines, Metrics/PerceivedComplexity
78
+
79
+ # Set the region that will be used to determine the service endpoint.
80
+ # This will usually correspond to a value in {OCI::Regions::REGION_ENUM},
81
+ # but may be an arbitrary string.
82
+ def region=(new_region)
83
+ @region = new_region
84
+
85
+ raise 'A region must be specified.' unless @region
86
+
87
+ @endpoint = OCI::Regions.get_service_endpoint_for_template(@region, 'https://devops.{region}.oci.{secondLevelDomain}') + '/20210630'
88
+ logger.info "DevopsClient endpoint set to '#{@endpoint} from region #{@region}'." if logger
89
+ end
90
+
91
+ # @return [Logger] The logger for this client. May be nil.
92
+ def logger
93
+ @api_client.config.logger
94
+ end
95
+
96
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
97
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
98
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
99
+
100
+
101
+ # Submit stage approval.
102
+ # @param [String] deployment_id Unique deployment identifier.
103
+ # @param [OCI::Devops::Models::ApproveDeploymentDetails] approve_deployment_details The stage information for approval.
104
+ # @param [Hash] opts the optional parameters
105
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
106
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
107
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
108
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
109
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
110
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Deployment Deployment}
111
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/approve_deployment.rb.html) to see an example of how to use approve_deployment API.
112
+ def approve_deployment(deployment_id, approve_deployment_details, opts = {})
113
+ logger.debug 'Calling operation DevopsClient#approve_deployment.' if logger
114
+
115
+ raise "Missing the required parameter 'deployment_id' when calling approve_deployment." if deployment_id.nil?
116
+ raise "Missing the required parameter 'approve_deployment_details' when calling approve_deployment." if approve_deployment_details.nil?
117
+ raise "Parameter value for 'deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(deployment_id)
118
+
119
+ path = '/deployments/{deploymentId}/actions/approve'.sub('{deploymentId}', deployment_id.to_s)
120
+ operation_signing_strategy = :standard
121
+
122
+ # rubocop:disable Style/NegatedIf
123
+ # Query Params
124
+ query_params = {}
125
+
126
+ # Header Params
127
+ header_params = {}
128
+ header_params[:accept] = 'application/json'
129
+ header_params[:'content-type'] = 'application/json'
130
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
131
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
132
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
133
+ # rubocop:enable Style/NegatedIf
134
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
135
+
136
+ post_body = @api_client.object_to_http_body(approve_deployment_details)
137
+
138
+ # rubocop:disable Metrics/BlockLength
139
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#approve_deployment') do
140
+ @api_client.call_api(
141
+ :POST,
142
+ path,
143
+ endpoint,
144
+ header_params: header_params,
145
+ query_params: query_params,
146
+ operation_signing_strategy: operation_signing_strategy,
147
+ body: post_body,
148
+ return_type: 'OCI::Devops::Models::Deployment'
149
+ )
150
+ end
151
+ # rubocop:enable Metrics/BlockLength
152
+ end
153
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
154
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
155
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
156
+
157
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
158
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
159
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
160
+
161
+
162
+ # Cancels a deployment resource by identifier.
163
+ # @param [String] deployment_id Unique deployment identifier.
164
+ # @param [OCI::Devops::Models::CancelDeploymentDetails] cancel_deployment_details The information regarding the deployment to be canceled.
165
+ # @param [Hash] opts the optional parameters
166
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
167
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
168
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
169
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
170
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
171
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Deployment Deployment}
172
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/cancel_deployment.rb.html) to see an example of how to use cancel_deployment API.
173
+ def cancel_deployment(deployment_id, cancel_deployment_details, opts = {})
174
+ logger.debug 'Calling operation DevopsClient#cancel_deployment.' if logger
175
+
176
+ raise "Missing the required parameter 'deployment_id' when calling cancel_deployment." if deployment_id.nil?
177
+ raise "Missing the required parameter 'cancel_deployment_details' when calling cancel_deployment." if cancel_deployment_details.nil?
178
+ raise "Parameter value for 'deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(deployment_id)
179
+
180
+ path = '/deployments/{deploymentId}/actions/cancel'.sub('{deploymentId}', deployment_id.to_s)
181
+ operation_signing_strategy = :standard
182
+
183
+ # rubocop:disable Style/NegatedIf
184
+ # Query Params
185
+ query_params = {}
186
+
187
+ # Header Params
188
+ header_params = {}
189
+ header_params[:accept] = 'application/json'
190
+ header_params[:'content-type'] = 'application/json'
191
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
192
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
193
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
194
+ # rubocop:enable Style/NegatedIf
195
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
196
+
197
+ post_body = @api_client.object_to_http_body(cancel_deployment_details)
198
+
199
+ # rubocop:disable Metrics/BlockLength
200
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#cancel_deployment') do
201
+ @api_client.call_api(
202
+ :POST,
203
+ path,
204
+ endpoint,
205
+ header_params: header_params,
206
+ query_params: query_params,
207
+ operation_signing_strategy: operation_signing_strategy,
208
+ body: post_body,
209
+ return_type: 'OCI::Devops::Models::Deployment'
210
+ )
211
+ end
212
+ # rubocop:enable Metrics/BlockLength
213
+ end
214
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
215
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
216
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
217
+
218
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
219
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
220
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
221
+
222
+
223
+ # Moves a project resource from one compartment OCID to another.
224
+ # @param [String] project_id Unique project identifier.
225
+ # @param [OCI::Devops::Models::ChangeProjectCompartmentDetails] change_project_compartment_details The information to be updated.
226
+ # @param [Hash] opts the optional parameters
227
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
228
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
229
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
230
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
231
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
232
+ # @return [Response] A Response object with data of type nil
233
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/change_project_compartment.rb.html) to see an example of how to use change_project_compartment API.
234
+ def change_project_compartment(project_id, change_project_compartment_details, opts = {})
235
+ logger.debug 'Calling operation DevopsClient#change_project_compartment.' if logger
236
+
237
+ raise "Missing the required parameter 'project_id' when calling change_project_compartment." if project_id.nil?
238
+ raise "Missing the required parameter 'change_project_compartment_details' when calling change_project_compartment." if change_project_compartment_details.nil?
239
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
240
+
241
+ path = '/projects/{projectId}/actions/changeCompartment'.sub('{projectId}', project_id.to_s)
242
+ operation_signing_strategy = :standard
243
+
244
+ # rubocop:disable Style/NegatedIf
245
+ # Query Params
246
+ query_params = {}
247
+
248
+ # Header Params
249
+ header_params = {}
250
+ header_params[:accept] = 'application/json'
251
+ header_params[:'content-type'] = 'application/json'
252
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
253
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
254
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
255
+ # rubocop:enable Style/NegatedIf
256
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
257
+
258
+ post_body = @api_client.object_to_http_body(change_project_compartment_details)
259
+
260
+ # rubocop:disable Metrics/BlockLength
261
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#change_project_compartment') do
262
+ @api_client.call_api(
263
+ :POST,
264
+ path,
265
+ endpoint,
266
+ header_params: header_params,
267
+ query_params: query_params,
268
+ operation_signing_strategy: operation_signing_strategy,
269
+ body: post_body
270
+ )
271
+ end
272
+ # rubocop:enable Metrics/BlockLength
273
+ end
274
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
275
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
276
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
277
+
278
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
279
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
280
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
281
+
282
+
283
+ # Creates a new deployment artifact.
284
+ # @param [OCI::Devops::Models::CreateDeployArtifactDetails] create_deploy_artifact_details Details for the new deployment artifact.
285
+ # @param [Hash] opts the optional parameters
286
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
287
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
288
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
289
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
290
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployArtifact DeployArtifact}
291
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_deploy_artifact.rb.html) to see an example of how to use create_deploy_artifact API.
292
+ def create_deploy_artifact(create_deploy_artifact_details, opts = {})
293
+ logger.debug 'Calling operation DevopsClient#create_deploy_artifact.' if logger
294
+
295
+ raise "Missing the required parameter 'create_deploy_artifact_details' when calling create_deploy_artifact." if create_deploy_artifact_details.nil?
296
+
297
+ path = '/deployArtifacts'
298
+ operation_signing_strategy = :standard
299
+
300
+ # rubocop:disable Style/NegatedIf
301
+ # Query Params
302
+ query_params = {}
303
+
304
+ # Header Params
305
+ header_params = {}
306
+ header_params[:accept] = 'application/json'
307
+ header_params[:'content-type'] = 'application/json'
308
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
309
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
310
+ # rubocop:enable Style/NegatedIf
311
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
312
+
313
+ post_body = @api_client.object_to_http_body(create_deploy_artifact_details)
314
+
315
+ # rubocop:disable Metrics/BlockLength
316
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_deploy_artifact') do
317
+ @api_client.call_api(
318
+ :POST,
319
+ path,
320
+ endpoint,
321
+ header_params: header_params,
322
+ query_params: query_params,
323
+ operation_signing_strategy: operation_signing_strategy,
324
+ body: post_body,
325
+ return_type: 'OCI::Devops::Models::DeployArtifact'
326
+ )
327
+ end
328
+ # rubocop:enable Metrics/BlockLength
329
+ end
330
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
331
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
332
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
333
+
334
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
335
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
336
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
337
+
338
+
339
+ # Creates a new deployment environment.
340
+ # @param [OCI::Devops::Models::CreateDeployEnvironmentDetails] create_deploy_environment_details Details for the new deployment environment.
341
+ # @param [Hash] opts the optional parameters
342
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
343
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
344
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
345
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
346
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployEnvironment DeployEnvironment}
347
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_deploy_environment.rb.html) to see an example of how to use create_deploy_environment API.
348
+ def create_deploy_environment(create_deploy_environment_details, opts = {})
349
+ logger.debug 'Calling operation DevopsClient#create_deploy_environment.' if logger
350
+
351
+ raise "Missing the required parameter 'create_deploy_environment_details' when calling create_deploy_environment." if create_deploy_environment_details.nil?
352
+
353
+ path = '/deployEnvironments'
354
+ operation_signing_strategy = :standard
355
+
356
+ # rubocop:disable Style/NegatedIf
357
+ # Query Params
358
+ query_params = {}
359
+
360
+ # Header Params
361
+ header_params = {}
362
+ header_params[:accept] = 'application/json'
363
+ header_params[:'content-type'] = 'application/json'
364
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
365
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
366
+ # rubocop:enable Style/NegatedIf
367
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
368
+
369
+ post_body = @api_client.object_to_http_body(create_deploy_environment_details)
370
+
371
+ # rubocop:disable Metrics/BlockLength
372
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_deploy_environment') do
373
+ @api_client.call_api(
374
+ :POST,
375
+ path,
376
+ endpoint,
377
+ header_params: header_params,
378
+ query_params: query_params,
379
+ operation_signing_strategy: operation_signing_strategy,
380
+ body: post_body,
381
+ return_type: 'OCI::Devops::Models::DeployEnvironment'
382
+ )
383
+ end
384
+ # rubocop:enable Metrics/BlockLength
385
+ end
386
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
387
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
388
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
389
+
390
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
391
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
392
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
393
+
394
+
395
+ # Creates a new deployment pipeline.
396
+ # @param [OCI::Devops::Models::CreateDeployPipelineDetails] create_deploy_pipeline_details Details for the new deployment pipeline.
397
+ # @param [Hash] opts the optional parameters
398
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
399
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
400
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
401
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
402
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployPipeline DeployPipeline}
403
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_deploy_pipeline.rb.html) to see an example of how to use create_deploy_pipeline API.
404
+ def create_deploy_pipeline(create_deploy_pipeline_details, opts = {})
405
+ logger.debug 'Calling operation DevopsClient#create_deploy_pipeline.' if logger
406
+
407
+ raise "Missing the required parameter 'create_deploy_pipeline_details' when calling create_deploy_pipeline." if create_deploy_pipeline_details.nil?
408
+
409
+ path = '/deployPipelines'
410
+ operation_signing_strategy = :standard
411
+
412
+ # rubocop:disable Style/NegatedIf
413
+ # Query Params
414
+ query_params = {}
415
+
416
+ # Header Params
417
+ header_params = {}
418
+ header_params[:accept] = 'application/json'
419
+ header_params[:'content-type'] = 'application/json'
420
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
421
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
422
+ # rubocop:enable Style/NegatedIf
423
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
424
+
425
+ post_body = @api_client.object_to_http_body(create_deploy_pipeline_details)
426
+
427
+ # rubocop:disable Metrics/BlockLength
428
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_deploy_pipeline') do
429
+ @api_client.call_api(
430
+ :POST,
431
+ path,
432
+ endpoint,
433
+ header_params: header_params,
434
+ query_params: query_params,
435
+ operation_signing_strategy: operation_signing_strategy,
436
+ body: post_body,
437
+ return_type: 'OCI::Devops::Models::DeployPipeline'
438
+ )
439
+ end
440
+ # rubocop:enable Metrics/BlockLength
441
+ end
442
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
443
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
444
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
445
+
446
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
447
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
448
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
449
+
450
+
451
+ # Creates a new deployment stage.
452
+ # @param [OCI::Devops::Models::CreateDeployStageDetails] create_deploy_stage_details Details for the new DeployStage.
453
+ # @param [Hash] opts the optional parameters
454
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
455
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
456
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
457
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
458
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployStage DeployStage}
459
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_deploy_stage.rb.html) to see an example of how to use create_deploy_stage API.
460
+ def create_deploy_stage(create_deploy_stage_details, opts = {})
461
+ logger.debug 'Calling operation DevopsClient#create_deploy_stage.' if logger
462
+
463
+ raise "Missing the required parameter 'create_deploy_stage_details' when calling create_deploy_stage." if create_deploy_stage_details.nil?
464
+
465
+ path = '/deployStages'
466
+ operation_signing_strategy = :standard
467
+
468
+ # rubocop:disable Style/NegatedIf
469
+ # Query Params
470
+ query_params = {}
471
+
472
+ # Header Params
473
+ header_params = {}
474
+ header_params[:accept] = 'application/json'
475
+ header_params[:'content-type'] = 'application/json'
476
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
477
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
478
+ # rubocop:enable Style/NegatedIf
479
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
480
+
481
+ post_body = @api_client.object_to_http_body(create_deploy_stage_details)
482
+
483
+ # rubocop:disable Metrics/BlockLength
484
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_deploy_stage') do
485
+ @api_client.call_api(
486
+ :POST,
487
+ path,
488
+ endpoint,
489
+ header_params: header_params,
490
+ query_params: query_params,
491
+ operation_signing_strategy: operation_signing_strategy,
492
+ body: post_body,
493
+ return_type: 'OCI::Devops::Models::DeployStage'
494
+ )
495
+ end
496
+ # rubocop:enable Metrics/BlockLength
497
+ end
498
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
499
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
500
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
501
+
502
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
503
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
504
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
505
+
506
+
507
+ # Creates a new deployment.
508
+ # @param [OCI::Devops::Models::CreateDeploymentDetails] create_deployment_details Details for the new deployment.
509
+ # @param [Hash] opts the optional parameters
510
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
511
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
512
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
513
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
514
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Deployment Deployment}
515
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_deployment.rb.html) to see an example of how to use create_deployment API.
516
+ def create_deployment(create_deployment_details, opts = {})
517
+ logger.debug 'Calling operation DevopsClient#create_deployment.' if logger
518
+
519
+ raise "Missing the required parameter 'create_deployment_details' when calling create_deployment." if create_deployment_details.nil?
520
+
521
+ path = '/deployments'
522
+ operation_signing_strategy = :standard
523
+
524
+ # rubocop:disable Style/NegatedIf
525
+ # Query Params
526
+ query_params = {}
527
+
528
+ # Header Params
529
+ header_params = {}
530
+ header_params[:accept] = 'application/json'
531
+ header_params[:'content-type'] = 'application/json'
532
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
533
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
534
+ # rubocop:enable Style/NegatedIf
535
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
536
+
537
+ post_body = @api_client.object_to_http_body(create_deployment_details)
538
+
539
+ # rubocop:disable Metrics/BlockLength
540
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_deployment') do
541
+ @api_client.call_api(
542
+ :POST,
543
+ path,
544
+ endpoint,
545
+ header_params: header_params,
546
+ query_params: query_params,
547
+ operation_signing_strategy: operation_signing_strategy,
548
+ body: post_body,
549
+ return_type: 'OCI::Devops::Models::Deployment'
550
+ )
551
+ end
552
+ # rubocop:enable Metrics/BlockLength
553
+ end
554
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
555
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
556
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
557
+
558
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
559
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
560
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
561
+
562
+
563
+ # Creates a new project.
564
+ # @param [OCI::Devops::Models::CreateProjectDetails] create_project_details Details for the new project.
565
+ # @param [Hash] opts the optional parameters
566
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
567
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
568
+ # @option opts [String] :opc_retry_token A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of executing that same action again. Retry tokens expire after 24 hours, but can be invalidated earlier due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request might be rejected.
569
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
570
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Project Project}
571
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/create_project.rb.html) to see an example of how to use create_project API.
572
+ def create_project(create_project_details, opts = {})
573
+ logger.debug 'Calling operation DevopsClient#create_project.' if logger
574
+
575
+ raise "Missing the required parameter 'create_project_details' when calling create_project." if create_project_details.nil?
576
+
577
+ path = '/projects'
578
+ operation_signing_strategy = :standard
579
+
580
+ # rubocop:disable Style/NegatedIf
581
+ # Query Params
582
+ query_params = {}
583
+
584
+ # Header Params
585
+ header_params = {}
586
+ header_params[:accept] = 'application/json'
587
+ header_params[:'content-type'] = 'application/json'
588
+ header_params[:'opc-retry-token'] = opts[:opc_retry_token] if opts[:opc_retry_token]
589
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
590
+ # rubocop:enable Style/NegatedIf
591
+ header_params[:'opc-retry-token'] ||= OCI::Retry.generate_opc_retry_token
592
+
593
+ post_body = @api_client.object_to_http_body(create_project_details)
594
+
595
+ # rubocop:disable Metrics/BlockLength
596
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#create_project') do
597
+ @api_client.call_api(
598
+ :POST,
599
+ path,
600
+ endpoint,
601
+ header_params: header_params,
602
+ query_params: query_params,
603
+ operation_signing_strategy: operation_signing_strategy,
604
+ body: post_body,
605
+ return_type: 'OCI::Devops::Models::Project'
606
+ )
607
+ end
608
+ # rubocop:enable Metrics/BlockLength
609
+ end
610
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
611
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
612
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
613
+
614
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
615
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
616
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
617
+
618
+
619
+ # Deletes a deployment artifact resource by identifier.
620
+ # @param [String] deploy_artifact_id Unique artifact identifier.
621
+ # @param [Hash] opts the optional parameters
622
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
623
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
624
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
625
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
626
+ # @return [Response] A Response object with data of type nil
627
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/delete_deploy_artifact.rb.html) to see an example of how to use delete_deploy_artifact API.
628
+ def delete_deploy_artifact(deploy_artifact_id, opts = {})
629
+ logger.debug 'Calling operation DevopsClient#delete_deploy_artifact.' if logger
630
+
631
+ raise "Missing the required parameter 'deploy_artifact_id' when calling delete_deploy_artifact." if deploy_artifact_id.nil?
632
+ raise "Parameter value for 'deploy_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_artifact_id)
633
+
634
+ path = '/deployArtifacts/{deployArtifactId}'.sub('{deployArtifactId}', deploy_artifact_id.to_s)
635
+ operation_signing_strategy = :standard
636
+
637
+ # rubocop:disable Style/NegatedIf
638
+ # Query Params
639
+ query_params = {}
640
+
641
+ # Header Params
642
+ header_params = {}
643
+ header_params[:accept] = 'application/json'
644
+ header_params[:'content-type'] = 'application/json'
645
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
646
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
647
+ # rubocop:enable Style/NegatedIf
648
+
649
+ post_body = nil
650
+
651
+ # rubocop:disable Metrics/BlockLength
652
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#delete_deploy_artifact') do
653
+ @api_client.call_api(
654
+ :DELETE,
655
+ path,
656
+ endpoint,
657
+ header_params: header_params,
658
+ query_params: query_params,
659
+ operation_signing_strategy: operation_signing_strategy,
660
+ body: post_body
661
+ )
662
+ end
663
+ # rubocop:enable Metrics/BlockLength
664
+ end
665
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
666
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
667
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
668
+
669
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
670
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
671
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
672
+
673
+
674
+ # Deletes a deployment environment resource by identifier.
675
+ # @param [String] deploy_environment_id Unique environment identifier.
676
+ # @param [Hash] opts the optional parameters
677
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
678
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
679
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
680
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
681
+ # @return [Response] A Response object with data of type nil
682
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/delete_deploy_environment.rb.html) to see an example of how to use delete_deploy_environment API.
683
+ def delete_deploy_environment(deploy_environment_id, opts = {})
684
+ logger.debug 'Calling operation DevopsClient#delete_deploy_environment.' if logger
685
+
686
+ raise "Missing the required parameter 'deploy_environment_id' when calling delete_deploy_environment." if deploy_environment_id.nil?
687
+ raise "Parameter value for 'deploy_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_environment_id)
688
+
689
+ path = '/deployEnvironments/{deployEnvironmentId}'.sub('{deployEnvironmentId}', deploy_environment_id.to_s)
690
+ operation_signing_strategy = :standard
691
+
692
+ # rubocop:disable Style/NegatedIf
693
+ # Query Params
694
+ query_params = {}
695
+
696
+ # Header Params
697
+ header_params = {}
698
+ header_params[:accept] = 'application/json'
699
+ header_params[:'content-type'] = 'application/json'
700
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
701
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
702
+ # rubocop:enable Style/NegatedIf
703
+
704
+ post_body = nil
705
+
706
+ # rubocop:disable Metrics/BlockLength
707
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#delete_deploy_environment') do
708
+ @api_client.call_api(
709
+ :DELETE,
710
+ path,
711
+ endpoint,
712
+ header_params: header_params,
713
+ query_params: query_params,
714
+ operation_signing_strategy: operation_signing_strategy,
715
+ body: post_body
716
+ )
717
+ end
718
+ # rubocop:enable Metrics/BlockLength
719
+ end
720
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
721
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
722
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
723
+
724
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
725
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
726
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
727
+
728
+
729
+ # Deletes a deployment pipeline resource by identifier.
730
+ # @param [String] deploy_pipeline_id Unique pipeline identifier.
731
+ # @param [Hash] opts the optional parameters
732
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
733
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
734
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
735
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
736
+ # @return [Response] A Response object with data of type nil
737
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/delete_deploy_pipeline.rb.html) to see an example of how to use delete_deploy_pipeline API.
738
+ def delete_deploy_pipeline(deploy_pipeline_id, opts = {})
739
+ logger.debug 'Calling operation DevopsClient#delete_deploy_pipeline.' if logger
740
+
741
+ raise "Missing the required parameter 'deploy_pipeline_id' when calling delete_deploy_pipeline." if deploy_pipeline_id.nil?
742
+ raise "Parameter value for 'deploy_pipeline_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_pipeline_id)
743
+
744
+ path = '/deployPipelines/{deployPipelineId}'.sub('{deployPipelineId}', deploy_pipeline_id.to_s)
745
+ operation_signing_strategy = :standard
746
+
747
+ # rubocop:disable Style/NegatedIf
748
+ # Query Params
749
+ query_params = {}
750
+
751
+ # Header Params
752
+ header_params = {}
753
+ header_params[:accept] = 'application/json'
754
+ header_params[:'content-type'] = 'application/json'
755
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
756
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
757
+ # rubocop:enable Style/NegatedIf
758
+
759
+ post_body = nil
760
+
761
+ # rubocop:disable Metrics/BlockLength
762
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#delete_deploy_pipeline') do
763
+ @api_client.call_api(
764
+ :DELETE,
765
+ path,
766
+ endpoint,
767
+ header_params: header_params,
768
+ query_params: query_params,
769
+ operation_signing_strategy: operation_signing_strategy,
770
+ body: post_body
771
+ )
772
+ end
773
+ # rubocop:enable Metrics/BlockLength
774
+ end
775
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
776
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
777
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
778
+
779
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
780
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
781
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
782
+
783
+
784
+ # Deletes a deployment stage resource by identifier.
785
+ # @param [String] deploy_stage_id Unique stage identifier.
786
+ # @param [Hash] opts the optional parameters
787
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
788
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
789
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
790
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
791
+ # @return [Response] A Response object with data of type nil
792
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/delete_deploy_stage.rb.html) to see an example of how to use delete_deploy_stage API.
793
+ def delete_deploy_stage(deploy_stage_id, opts = {})
794
+ logger.debug 'Calling operation DevopsClient#delete_deploy_stage.' if logger
795
+
796
+ raise "Missing the required parameter 'deploy_stage_id' when calling delete_deploy_stage." if deploy_stage_id.nil?
797
+ raise "Parameter value for 'deploy_stage_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_stage_id)
798
+
799
+ path = '/deployStages/{deployStageId}'.sub('{deployStageId}', deploy_stage_id.to_s)
800
+ operation_signing_strategy = :standard
801
+
802
+ # rubocop:disable Style/NegatedIf
803
+ # Query Params
804
+ query_params = {}
805
+
806
+ # Header Params
807
+ header_params = {}
808
+ header_params[:accept] = 'application/json'
809
+ header_params[:'content-type'] = 'application/json'
810
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
811
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
812
+ # rubocop:enable Style/NegatedIf
813
+
814
+ post_body = nil
815
+
816
+ # rubocop:disable Metrics/BlockLength
817
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#delete_deploy_stage') do
818
+ @api_client.call_api(
819
+ :DELETE,
820
+ path,
821
+ endpoint,
822
+ header_params: header_params,
823
+ query_params: query_params,
824
+ operation_signing_strategy: operation_signing_strategy,
825
+ body: post_body
826
+ )
827
+ end
828
+ # rubocop:enable Metrics/BlockLength
829
+ end
830
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
831
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
832
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
833
+
834
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
835
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
836
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
837
+
838
+
839
+ # Deletes a project resource by identifier
840
+ # @param [String] project_id Unique project identifier.
841
+ # @param [Hash] opts the optional parameters
842
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
843
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
844
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
845
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
846
+ # @return [Response] A Response object with data of type nil
847
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/delete_project.rb.html) to see an example of how to use delete_project API.
848
+ def delete_project(project_id, opts = {})
849
+ logger.debug 'Calling operation DevopsClient#delete_project.' if logger
850
+
851
+ raise "Missing the required parameter 'project_id' when calling delete_project." if project_id.nil?
852
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
853
+
854
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
855
+ operation_signing_strategy = :standard
856
+
857
+ # rubocop:disable Style/NegatedIf
858
+ # Query Params
859
+ query_params = {}
860
+
861
+ # Header Params
862
+ header_params = {}
863
+ header_params[:accept] = 'application/json'
864
+ header_params[:'content-type'] = 'application/json'
865
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
866
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
867
+ # rubocop:enable Style/NegatedIf
868
+
869
+ post_body = nil
870
+
871
+ # rubocop:disable Metrics/BlockLength
872
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#delete_project') do
873
+ @api_client.call_api(
874
+ :DELETE,
875
+ path,
876
+ endpoint,
877
+ header_params: header_params,
878
+ query_params: query_params,
879
+ operation_signing_strategy: operation_signing_strategy,
880
+ body: post_body
881
+ )
882
+ end
883
+ # rubocop:enable Metrics/BlockLength
884
+ end
885
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
886
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
887
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
888
+
889
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
890
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
891
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
892
+
893
+
894
+ # Retrieves a deployment artifact by identifier.
895
+ # @param [String] deploy_artifact_id Unique artifact identifier.
896
+ # @param [Hash] opts the optional parameters
897
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
898
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
899
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
900
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployArtifact DeployArtifact}
901
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_deploy_artifact.rb.html) to see an example of how to use get_deploy_artifact API.
902
+ def get_deploy_artifact(deploy_artifact_id, opts = {})
903
+ logger.debug 'Calling operation DevopsClient#get_deploy_artifact.' if logger
904
+
905
+ raise "Missing the required parameter 'deploy_artifact_id' when calling get_deploy_artifact." if deploy_artifact_id.nil?
906
+ raise "Parameter value for 'deploy_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_artifact_id)
907
+
908
+ path = '/deployArtifacts/{deployArtifactId}'.sub('{deployArtifactId}', deploy_artifact_id.to_s)
909
+ operation_signing_strategy = :standard
910
+
911
+ # rubocop:disable Style/NegatedIf
912
+ # Query Params
913
+ query_params = {}
914
+
915
+ # Header Params
916
+ header_params = {}
917
+ header_params[:accept] = 'application/json'
918
+ header_params[:'content-type'] = 'application/json'
919
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
920
+ # rubocop:enable Style/NegatedIf
921
+
922
+ post_body = nil
923
+
924
+ # rubocop:disable Metrics/BlockLength
925
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_deploy_artifact') do
926
+ @api_client.call_api(
927
+ :GET,
928
+ path,
929
+ endpoint,
930
+ header_params: header_params,
931
+ query_params: query_params,
932
+ operation_signing_strategy: operation_signing_strategy,
933
+ body: post_body,
934
+ return_type: 'OCI::Devops::Models::DeployArtifact'
935
+ )
936
+ end
937
+ # rubocop:enable Metrics/BlockLength
938
+ end
939
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
940
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
941
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
942
+
943
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
944
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
945
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
946
+
947
+
948
+ # Retrieves a deployment environment by identifier.
949
+ # @param [String] deploy_environment_id Unique environment identifier.
950
+ # @param [Hash] opts the optional parameters
951
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
952
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
953
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
954
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployEnvironment DeployEnvironment}
955
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_deploy_environment.rb.html) to see an example of how to use get_deploy_environment API.
956
+ def get_deploy_environment(deploy_environment_id, opts = {})
957
+ logger.debug 'Calling operation DevopsClient#get_deploy_environment.' if logger
958
+
959
+ raise "Missing the required parameter 'deploy_environment_id' when calling get_deploy_environment." if deploy_environment_id.nil?
960
+ raise "Parameter value for 'deploy_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_environment_id)
961
+
962
+ path = '/deployEnvironments/{deployEnvironmentId}'.sub('{deployEnvironmentId}', deploy_environment_id.to_s)
963
+ operation_signing_strategy = :standard
964
+
965
+ # rubocop:disable Style/NegatedIf
966
+ # Query Params
967
+ query_params = {}
968
+
969
+ # Header Params
970
+ header_params = {}
971
+ header_params[:accept] = 'application/json'
972
+ header_params[:'content-type'] = 'application/json'
973
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
974
+ # rubocop:enable Style/NegatedIf
975
+
976
+ post_body = nil
977
+
978
+ # rubocop:disable Metrics/BlockLength
979
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_deploy_environment') do
980
+ @api_client.call_api(
981
+ :GET,
982
+ path,
983
+ endpoint,
984
+ header_params: header_params,
985
+ query_params: query_params,
986
+ operation_signing_strategy: operation_signing_strategy,
987
+ body: post_body,
988
+ return_type: 'OCI::Devops::Models::DeployEnvironment'
989
+ )
990
+ end
991
+ # rubocop:enable Metrics/BlockLength
992
+ end
993
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
994
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
995
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
996
+
997
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
998
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
999
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1000
+
1001
+
1002
+ # Retrieves a deployment pipeline by identifier.
1003
+ # @param [String] deploy_pipeline_id Unique pipeline identifier.
1004
+ # @param [Hash] opts the optional parameters
1005
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1006
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1007
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1008
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployPipeline DeployPipeline}
1009
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_deploy_pipeline.rb.html) to see an example of how to use get_deploy_pipeline API.
1010
+ def get_deploy_pipeline(deploy_pipeline_id, opts = {})
1011
+ logger.debug 'Calling operation DevopsClient#get_deploy_pipeline.' if logger
1012
+
1013
+ raise "Missing the required parameter 'deploy_pipeline_id' when calling get_deploy_pipeline." if deploy_pipeline_id.nil?
1014
+ raise "Parameter value for 'deploy_pipeline_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_pipeline_id)
1015
+
1016
+ path = '/deployPipelines/{deployPipelineId}'.sub('{deployPipelineId}', deploy_pipeline_id.to_s)
1017
+ operation_signing_strategy = :standard
1018
+
1019
+ # rubocop:disable Style/NegatedIf
1020
+ # Query Params
1021
+ query_params = {}
1022
+
1023
+ # Header Params
1024
+ header_params = {}
1025
+ header_params[:accept] = 'application/json'
1026
+ header_params[:'content-type'] = 'application/json'
1027
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1028
+ # rubocop:enable Style/NegatedIf
1029
+
1030
+ post_body = nil
1031
+
1032
+ # rubocop:disable Metrics/BlockLength
1033
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_deploy_pipeline') do
1034
+ @api_client.call_api(
1035
+ :GET,
1036
+ path,
1037
+ endpoint,
1038
+ header_params: header_params,
1039
+ query_params: query_params,
1040
+ operation_signing_strategy: operation_signing_strategy,
1041
+ body: post_body,
1042
+ return_type: 'OCI::Devops::Models::DeployPipeline'
1043
+ )
1044
+ end
1045
+ # rubocop:enable Metrics/BlockLength
1046
+ end
1047
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1048
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1049
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1050
+
1051
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1052
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1053
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1054
+
1055
+
1056
+ # Retrieves a deployment stage by identifier.
1057
+ # @param [String] deploy_stage_id Unique stage identifier.
1058
+ # @param [Hash] opts the optional parameters
1059
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1060
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1061
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1062
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployStage DeployStage}
1063
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_deploy_stage.rb.html) to see an example of how to use get_deploy_stage API.
1064
+ def get_deploy_stage(deploy_stage_id, opts = {})
1065
+ logger.debug 'Calling operation DevopsClient#get_deploy_stage.' if logger
1066
+
1067
+ raise "Missing the required parameter 'deploy_stage_id' when calling get_deploy_stage." if deploy_stage_id.nil?
1068
+ raise "Parameter value for 'deploy_stage_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_stage_id)
1069
+
1070
+ path = '/deployStages/{deployStageId}'.sub('{deployStageId}', deploy_stage_id.to_s)
1071
+ operation_signing_strategy = :standard
1072
+
1073
+ # rubocop:disable Style/NegatedIf
1074
+ # Query Params
1075
+ query_params = {}
1076
+
1077
+ # Header Params
1078
+ header_params = {}
1079
+ header_params[:accept] = 'application/json'
1080
+ header_params[:'content-type'] = 'application/json'
1081
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1082
+ # rubocop:enable Style/NegatedIf
1083
+
1084
+ post_body = nil
1085
+
1086
+ # rubocop:disable Metrics/BlockLength
1087
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_deploy_stage') do
1088
+ @api_client.call_api(
1089
+ :GET,
1090
+ path,
1091
+ endpoint,
1092
+ header_params: header_params,
1093
+ query_params: query_params,
1094
+ operation_signing_strategy: operation_signing_strategy,
1095
+ body: post_body,
1096
+ return_type: 'OCI::Devops::Models::DeployStage'
1097
+ )
1098
+ end
1099
+ # rubocop:enable Metrics/BlockLength
1100
+ end
1101
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1102
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1103
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1104
+
1105
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1106
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1107
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1108
+
1109
+
1110
+ # Retrieves a deployment by identifier.
1111
+ # @param [String] deployment_id Unique deployment identifier.
1112
+ # @param [Hash] opts the optional parameters
1113
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1114
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1115
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1116
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Deployment Deployment}
1117
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_deployment.rb.html) to see an example of how to use get_deployment API.
1118
+ def get_deployment(deployment_id, opts = {})
1119
+ logger.debug 'Calling operation DevopsClient#get_deployment.' if logger
1120
+
1121
+ raise "Missing the required parameter 'deployment_id' when calling get_deployment." if deployment_id.nil?
1122
+ raise "Parameter value for 'deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(deployment_id)
1123
+
1124
+ path = '/deployments/{deploymentId}'.sub('{deploymentId}', deployment_id.to_s)
1125
+ operation_signing_strategy = :standard
1126
+
1127
+ # rubocop:disable Style/NegatedIf
1128
+ # Query Params
1129
+ query_params = {}
1130
+
1131
+ # Header Params
1132
+ header_params = {}
1133
+ header_params[:accept] = 'application/json'
1134
+ header_params[:'content-type'] = 'application/json'
1135
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1136
+ # rubocop:enable Style/NegatedIf
1137
+
1138
+ post_body = nil
1139
+
1140
+ # rubocop:disable Metrics/BlockLength
1141
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_deployment') do
1142
+ @api_client.call_api(
1143
+ :GET,
1144
+ path,
1145
+ endpoint,
1146
+ header_params: header_params,
1147
+ query_params: query_params,
1148
+ operation_signing_strategy: operation_signing_strategy,
1149
+ body: post_body,
1150
+ return_type: 'OCI::Devops::Models::Deployment'
1151
+ )
1152
+ end
1153
+ # rubocop:enable Metrics/BlockLength
1154
+ end
1155
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1156
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1157
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1158
+
1159
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1160
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1161
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1162
+
1163
+
1164
+ # Retrieves a project by identifier.
1165
+ # @param [String] project_id Unique project identifier.
1166
+ # @param [Hash] opts the optional parameters
1167
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1168
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1169
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1170
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Project Project}
1171
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_project.rb.html) to see an example of how to use get_project API.
1172
+ def get_project(project_id, opts = {})
1173
+ logger.debug 'Calling operation DevopsClient#get_project.' if logger
1174
+
1175
+ raise "Missing the required parameter 'project_id' when calling get_project." if project_id.nil?
1176
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
1177
+
1178
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
1179
+ operation_signing_strategy = :standard
1180
+
1181
+ # rubocop:disable Style/NegatedIf
1182
+ # Query Params
1183
+ query_params = {}
1184
+
1185
+ # Header Params
1186
+ header_params = {}
1187
+ header_params[:accept] = 'application/json'
1188
+ header_params[:'content-type'] = 'application/json'
1189
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1190
+ # rubocop:enable Style/NegatedIf
1191
+
1192
+ post_body = nil
1193
+
1194
+ # rubocop:disable Metrics/BlockLength
1195
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_project') do
1196
+ @api_client.call_api(
1197
+ :GET,
1198
+ path,
1199
+ endpoint,
1200
+ header_params: header_params,
1201
+ query_params: query_params,
1202
+ operation_signing_strategy: operation_signing_strategy,
1203
+ body: post_body,
1204
+ return_type: 'OCI::Devops::Models::Project'
1205
+ )
1206
+ end
1207
+ # rubocop:enable Metrics/BlockLength
1208
+ end
1209
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1210
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1211
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1212
+
1213
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1214
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1215
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1216
+
1217
+
1218
+ # Retrieves the status of the work request with the given ID.
1219
+ # @param [String] work_request_id The ID of the asynchronous work request.
1220
+ # @param [Hash] opts the optional parameters
1221
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1222
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1223
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1224
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::WorkRequest WorkRequest}
1225
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/get_work_request.rb.html) to see an example of how to use get_work_request API.
1226
+ def get_work_request(work_request_id, opts = {})
1227
+ logger.debug 'Calling operation DevopsClient#get_work_request.' if logger
1228
+
1229
+ raise "Missing the required parameter 'work_request_id' when calling get_work_request." if work_request_id.nil?
1230
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1231
+
1232
+ path = '/workRequests/{workRequestId}'.sub('{workRequestId}', work_request_id.to_s)
1233
+ operation_signing_strategy = :standard
1234
+
1235
+ # rubocop:disable Style/NegatedIf
1236
+ # Query Params
1237
+ query_params = {}
1238
+
1239
+ # Header Params
1240
+ header_params = {}
1241
+ header_params[:accept] = 'application/json'
1242
+ header_params[:'content-type'] = 'application/json'
1243
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1244
+ # rubocop:enable Style/NegatedIf
1245
+
1246
+ post_body = nil
1247
+
1248
+ # rubocop:disable Metrics/BlockLength
1249
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#get_work_request') do
1250
+ @api_client.call_api(
1251
+ :GET,
1252
+ path,
1253
+ endpoint,
1254
+ header_params: header_params,
1255
+ query_params: query_params,
1256
+ operation_signing_strategy: operation_signing_strategy,
1257
+ body: post_body,
1258
+ return_type: 'OCI::Devops::Models::WorkRequest'
1259
+ )
1260
+ end
1261
+ # rubocop:enable Metrics/BlockLength
1262
+ end
1263
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1264
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1265
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1266
+
1267
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1268
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1269
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1270
+
1271
+
1272
+ # Returns a list of deployment artifacts.
1273
+ # @param [Hash] opts the optional parameters
1274
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1275
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1276
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1277
+ # @option opts [String] :project_id unique project identifier
1278
+ # @option opts [String] :compartment_id The OCID of the compartment in which to list resources.
1279
+ # @option opts [String] :lifecycle_state A filter to return only DeployArtifacts that matches the given lifecycleState.
1280
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1281
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1282
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1283
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1284
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1285
+ # Allowed values are: timeCreated, displayName
1286
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1287
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployArtifactCollection DeployArtifactCollection}
1288
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_deploy_artifacts.rb.html) to see an example of how to use list_deploy_artifacts API.
1289
+ def list_deploy_artifacts(opts = {})
1290
+ logger.debug 'Calling operation DevopsClient#list_deploy_artifacts.' if logger
1291
+
1292
+
1293
+ if opts[:lifecycle_state] && !OCI::Devops::Models::DeployArtifact::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1294
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::DeployArtifact::LIFECYCLE_STATE_ENUM.'
1295
+ end
1296
+
1297
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1298
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1299
+ end
1300
+
1301
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1302
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1303
+ end
1304
+
1305
+ path = '/deployArtifacts'
1306
+ operation_signing_strategy = :standard
1307
+
1308
+ # rubocop:disable Style/NegatedIf
1309
+ # Query Params
1310
+ query_params = {}
1311
+ query_params[:id] = opts[:id] if opts[:id]
1312
+ query_params[:projectId] = opts[:project_id] if opts[:project_id]
1313
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1314
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1315
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1316
+ query_params[:limit] = opts[:limit] if opts[:limit]
1317
+ query_params[:page] = opts[:page] if opts[:page]
1318
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1319
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1320
+
1321
+ # Header Params
1322
+ header_params = {}
1323
+ header_params[:accept] = 'application/json'
1324
+ header_params[:'content-type'] = 'application/json'
1325
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1326
+ # rubocop:enable Style/NegatedIf
1327
+
1328
+ post_body = nil
1329
+
1330
+ # rubocop:disable Metrics/BlockLength
1331
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_deploy_artifacts') do
1332
+ @api_client.call_api(
1333
+ :GET,
1334
+ path,
1335
+ endpoint,
1336
+ header_params: header_params,
1337
+ query_params: query_params,
1338
+ operation_signing_strategy: operation_signing_strategy,
1339
+ body: post_body,
1340
+ return_type: 'OCI::Devops::Models::DeployArtifactCollection'
1341
+ )
1342
+ end
1343
+ # rubocop:enable Metrics/BlockLength
1344
+ end
1345
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1346
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1347
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1348
+
1349
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1350
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1351
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1352
+
1353
+
1354
+ # Returns a list of deployment environments.
1355
+ # @param [Hash] opts the optional parameters
1356
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1357
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1358
+ # @option opts [String] :project_id unique project identifier
1359
+ # @option opts [String] :compartment_id The OCID of the compartment in which to list resources.
1360
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1361
+ # @option opts [String] :lifecycle_state A filter to return only DeployEnvironments that matches the given lifecycleState.
1362
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1363
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1364
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1365
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1366
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1367
+ # Allowed values are: timeCreated, displayName
1368
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1369
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployEnvironmentCollection DeployEnvironmentCollection}
1370
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_deploy_environments.rb.html) to see an example of how to use list_deploy_environments API.
1371
+ def list_deploy_environments(opts = {})
1372
+ logger.debug 'Calling operation DevopsClient#list_deploy_environments.' if logger
1373
+
1374
+
1375
+ if opts[:lifecycle_state] && !OCI::Devops::Models::DeployEnvironment::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1376
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::DeployEnvironment::LIFECYCLE_STATE_ENUM.'
1377
+ end
1378
+
1379
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1380
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1381
+ end
1382
+
1383
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1384
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1385
+ end
1386
+
1387
+ path = '/deployEnvironments'
1388
+ operation_signing_strategy = :standard
1389
+
1390
+ # rubocop:disable Style/NegatedIf
1391
+ # Query Params
1392
+ query_params = {}
1393
+ query_params[:projectId] = opts[:project_id] if opts[:project_id]
1394
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1395
+ query_params[:id] = opts[:id] if opts[:id]
1396
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1397
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1398
+ query_params[:limit] = opts[:limit] if opts[:limit]
1399
+ query_params[:page] = opts[:page] if opts[:page]
1400
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1401
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1402
+
1403
+ # Header Params
1404
+ header_params = {}
1405
+ header_params[:accept] = 'application/json'
1406
+ header_params[:'content-type'] = 'application/json'
1407
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1408
+ # rubocop:enable Style/NegatedIf
1409
+
1410
+ post_body = nil
1411
+
1412
+ # rubocop:disable Metrics/BlockLength
1413
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_deploy_environments') do
1414
+ @api_client.call_api(
1415
+ :GET,
1416
+ path,
1417
+ endpoint,
1418
+ header_params: header_params,
1419
+ query_params: query_params,
1420
+ operation_signing_strategy: operation_signing_strategy,
1421
+ body: post_body,
1422
+ return_type: 'OCI::Devops::Models::DeployEnvironmentCollection'
1423
+ )
1424
+ end
1425
+ # rubocop:enable Metrics/BlockLength
1426
+ end
1427
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1428
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1429
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1430
+
1431
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1432
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1433
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1434
+
1435
+
1436
+ # Returns a list of deployment pipelines.
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1439
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1440
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1441
+ # @option opts [String] :project_id unique project identifier
1442
+ # @option opts [String] :compartment_id The OCID of the compartment in which to list resources.
1443
+ # @option opts [String] :lifecycle_state A filter to return only DeployPipelines that matches the given lifecycleState.
1444
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1445
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1446
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1447
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1448
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1449
+ # Allowed values are: timeCreated, displayName
1450
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1451
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployPipelineCollection DeployPipelineCollection}
1452
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_deploy_pipelines.rb.html) to see an example of how to use list_deploy_pipelines API.
1453
+ def list_deploy_pipelines(opts = {})
1454
+ logger.debug 'Calling operation DevopsClient#list_deploy_pipelines.' if logger
1455
+
1456
+
1457
+ if opts[:lifecycle_state] && !OCI::Devops::Models::DeployPipeline::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1458
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::DeployPipeline::LIFECYCLE_STATE_ENUM.'
1459
+ end
1460
+
1461
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1462
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1463
+ end
1464
+
1465
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1466
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1467
+ end
1468
+
1469
+ path = '/deployPipelines'
1470
+ operation_signing_strategy = :standard
1471
+
1472
+ # rubocop:disable Style/NegatedIf
1473
+ # Query Params
1474
+ query_params = {}
1475
+ query_params[:id] = opts[:id] if opts[:id]
1476
+ query_params[:projectId] = opts[:project_id] if opts[:project_id]
1477
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1478
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1479
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1480
+ query_params[:limit] = opts[:limit] if opts[:limit]
1481
+ query_params[:page] = opts[:page] if opts[:page]
1482
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1483
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1484
+
1485
+ # Header Params
1486
+ header_params = {}
1487
+ header_params[:accept] = 'application/json'
1488
+ header_params[:'content-type'] = 'application/json'
1489
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1490
+ # rubocop:enable Style/NegatedIf
1491
+
1492
+ post_body = nil
1493
+
1494
+ # rubocop:disable Metrics/BlockLength
1495
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_deploy_pipelines') do
1496
+ @api_client.call_api(
1497
+ :GET,
1498
+ path,
1499
+ endpoint,
1500
+ header_params: header_params,
1501
+ query_params: query_params,
1502
+ operation_signing_strategy: operation_signing_strategy,
1503
+ body: post_body,
1504
+ return_type: 'OCI::Devops::Models::DeployPipelineCollection'
1505
+ )
1506
+ end
1507
+ # rubocop:enable Metrics/BlockLength
1508
+ end
1509
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1510
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1511
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1512
+
1513
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1514
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1515
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1516
+
1517
+
1518
+ # Retrieves a list of deployment stages.
1519
+ # @param [Hash] opts the optional parameters
1520
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1521
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1522
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1523
+ # @option opts [String] :deploy_pipeline_id The ID of the parent pipeline.
1524
+ # @option opts [String] :compartment_id The OCID of the compartment in which to list resources.
1525
+ # @option opts [String] :lifecycle_state A filter to return only deployment stages that matches the given lifecycle state.
1526
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1527
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1528
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1529
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1530
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1531
+ # Allowed values are: timeCreated, displayName
1532
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1533
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployStageCollection DeployStageCollection}
1534
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_deploy_stages.rb.html) to see an example of how to use list_deploy_stages API.
1535
+ def list_deploy_stages(opts = {})
1536
+ logger.debug 'Calling operation DevopsClient#list_deploy_stages.' if logger
1537
+
1538
+
1539
+ if opts[:lifecycle_state] && !OCI::Devops::Models::DeployStage::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1540
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::DeployStage::LIFECYCLE_STATE_ENUM.'
1541
+ end
1542
+
1543
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1544
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1545
+ end
1546
+
1547
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1548
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1549
+ end
1550
+
1551
+ path = '/deployStages'
1552
+ operation_signing_strategy = :standard
1553
+
1554
+ # rubocop:disable Style/NegatedIf
1555
+ # Query Params
1556
+ query_params = {}
1557
+ query_params[:id] = opts[:id] if opts[:id]
1558
+ query_params[:deployPipelineId] = opts[:deploy_pipeline_id] if opts[:deploy_pipeline_id]
1559
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1560
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1561
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1562
+ query_params[:limit] = opts[:limit] if opts[:limit]
1563
+ query_params[:page] = opts[:page] if opts[:page]
1564
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1565
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1566
+
1567
+ # Header Params
1568
+ header_params = {}
1569
+ header_params[:accept] = 'application/json'
1570
+ header_params[:'content-type'] = 'application/json'
1571
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1572
+ # rubocop:enable Style/NegatedIf
1573
+
1574
+ post_body = nil
1575
+
1576
+ # rubocop:disable Metrics/BlockLength
1577
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_deploy_stages') do
1578
+ @api_client.call_api(
1579
+ :GET,
1580
+ path,
1581
+ endpoint,
1582
+ header_params: header_params,
1583
+ query_params: query_params,
1584
+ operation_signing_strategy: operation_signing_strategy,
1585
+ body: post_body,
1586
+ return_type: 'OCI::Devops::Models::DeployStageCollection'
1587
+ )
1588
+ end
1589
+ # rubocop:enable Metrics/BlockLength
1590
+ end
1591
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1592
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1593
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1594
+
1595
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1596
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1597
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1598
+
1599
+
1600
+ # Returns a list of deployments.
1601
+ # @param [Hash] opts the optional parameters
1602
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1603
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1604
+ # @option opts [String] :deploy_pipeline_id The ID of the parent pipeline.
1605
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1606
+ # @option opts [String] :compartment_id The OCID of the compartment in which to list resources.
1607
+ # @option opts [String] :project_id unique project identifier
1608
+ # @option opts [String] :lifecycle_state A filter to return only Deployments that matches the given lifecycleState.
1609
+ # @option opts [String] :display_name A filter to return only resources that match the entire display name given.
1610
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1611
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1612
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1613
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1614
+ # Allowed values are: timeCreated, displayName
1615
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1616
+ # @option opts [DateTime] :time_created_less_than Search for DevOps resources that were created before a specific date. Specifying this parameter corresponding to `timeCreatedLessThan` parameter will retrieve all assessments created before the specified created date, in \"YYYY-MM-ddThh:mmZ\" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
1617
+ # @option opts [DateTime] :time_created_greater_than_or_equal_to Search for DevOps resources that were created after a specific date. Specifying this parameter corresponding to `timeCreatedGreaterThanOrEqualTo` parameter will retrieve all security assessments created after the specified created date, in \"YYYY-MM-ddThh:mmZ\" format with a Z offset, as defined by [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339).
1618
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeploymentCollection DeploymentCollection}
1619
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_deployments.rb.html) to see an example of how to use list_deployments API.
1620
+ def list_deployments(opts = {})
1621
+ logger.debug 'Calling operation DevopsClient#list_deployments.' if logger
1622
+
1623
+
1624
+ if opts[:lifecycle_state] && !OCI::Devops::Models::Deployment::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1625
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::Deployment::LIFECYCLE_STATE_ENUM.'
1626
+ end
1627
+
1628
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1629
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1630
+ end
1631
+
1632
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1633
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1634
+ end
1635
+
1636
+ path = '/deployments'
1637
+ operation_signing_strategy = :standard
1638
+
1639
+ # rubocop:disable Style/NegatedIf
1640
+ # Query Params
1641
+ query_params = {}
1642
+ query_params[:deployPipelineId] = opts[:deploy_pipeline_id] if opts[:deploy_pipeline_id]
1643
+ query_params[:id] = opts[:id] if opts[:id]
1644
+ query_params[:compartmentId] = opts[:compartment_id] if opts[:compartment_id]
1645
+ query_params[:projectId] = opts[:project_id] if opts[:project_id]
1646
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1647
+ query_params[:displayName] = opts[:display_name] if opts[:display_name]
1648
+ query_params[:limit] = opts[:limit] if opts[:limit]
1649
+ query_params[:page] = opts[:page] if opts[:page]
1650
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1651
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1652
+ query_params[:timeCreatedLessThan] = opts[:time_created_less_than] if opts[:time_created_less_than]
1653
+ query_params[:timeCreatedGreaterThanOrEqualTo] = opts[:time_created_greater_than_or_equal_to] if opts[:time_created_greater_than_or_equal_to]
1654
+
1655
+ # Header Params
1656
+ header_params = {}
1657
+ header_params[:accept] = 'application/json'
1658
+ header_params[:'content-type'] = 'application/json'
1659
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1660
+ # rubocop:enable Style/NegatedIf
1661
+
1662
+ post_body = nil
1663
+
1664
+ # rubocop:disable Metrics/BlockLength
1665
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_deployments') do
1666
+ @api_client.call_api(
1667
+ :GET,
1668
+ path,
1669
+ endpoint,
1670
+ header_params: header_params,
1671
+ query_params: query_params,
1672
+ operation_signing_strategy: operation_signing_strategy,
1673
+ body: post_body,
1674
+ return_type: 'OCI::Devops::Models::DeploymentCollection'
1675
+ )
1676
+ end
1677
+ # rubocop:enable Metrics/BlockLength
1678
+ end
1679
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1680
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1681
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1682
+
1683
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1684
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1685
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1686
+
1687
+
1688
+ # Returns a list of projects.
1689
+ # @param [String] compartment_id The OCID of the compartment in which to list resources.
1690
+ # @param [Hash] opts the optional parameters
1691
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1692
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1693
+ # @option opts [String] :id Unique identifier or OCID for listing a single resource by ID.
1694
+ # @option opts [String] :lifecycle_state A filter to return only Projects that matches the given lifecycleState.
1695
+ # @option opts [String] :name A filter to return only resources that match the entire name given.
1696
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1697
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1698
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1699
+ # @option opts [String] :sort_by The field to sort by. Only one sort order may be provided. Default order for time created is descending. Default order for display name is ascending. If no value is specified, then the default time created value is considered. (default to timeCreated)
1700
+ # Allowed values are: timeCreated, displayName
1701
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1702
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::ProjectCollection ProjectCollection}
1703
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_projects.rb.html) to see an example of how to use list_projects API.
1704
+ def list_projects(compartment_id, opts = {})
1705
+ logger.debug 'Calling operation DevopsClient#list_projects.' if logger
1706
+
1707
+ raise "Missing the required parameter 'compartment_id' when calling list_projects." if compartment_id.nil?
1708
+
1709
+ if opts[:lifecycle_state] && !OCI::Devops::Models::Project::LIFECYCLE_STATE_ENUM.include?(opts[:lifecycle_state])
1710
+ raise 'Invalid value for "lifecycle_state", must be one of the values in OCI::Devops::Models::Project::LIFECYCLE_STATE_ENUM.'
1711
+ end
1712
+
1713
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1714
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1715
+ end
1716
+
1717
+ if opts[:sort_by] && !%w[timeCreated displayName].include?(opts[:sort_by])
1718
+ raise 'Invalid value for "sort_by", must be one of timeCreated, displayName.'
1719
+ end
1720
+
1721
+ path = '/projects'
1722
+ operation_signing_strategy = :standard
1723
+
1724
+ # rubocop:disable Style/NegatedIf
1725
+ # Query Params
1726
+ query_params = {}
1727
+ query_params[:compartmentId] = compartment_id
1728
+ query_params[:id] = opts[:id] if opts[:id]
1729
+ query_params[:lifecycleState] = opts[:lifecycle_state] if opts[:lifecycle_state]
1730
+ query_params[:name] = opts[:name] if opts[:name]
1731
+ query_params[:limit] = opts[:limit] if opts[:limit]
1732
+ query_params[:page] = opts[:page] if opts[:page]
1733
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1734
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1735
+
1736
+ # Header Params
1737
+ header_params = {}
1738
+ header_params[:accept] = 'application/json'
1739
+ header_params[:'content-type'] = 'application/json'
1740
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1741
+ # rubocop:enable Style/NegatedIf
1742
+
1743
+ post_body = nil
1744
+
1745
+ # rubocop:disable Metrics/BlockLength
1746
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_projects') do
1747
+ @api_client.call_api(
1748
+ :GET,
1749
+ path,
1750
+ endpoint,
1751
+ header_params: header_params,
1752
+ query_params: query_params,
1753
+ operation_signing_strategy: operation_signing_strategy,
1754
+ body: post_body,
1755
+ return_type: 'OCI::Devops::Models::ProjectCollection'
1756
+ )
1757
+ end
1758
+ # rubocop:enable Metrics/BlockLength
1759
+ end
1760
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1761
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1762
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1763
+
1764
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1765
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1766
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1767
+
1768
+
1769
+ # Returns a list of errors for a given work request.
1770
+ # @param [String] work_request_id The ID of the asynchronous work request.
1771
+ # @param [Hash] opts the optional parameters
1772
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1773
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1774
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1775
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1776
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1777
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1778
+ # @option opts [String] :sort_by The field to sort by. Only one sort order can be provided. Default sort order is descending and is based on the timeAccepted field. (default to timeAccepted)
1779
+ # Allowed values are: timeAccepted
1780
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::WorkRequestErrorCollection WorkRequestErrorCollection}
1781
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_work_request_errors.rb.html) to see an example of how to use list_work_request_errors API.
1782
+ def list_work_request_errors(work_request_id, opts = {})
1783
+ logger.debug 'Calling operation DevopsClient#list_work_request_errors.' if logger
1784
+
1785
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_errors." if work_request_id.nil?
1786
+
1787
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1788
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1789
+ end
1790
+
1791
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1792
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1793
+ end
1794
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1795
+
1796
+ path = '/workRequests/{workRequestId}/errors'.sub('{workRequestId}', work_request_id.to_s)
1797
+ operation_signing_strategy = :standard
1798
+
1799
+ # rubocop:disable Style/NegatedIf
1800
+ # Query Params
1801
+ query_params = {}
1802
+ query_params[:page] = opts[:page] if opts[:page]
1803
+ query_params[:limit] = opts[:limit] if opts[:limit]
1804
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1805
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1806
+
1807
+ # Header Params
1808
+ header_params = {}
1809
+ header_params[:accept] = 'application/json'
1810
+ header_params[:'content-type'] = 'application/json'
1811
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1812
+ # rubocop:enable Style/NegatedIf
1813
+
1814
+ post_body = nil
1815
+
1816
+ # rubocop:disable Metrics/BlockLength
1817
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_work_request_errors') do
1818
+ @api_client.call_api(
1819
+ :GET,
1820
+ path,
1821
+ endpoint,
1822
+ header_params: header_params,
1823
+ query_params: query_params,
1824
+ operation_signing_strategy: operation_signing_strategy,
1825
+ body: post_body,
1826
+ return_type: 'OCI::Devops::Models::WorkRequestErrorCollection'
1827
+ )
1828
+ end
1829
+ # rubocop:enable Metrics/BlockLength
1830
+ end
1831
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1832
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1833
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1834
+
1835
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1836
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1837
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1838
+
1839
+
1840
+ # Returns a list of logs for a given work request.
1841
+ # @param [String] work_request_id The ID of the asynchronous work request.
1842
+ # @param [Hash] opts the optional parameters
1843
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1844
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1845
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1846
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1847
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1848
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1849
+ # @option opts [String] :sort_by The field to sort by. Only one sort order can be provided. Default sort order is descending and is based on the timeAccepted field. (default to timeAccepted)
1850
+ # Allowed values are: timeAccepted
1851
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::WorkRequestLogEntryCollection WorkRequestLogEntryCollection}
1852
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_work_request_logs.rb.html) to see an example of how to use list_work_request_logs API.
1853
+ def list_work_request_logs(work_request_id, opts = {})
1854
+ logger.debug 'Calling operation DevopsClient#list_work_request_logs.' if logger
1855
+
1856
+ raise "Missing the required parameter 'work_request_id' when calling list_work_request_logs." if work_request_id.nil?
1857
+
1858
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1859
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1860
+ end
1861
+
1862
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1863
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1864
+ end
1865
+ raise "Parameter value for 'work_request_id' must not be blank" if OCI::Internal::Util.blank_string?(work_request_id)
1866
+
1867
+ path = '/workRequests/{workRequestId}/logs'.sub('{workRequestId}', work_request_id.to_s)
1868
+ operation_signing_strategy = :standard
1869
+
1870
+ # rubocop:disable Style/NegatedIf
1871
+ # Query Params
1872
+ query_params = {}
1873
+ query_params[:page] = opts[:page] if opts[:page]
1874
+ query_params[:limit] = opts[:limit] if opts[:limit]
1875
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1876
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1877
+
1878
+ # Header Params
1879
+ header_params = {}
1880
+ header_params[:accept] = 'application/json'
1881
+ header_params[:'content-type'] = 'application/json'
1882
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1883
+ # rubocop:enable Style/NegatedIf
1884
+
1885
+ post_body = nil
1886
+
1887
+ # rubocop:disable Metrics/BlockLength
1888
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_work_request_logs') do
1889
+ @api_client.call_api(
1890
+ :GET,
1891
+ path,
1892
+ endpoint,
1893
+ header_params: header_params,
1894
+ query_params: query_params,
1895
+ operation_signing_strategy: operation_signing_strategy,
1896
+ body: post_body,
1897
+ return_type: 'OCI::Devops::Models::WorkRequestLogEntryCollection'
1898
+ )
1899
+ end
1900
+ # rubocop:enable Metrics/BlockLength
1901
+ end
1902
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1903
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1904
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1905
+
1906
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1907
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1908
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1909
+
1910
+
1911
+ # Lists the work requests in a compartment.
1912
+ # @param [String] compartment_id The OCID of the compartment in which to list resources.
1913
+ # @param [Hash] opts the optional parameters
1914
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1915
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1916
+ # @option opts [String] :work_request_id The ID of the asynchronous work request.
1917
+ # @option opts [String] :status A filter to return only resources where the lifecycle state matches the given operation status.
1918
+ # @option opts [String] :resource_id The ID of the resource affected by the work request.
1919
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
1920
+ # @option opts [String] :page The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.
1921
+ # @option opts [Integer] :limit The maximum number of items to return. (default to 10)
1922
+ # @option opts [String] :sort_order The sort order to use. Use either ascending or descending. (default to ASC)
1923
+ # @option opts [String] :sort_by The field to sort by. Only one sort order can be provided. Default sort order is descending and is based on the timeAccepted field. (default to timeAccepted)
1924
+ # Allowed values are: timeAccepted
1925
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::WorkRequestCollection WorkRequestCollection}
1926
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/list_work_requests.rb.html) to see an example of how to use list_work_requests API.
1927
+ def list_work_requests(compartment_id, opts = {})
1928
+ logger.debug 'Calling operation DevopsClient#list_work_requests.' if logger
1929
+
1930
+ raise "Missing the required parameter 'compartment_id' when calling list_work_requests." if compartment_id.nil?
1931
+
1932
+ if opts[:status] && !OCI::Devops::Models::OPERATION_STATUS_ENUM.include?(opts[:status])
1933
+ raise 'Invalid value for "status", must be one of the values in OCI::Devops::Models::OPERATION_STATUS_ENUM.'
1934
+ end
1935
+
1936
+ if opts[:sort_order] && !OCI::Devops::Models::SORT_ORDER_ENUM.include?(opts[:sort_order])
1937
+ raise 'Invalid value for "sort_order", must be one of the values in OCI::Devops::Models::SORT_ORDER_ENUM.'
1938
+ end
1939
+
1940
+ if opts[:sort_by] && !%w[timeAccepted].include?(opts[:sort_by])
1941
+ raise 'Invalid value for "sort_by", must be one of timeAccepted.'
1942
+ end
1943
+
1944
+ path = '/workRequests'
1945
+ operation_signing_strategy = :standard
1946
+
1947
+ # rubocop:disable Style/NegatedIf
1948
+ # Query Params
1949
+ query_params = {}
1950
+ query_params[:compartmentId] = compartment_id
1951
+ query_params[:workRequestId] = opts[:work_request_id] if opts[:work_request_id]
1952
+ query_params[:status] = opts[:status] if opts[:status]
1953
+ query_params[:resourceId] = opts[:resource_id] if opts[:resource_id]
1954
+ query_params[:page] = opts[:page] if opts[:page]
1955
+ query_params[:limit] = opts[:limit] if opts[:limit]
1956
+ query_params[:sortOrder] = opts[:sort_order] if opts[:sort_order]
1957
+ query_params[:sortBy] = opts[:sort_by] if opts[:sort_by]
1958
+
1959
+ # Header Params
1960
+ header_params = {}
1961
+ header_params[:accept] = 'application/json'
1962
+ header_params[:'content-type'] = 'application/json'
1963
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
1964
+ # rubocop:enable Style/NegatedIf
1965
+
1966
+ post_body = nil
1967
+
1968
+ # rubocop:disable Metrics/BlockLength
1969
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#list_work_requests') do
1970
+ @api_client.call_api(
1971
+ :GET,
1972
+ path,
1973
+ endpoint,
1974
+ header_params: header_params,
1975
+ query_params: query_params,
1976
+ operation_signing_strategy: operation_signing_strategy,
1977
+ body: post_body,
1978
+ return_type: 'OCI::Devops::Models::WorkRequestCollection'
1979
+ )
1980
+ end
1981
+ # rubocop:enable Metrics/BlockLength
1982
+ end
1983
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1984
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
1985
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
1986
+
1987
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
1988
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
1989
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
1990
+
1991
+
1992
+ # Updates the deployment artifact.
1993
+ # @param [String] deploy_artifact_id Unique artifact identifier.
1994
+ # @param [OCI::Devops::Models::UpdateDeployArtifactDetails] update_deploy_artifact_details The information to be updated.
1995
+ # @param [Hash] opts the optional parameters
1996
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
1997
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
1998
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
1999
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2000
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployArtifact DeployArtifact}
2001
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_deploy_artifact.rb.html) to see an example of how to use update_deploy_artifact API.
2002
+ def update_deploy_artifact(deploy_artifact_id, update_deploy_artifact_details, opts = {})
2003
+ logger.debug 'Calling operation DevopsClient#update_deploy_artifact.' if logger
2004
+
2005
+ raise "Missing the required parameter 'deploy_artifact_id' when calling update_deploy_artifact." if deploy_artifact_id.nil?
2006
+ raise "Missing the required parameter 'update_deploy_artifact_details' when calling update_deploy_artifact." if update_deploy_artifact_details.nil?
2007
+ raise "Parameter value for 'deploy_artifact_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_artifact_id)
2008
+
2009
+ path = '/deployArtifacts/{deployArtifactId}'.sub('{deployArtifactId}', deploy_artifact_id.to_s)
2010
+ operation_signing_strategy = :standard
2011
+
2012
+ # rubocop:disable Style/NegatedIf
2013
+ # Query Params
2014
+ query_params = {}
2015
+
2016
+ # Header Params
2017
+ header_params = {}
2018
+ header_params[:accept] = 'application/json'
2019
+ header_params[:'content-type'] = 'application/json'
2020
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2021
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2022
+ # rubocop:enable Style/NegatedIf
2023
+
2024
+ post_body = @api_client.object_to_http_body(update_deploy_artifact_details)
2025
+
2026
+ # rubocop:disable Metrics/BlockLength
2027
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_deploy_artifact') do
2028
+ @api_client.call_api(
2029
+ :PUT,
2030
+ path,
2031
+ endpoint,
2032
+ header_params: header_params,
2033
+ query_params: query_params,
2034
+ operation_signing_strategy: operation_signing_strategy,
2035
+ body: post_body,
2036
+ return_type: 'OCI::Devops::Models::DeployArtifact'
2037
+ )
2038
+ end
2039
+ # rubocop:enable Metrics/BlockLength
2040
+ end
2041
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2042
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2043
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2044
+
2045
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2046
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2047
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2048
+
2049
+
2050
+ # Updates the deployment environment.
2051
+ # @param [String] deploy_environment_id Unique environment identifier.
2052
+ # @param [OCI::Devops::Models::UpdateDeployEnvironmentDetails] update_deploy_environment_details The information to be updated.
2053
+ # @param [Hash] opts the optional parameters
2054
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2055
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2056
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
2057
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2058
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployEnvironment DeployEnvironment}
2059
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_deploy_environment.rb.html) to see an example of how to use update_deploy_environment API.
2060
+ def update_deploy_environment(deploy_environment_id, update_deploy_environment_details, opts = {})
2061
+ logger.debug 'Calling operation DevopsClient#update_deploy_environment.' if logger
2062
+
2063
+ raise "Missing the required parameter 'deploy_environment_id' when calling update_deploy_environment." if deploy_environment_id.nil?
2064
+ raise "Missing the required parameter 'update_deploy_environment_details' when calling update_deploy_environment." if update_deploy_environment_details.nil?
2065
+ raise "Parameter value for 'deploy_environment_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_environment_id)
2066
+
2067
+ path = '/deployEnvironments/{deployEnvironmentId}'.sub('{deployEnvironmentId}', deploy_environment_id.to_s)
2068
+ operation_signing_strategy = :standard
2069
+
2070
+ # rubocop:disable Style/NegatedIf
2071
+ # Query Params
2072
+ query_params = {}
2073
+
2074
+ # Header Params
2075
+ header_params = {}
2076
+ header_params[:accept] = 'application/json'
2077
+ header_params[:'content-type'] = 'application/json'
2078
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2079
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2080
+ # rubocop:enable Style/NegatedIf
2081
+
2082
+ post_body = @api_client.object_to_http_body(update_deploy_environment_details)
2083
+
2084
+ # rubocop:disable Metrics/BlockLength
2085
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_deploy_environment') do
2086
+ @api_client.call_api(
2087
+ :PUT,
2088
+ path,
2089
+ endpoint,
2090
+ header_params: header_params,
2091
+ query_params: query_params,
2092
+ operation_signing_strategy: operation_signing_strategy,
2093
+ body: post_body,
2094
+ return_type: 'OCI::Devops::Models::DeployEnvironment'
2095
+ )
2096
+ end
2097
+ # rubocop:enable Metrics/BlockLength
2098
+ end
2099
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2100
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2101
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2102
+
2103
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2104
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2105
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2106
+
2107
+
2108
+ # Updates the deployment pipeline.
2109
+ # @param [String] deploy_pipeline_id Unique pipeline identifier.
2110
+ # @param [OCI::Devops::Models::UpdateDeployPipelineDetails] update_deploy_pipeline_details The information to be updated.
2111
+ # @param [Hash] opts the optional parameters
2112
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2113
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2114
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
2115
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2116
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployPipeline DeployPipeline}
2117
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_deploy_pipeline.rb.html) to see an example of how to use update_deploy_pipeline API.
2118
+ def update_deploy_pipeline(deploy_pipeline_id, update_deploy_pipeline_details, opts = {})
2119
+ logger.debug 'Calling operation DevopsClient#update_deploy_pipeline.' if logger
2120
+
2121
+ raise "Missing the required parameter 'deploy_pipeline_id' when calling update_deploy_pipeline." if deploy_pipeline_id.nil?
2122
+ raise "Missing the required parameter 'update_deploy_pipeline_details' when calling update_deploy_pipeline." if update_deploy_pipeline_details.nil?
2123
+ raise "Parameter value for 'deploy_pipeline_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_pipeline_id)
2124
+
2125
+ path = '/deployPipelines/{deployPipelineId}'.sub('{deployPipelineId}', deploy_pipeline_id.to_s)
2126
+ operation_signing_strategy = :standard
2127
+
2128
+ # rubocop:disable Style/NegatedIf
2129
+ # Query Params
2130
+ query_params = {}
2131
+
2132
+ # Header Params
2133
+ header_params = {}
2134
+ header_params[:accept] = 'application/json'
2135
+ header_params[:'content-type'] = 'application/json'
2136
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2137
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2138
+ # rubocop:enable Style/NegatedIf
2139
+
2140
+ post_body = @api_client.object_to_http_body(update_deploy_pipeline_details)
2141
+
2142
+ # rubocop:disable Metrics/BlockLength
2143
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_deploy_pipeline') do
2144
+ @api_client.call_api(
2145
+ :PUT,
2146
+ path,
2147
+ endpoint,
2148
+ header_params: header_params,
2149
+ query_params: query_params,
2150
+ operation_signing_strategy: operation_signing_strategy,
2151
+ body: post_body,
2152
+ return_type: 'OCI::Devops::Models::DeployPipeline'
2153
+ )
2154
+ end
2155
+ # rubocop:enable Metrics/BlockLength
2156
+ end
2157
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2158
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2159
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2160
+
2161
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2162
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2163
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2164
+
2165
+
2166
+ # Updates the deployment stage.
2167
+ # @param [String] deploy_stage_id Unique stage identifier.
2168
+ # @param [OCI::Devops::Models::UpdateDeployStageDetails] update_deploy_stage_details The information to be updated.
2169
+ # @param [Hash] opts the optional parameters
2170
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2171
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2172
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
2173
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2174
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::DeployStage DeployStage}
2175
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_deploy_stage.rb.html) to see an example of how to use update_deploy_stage API.
2176
+ def update_deploy_stage(deploy_stage_id, update_deploy_stage_details, opts = {})
2177
+ logger.debug 'Calling operation DevopsClient#update_deploy_stage.' if logger
2178
+
2179
+ raise "Missing the required parameter 'deploy_stage_id' when calling update_deploy_stage." if deploy_stage_id.nil?
2180
+ raise "Missing the required parameter 'update_deploy_stage_details' when calling update_deploy_stage." if update_deploy_stage_details.nil?
2181
+ raise "Parameter value for 'deploy_stage_id' must not be blank" if OCI::Internal::Util.blank_string?(deploy_stage_id)
2182
+
2183
+ path = '/deployStages/{deployStageId}'.sub('{deployStageId}', deploy_stage_id.to_s)
2184
+ operation_signing_strategy = :standard
2185
+
2186
+ # rubocop:disable Style/NegatedIf
2187
+ # Query Params
2188
+ query_params = {}
2189
+
2190
+ # Header Params
2191
+ header_params = {}
2192
+ header_params[:accept] = 'application/json'
2193
+ header_params[:'content-type'] = 'application/json'
2194
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2195
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2196
+ # rubocop:enable Style/NegatedIf
2197
+
2198
+ post_body = @api_client.object_to_http_body(update_deploy_stage_details)
2199
+
2200
+ # rubocop:disable Metrics/BlockLength
2201
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_deploy_stage') do
2202
+ @api_client.call_api(
2203
+ :PUT,
2204
+ path,
2205
+ endpoint,
2206
+ header_params: header_params,
2207
+ query_params: query_params,
2208
+ operation_signing_strategy: operation_signing_strategy,
2209
+ body: post_body,
2210
+ return_type: 'OCI::Devops::Models::DeployStage'
2211
+ )
2212
+ end
2213
+ # rubocop:enable Metrics/BlockLength
2214
+ end
2215
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2216
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2217
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2218
+
2219
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2220
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2221
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2222
+
2223
+
2224
+ # Updates the deployment.
2225
+ # @param [String] deployment_id Unique deployment identifier.
2226
+ # @param [OCI::Devops::Models::UpdateDeploymentDetails] update_deployment_details The information to be updated.
2227
+ # @param [Hash] opts the optional parameters
2228
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2229
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2230
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
2231
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2232
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Deployment Deployment}
2233
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_deployment.rb.html) to see an example of how to use update_deployment API.
2234
+ def update_deployment(deployment_id, update_deployment_details, opts = {})
2235
+ logger.debug 'Calling operation DevopsClient#update_deployment.' if logger
2236
+
2237
+ raise "Missing the required parameter 'deployment_id' when calling update_deployment." if deployment_id.nil?
2238
+ raise "Missing the required parameter 'update_deployment_details' when calling update_deployment." if update_deployment_details.nil?
2239
+ raise "Parameter value for 'deployment_id' must not be blank" if OCI::Internal::Util.blank_string?(deployment_id)
2240
+
2241
+ path = '/deployments/{deploymentId}'.sub('{deploymentId}', deployment_id.to_s)
2242
+ operation_signing_strategy = :standard
2243
+
2244
+ # rubocop:disable Style/NegatedIf
2245
+ # Query Params
2246
+ query_params = {}
2247
+
2248
+ # Header Params
2249
+ header_params = {}
2250
+ header_params[:accept] = 'application/json'
2251
+ header_params[:'content-type'] = 'application/json'
2252
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2253
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2254
+ # rubocop:enable Style/NegatedIf
2255
+
2256
+ post_body = @api_client.object_to_http_body(update_deployment_details)
2257
+
2258
+ # rubocop:disable Metrics/BlockLength
2259
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_deployment') do
2260
+ @api_client.call_api(
2261
+ :PUT,
2262
+ path,
2263
+ endpoint,
2264
+ header_params: header_params,
2265
+ query_params: query_params,
2266
+ operation_signing_strategy: operation_signing_strategy,
2267
+ body: post_body,
2268
+ return_type: 'OCI::Devops::Models::Deployment'
2269
+ )
2270
+ end
2271
+ # rubocop:enable Metrics/BlockLength
2272
+ end
2273
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2274
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2275
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2276
+
2277
+ # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2278
+ # rubocop:disable Style/IfUnlessModifier, Metrics/ParameterLists
2279
+ # rubocop:disable Metrics/MethodLength, Layout/EmptyLines
2280
+
2281
+
2282
+ # Updates the project.
2283
+ # @param [String] project_id Unique project identifier.
2284
+ # @param [OCI::Devops::Models::UpdateProjectDetails] update_project_details The information to be updated.
2285
+ # @param [Hash] opts the optional parameters
2286
+ # @option opts [OCI::Retry::RetryConfig] :retry_config The retry configuration to apply to this operation. If no key is provided then the service-level
2287
+ # retry configuration defined by {#retry_config} will be used. If an explicit `nil` value is provided then the operation will not retry
2288
+ # @option opts [String] :if_match For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.
2289
+ # @option opts [String] :opc_request_id Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, provide the request ID.
2290
+ # @return [Response] A Response object with data of type {OCI::Devops::Models::Project Project}
2291
+ # @note Click [here](https://docs.cloud.oracle.com/en-us/iaas/tools/ruby-sdk-examples/latest/devops/update_project.rb.html) to see an example of how to use update_project API.
2292
+ def update_project(project_id, update_project_details, opts = {})
2293
+ logger.debug 'Calling operation DevopsClient#update_project.' if logger
2294
+
2295
+ raise "Missing the required parameter 'project_id' when calling update_project." if project_id.nil?
2296
+ raise "Missing the required parameter 'update_project_details' when calling update_project." if update_project_details.nil?
2297
+ raise "Parameter value for 'project_id' must not be blank" if OCI::Internal::Util.blank_string?(project_id)
2298
+
2299
+ path = '/projects/{projectId}'.sub('{projectId}', project_id.to_s)
2300
+ operation_signing_strategy = :standard
2301
+
2302
+ # rubocop:disable Style/NegatedIf
2303
+ # Query Params
2304
+ query_params = {}
2305
+
2306
+ # Header Params
2307
+ header_params = {}
2308
+ header_params[:accept] = 'application/json'
2309
+ header_params[:'content-type'] = 'application/json'
2310
+ header_params[:'if-match'] = opts[:if_match] if opts[:if_match]
2311
+ header_params[:'opc-request-id'] = opts[:opc_request_id] if opts[:opc_request_id]
2312
+ # rubocop:enable Style/NegatedIf
2313
+
2314
+ post_body = @api_client.object_to_http_body(update_project_details)
2315
+
2316
+ # rubocop:disable Metrics/BlockLength
2317
+ OCI::Retry.make_retrying_call(applicable_retry_config(opts), call_name: 'DevopsClient#update_project') do
2318
+ @api_client.call_api(
2319
+ :PUT,
2320
+ path,
2321
+ endpoint,
2322
+ header_params: header_params,
2323
+ query_params: query_params,
2324
+ operation_signing_strategy: operation_signing_strategy,
2325
+ body: post_body,
2326
+ return_type: 'OCI::Devops::Models::Project'
2327
+ )
2328
+ end
2329
+ # rubocop:enable Metrics/BlockLength
2330
+ end
2331
+ # rubocop:enable Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity
2332
+ # rubocop:enable Style/IfUnlessModifier, Metrics/ParameterLists
2333
+ # rubocop:enable Metrics/MethodLength, Layout/EmptyLines
2334
+
2335
+ private
2336
+
2337
+ def applicable_retry_config(opts = {})
2338
+ return @retry_config unless opts.key?(:retry_config)
2339
+
2340
+ opts[:retry_config]
2341
+ end
2342
+ end
2343
+ end
2344
+ # rubocop:enable Lint/UnneededCopDisableDirective, Metrics/LineLength