oci-cli 3.66.1__py3-none-any.whl → 3.67.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (290) hide show
  1. common_util/ignored_commands.py +3 -1
  2. oci_cli/bin/jms.psm1 +74 -6
  3. oci_cli/bin/marketplace.psm1 +7 -1
  4. oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-gpu-memory-fabric/update.txt +2 -2
  5. oci_cli/help_text_producer/data_files/text/cmdref/compute/image-capability-schema/create.txt +26 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/compute/image-capability-schema/delete.txt +26 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/compute/image-capability-schema/update.txt +26 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch-instance-compute-bare-metal-host-placement-constraint-details.txt +4 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch-instance-host-group-placement-constraint-details.txt +4 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch.txt +4 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-amd-vm-update-instance-platform-config.txt +4 -0
  12. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-intel-vm-update-instance-platform-config.txt +4 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-boot-volume-details.txt +4 -0
  14. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-image-details.txt +4 -0
  15. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update.txt +4 -0
  16. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/discovery-job/list-discovery-job-results.txt +13 -1
  17. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-error-summary/list-masking-errors.txt +1 -1
  18. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/list-masking-reports.txt +5 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/mask-data.txt +6 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-findings.txt +5 -0
  21. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sensitive-column/list.txt +22 -1
  22. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/service/get.txt +2 -2
  23. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-gcp-key-details.txt +779 -0
  24. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update-autonomous-database-gcp-key-details.txt +1079 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database.txt +4 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/configure-exascale.txt +136 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra.txt +2 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +35 -9
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/update.txt +38 -1
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +1 -1
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/list.txt +23 -1
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/system-shape.txt +5 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +6 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-db.txt +2 -2
  35. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-exadb-stack.txt +173 -0
  36. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-gi.txt +2 -2
  37. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-guest-os.txt +180 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create.txt +7 -4
  39. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/update.txt +1 -1
  40. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection-summary/list.txt +1 -1
  41. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection.txt +4 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/clone.txt +6 -5
  43. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/create-fsu-cycle-create-upgrade-fsu-cycle.txt +4 -4
  44. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/create-patch.txt +14 -12
  45. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/create.txt +4 -4
  46. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/update-fsu-cycle-exadb-stack-fsu-goal-version-details.txt +230 -0
  47. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle/update-patch.txt +10 -10
  48. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle-summary/list.txt +1 -1
  49. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-cycle.txt +2 -0
  50. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-discovery/create-exadb-stack.txt +173 -0
  51. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-discovery/create-guest-os.txt +185 -0
  52. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-discovery.txt +4 -0
  53. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update.txt +10 -0
  54. oci_cli/help_text_producer/data_files/text/cmdref/fn/function/create.txt +26 -0
  55. oci_cli/help_text_producer/data_files/text/cmdref/fn/function/update.txt +26 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/fusion-apps/fusion-environment/create.txt +6 -0
  57. oci_cli/help_text_producer/data_files/text/cmdref/fusion-apps/fusion-environment/update.txt +6 -0
  58. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint/create.txt +5 -0
  59. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint/update.txt +5 -0
  60. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/change-compartment.txt +136 -0
  61. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/create.txt +186 -0
  62. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/delete.txt +133 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/get.txt +96 -0
  64. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/update.txt +195 -0
  65. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint-collection/list-generative-ai-private-endpoints.txt +147 -0
  66. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint-collection.txt +14 -0
  67. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint.txt +22 -0
  68. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai.txt +16 -0
  69. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error/{list.txt → list-errors.txt} +5 -5
  70. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
  71. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log-entry/list-work-request-logs.txt → work-request-log/list.txt} +5 -5
  72. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log.txt +14 -0
  73. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +3 -3
  74. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +3 -3
  75. oci_cli/help_text_producer/data_files/text/cmdref/jms/agent-installer-summary/generate-agent-installer-configuration.txt +8 -0
  76. oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/create.txt +1 -1
  77. oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/list.txt +1 -1
  78. oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary/list-containers.txt +338 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary.txt +14 -0
  80. oci_cli/help_text_producer/data_files/text/cmdref/jms/export-setting/update.txt +15 -0
  81. oci_cli/help_text_producer/data_files/text/cmdref/jms/fleet-agent-configuration/update.txt +8 -0
  82. oci_cli/help_text_producer/data_files/text/cmdref/jms/installation-usage/summarize.txt +1 -1
  83. oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/create.txt +12 -3
  84. oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/list.txt +3 -3
  85. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary/list-library-application-usage.txt +332 -0
  86. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary.txt +16 -0
  87. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory/summarize.txt +284 -0
  88. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory.txt +14 -0
  89. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary/list-library-managed-instance-usage.txt +332 -0
  90. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary.txt +16 -0
  91. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/scan.txt +8 -0
  92. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/summarize.txt +3 -3
  93. oci_cli/help_text_producer/data_files/text/cmdref/jms/managed-instance-usage/summarize.txt +1 -1
  94. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-add-installation-site-task-details.txt +148 -0
  95. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-crypto-task-details.txt +148 -0
  96. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-deployed-application-migration-task-details.txt +148 -0
  97. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-java-migration-task-details.txt +148 -0
  98. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-jfr-task-details.txt +148 -0
  99. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-performance-tuning-task-details.txt +148 -0
  100. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-remove-installation-site-task-details.txt +148 -0
  101. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-java-server-task-details.txt +148 -0
  102. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-library-task-details.txt +148 -0
  103. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create.txt +150 -0
  104. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/delete.txt +146 -0
  105. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/get.txt +108 -0
  106. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/list.txt +136 -0
  107. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-add-installation-site-task-details.txt +165 -0
  108. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-crypto-task-details.txt +165 -0
  109. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-deployed-application-migration-task-details.txt +165 -0
  110. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-java-migration-task-details.txt +165 -0
  111. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-jfr-task-details.txt +165 -0
  112. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-performance-tuning-task-details.txt +165 -0
  113. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-remove-installation-site-task-details.txt +165 -0
  114. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-java-server-task-details.txt +165 -0
  115. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-library-task-details.txt +165 -0
  116. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update.txt +171 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule.txt +58 -0
  118. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary/list-uncorrelated-package-application-usage.txt +324 -0
  119. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary.txt +16 -0
  120. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-managed-instance-usage-summary/list-uncorrelated-package-managed-instance-usage.txt +324 -0
  121. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-managed-instance-usage-summary.txt +16 -0
  122. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary/list-uncorrelated-package-usage.txt +323 -0
  123. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary.txt +14 -0
  124. oci_cli/help_text_producer/data_files/text/cmdref/jms/work-request/list.txt +1 -1
  125. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/get.txt +1 -1
  126. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/list.txt +1 -1
  127. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/create.txt +1 -1
  128. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/list.txt +1 -1
  129. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads.txt +1 -3
  130. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/get.txt +83 -0
  131. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/update.txt +99 -0
  132. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration.txt +16 -0
  133. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/delete.txt +103 -0
  134. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/get.txt +91 -0
  135. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/list.txt +128 -0
  136. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/request.txt +172 -0
  137. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis.txt +23 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/delete.txt +103 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/get.txt +91 -0
  140. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/list.txt +136 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/request.txt +172 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis.txt +23 -0
  143. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/get.txt +83 -0
  144. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/update.txt +95 -0
  145. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration.txt +16 -0
  146. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary/list-work-items.txt +110 -0
  147. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary.txt +14 -0
  148. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/cancel.txt +103 -0
  149. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/get.txt +91 -0
  150. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/list.txt +137 -0
  151. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error/list.txt +128 -0
  152. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error.txt +15 -0
  153. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-log-entry/list-work-request-logs.txt +128 -0
  154. oci_cli/help_text_producer/data_files/text/cmdref/{governance-rules-control-plane/work-request → jms-utils}/work-request-log-entry.txt +2 -1
  155. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request.txt +23 -0
  156. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils.txt +65 -0
  157. oci_cli/help_text_producer/data_files/text/cmdref/jms.txt +76 -0
  158. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details/create-marketplace-external-attested-metadata.txt +96 -0
  159. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details.txt +15 -0
  160. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary/list-marketplace-metadata-public-keys.txt +121 -0
  161. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary.txt +15 -0
  162. oci_cli/help_text_producer/data_files/text/cmdref/marketplace.txt +8 -0
  163. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/cluster/cluster/create.txt +12 -1
  164. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/cluster/cluster/update.txt +1 -1
  165. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/add-block-volume.txt +142 -0
  166. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/change-compartment.txt +114 -0
  167. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/create.txt +190 -0
  168. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/delete.txt +140 -0
  169. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/get.txt +100 -0
  170. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/list.txt +163 -0
  171. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore/update.txt +185 -0
  172. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/add-datastore.txt +147 -0
  173. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/attach-to-cluster.txt +153 -0
  174. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/attach-to-esxi-host.txt +155 -0
  175. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/change-compartment.txt +110 -0
  176. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/create.txt +188 -0
  177. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/delete.txt +134 -0
  178. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/detach-from-cluster.txt +134 -0
  179. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/detach-from-esxi-host.txt +155 -0
  180. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/get.txt +96 -0
  181. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/list.txt +163 -0
  182. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/remove-datastore.txt +147 -0
  183. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster/update.txt +182 -0
  184. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore-cluster.txt +37 -0
  185. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/datastore.txt +27 -0
  186. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/esxi-host/create.txt +1 -1
  187. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/esxi-host/update.txt +6 -2
  188. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list.txt → list-errors.txt} +5 -5
  189. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
  190. oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +43 -1
  191. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/create.txt +127 -0
  192. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/delete.txt +136 -0
  193. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/get.txt +98 -0
  194. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/list.txt +137 -0
  195. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region.txt +26 -0
  196. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/change-compartment.txt +135 -0
  197. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/create.txt +204 -0
  198. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/delete.txt +133 -0
  199. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/disable-oac.txt +129 -0
  200. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/enable-oac.txt +154 -0
  201. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/get.txt +95 -0
  202. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/list.txt +142 -0
  203. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/update.txt +179 -0
  204. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance.txt +34 -0
  205. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/create.txt +131 -0
  206. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/delete.txt +136 -0
  207. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/get.txt +98 -0
  208. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/list.txt +137 -0
  209. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/update.txt +137 -0
  210. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment.txt +29 -0
  211. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/cancel.txt +103 -0
  212. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/get.txt +91 -0
  213. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/list.txt +140 -0
  214. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error/list.txt +131 -0
  215. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error.txt +15 -0
  216. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry/list.txt +131 -0
  217. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry.txt +15 -0
  218. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request.txt +23 -0
  219. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics.txt +68 -0
  220. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +7 -7
  221. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  222. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  223. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  224. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  225. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  226. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  227. oci_cli/help_text_producer/data_files/text/index.txt +6 -2
  228. oci_cli/service_mapping.py +11 -1
  229. oci_cli/version.py +1 -1
  230. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/METADATA +2 -2
  231. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/RECORD +290 -116
  232. services/core/src/oci_cli_compute/generated/compute_cli.py +194 -28
  233. services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py +28 -9
  234. services/database/src/oci_cli_database/database_cli_extended.py +43 -2
  235. services/database/src/oci_cli_database/generated/database_cli.py +830 -4
  236. services/fleet_software_update/src/oci_cli_fleet_software_update/fleetsoftwareupdate_cli_extended.py +16 -0
  237. services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py +421 -32
  238. services/functions/src/oci_cli_functions_management/functionsmanagement_cli_extended.py +87 -5
  239. services/functions/src/oci_cli_functions_management/generated/functionsmanagement_cli.py +2361 -469
  240. services/fusion_apps/src/oci_cli_fusion_applications/fusionapplications_cli_extended.py +40 -0
  241. services/fusion_apps/src/oci_cli_fusion_applications/generated/fusionapplications_cli.py +10 -2
  242. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +399 -2
  243. services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py +4359 -2378
  244. services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py +5 -5
  245. services/jms_utils/__init__.py +4 -0
  246. services/jms_utils/src/__init__.py +4 -0
  247. services/jms_utils/src/oci_cli_jms_utils/__init__.py +4 -0
  248. services/jms_utils/src/oci_cli_jms_utils/generated/__init__.py +4 -0
  249. services/jms_utils/src/oci_cli_jms_utils/generated/client_mappings.py +14 -0
  250. services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py +812 -0
  251. services/jms_utils/tests/__init__.py +4 -0
  252. services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py +94 -0
  253. services/ocvp/src/oci_cli_cluster/generated/cluster_cli.py +9 -5
  254. services/ocvp/src/oci_cli_datastore/__init__.py +4 -0
  255. services/ocvp/src/oci_cli_datastore/datastore_cli_extended.py +25 -0
  256. services/ocvp/src/oci_cli_datastore/generated/__init__.py +4 -0
  257. services/ocvp/src/oci_cli_datastore/generated/client_mappings.py +14 -0
  258. services/ocvp/src/oci_cli_datastore/generated/datastore_cli.py +434 -0
  259. services/ocvp/src/oci_cli_datastore_cluster/__init__.py +4 -0
  260. services/ocvp/src/oci_cli_datastore_cluster/datastorecluster_cli_extended.py +50 -0
  261. services/ocvp/src/oci_cli_datastore_cluster/generated/__init__.py +4 -0
  262. services/ocvp/src/oci_cli_datastore_cluster/generated/client_mappings.py +14 -0
  263. services/ocvp/src/oci_cli_datastore_cluster/generated/datastorecluster_cli.py +737 -0
  264. services/ocvp/src/oci_cli_esxi_host/generated/esxihost_cli.py +5 -3
  265. services/resource_analytics/__init__.py +4 -0
  266. services/resource_analytics/src/__init__.py +4 -0
  267. services/resource_analytics/src/oci_cli_monitored_region/__init__.py +4 -0
  268. services/resource_analytics/src/oci_cli_monitored_region/generated/__init__.py +4 -0
  269. services/resource_analytics/src/oci_cli_monitored_region/generated/client_mappings.py +14 -0
  270. services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py +233 -0
  271. services/resource_analytics/src/oci_cli_monitored_region/monitored_region_cli_extended.py +39 -0
  272. services/resource_analytics/src/oci_cli_resource_analytics/__init__.py +4 -0
  273. services/resource_analytics/src/oci_cli_resource_analytics/generated/__init__.py +4 -0
  274. services/resource_analytics/src/oci_cli_resource_analytics/generated/resource_analytics_service_cli.py +14 -0
  275. services/resource_analytics/src/oci_cli_resource_analytics_instance/__init__.py +4 -0
  276. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/__init__.py +4 -0
  277. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/client_mappings.py +14 -0
  278. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py +968 -0
  279. services/resource_analytics/src/oci_cli_resource_analytics_instance/resource_analytics_instance_cli_extended.py +40 -0
  280. services/resource_analytics/src/oci_cli_tenancy_attachment/__init__.py +4 -0
  281. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/__init__.py +4 -0
  282. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/client_mappings.py +14 -0
  283. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py +298 -0
  284. services/resource_analytics/src/oci_cli_tenancy_attachment/tenancy_attachment_cli_extended.py +39 -0
  285. services/resource_analytics/tests/__init__.py +4 -0
  286. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/LICENSE.txt +0 -0
  287. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  288. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/WHEEL +0 -0
  289. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/entry_points.txt +0 -0
  290. {oci_cli-3.66.1.dist-info → oci_cli-3.67.0.dist-info}/top_level.txt +0 -0
@@ -465,9 +465,9 @@ def change_fsu_discovery_compartment(ctx, from_json, fsu_discovery_id, compartme
465
465
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.clone_fsu_cycle.command_name', 'clone'), help=u"""Clones existing Exadata Fleet Update Cycle details into a new Exadata Fleet Update Cycle resource. \n[Command Reference](cloneFsuCycle)""")
466
466
  @cli_util.option('--fsu-cycle-id', required=True, help=u"""Unique Exadata Fleet Update Cycle identifier.""")
467
467
  @cli_util.option('--goal-version-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
468
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
469
- @cli_util.option('--compartment-id', help=u"""Compartment Identifier.""")
470
- @cli_util.option('--fsu-collection-id', help=u"""OCID identifier for the Collection ID the Exadata Fleet Update Cycle will be assigned to. If not specified, it will be assigned to the same Collection as the source Exadata Fleet Update Cycle.""")
468
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Cycle.""")
469
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the Compartment.""")
470
+ @cli_util.option('--fsu-collection-id', help=u"""The [OCID] of the Exadata Fleet Update Collection which will be updated by the Exadata Fleet Update Cycle being created. If not specified, the cloned Exadata Fleet Update Cycle will be assigned to the same Exadata Fleet Update Collection as the source Exadata Fleet Update Cycle.""")
471
471
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
472
472
  @cli_util.option('--stage-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
473
473
  @cli_util.option('--apply-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1048,10 +1048,10 @@ def create_fsu_action_create_precheck_action_details(ctx, from_json, wait_for_st
1048
1048
 
1049
1049
 
1050
1050
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection.command_name', 'create'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1051
- @cli_util.option('--type', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB", "GI"]), help=u"""Collection type. DB: Only Database entity type resources allowed. GI: CloudVMCluster and VMCluster entity type resources allowed.""")
1051
+ @cli_util.option('--type', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB", "GI", "GUEST_OS", "EXADB_STACK"]), help=u"""Collection type. DB: Only Database entity type resources allowed. GI: CloudVMCluster and VMCluster entity type resources allowed. GUEST_OS: CloudVmCluster and VmCluster entity type resources are allowed. EXADB_STACK: CloudVmCluster and VmCluster entity type resources are allowed.""")
1052
1052
  @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1053
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier""")
1054
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection Identifier.""")
1053
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1054
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1055
1055
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1056
1056
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1057
1057
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
@@ -1118,9 +1118,9 @@ def create_fsu_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait
1118
1118
 
1119
1119
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_db_fsu_collection_details.command_name', 'create-fsu-collection-create-db-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1120
1120
  @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1121
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier""")
1121
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1122
1122
  @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB_11204", "DB_121", "DB_122", "DB_18", "DB_19", "DB_23"]), help=u"""Database Major Version of targets to be included in the Exadata Fleet Update Collection. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions Only Database targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1123
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection Identifier.""")
1123
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1124
1124
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1125
1125
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1126
1126
  @cli_util.option('--fleet-discovery', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1193,9 +1193,9 @@ def create_fsu_collection_create_db_fsu_collection_details(ctx, from_json, wait_
1193
1193
 
1194
1194
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_gi_fsu_collection_details.command_name', 'create-fsu-collection-create-gi-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1195
1195
  @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1196
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier""")
1196
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1197
1197
  @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["GI_18", "GI_19", "GI_23"]), help=u"""Grid Infrastructure Major Version of targets to be included in the Exadata Fleet Update Collection. Only GI targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1198
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection Identifier.""")
1198
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1199
1199
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1200
1200
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1201
1201
  @cli_util.option('--fleet-discovery', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1266,12 +1266,158 @@ def create_fsu_collection_create_gi_fsu_collection_details(ctx, from_json, wait_
1266
1266
  cli_util.render_response(result, ctx)
1267
1267
 
1268
1268
 
1269
+ @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_guest_os_fsu_collection_details.command_name', 'create-fsu-collection-create-guest-os-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1270
+ @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1271
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1272
+ @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXA_OL_5", "EXA_OL_6", "EXA_OL_7", "EXA_OL_8"]), help=u"""Major version of Exadata Image (Guest OS) release for Exadata VM Cluster targets to be included in the Exadata Fleet Update Collection. Only Exadata VM Clusters whose 'systemVersion' is related to the major version will be added to the Exadata Fleet Update Collection. For more details, refer to [Oracle document 2075007.1]""")
1273
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1274
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1275
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1276
+ @cli_util.option('--fleet-discovery', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1277
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1278
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1279
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
1280
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'fleet-discovery': {'module': 'fleet_software_update', 'class': 'GuestOsFleetDiscoveryDetails'}})
1281
+ @cli_util.help_option
1282
+ @click.pass_context
1283
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'fleet-discovery': {'module': 'fleet_software_update', 'class': 'GuestOsFleetDiscoveryDetails'}}, output_type={'module': 'fleet_software_update', 'class': 'FsuCollection'})
1284
+ @cli_util.wrap_exceptions
1285
+ def create_fsu_collection_create_guest_os_fsu_collection_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_type, compartment_id, source_major_version, display_name, freeform_tags, defined_tags, fleet_discovery):
1286
+
1287
+ kwargs = {}
1288
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1289
+
1290
+ _details = {}
1291
+ _details['serviceType'] = service_type
1292
+ _details['compartmentId'] = compartment_id
1293
+ _details['sourceMajorVersion'] = source_major_version
1294
+
1295
+ if display_name is not None:
1296
+ _details['displayName'] = display_name
1297
+
1298
+ if freeform_tags is not None:
1299
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1300
+
1301
+ if defined_tags is not None:
1302
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1303
+
1304
+ if fleet_discovery is not None:
1305
+ _details['fleetDiscovery'] = cli_util.parse_json_parameter("fleet_discovery", fleet_discovery)
1306
+
1307
+ _details['type'] = 'GUEST_OS'
1308
+
1309
+ client = cli_util.build_client('fleet_software_update', 'fleet_software_update', ctx)
1310
+ result = client.create_fsu_collection(
1311
+ create_fsu_collection_details=_details,
1312
+ **kwargs
1313
+ )
1314
+ if wait_for_state:
1315
+
1316
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1317
+ try:
1318
+ wait_period_kwargs = {}
1319
+ if max_wait_seconds is not None:
1320
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1321
+ if wait_interval_seconds is not None:
1322
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1323
+ if 'opc-work-request-id' not in result.headers:
1324
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1325
+ cli_util.render_response(result, ctx)
1326
+ return
1327
+
1328
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1329
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1330
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1331
+ # If we fail, we should show an error, but we should still provide the information to the customer
1332
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1333
+ cli_util.render_response(result, ctx)
1334
+ sys.exit(2)
1335
+ except Exception:
1336
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1337
+ cli_util.render_response(result, ctx)
1338
+ raise
1339
+ else:
1340
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1341
+ cli_util.render_response(result, ctx)
1342
+
1343
+
1344
+ @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_exadb_stack_fsu_collection_details.command_name', 'create-fsu-collection-create-exadb-stack-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1345
+ @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1346
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1347
+ @cli_util.option('--components', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Details of components in an Exadata software stack.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1348
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1349
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1350
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1351
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1352
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1353
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
1354
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'components': {'module': 'fleet_software_update', 'class': 'list[CreateSoftwareComponentDetails]'}})
1355
+ @cli_util.help_option
1356
+ @click.pass_context
1357
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'components': {'module': 'fleet_software_update', 'class': 'list[CreateSoftwareComponentDetails]'}}, output_type={'module': 'fleet_software_update', 'class': 'FsuCollection'})
1358
+ @cli_util.wrap_exceptions
1359
+ def create_fsu_collection_create_exadb_stack_fsu_collection_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, service_type, compartment_id, components, display_name, freeform_tags, defined_tags):
1360
+
1361
+ kwargs = {}
1362
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1363
+
1364
+ _details = {}
1365
+ _details['serviceType'] = service_type
1366
+ _details['compartmentId'] = compartment_id
1367
+ _details['components'] = cli_util.parse_json_parameter("components", components)
1368
+
1369
+ if display_name is not None:
1370
+ _details['displayName'] = display_name
1371
+
1372
+ if freeform_tags is not None:
1373
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1374
+
1375
+ if defined_tags is not None:
1376
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1377
+
1378
+ _details['type'] = 'EXADB_STACK'
1379
+
1380
+ client = cli_util.build_client('fleet_software_update', 'fleet_software_update', ctx)
1381
+ result = client.create_fsu_collection(
1382
+ create_fsu_collection_details=_details,
1383
+ **kwargs
1384
+ )
1385
+ if wait_for_state:
1386
+
1387
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1388
+ try:
1389
+ wait_period_kwargs = {}
1390
+ if max_wait_seconds is not None:
1391
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1392
+ if wait_interval_seconds is not None:
1393
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1394
+ if 'opc-work-request-id' not in result.headers:
1395
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1396
+ cli_util.render_response(result, ctx)
1397
+ return
1398
+
1399
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1400
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1401
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1402
+ # If we fail, we should show an error, but we should still provide the information to the customer
1403
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1404
+ cli_util.render_response(result, ctx)
1405
+ sys.exit(2)
1406
+ except Exception:
1407
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1408
+ cli_util.render_response(result, ctx)
1409
+ raise
1410
+ else:
1411
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1412
+ cli_util.render_response(result, ctx)
1413
+
1414
+
1269
1415
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.create_fsu_cycle.command_name', 'create'), help=u"""Creates a new Exadata Fleet Update Cycle. \n[Command Reference](createFsuCycle)""")
1270
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1416
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1271
1417
  @cli_util.option('--type', required=True, type=custom_types.CliCaseInsensitiveChoice(["PATCH", "UPGRADE"]), help=u"""Type of Exadata Fleet Update Cycle.""")
1272
- @cli_util.option('--fsu-collection-id', required=True, help=u"""OCID identifier for the Collection ID the Exadata Fleet Update Cycle will be assigned to.""")
1418
+ @cli_util.option('--fsu-collection-id', required=True, help=u"""The [OCID] of the Exadata Fleet Update Collection which will be updated by the Exadata Fleet Update Cycle being created.""")
1273
1419
  @cli_util.option('--goal-version-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1274
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
1420
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Cycle.""")
1275
1421
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1276
1422
  @cli_util.option('--stage-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1277
1423
  @cli_util.option('--apply-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1354,20 +1500,20 @@ def create_fsu_cycle(ctx, from_json, wait_for_state, max_wait_seconds, wait_inte
1354
1500
 
1355
1501
 
1356
1502
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.create_fsu_cycle_create_patch_fsu_cycle.command_name', 'create-fsu-cycle-create-patch-fsu-cycle'), help=u"""Creates a new Exadata Fleet Update Cycle. \n[Command Reference](createFsuCycle)""")
1357
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1358
- @cli_util.option('--fsu-collection-id', required=True, help=u"""OCID identifier for the Collection ID the Exadata Fleet Update Cycle will be assigned to.""")
1503
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1504
+ @cli_util.option('--fsu-collection-id', required=True, help=u"""The [OCID] of the Exadata Fleet Update Collection which will be updated by the Exadata Fleet Update Cycle being created.""")
1359
1505
  @cli_util.option('--goal-version-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1360
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
1506
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Cycle.""")
1361
1507
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1362
1508
  @cli_util.option('--stage-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1363
1509
  @cli_util.option('--apply-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1364
1510
  @cli_util.option('--diagnostics-collection', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1365
1511
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1366
1512
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1367
- @cli_util.option('--is-ignore-patches', type=click.BOOL, help=u"""Ignore all patches between the source and target homes during patching.""")
1368
- @cli_util.option('--is-ignore-missing-patches', type=custom_types.CLI_COMPLEX_TYPE, help=u"""List of patch IDs to ignore.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1369
- @cli_util.option('--max-drain-timeout-in-seconds', type=click.INT, help=u"""Service drain timeout specified in seconds.""")
1370
- @cli_util.option('--is-keep-placement', type=click.BOOL, help=u"""Ensure that services of administrator-managed Oracle RAC or Oracle RAC One databases are running on the same instances before and after the move operation.""")
1513
+ @cli_util.option('--is-ignore-patches', type=click.BOOL, help=u"""Ignore patch conflicts or missing patches between the source and goal homes. This attribute will be ignored for Exadata Image (Guest OS) maintenance update.""")
1514
+ @cli_util.option('--is-ignore-missing-patches', type=custom_types.CLI_COMPLEX_TYPE, help=u"""List of identifiers of patches to ignore. This attribute will be ignored for Exadata Image (Guest OS) maintenance update.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1515
+ @cli_util.option('--max-drain-timeout-in-seconds', type=click.INT, help=u"""Timeout for session draining for database services specified in seconds.""")
1516
+ @cli_util.option('--is-keep-placement', type=click.BOOL, help=u"""Ensure that database services are online on the same VMs before and after the maintenance update.""")
1371
1517
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1372
1518
  @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1373
1519
  @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
@@ -1457,10 +1603,10 @@ def create_fsu_cycle_create_patch_fsu_cycle(ctx, from_json, wait_for_state, max_
1457
1603
 
1458
1604
 
1459
1605
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.create_fsu_cycle_create_upgrade_fsu_cycle.command_name', 'create-fsu-cycle-create-upgrade-fsu-cycle'), help=u"""Creates a new Exadata Fleet Update Cycle. \n[Command Reference](createFsuCycle)""")
1460
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1461
- @cli_util.option('--fsu-collection-id', required=True, help=u"""OCID identifier for the Collection ID the Exadata Fleet Update Cycle will be assigned to.""")
1606
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1607
+ @cli_util.option('--fsu-collection-id', required=True, help=u"""The [OCID] of the Exadata Fleet Update Collection which will be updated by the Exadata Fleet Update Cycle being created.""")
1462
1608
  @cli_util.option('--goal-version-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1463
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
1609
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Cycle.""")
1464
1610
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1465
1611
  @cli_util.option('--stage-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1466
1612
  @cli_util.option('--apply-action-schedule', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1762,6 +1908,152 @@ def create_fsu_discovery_db_discovery_details(ctx, from_json, wait_for_state, ma
1762
1908
  cli_util.render_response(result, ctx)
1763
1909
 
1764
1910
 
1911
+ @fsu_discovery_group.command(name=cli_util.override('fleet_software_update.create_fsu_discovery_exadb_stack_discovery_details.command_name', 'create-fsu-discovery-exadb-stack-discovery-details'), help=u"""Creates a new Exadata Fleet Update Discovery. \n[Command Reference](createFsuDiscovery)""")
1912
+ @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1913
+ @cli_util.option('--details-service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1914
+ @cli_util.option('--details-components', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Discovery filter details of components in an Exadata software stack.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1915
+ @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection display name.""")
1916
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1917
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1918
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1919
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1920
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
1921
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'details-components': {'module': 'fleet_software_update', 'class': 'list[SoftwareComponentDiscoveryDetails]'}})
1922
+ @cli_util.help_option
1923
+ @click.pass_context
1924
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'details-components': {'module': 'fleet_software_update', 'class': 'list[SoftwareComponentDiscoveryDetails]'}}, output_type={'module': 'fleet_software_update', 'class': 'FsuDiscovery'})
1925
+ @cli_util.wrap_exceptions
1926
+ def create_fsu_discovery_exadb_stack_discovery_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, details_service_type, details_components, display_name, freeform_tags, defined_tags):
1927
+
1928
+ kwargs = {}
1929
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1930
+
1931
+ _details = {}
1932
+ _details['details'] = {}
1933
+ _details['compartmentId'] = compartment_id
1934
+ _details['details']['serviceType'] = details_service_type
1935
+ _details['details']['components'] = cli_util.parse_json_parameter("details_components", details_components)
1936
+
1937
+ if display_name is not None:
1938
+ _details['displayName'] = display_name
1939
+
1940
+ if freeform_tags is not None:
1941
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1942
+
1943
+ if defined_tags is not None:
1944
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1945
+
1946
+ _details['details']['type'] = 'EXADB_STACK'
1947
+
1948
+ client = cli_util.build_client('fleet_software_update', 'fleet_software_update', ctx)
1949
+ result = client.create_fsu_discovery(
1950
+ create_fsu_discovery_details=_details,
1951
+ **kwargs
1952
+ )
1953
+ if wait_for_state:
1954
+
1955
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1956
+ try:
1957
+ wait_period_kwargs = {}
1958
+ if max_wait_seconds is not None:
1959
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1960
+ if wait_interval_seconds is not None:
1961
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1962
+ if 'opc-work-request-id' not in result.headers:
1963
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1964
+ cli_util.render_response(result, ctx)
1965
+ return
1966
+
1967
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1968
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1969
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1970
+ # If we fail, we should show an error, but we should still provide the information to the customer
1971
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1972
+ cli_util.render_response(result, ctx)
1973
+ sys.exit(2)
1974
+ except Exception:
1975
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1976
+ cli_util.render_response(result, ctx)
1977
+ raise
1978
+ else:
1979
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1980
+ cli_util.render_response(result, ctx)
1981
+
1982
+
1983
+ @fsu_discovery_group.command(name=cli_util.override('fleet_software_update.create_fsu_discovery_guest_os_discovery_details.command_name', 'create-fsu-discovery-guest-os-discovery-details'), help=u"""Creates a new Exadata Fleet Update Discovery. \n[Command Reference](createFsuDiscovery)""")
1984
+ @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1985
+ @cli_util.option('--details-service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1986
+ @cli_util.option('--details-source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXA_OL_5", "EXA_OL_6", "EXA_OL_7", "EXA_OL_8"]), help=u"""Major version of Exadata Image (Guest OS) release for Exadata VM Cluster targets to be included in the results for an Exadata Fleet Update Discovery. Major Versions of Exadata Software are demarcated by the underlying Oracle Linux OS version. For more details, refer to [Oracle document 2075007.1]""")
1987
+ @cli_util.option('--details-criteria', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1988
+ @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection display name.""")
1989
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1990
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1991
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
1992
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
1993
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
1994
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'details-criteria': {'module': 'fleet_software_update', 'class': 'GuestOsFleetDiscoveryDetails'}})
1995
+ @cli_util.help_option
1996
+ @click.pass_context
1997
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'details-criteria': {'module': 'fleet_software_update', 'class': 'GuestOsFleetDiscoveryDetails'}}, output_type={'module': 'fleet_software_update', 'class': 'FsuDiscovery'})
1998
+ @cli_util.wrap_exceptions
1999
+ def create_fsu_discovery_guest_os_discovery_details(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, details_service_type, details_source_major_version, details_criteria, display_name, freeform_tags, defined_tags):
2000
+
2001
+ kwargs = {}
2002
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
2003
+
2004
+ _details = {}
2005
+ _details['details'] = {}
2006
+ _details['compartmentId'] = compartment_id
2007
+ _details['details']['serviceType'] = details_service_type
2008
+ _details['details']['sourceMajorVersion'] = details_source_major_version
2009
+ _details['details']['criteria'] = cli_util.parse_json_parameter("details_criteria", details_criteria)
2010
+
2011
+ if display_name is not None:
2012
+ _details['displayName'] = display_name
2013
+
2014
+ if freeform_tags is not None:
2015
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
2016
+
2017
+ if defined_tags is not None:
2018
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
2019
+
2020
+ _details['details']['type'] = 'GUEST_OS'
2021
+
2022
+ client = cli_util.build_client('fleet_software_update', 'fleet_software_update', ctx)
2023
+ result = client.create_fsu_discovery(
2024
+ create_fsu_discovery_details=_details,
2025
+ **kwargs
2026
+ )
2027
+ if wait_for_state:
2028
+
2029
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
2030
+ try:
2031
+ wait_period_kwargs = {}
2032
+ if max_wait_seconds is not None:
2033
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
2034
+ if wait_interval_seconds is not None:
2035
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
2036
+ if 'opc-work-request-id' not in result.headers:
2037
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
2038
+ cli_util.render_response(result, ctx)
2039
+ return
2040
+
2041
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
2042
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
2043
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
2044
+ # If we fail, we should show an error, but we should still provide the information to the customer
2045
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
2046
+ cli_util.render_response(result, ctx)
2047
+ sys.exit(2)
2048
+ except Exception:
2049
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
2050
+ cli_util.render_response(result, ctx)
2051
+ raise
2052
+ else:
2053
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
2054
+ cli_util.render_response(result, ctx)
2055
+
2056
+
1765
2057
  @fsu_action_group.command(name=cli_util.override('fleet_software_update.delete_fsu_action.command_name', 'delete'), help=u"""Deletes a Exadata Fleet Update Action resource by identifier. \n[Command Reference](deleteFsuAction)""")
1766
2058
  @cli_util.option('--fsu-action-id', required=True, help=u"""Unique Exadata Fleet Update Action identifier.""")
1767
2059
  @cli_util.option('--if-match', help=u"""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.""")
@@ -2496,7 +2788,7 @@ def list_fsu_collection_targets(ctx, from_json, all_pages, page_size, fsu_collec
2496
2788
  @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
2497
2789
  @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources whose lifecycleState matches the given lifecycleState.""")
2498
2790
  @cli_util.option('--display-name', help=u"""A filter to return only resources that match the entire display name given.""")
2499
- @cli_util.option('--type', type=custom_types.CliCaseInsensitiveChoice(["DB", "GI"]), help=u"""A filter to return only resources whose type matches the given type.""")
2791
+ @cli_util.option('--type', type=custom_types.CliCaseInsensitiveChoice(["DB", "GI", "GUEST_OS", "EXADB_STACK"]), help=u"""A filter to return only resources whose type matches the given type.""")
2500
2792
  @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
2501
2793
  @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
2502
2794
  @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
@@ -2559,7 +2851,7 @@ def list_fsu_collections(ctx, from_json, all_pages, page_size, compartment_id, l
2559
2851
  @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
2560
2852
  @cli_util.option('--fsu-collection-id', help=u"""A filter to return only resources whose fsuCollectionId matches the given fsuCollectionId.""")
2561
2853
  @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "IN_PROGRESS", "FAILED", "NEEDS_ATTENTION", "SUCCEEDED", "DELETING", "DELETED"]), help=u"""A filter to return only resources whose lifecycleState matches the given lifecycleState.""")
2562
- @cli_util.option('--collection-type', type=custom_types.CliCaseInsensitiveChoice(["DB", "GI"]), help=u"""A filter to return only resources whose Collection type matches the given type.""")
2854
+ @cli_util.option('--collection-type', type=custom_types.CliCaseInsensitiveChoice(["DB", "GI", "GUEST_OS", "EXADB_STACK"]), help=u"""A filter to return only resources whose Collection type matches the given type.""")
2563
2855
  @cli_util.option('--display-name', help=u"""A filter to return only resources that match the entire display name given.""")
2564
2856
  @cli_util.option('--target-version', help=u"""A filter to return only entries whose targetVersion matches the given targetVersion.""")
2565
2857
  @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
@@ -3785,7 +4077,7 @@ def update_fsu_action_update_cleanup_action_details(ctx, from_json, force, wait_
3785
4077
 
3786
4078
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.update_fsu_collection.command_name', 'update'), help=u"""Updates the Exadata Fleet Update Collection identified by the ID. \n[Command Reference](updateFsuCollection)""")
3787
4079
  @cli_util.option('--fsu-collection-id', required=True, help=u"""Unique Exadata Fleet Update Collection identifier.""")
3788
- @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection display name.""")
4080
+ @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
3789
4081
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3790
4082
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3791
4083
  @cli_util.option('--if-match', help=u"""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.""")
@@ -3957,10 +4249,10 @@ def update_fsu_cycle(ctx, from_json, force, wait_for_state, max_wait_seconds, wa
3957
4249
  @cli_util.option('--diagnostics-collection', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3958
4250
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3959
4251
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3960
- @cli_util.option('--is-ignore-patches', type=click.BOOL, help=u"""Ignore all patches between the source and target homes during patching.""")
3961
- @cli_util.option('--is-ignore-missing-patches', type=custom_types.CLI_COMPLEX_TYPE, help=u"""List of patch IDs to ignore. An empty array removes the previously stored patch IDs in the Maintenance Cycle properties.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
3962
- @cli_util.option('--max-drain-timeout-in-seconds', type=click.INT, help=u"""Service drain timeout specified in seconds.""")
3963
- @cli_util.option('--is-keep-placement', type=click.BOOL, help=u"""Ensure that services of administrator-managed Oracle RAC or Oracle RAC One databases are running on the same instances before and after the move operation.""")
4252
+ @cli_util.option('--is-ignore-patches', type=click.BOOL, help=u"""Ignore patch conflicts or missing patches between the source and goal homes. This attribute will be ignored for Exadata Image (Guest OS) maintenance update.""")
4253
+ @cli_util.option('--is-ignore-missing-patches', type=custom_types.CLI_COMPLEX_TYPE, help=u"""List of identifiers of patches to ignore. Specify an empty array to unset the field. This attribute will be ignored for Exadata Image (Guest OS) maintenance update.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4254
+ @cli_util.option('--max-drain-timeout-in-seconds', type=click.INT, help=u"""Timeout for session draining for database services specified in seconds.""")
4255
+ @cli_util.option('--is-keep-placement', type=click.BOOL, help=u"""Ensure that database services are online on the same VMs before and after the maintenance update.""")
3964
4256
  @cli_util.option('--if-match', help=u"""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.""")
3965
4257
  @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
3966
4258
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
@@ -4149,9 +4441,106 @@ def update_fsu_cycle_update_upgrade_fsu_cycle(ctx, from_json, force, wait_for_st
4149
4441
  cli_util.render_response(result, ctx)
4150
4442
 
4151
4443
 
4444
+ @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.update_fsu_cycle_exadb_stack_fsu_goal_version_details.command_name', 'update-fsu-cycle-exadb-stack-fsu-goal-version-details'), help=u"""Updates the Exadata Fleet Update Cycle identified by the ID. \n[Command Reference](updateFsuCycle)""")
4445
+ @cli_util.option('--fsu-cycle-id', required=True, help=u"""Unique Exadata Fleet Update Cycle identifier.""")
4446
+ @cli_util.option('--goal-version-details-components', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Details of goal versions for components in an Exadata software stack.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4447
+ @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
4448
+ @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4449
+ @cli_util.option('--diagnostics-collection', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4450
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4451
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4452
+ @cli_util.option('--if-match', help=u"""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.""")
4453
+ @cli_util.option('--goal-version-details-home-policy', type=custom_types.CliCaseInsensitiveChoice(["CREATE_NEW", "USE_EXISTING"]), help=u"""Goal home policy to use when Staging the Goal Version during patching. CREATE_NEW: Create a new DBHome (for Database Collections) for the specified image or version. USE_EXISTING: All database targets in the same VMCluster or CloudVmCluster will be moved to a shared database home. If an existing home for the selected image or version is not found in the VM Cluster for a target database, then a new home will be created. If more than one existing home for the selected image is found, then the home with the least number of databases will be used. If multiple homes have the least number of databases, then a home will be selected at random.""")
4454
+ @cli_util.option('--goal-version-details-new-home-prefix', help=u"""Prefix name used for new DB home resources created as part of the Stage Action. Format: <specified_prefix>_<timestamp> If not specified, a default OCI DB home resource will be generated for the new DB home resources created.""")
4455
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
4456
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
4457
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
4458
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
4459
+ @json_skeleton_utils.get_cli_json_input_option({'batching-strategy': {'module': 'fleet_software_update', 'class': 'UpdateBatchingStrategyDetails'}, 'diagnostics-collection': {'module': 'fleet_software_update', 'class': 'DiagnosticsCollectionDetails'}, 'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'goal-version-details-components': {'module': 'fleet_software_update', 'class': 'list[GoalSoftwareComponentDetails]'}})
4460
+ @cli_util.help_option
4461
+ @click.pass_context
4462
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'batching-strategy': {'module': 'fleet_software_update', 'class': 'UpdateBatchingStrategyDetails'}, 'diagnostics-collection': {'module': 'fleet_software_update', 'class': 'DiagnosticsCollectionDetails'}, 'freeform-tags': {'module': 'fleet_software_update', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'fleet_software_update', 'class': 'dict(str, dict(str, object))'}, 'goal-version-details-components': {'module': 'fleet_software_update', 'class': 'list[GoalSoftwareComponentDetails]'}})
4463
+ @cli_util.wrap_exceptions
4464
+ def update_fsu_cycle_exadb_stack_fsu_goal_version_details(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, fsu_cycle_id, goal_version_details_components, display_name, batching_strategy, diagnostics_collection, freeform_tags, defined_tags, if_match, goal_version_details_home_policy, goal_version_details_new_home_prefix):
4465
+
4466
+ if isinstance(fsu_cycle_id, six.string_types) and len(fsu_cycle_id.strip()) == 0:
4467
+ raise click.UsageError('Parameter --fsu-cycle-id cannot be whitespace or empty string')
4468
+ if not force:
4469
+ if batching_strategy or diagnostics_collection or freeform_tags or defined_tags:
4470
+ if not click.confirm("WARNING: Updates to batching-strategy and diagnostics-collection and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
4471
+ ctx.abort()
4472
+
4473
+ kwargs = {}
4474
+ if if_match is not None:
4475
+ kwargs['if_match'] = if_match
4476
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
4477
+
4478
+ _details = {}
4479
+ _details['goalVersionDetails'] = {}
4480
+ _details['goalVersionDetails']['components'] = cli_util.parse_json_parameter("goal_version_details_components", goal_version_details_components)
4481
+
4482
+ if display_name is not None:
4483
+ _details['displayName'] = display_name
4484
+
4485
+ if batching_strategy is not None:
4486
+ _details['batchingStrategy'] = cli_util.parse_json_parameter("batching_strategy", batching_strategy)
4487
+
4488
+ if diagnostics_collection is not None:
4489
+ _details['diagnosticsCollection'] = cli_util.parse_json_parameter("diagnostics_collection", diagnostics_collection)
4490
+
4491
+ if freeform_tags is not None:
4492
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
4493
+
4494
+ if defined_tags is not None:
4495
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
4496
+
4497
+ if goal_version_details_home_policy is not None:
4498
+ _details['goalVersionDetails']['homePolicy'] = goal_version_details_home_policy
4499
+
4500
+ if goal_version_details_new_home_prefix is not None:
4501
+ _details['goalVersionDetails']['newHomePrefix'] = goal_version_details_new_home_prefix
4502
+
4503
+ _details['goalVersionDetails']['type'] = 'EXADB_STACK'
4504
+
4505
+ client = cli_util.build_client('fleet_software_update', 'fleet_software_update', ctx)
4506
+ result = client.update_fsu_cycle(
4507
+ fsu_cycle_id=fsu_cycle_id,
4508
+ update_fsu_cycle_details=_details,
4509
+ **kwargs
4510
+ )
4511
+ if wait_for_state:
4512
+
4513
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
4514
+ try:
4515
+ wait_period_kwargs = {}
4516
+ if max_wait_seconds is not None:
4517
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
4518
+ if wait_interval_seconds is not None:
4519
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
4520
+ if 'opc-work-request-id' not in result.headers:
4521
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
4522
+ cli_util.render_response(result, ctx)
4523
+ return
4524
+
4525
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
4526
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
4527
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
4528
+ # If we fail, we should show an error, but we should still provide the information to the customer
4529
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
4530
+ cli_util.render_response(result, ctx)
4531
+ sys.exit(2)
4532
+ except Exception:
4533
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
4534
+ cli_util.render_response(result, ctx)
4535
+ raise
4536
+ else:
4537
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
4538
+ cli_util.render_response(result, ctx)
4539
+
4540
+
4152
4541
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.update_fsu_cycle_version_fsu_target_details.command_name', 'update-fsu-cycle-version-fsu-target-details'), help=u"""Updates the Exadata Fleet Update Cycle identified by the ID. \n[Command Reference](updateFsuCycle)""")
4153
4542
  @cli_util.option('--fsu-cycle-id', required=True, help=u"""Unique Exadata Fleet Update Cycle identifier.""")
4154
- @cli_util.option('--goal-version-details-version', required=True, help=u"""Target DB or GI version string for the Exadata Fleet Update Cycle.""")
4543
+ @cli_util.option('--goal-version-details-version', required=True, help=u"""Goal version string for the Exadata Fleet Update Cycle. Applicable to Database, Grid Infrastructure, or Exadata Image software updates.""")
4155
4544
  @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
4156
4545
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4157
4546
  @cli_util.option('--diagnostics-collection', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -4248,7 +4637,7 @@ def update_fsu_cycle_version_fsu_target_details(ctx, from_json, force, wait_for_
4248
4637
 
4249
4638
  @fsu_cycle_group.command(name=cli_util.override('fleet_software_update.update_fsu_cycle_image_id_fsu_target_details.command_name', 'update-fsu-cycle-image-id-fsu-target-details'), help=u"""Updates the Exadata Fleet Update Cycle identified by the ID. \n[Command Reference](updateFsuCycle)""")
4250
4639
  @cli_util.option('--fsu-cycle-id', required=True, help=u"""Unique Exadata Fleet Update Cycle identifier.""")
4251
- @cli_util.option('--goal-version-details-software-image-id', required=True, help=u"""Target database software image OCID.""")
4640
+ @cli_util.option('--goal-version-details-software-image-id', required=True, help=u"""The [OCID] of the goal database software image.""")
4252
4641
  @cli_util.option('--display-name', help=u"""Exadata Fleet Update Cycle display name.""")
4253
4642
  @cli_util.option('--batching-strategy', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4254
4643
  @cli_util.option('--diagnostics-collection', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)