oci-cli 3.70.0__py3-none-any.whl → 3.70.1__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 (196) hide show
  1. oci_cli/bin/artifacts.psm1 +4 -2
  2. oci_cli/bin/dif.psm1 +53 -0
  3. oci_cli/bin/limits.psm1 +2 -2
  4. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image/list.txt +8 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image/lookup.txt +93 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image.txt +2 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container.txt +2 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/artifacts.txt +18 -2
  9. oci_cli/help_text_producer/data_files/text/cmdref/bv/volume-kms-key/update.txt +5 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/ce/addon-option/list.txt +6 -1
  11. oci_cli/help_text_producer/data_files/text/cmdref/ce/cluster-options/get.txt +4 -0
  12. oci_cli/help_text_producer/data_files/text/cmdref/ce/node-pool-options/get.txt +24 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/create-dedicated-vm-host-compute-bare-metal-host-placement-constraint-details.txt +12 -0
  14. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/create-dedicated-vm-host-host-group-placement-constraint-details.txt +12 -0
  15. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/create.txt +12 -0
  16. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/list.txt +5 -0
  17. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host-instance/list.txt +5 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list.txt → list-errors.txt} +5 -5
  19. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
  20. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +1 -1
  21. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +1 -1
  22. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/add.txt +227 -0
  23. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/change-compartment.txt +136 -0
  24. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/create.txt +262 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/delete.txt +134 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/deploy-artifacts.txt +198 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/get.txt +96 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/update.txt +274 -0
  29. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack-collection/list-stacks.txt +142 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack-collection.txt +15 -0
  31. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack.txt +31 -0
  32. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/cancel.txt +103 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/get.txt +91 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/list.txt +140 -0
  35. oci_cli/help_text_producer/data_files/text/cmdref/{organizations/work-request-log → dif/work-request-error}/list.txt +22 -9
  36. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-error.txt +15 -0
  37. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-log-entry/list-work-request-logs.txt +131 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-log-entry.txt +15 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request.txt +23 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/dif.txt +49 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/compliance/get.txt +99 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/compliance.txt +14 -0
  43. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-dynamic-resource-selection.txt +5 -4
  44. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-environment-fleet-details.txt +5 -4
  45. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-generic-fleet-details.txt +5 -4
  46. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-group-fleet-details.txt +5 -4
  47. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-manual-resource-selection.txt +5 -4
  48. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-product-fleet-details.txt +5 -4
  49. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create.txt +5 -4
  50. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update-fleet-dynamic-resource-selection.txt +10 -4
  51. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update-fleet-manual-resource-selection.txt +10 -4
  52. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update.txt +10 -4
  53. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/onboarding/create.txt +26 -0
  54. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/onboarding/update.txt +30 -0
  55. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-credential-config-category-details.txt +26 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-environment-config-category-details.txt +26 -0
  57. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-lifecycle-operation-config-category-details.txt +26 -0
  58. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-patch-type-config-category-details.txt +26 -0
  59. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-product-config-category-details.txt +26 -0
  60. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-product-stack-config-category-details.txt +26 -0
  61. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create-platform-configuration-self-hosted-instance-config-category-details.txt +26 -0
  62. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create.txt +26 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-credential-config-category-details.txt +30 -0
  64. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-environment-config-category-details.txt +30 -0
  65. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-lifecycle-operation-config-category-details.txt +30 -0
  66. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-patch-type-config-category-details.txt +30 -0
  67. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-product-config-category-details.txt +30 -0
  68. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-product-stack-config-category-details.txt +30 -0
  69. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update-platform-configuration-self-hosted-instance-config-category-details.txt +30 -0
  70. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update.txt +26 -0
  71. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration-collection/list-platform-configurations.txt +1 -1
  72. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/property/create.txt +26 -0
  73. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/property/update.txt +26 -0
  74. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/configure.txt +218 -0
  75. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create-catalog-item-catalog-git-source-config.txt +4 -0
  76. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create-catalog-item-catalog-marketplace-source-config.txt +4 -0
  77. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create-catalog-item-catalog-par-source-config.txt +4 -0
  78. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create-catalog-item-catalog-source-template-config.txt +4 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create.txt +4 -0
  80. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/update.txt +4 -0
  81. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item-collection/list-catalog-items.txt +9 -0
  82. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item-variables-definition/get.txt +97 -0
  83. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item-variables-definition.txt +14 -0
  84. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item.txt +2 -0
  85. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog.txt +6 -0
  86. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/installed-patch-collection/list-installed-patches.txt +152 -0
  87. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/installed-patch-collection.txt +14 -0
  88. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/inventory-record-collection/list-inventory-records.txt +4 -0
  89. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/job-activity/get.txt +4 -0
  90. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/recommended-patch-collection/list-recommended-patches.txt +159 -0
  91. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/recommended-patch-collection.txt +14 -0
  92. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-collection/report.txt +180 -0
  93. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-collection.txt +14 -0
  94. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-metadata-collection/list-report-metadata.txt +133 -0
  95. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-metadata-collection.txt +14 -0
  96. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/scheduler-execution-collection/list-scheduler-executions.txt +13 -1
  97. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-component-collection/list-target-components.txt +147 -0
  98. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-component-collection.txt +14 -0
  99. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-property-collection/list-target-properties.txt +143 -0
  100. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-property-collection.txt +14 -0
  101. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations.txt +24 -0
  102. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-details/import-runbook.txt +187 -0
  103. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-details.txt +14 -0
  104. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-precheck-details/import-runbook-precheck.txt +182 -0
  105. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-precheck-details.txt +14 -0
  106. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-version-details/import-runbook-version.txt +183 -0
  107. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-version-details.txt +14 -0
  108. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-transfer-runbook-object-storage-bucket-content-details.txt +160 -0
  109. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-transfer-runbook-par-url-content-details.txt +147 -0
  110. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-version-transfer-runbook-object-storage-bucket-content-details.txt +147 -0
  111. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-version-transfer-runbook-par-url-content-details.txt +134 -0
  112. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-version.txt +145 -0
  113. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export.txt +155 -0
  114. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export/get.txt +105 -0
  115. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-dependency-collection/find-runbook-export-dependency.txt +114 -0
  116. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-dependency-collection.txt +15 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-status-collection/list-runbook-export-statuses.txt +135 -0
  118. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-status-collection.txt +15 -0
  119. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export.txt +14 -0
  120. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import/get.txt +105 -0
  121. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-dependency-collection/find-runbook-import-dependency-transfer-runbook-object-storage-bucket-content-details.txt +119 -0
  122. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-dependency-collection/find-runbook-import-dependency-transfer-runbook-par-url-content-details.txt +106 -0
  123. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-dependency-collection/find-runbook-import-dependency.txt +117 -0
  124. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-dependency-collection.txt +21 -0
  125. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-status-collection/list-runbook-import-statuses.txt +135 -0
  126. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-status-collection.txt +15 -0
  127. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import.txt +14 -0
  128. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version/create.txt +5 -4
  129. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version/update.txt +1 -1
  130. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version.txt +4 -1
  131. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook.txt +14 -0
  132. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks.txt +56 -0
  133. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-target-collection/list-fleet-targets.txt +9 -0
  134. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-target-collection/list-targets.txt +4 -0
  135. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management.txt +90 -0
  136. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/dedicated-ai-cluster/create.txt +10 -1
  137. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/change-compartment.txt +106 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-huggingface.txt +213 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-objectstorage.txt +203 -0
  140. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/delete.txt +131 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/get.txt +91 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/update.txt +183 -0
  143. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model-collection/list-imported-models.txt +161 -0
  144. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model-collection.txt +14 -0
  145. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model.txt +30 -0
  146. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/model-collection/list-models.txt +1 -1
  147. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai.txt +18 -0
  148. oci_cli/help_text_producer/data_files/text/cmdref/limits/definition/list.txt +5 -5
  149. oci_cli/help_text_producer/data_files/text/cmdref/limits/resource-availability/get.txt +9 -5
  150. oci_cli/help_text_producer/data_files/text/cmdref/limits/service/list.txt +1 -1
  151. oci_cli/help_text_producer/data_files/text/cmdref/limits/value/list.txt +7 -3
  152. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list-errors.txt → list.txt} +5 -5
  153. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
  154. oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
  155. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list-errors.txt → list.txt} +5 -5
  156. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  157. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-log-entry/list.txt +100 -0
  158. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log.txt → work-request-log-entry.txt} +2 -2
  159. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
  160. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  161. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  162. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  163. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  164. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  165. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  166. oci_cli/help_text_producer/data_files/text/index.txt +2 -0
  167. oci_cli/service_mapping.py +5 -0
  168. oci_cli/version.py +1 -1
  169. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/METADATA +2 -2
  170. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/RECORD +196 -114
  171. services/artifacts/src/oci_cli_artifacts/artifacts_cli_extended.py +4 -0
  172. services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py +36 -3
  173. services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py +18 -3
  174. services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py +4 -1
  175. services/core/src/oci_cli_compute/generated/compute_cli.py +35 -5
  176. services/dif/__init__.py +4 -0
  177. services/dif/src/__init__.py +4 -0
  178. services/dif/src/oci_cli_stack/__init__.py +4 -0
  179. services/dif/src/oci_cli_stack/generated/__init__.py +4 -0
  180. services/dif/src/oci_cli_stack/generated/client_mappings.py +14 -0
  181. services/dif/src/oci_cli_stack/generated/stack_cli.py +887 -0
  182. services/dif/src/oci_cli_stack/stack_cli_extended.py +51 -0
  183. services/dif/tests/__init__.py +4 -0
  184. services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py +63 -15
  185. services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py +265 -65
  186. services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py +154 -7
  187. services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py +473 -31
  188. services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py +1055 -34
  189. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +640 -59
  190. services/generative_ai/src/oci_cli_generative_ai/generativeai_cli_extended.py +107 -0
  191. services/limits/src/oci_cli_limits/generated/limits_cli.py +15 -9
  192. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/LICENSE.txt +0 -0
  193. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  194. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/WHEEL +0 -0
  195. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/entry_points.txt +0 -0
  196. {oci_cli-3.70.0.dist-info → oci_cli-3.70.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,887 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20250830
5
+
6
+ from __future__ import print_function
7
+ import click
8
+ import oci # noqa: F401
9
+ import six # noqa: F401
10
+ import sys # noqa: F401
11
+ from oci_cli.cli_root import cli
12
+ from oci_cli import cli_constants # noqa: F401
13
+ from oci_cli import cli_util
14
+ from oci_cli import json_skeleton_utils
15
+ from oci_cli import custom_types # noqa: F401
16
+ from oci_cli.aliasing import CommandGroupWithAlias
17
+
18
+
19
+ @cli.command(cli_util.override('dif.dif_root_group.command_name', 'dif'), cls=CommandGroupWithAlias, help=cli_util.override('dif.dif_root_group.help', """Use the DataIntelligences Control Plane API to manage dataIntelligences."""), short_help=cli_util.override('dif.dif_root_group.short_help', """DataIntelligences Control Plane API"""))
20
+ @cli_util.help_option_group
21
+ def dif_root_group():
22
+ pass
23
+
24
+
25
+ @click.command(cli_util.override('dif.stack_group.command_name', 'stack'), cls=CommandGroupWithAlias, help="""A Stack is a collection of a templates and services.
26
+
27
+ To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies].""")
28
+ @cli_util.help_option_group
29
+ def stack_group():
30
+ pass
31
+
32
+
33
+ @click.command(cli_util.override('dif.work_request_error_group.command_name', 'work-request-error'), cls=CommandGroupWithAlias, help="""An error encountered while performing an operation that is tracked by a work request.""")
34
+ @cli_util.help_option_group
35
+ def work_request_error_group():
36
+ pass
37
+
38
+
39
+ @click.command(cli_util.override('dif.work_request_log_entry_group.command_name', 'work-request-log-entry'), cls=CommandGroupWithAlias, help="""A log message from performing an operation that is tracked by a work request.""")
40
+ @cli_util.help_option_group
41
+ def work_request_log_entry_group():
42
+ pass
43
+
44
+
45
+ @click.command(cli_util.override('dif.work_request_group.command_name', 'work-request'), cls=CommandGroupWithAlias, help="""An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, the service creates a work request. A work request is an activity log that lets you track each step in the operation's progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation.""")
46
+ @cli_util.help_option_group
47
+ def work_request_group():
48
+ pass
49
+
50
+
51
+ @click.command(cli_util.override('dif.stack_collection_group.command_name', 'stack-collection'), cls=CommandGroupWithAlias, help="""Results of a Stack search. Contains both StackSummary items and other information, such as metadata.""")
52
+ @cli_util.help_option_group
53
+ def stack_collection_group():
54
+ pass
55
+
56
+
57
+ dif_root_group.add_command(stack_group)
58
+ dif_root_group.add_command(work_request_error_group)
59
+ dif_root_group.add_command(work_request_log_entry_group)
60
+ dif_root_group.add_command(work_request_group)
61
+ dif_root_group.add_command(stack_collection_group)
62
+
63
+
64
+ @stack_group.command(name=cli_util.override('dif.add_service.command_name', 'add'), help=u"""Add new service or update existing service. \n[Command Reference](addService)""")
65
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
66
+ @cli_util.option('--stack-templates', required=True, type=custom_types.CliCaseInsensitiveChoice(["DATALAKE", "DATAPIPELINE", "AISERVICES", "DATATRANSFORMATION"]), help=u"""List of templates to be added for the stack.""")
67
+ @cli_util.option('--services', required=True, type=custom_types.CliCaseInsensitiveChoice(["ADB", "GGCS", "OBJECTSTORAGE", "GENAI", "DATAFLOW"]), help=u"""List of services to be added for the stack.""")
68
+ @cli_util.option('--adb', type=custom_types.CLI_COMPLEX_TYPE, help=u"""ADB details if adb is included in the services to be added.
69
+
70
+ This option is a JSON list with items of type AdbDetail. For documentation on AdbDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/AdbDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
71
+ @cli_util.option('--ggcs', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GGCS details if ggcs is included in the services to be added.
72
+
73
+ This option is a JSON list with items of type GgcsDetail. For documentation on GgcsDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GgcsDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
74
+ @cli_util.option('--dataflow', type=custom_types.CLI_COMPLEX_TYPE, help=u"""DATAFLOW details if dataflow is included in the services to be added.
75
+
76
+ This option is a JSON list with items of type DataflowDetail. For documentation on DataflowDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/DataflowDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
77
+ @cli_util.option('--objectstorage', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Object Storage Details if object storage is included in services to be added.
78
+
79
+ This option is a JSON list with items of type ObjectStorageDetail. For documentation on ObjectStorageDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/ObjectStorageDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
80
+ @cli_util.option('--genai', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GenAI Details if genai is included in services to be added.
81
+
82
+ This option is a JSON list with items of type GenAiDetail. For documentation on GenAiDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GenAiDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
83
+ @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.""")
84
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
85
+ @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.""")
86
+ @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.""")
87
+ @json_skeleton_utils.get_cli_json_input_option({'adb': {'module': 'dif', 'class': 'list[AdbDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiDetail]'}})
88
+ @cli_util.help_option
89
+ @click.pass_context
90
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'adb': {'module': 'dif', 'class': 'list[AdbDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiDetail]'}})
91
+ @cli_util.wrap_exceptions
92
+ def add_service(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, stack_templates, services, adb, ggcs, dataflow, objectstorage, genai, if_match):
93
+
94
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
95
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
96
+
97
+ kwargs = {}
98
+ if if_match is not None:
99
+ kwargs['if_match'] = if_match
100
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
101
+
102
+ _details = {}
103
+ _details['stackTemplates'] = cli_util.parse_json_parameter("stack_templates", stack_templates)
104
+ _details['services'] = cli_util.parse_json_parameter("services", services)
105
+
106
+ if adb is not None:
107
+ _details['adb'] = cli_util.parse_json_parameter("adb", adb)
108
+
109
+ if ggcs is not None:
110
+ _details['ggcs'] = cli_util.parse_json_parameter("ggcs", ggcs)
111
+
112
+ if dataflow is not None:
113
+ _details['dataflow'] = cli_util.parse_json_parameter("dataflow", dataflow)
114
+
115
+ if objectstorage is not None:
116
+ _details['objectstorage'] = cli_util.parse_json_parameter("objectstorage", objectstorage)
117
+
118
+ if genai is not None:
119
+ _details['genai'] = cli_util.parse_json_parameter("genai", genai)
120
+
121
+ client = cli_util.build_client('dif', 'stack', ctx)
122
+ result = client.add_service(
123
+ stack_id=stack_id,
124
+ add_service_details=_details,
125
+ **kwargs
126
+ )
127
+ if wait_for_state:
128
+
129
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
130
+ try:
131
+ wait_period_kwargs = {}
132
+ if max_wait_seconds is not None:
133
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
134
+ if wait_interval_seconds is not None:
135
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
136
+ if 'opc-work-request-id' not in result.headers:
137
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
138
+ cli_util.render_response(result, ctx)
139
+ return
140
+
141
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
142
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
143
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
144
+ # If we fail, we should show an error, but we should still provide the information to the customer
145
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
146
+ cli_util.render_response(result, ctx)
147
+ sys.exit(2)
148
+ except Exception:
149
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
150
+ cli_util.render_response(result, ctx)
151
+ raise
152
+ else:
153
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
154
+ cli_util.render_response(result, ctx)
155
+
156
+
157
+ @work_request_group.command(name=cli_util.override('dif.cancel_work_request.command_name', 'cancel'), help=u"""Cancels a work request. \n[Command Reference](cancelWorkRequest)""")
158
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
159
+ @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.""")
160
+ @cli_util.confirm_delete_option
161
+ @json_skeleton_utils.get_cli_json_input_option({})
162
+ @cli_util.help_option
163
+ @click.pass_context
164
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
165
+ @cli_util.wrap_exceptions
166
+ def cancel_work_request(ctx, from_json, work_request_id, if_match):
167
+
168
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
169
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
170
+
171
+ kwargs = {}
172
+ if if_match is not None:
173
+ kwargs['if_match'] = if_match
174
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
175
+ client = cli_util.build_client('dif', 'stack', ctx)
176
+ result = client.cancel_work_request(
177
+ work_request_id=work_request_id,
178
+ **kwargs
179
+ )
180
+ cli_util.render_response(result, ctx)
181
+
182
+
183
+ @stack_group.command(name=cli_util.override('dif.change_stack_compartment.command_name', 'change-compartment'), help=u"""Moves a Stack into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment]. \n[Command Reference](changeStackCompartment)""")
184
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
185
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the Stack to.""")
186
+ @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.""")
187
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
188
+ @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.""")
189
+ @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.""")
190
+ @json_skeleton_utils.get_cli_json_input_option({})
191
+ @cli_util.help_option
192
+ @click.pass_context
193
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
194
+ @cli_util.wrap_exceptions
195
+ def change_stack_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, compartment_id, if_match):
196
+
197
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
198
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
199
+
200
+ kwargs = {}
201
+ if if_match is not None:
202
+ kwargs['if_match'] = if_match
203
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
204
+
205
+ _details = {}
206
+ _details['compartmentId'] = compartment_id
207
+
208
+ client = cli_util.build_client('dif', 'stack', ctx)
209
+ result = client.change_stack_compartment(
210
+ stack_id=stack_id,
211
+ change_stack_compartment_details=_details,
212
+ **kwargs
213
+ )
214
+ if wait_for_state:
215
+
216
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
217
+ try:
218
+ wait_period_kwargs = {}
219
+ if max_wait_seconds is not None:
220
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
221
+ if wait_interval_seconds is not None:
222
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
223
+ if 'opc-work-request-id' not in result.headers:
224
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
225
+ cli_util.render_response(result, ctx)
226
+ return
227
+
228
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
229
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
230
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
231
+ # If we fail, we should show an error, but we should still provide the information to the customer
232
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
233
+ cli_util.render_response(result, ctx)
234
+ sys.exit(2)
235
+ except Exception:
236
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
237
+ cli_util.render_response(result, ctx)
238
+ raise
239
+ else:
240
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
241
+ cli_util.render_response(result, ctx)
242
+
243
+
244
+ @stack_group.command(name=cli_util.override('dif.create_stack.command_name', 'create'), help=u"""Creates a Stack. \n[Command Reference](createStack)""")
245
+ @cli_util.option('--display-name', required=True, help=u"""A user-friendly name. Should be unique per compartment. Avoid entering confidential information.""")
246
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to create the Stack in.""")
247
+ @cli_util.option('--stack-templates', required=True, type=custom_types.CliCaseInsensitiveChoice(["DATALAKE", "DATAPIPELINE", "AISERVICES", "DATATRANSFORMATION"]), help=u"""List of templates to be onboarded for the stack.""")
248
+ @cli_util.option('--services', required=True, type=custom_types.CliCaseInsensitiveChoice(["ADB", "GGCS", "OBJECTSTORAGE", "GENAI", "DATAFLOW"]), help=u"""List of services to be onboarded for the stack.""")
249
+ @cli_util.option('--notification-email', help=u"""email id to which the stack notifications would be sent.""")
250
+ @cli_util.option('--adb', type=custom_types.CLI_COMPLEX_TYPE, help=u"""ADB details if adb is included in the services.
251
+
252
+ This option is a JSON list with items of type AdbDetail. For documentation on AdbDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/AdbDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
253
+ @cli_util.option('--ggcs', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GGCS details if ggcs is included in the services.
254
+
255
+ This option is a JSON list with items of type GgcsDetail. For documentation on GgcsDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GgcsDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
256
+ @cli_util.option('--dataflow', type=custom_types.CLI_COMPLEX_TYPE, help=u"""DATAFLOW details if dataflow is included in the services.
257
+
258
+ This option is a JSON list with items of type DataflowDetail. For documentation on DataflowDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/DataflowDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
259
+ @cli_util.option('--objectstorage', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Object Storage Details if object storage is included in services.
260
+
261
+ This option is a JSON list with items of type ObjectStorageDetail. For documentation on ObjectStorageDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/ObjectStorageDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
262
+ @cli_util.option('--genai', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GenAi Details if genai is included in services.
263
+
264
+ This option is a JSON list with items of type GenAiDetail. For documentation on GenAiDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GenAiDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
265
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
266
+
267
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
268
+ @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. For more information, see [Resource Tags].
269
+
270
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
271
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
272
+ @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.""")
273
+ @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.""")
274
+ @json_skeleton_utils.get_cli_json_input_option({'adb': {'module': 'dif', 'class': 'list[AdbDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiDetail]'}, 'freeform-tags': {'module': 'dif', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dif', 'class': 'dict(str, dict(str, object))'}})
275
+ @cli_util.help_option
276
+ @click.pass_context
277
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'adb': {'module': 'dif', 'class': 'list[AdbDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiDetail]'}, 'freeform-tags': {'module': 'dif', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dif', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'dif', 'class': 'Stack'})
278
+ @cli_util.wrap_exceptions
279
+ def create_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, compartment_id, stack_templates, services, notification_email, adb, ggcs, dataflow, objectstorage, genai, freeform_tags, defined_tags):
280
+
281
+ kwargs = {}
282
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
283
+
284
+ _details = {}
285
+ _details['displayName'] = display_name
286
+ _details['compartmentId'] = compartment_id
287
+ _details['stackTemplates'] = cli_util.parse_json_parameter("stack_templates", stack_templates)
288
+ _details['services'] = cli_util.parse_json_parameter("services", services)
289
+
290
+ if notification_email is not None:
291
+ _details['notificationEmail'] = notification_email
292
+
293
+ if adb is not None:
294
+ _details['adb'] = cli_util.parse_json_parameter("adb", adb)
295
+
296
+ if ggcs is not None:
297
+ _details['ggcs'] = cli_util.parse_json_parameter("ggcs", ggcs)
298
+
299
+ if dataflow is not None:
300
+ _details['dataflow'] = cli_util.parse_json_parameter("dataflow", dataflow)
301
+
302
+ if objectstorage is not None:
303
+ _details['objectstorage'] = cli_util.parse_json_parameter("objectstorage", objectstorage)
304
+
305
+ if genai is not None:
306
+ _details['genai'] = cli_util.parse_json_parameter("genai", genai)
307
+
308
+ if freeform_tags is not None:
309
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
310
+
311
+ if defined_tags is not None:
312
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
313
+
314
+ client = cli_util.build_client('dif', 'stack', ctx)
315
+ result = client.create_stack(
316
+ create_stack_details=_details,
317
+ **kwargs
318
+ )
319
+ if wait_for_state:
320
+
321
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
322
+ try:
323
+ wait_period_kwargs = {}
324
+ if max_wait_seconds is not None:
325
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
326
+ if wait_interval_seconds is not None:
327
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
328
+ if 'opc-work-request-id' not in result.headers:
329
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
330
+ cli_util.render_response(result, ctx)
331
+ return
332
+
333
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
334
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
335
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
336
+ # If we fail, we should show an error, but we should still provide the information to the customer
337
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
338
+ cli_util.render_response(result, ctx)
339
+ sys.exit(2)
340
+ except Exception:
341
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
342
+ cli_util.render_response(result, ctx)
343
+ raise
344
+ else:
345
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
346
+ cli_util.render_response(result, ctx)
347
+
348
+
349
+ @stack_group.command(name=cli_util.override('dif.delete_stack.command_name', 'delete'), help=u"""Deletes a Stack. \n[Command Reference](deleteStack)""")
350
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
351
+ @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.""")
352
+ @cli_util.confirm_delete_option
353
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
354
+ @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.""")
355
+ @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.""")
356
+ @json_skeleton_utils.get_cli_json_input_option({})
357
+ @cli_util.help_option
358
+ @click.pass_context
359
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
360
+ @cli_util.wrap_exceptions
361
+ def delete_stack(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, if_match):
362
+
363
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
364
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
365
+
366
+ kwargs = {}
367
+ if if_match is not None:
368
+ kwargs['if_match'] = if_match
369
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
370
+ client = cli_util.build_client('dif', 'stack', ctx)
371
+ result = client.delete_stack(
372
+ stack_id=stack_id,
373
+ **kwargs
374
+ )
375
+ if wait_for_state:
376
+
377
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
378
+ try:
379
+ wait_period_kwargs = {}
380
+ if max_wait_seconds is not None:
381
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
382
+ if wait_interval_seconds is not None:
383
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
384
+ if 'opc-work-request-id' not in result.headers:
385
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
386
+ cli_util.render_response(result, ctx)
387
+ return
388
+
389
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
390
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
391
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
392
+ # If we fail, we should show an error, but we should still provide the information to the customer
393
+ click.echo('Failed to wait until the work request entered the specified state. Please retrieve the work request to find its current state', file=sys.stderr)
394
+ cli_util.render_response(result, ctx)
395
+ sys.exit(2)
396
+ except Exception:
397
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
398
+ cli_util.render_response(result, ctx)
399
+ raise
400
+ else:
401
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
402
+ cli_util.render_response(result, ctx)
403
+
404
+
405
+ @stack_group.command(name=cli_util.override('dif.deploy_artifacts.command_name', 'deploy-artifacts'), help=u"""DeployArtifacts \n[Command Reference](deployArtifacts)""")
406
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
407
+ @cli_util.option('--stack-templates', required=True, type=custom_types.CliCaseInsensitiveChoice(["DATALAKE", "DATAPIPELINE", "AISERVICES", "DATATRANSFORMATION"]), help=u"""List of templates to be onboarded for the stack.""")
408
+ @cli_util.option('--services', required=True, type=custom_types.CliCaseInsensitiveChoice(["ADB", "GGCS", "OBJECTSTORAGE", "GENAI", "DATAFLOW"]), help=u"""List of services to be onboarded for the stack.""")
409
+ @cli_util.option('--subnet-id', help=u"""Subnet id for the Private Endpoint creation for artifact deployment.""")
410
+ @cli_util.option('--adb', type=custom_types.CLI_COMPLEX_TYPE, help=u"""ADB artifact details if adb is included in the services.
411
+
412
+ This option is a JSON list with items of type AdbArtifactsDetail. For documentation on AdbArtifactsDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/AdbArtifactsDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
413
+ @cli_util.option('--ggcs', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GGCS artifact details if ggcs is included in the services.
414
+
415
+ This option is a JSON list with items of type GgcsArtifactsDetail. For documentation on GgcsArtifactsDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GgcsArtifactsDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
416
+ @cli_util.option('--dataflow', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Dataflow artifact details if dataflow is included in the services.
417
+
418
+ This option is a JSON list with items of type DataflowArtifactsDetail. For documentation on DataflowArtifactsDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/DataflowArtifactsDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
419
+ @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.""")
420
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
421
+ @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.""")
422
+ @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.""")
423
+ @json_skeleton_utils.get_cli_json_input_option({'adb': {'module': 'dif', 'class': 'list[AdbArtifactsDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsArtifactsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowArtifactsDetail]'}})
424
+ @cli_util.help_option
425
+ @click.pass_context
426
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'adb': {'module': 'dif', 'class': 'list[AdbArtifactsDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsArtifactsDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowArtifactsDetail]'}})
427
+ @cli_util.wrap_exceptions
428
+ def deploy_artifacts(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, stack_templates, services, subnet_id, adb, ggcs, dataflow, if_match):
429
+
430
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
431
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
432
+
433
+ kwargs = {}
434
+ if if_match is not None:
435
+ kwargs['if_match'] = if_match
436
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
437
+
438
+ _details = {}
439
+ _details['stackTemplates'] = cli_util.parse_json_parameter("stack_templates", stack_templates)
440
+ _details['services'] = cli_util.parse_json_parameter("services", services)
441
+
442
+ if subnet_id is not None:
443
+ _details['subnetId'] = subnet_id
444
+
445
+ if adb is not None:
446
+ _details['adb'] = cli_util.parse_json_parameter("adb", adb)
447
+
448
+ if ggcs is not None:
449
+ _details['ggcs'] = cli_util.parse_json_parameter("ggcs", ggcs)
450
+
451
+ if dataflow is not None:
452
+ _details['dataflow'] = cli_util.parse_json_parameter("dataflow", dataflow)
453
+
454
+ client = cli_util.build_client('dif', 'stack', ctx)
455
+ result = client.deploy_artifacts(
456
+ stack_id=stack_id,
457
+ deploy_artifacts_details=_details,
458
+ **kwargs
459
+ )
460
+ if wait_for_state:
461
+
462
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
463
+ try:
464
+ wait_period_kwargs = {}
465
+ if max_wait_seconds is not None:
466
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
467
+ if wait_interval_seconds is not None:
468
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
469
+ if 'opc-work-request-id' not in result.headers:
470
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
471
+ cli_util.render_response(result, ctx)
472
+ return
473
+
474
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
475
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
476
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
477
+ # If we fail, we should show an error, but we should still provide the information to the customer
478
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
479
+ cli_util.render_response(result, ctx)
480
+ sys.exit(2)
481
+ except Exception:
482
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
483
+ cli_util.render_response(result, ctx)
484
+ raise
485
+ else:
486
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
487
+ cli_util.render_response(result, ctx)
488
+
489
+
490
+ @stack_group.command(name=cli_util.override('dif.get_stack.command_name', 'get'), help=u"""Gets information about a Stack. \n[Command Reference](getStack)""")
491
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
492
+ @json_skeleton_utils.get_cli_json_input_option({})
493
+ @cli_util.help_option
494
+ @click.pass_context
495
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'Stack'})
496
+ @cli_util.wrap_exceptions
497
+ def get_stack(ctx, from_json, stack_id):
498
+
499
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
500
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
501
+
502
+ kwargs = {}
503
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
504
+ client = cli_util.build_client('dif', 'stack', ctx)
505
+ result = client.get_stack(
506
+ stack_id=stack_id,
507
+ **kwargs
508
+ )
509
+ cli_util.render_response(result, ctx)
510
+
511
+
512
+ @work_request_group.command(name=cli_util.override('dif.get_work_request.command_name', 'get'), help=u"""Gets the details of a work request. \n[Command Reference](getWorkRequest)""")
513
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
514
+ @json_skeleton_utils.get_cli_json_input_option({})
515
+ @cli_util.help_option
516
+ @click.pass_context
517
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'WorkRequest'})
518
+ @cli_util.wrap_exceptions
519
+ def get_work_request(ctx, from_json, work_request_id):
520
+
521
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
522
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
523
+
524
+ kwargs = {}
525
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
526
+ client = cli_util.build_client('dif', 'stack', ctx)
527
+ result = client.get_work_request(
528
+ work_request_id=work_request_id,
529
+ **kwargs
530
+ )
531
+ cli_util.render_response(result, ctx)
532
+
533
+
534
+ @stack_collection_group.command(name=cli_util.override('dif.list_stacks.command_name', 'list-stacks'), help=u"""Gets a list of Stacks. \n[Command Reference](listStacks)""")
535
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
536
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "NEEDS_ATTENTION"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
537
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
538
+ @cli_util.option('--id', help=u"""The [OCID] of the Stack.""")
539
+ @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
540
+ @cli_util.option('--page', help=u"""For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""")
541
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
542
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.""")
543
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
544
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
545
+ @json_skeleton_utils.get_cli_json_input_option({})
546
+ @cli_util.help_option
547
+ @click.pass_context
548
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'StackCollection'})
549
+ @cli_util.wrap_exceptions
550
+ def list_stacks(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, display_name, id, limit, page, sort_order, sort_by):
551
+
552
+ if all_pages and limit:
553
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
554
+
555
+ kwargs = {}
556
+ if compartment_id is not None:
557
+ kwargs['compartment_id'] = compartment_id
558
+ if lifecycle_state is not None:
559
+ kwargs['lifecycle_state'] = lifecycle_state
560
+ if display_name is not None:
561
+ kwargs['display_name'] = display_name
562
+ if id is not None:
563
+ kwargs['id'] = id
564
+ if limit is not None:
565
+ kwargs['limit'] = limit
566
+ if page is not None:
567
+ kwargs['page'] = page
568
+ if sort_order is not None:
569
+ kwargs['sort_order'] = sort_order
570
+ if sort_by is not None:
571
+ kwargs['sort_by'] = sort_by
572
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
573
+ client = cli_util.build_client('dif', 'stack', ctx)
574
+ if all_pages:
575
+ if page_size:
576
+ kwargs['limit'] = page_size
577
+
578
+ result = cli_util.list_call_get_all_results(
579
+ client.list_stacks,
580
+ **kwargs
581
+ )
582
+ elif limit is not None:
583
+ result = cli_util.list_call_get_up_to_limit(
584
+ client.list_stacks,
585
+ limit,
586
+ page_size,
587
+ **kwargs
588
+ )
589
+ else:
590
+ result = client.list_stacks(
591
+ **kwargs
592
+ )
593
+ cli_util.render_response(result, ctx)
594
+
595
+
596
+ @work_request_error_group.command(name=cli_util.override('dif.list_work_request_errors.command_name', 'list'), help=u"""Lists the errors for a work request. \n[Command Reference](listWorkRequestErrors)""")
597
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
598
+ @cli_util.option('--page', help=u"""For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""")
599
+ @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
600
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timeCreated` is descending.""")
601
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
602
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
603
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
604
+ @json_skeleton_utils.get_cli_json_input_option({})
605
+ @cli_util.help_option
606
+ @click.pass_context
607
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'WorkRequestErrorCollection'})
608
+ @cli_util.wrap_exceptions
609
+ def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
610
+
611
+ if all_pages and limit:
612
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
613
+
614
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
615
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
616
+
617
+ kwargs = {}
618
+ if page is not None:
619
+ kwargs['page'] = page
620
+ if limit is not None:
621
+ kwargs['limit'] = limit
622
+ if sort_by is not None:
623
+ kwargs['sort_by'] = sort_by
624
+ if sort_order is not None:
625
+ kwargs['sort_order'] = sort_order
626
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
627
+ client = cli_util.build_client('dif', 'stack', ctx)
628
+ if all_pages:
629
+ if page_size:
630
+ kwargs['limit'] = page_size
631
+
632
+ result = cli_util.list_call_get_all_results(
633
+ client.list_work_request_errors,
634
+ work_request_id=work_request_id,
635
+ **kwargs
636
+ )
637
+ elif limit is not None:
638
+ result = cli_util.list_call_get_up_to_limit(
639
+ client.list_work_request_errors,
640
+ limit,
641
+ page_size,
642
+ work_request_id=work_request_id,
643
+ **kwargs
644
+ )
645
+ else:
646
+ result = client.list_work_request_errors(
647
+ work_request_id=work_request_id,
648
+ **kwargs
649
+ )
650
+ cli_util.render_response(result, ctx)
651
+
652
+
653
+ @work_request_log_entry_group.command(name=cli_util.override('dif.list_work_request_logs.command_name', 'list-work-request-logs'), help=u"""Lists the logs for a work request. \n[Command Reference](listWorkRequestLogs)""")
654
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
655
+ @cli_util.option('--page', help=u"""For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""")
656
+ @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
657
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timeCreated` is descending.""")
658
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
659
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
660
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
661
+ @json_skeleton_utils.get_cli_json_input_option({})
662
+ @cli_util.help_option
663
+ @click.pass_context
664
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'WorkRequestLogEntryCollection'})
665
+ @cli_util.wrap_exceptions
666
+ def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
667
+
668
+ if all_pages and limit:
669
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
670
+
671
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
672
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
673
+
674
+ kwargs = {}
675
+ if page is not None:
676
+ kwargs['page'] = page
677
+ if limit is not None:
678
+ kwargs['limit'] = limit
679
+ if sort_by is not None:
680
+ kwargs['sort_by'] = sort_by
681
+ if sort_order is not None:
682
+ kwargs['sort_order'] = sort_order
683
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
684
+ client = cli_util.build_client('dif', 'stack', ctx)
685
+ if all_pages:
686
+ if page_size:
687
+ kwargs['limit'] = page_size
688
+
689
+ result = cli_util.list_call_get_all_results(
690
+ client.list_work_request_logs,
691
+ work_request_id=work_request_id,
692
+ **kwargs
693
+ )
694
+ elif limit is not None:
695
+ result = cli_util.list_call_get_up_to_limit(
696
+ client.list_work_request_logs,
697
+ limit,
698
+ page_size,
699
+ work_request_id=work_request_id,
700
+ **kwargs
701
+ )
702
+ else:
703
+ result = client.list_work_request_logs(
704
+ work_request_id=work_request_id,
705
+ **kwargs
706
+ )
707
+ cli_util.render_response(result, ctx)
708
+
709
+
710
+ @work_request_group.command(name=cli_util.override('dif.list_work_requests.command_name', 'list'), help=u"""Lists the work requests in a compartment. \n[Command Reference](listWorkRequests)""")
711
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
712
+ @cli_util.option('--work-request-id', help=u"""The [OCID] of the asynchronous work request.""")
713
+ @cli_util.option('--status', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), help=u"""A filter to return only the resources that match the given lifecycle state.""")
714
+ @cli_util.option('--resource-id', help=u"""The [OCID] of the resource affected by the work request.""")
715
+ @cli_util.option('--page', help=u"""For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""")
716
+ @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
717
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
718
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeAccepted"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.""")
719
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
720
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
721
+ @json_skeleton_utils.get_cli_json_input_option({})
722
+ @cli_util.help_option
723
+ @click.pass_context
724
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dif', 'class': 'WorkRequestSummaryCollection'})
725
+ @cli_util.wrap_exceptions
726
+ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, work_request_id, status, resource_id, page, limit, sort_order, sort_by):
727
+
728
+ if all_pages and limit:
729
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
730
+
731
+ kwargs = {}
732
+ if compartment_id is not None:
733
+ kwargs['compartment_id'] = compartment_id
734
+ if work_request_id is not None:
735
+ kwargs['work_request_id'] = work_request_id
736
+ if status is not None:
737
+ kwargs['status'] = status
738
+ if resource_id is not None:
739
+ kwargs['resource_id'] = resource_id
740
+ if page is not None:
741
+ kwargs['page'] = page
742
+ if limit is not None:
743
+ kwargs['limit'] = limit
744
+ if sort_order is not None:
745
+ kwargs['sort_order'] = sort_order
746
+ if sort_by is not None:
747
+ kwargs['sort_by'] = sort_by
748
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
749
+ client = cli_util.build_client('dif', 'stack', ctx)
750
+ if all_pages:
751
+ if page_size:
752
+ kwargs['limit'] = page_size
753
+
754
+ result = cli_util.list_call_get_all_results(
755
+ client.list_work_requests,
756
+ **kwargs
757
+ )
758
+ elif limit is not None:
759
+ result = cli_util.list_call_get_up_to_limit(
760
+ client.list_work_requests,
761
+ limit,
762
+ page_size,
763
+ **kwargs
764
+ )
765
+ else:
766
+ result = client.list_work_requests(
767
+ **kwargs
768
+ )
769
+ cli_util.render_response(result, ctx)
770
+
771
+
772
+ @stack_group.command(name=cli_util.override('dif.update_stack.command_name', 'update'), help=u"""Updates a Stack. \n[Command Reference](updateStack)""")
773
+ @cli_util.option('--stack-id', required=True, help=u"""The [OCID] of the Stack.""")
774
+ @cli_util.option('--notification-email', help=u"""email id to which the stack notifications would be sent.""")
775
+ @cli_util.option('--stack-templates', type=custom_types.CliCaseInsensitiveChoice(["DATALAKE", "DATAPIPELINE", "AISERVICES", "DATATRANSFORMATION"]), help=u"""List of templates to be updated for the stack.""")
776
+ @cli_util.option('--services', type=custom_types.CliCaseInsensitiveChoice(["ADB", "GGCS", "OBJECTSTORAGE", "GENAI", "DATAFLOW"]), help=u"""List of services to be updated for the stack.""")
777
+ @cli_util.option('--adb', type=custom_types.CLI_COMPLEX_TYPE, help=u"""ADB details if adb is included in the services to be updated.
778
+
779
+ This option is a JSON list with items of type AdbUpdateDetail. For documentation on AdbUpdateDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/AdbUpdateDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
780
+ @cli_util.option('--ggcs', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GGCS details if ggcs is included in the services to be updated.
781
+
782
+ This option is a JSON list with items of type GgcsUpdateDetail. For documentation on GgcsUpdateDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GgcsUpdateDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
783
+ @cli_util.option('--dataflow', type=custom_types.CLI_COMPLEX_TYPE, help=u"""DATAFLOW details if dataflow is included in the services to be updated.
784
+
785
+ This option is a JSON list with items of type DataflowUpdateDetail. For documentation on DataflowUpdateDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/DataflowUpdateDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
786
+ @cli_util.option('--objectstorage', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Object Storage Details if object storage is included in services to be updated.
787
+
788
+ This option is a JSON list with items of type ObjectStorageUpdateDetail. For documentation on ObjectStorageUpdateDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/ObjectStorageUpdateDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
789
+ @cli_util.option('--genai', type=custom_types.CLI_COMPLEX_TYPE, help=u"""GenAI Details if genai is included in services to be updated.
790
+
791
+ This option is a JSON list with items of type GenAiUpdateDetail. For documentation on GenAiUpdateDetail please see our API reference: https://docs.cloud.oracle.com/api/#/en/stack/20250830/datatypes/GenAiUpdateDetail.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
792
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
793
+
794
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
795
+ @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. For more information, see [Resource Tags].
796
+
797
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
798
+ @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.""")
799
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
800
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELLING", "CANCELLED"]), 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.""")
801
+ @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.""")
802
+ @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.""")
803
+ @json_skeleton_utils.get_cli_json_input_option({'adb': {'module': 'dif', 'class': 'list[AdbUpdateDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsUpdateDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowUpdateDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageUpdateDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiUpdateDetail]'}, 'freeform-tags': {'module': 'dif', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dif', 'class': 'dict(str, dict(str, object))'}})
804
+ @cli_util.help_option
805
+ @click.pass_context
806
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'adb': {'module': 'dif', 'class': 'list[AdbUpdateDetail]'}, 'ggcs': {'module': 'dif', 'class': 'list[GgcsUpdateDetail]'}, 'dataflow': {'module': 'dif', 'class': 'list[DataflowUpdateDetail]'}, 'objectstorage': {'module': 'dif', 'class': 'list[ObjectStorageUpdateDetail]'}, 'genai': {'module': 'dif', 'class': 'list[GenAiUpdateDetail]'}, 'freeform-tags': {'module': 'dif', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dif', 'class': 'dict(str, dict(str, object))'}})
807
+ @cli_util.wrap_exceptions
808
+ def update_stack(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, stack_id, notification_email, stack_templates, services, adb, ggcs, dataflow, objectstorage, genai, freeform_tags, defined_tags, if_match):
809
+
810
+ if isinstance(stack_id, six.string_types) and len(stack_id.strip()) == 0:
811
+ raise click.UsageError('Parameter --stack-id cannot be whitespace or empty string')
812
+ if not force:
813
+ if stack_templates or services or adb or ggcs or dataflow or objectstorage or genai or freeform_tags or defined_tags:
814
+ if not click.confirm("WARNING: Updates to stack-templates and services and adb and ggcs and dataflow and objectstorage and genai and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
815
+ ctx.abort()
816
+
817
+ kwargs = {}
818
+ if if_match is not None:
819
+ kwargs['if_match'] = if_match
820
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
821
+
822
+ _details = {}
823
+
824
+ if notification_email is not None:
825
+ _details['notificationEmail'] = notification_email
826
+
827
+ if stack_templates is not None:
828
+ _details['stackTemplates'] = cli_util.parse_json_parameter("stack_templates", stack_templates)
829
+
830
+ if services is not None:
831
+ _details['services'] = cli_util.parse_json_parameter("services", services)
832
+
833
+ if adb is not None:
834
+ _details['adb'] = cli_util.parse_json_parameter("adb", adb)
835
+
836
+ if ggcs is not None:
837
+ _details['ggcs'] = cli_util.parse_json_parameter("ggcs", ggcs)
838
+
839
+ if dataflow is not None:
840
+ _details['dataflow'] = cli_util.parse_json_parameter("dataflow", dataflow)
841
+
842
+ if objectstorage is not None:
843
+ _details['objectstorage'] = cli_util.parse_json_parameter("objectstorage", objectstorage)
844
+
845
+ if genai is not None:
846
+ _details['genai'] = cli_util.parse_json_parameter("genai", genai)
847
+
848
+ if freeform_tags is not None:
849
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
850
+
851
+ if defined_tags is not None:
852
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
853
+
854
+ client = cli_util.build_client('dif', 'stack', ctx)
855
+ result = client.update_stack(
856
+ stack_id=stack_id,
857
+ update_stack_details=_details,
858
+ **kwargs
859
+ )
860
+ if wait_for_state:
861
+
862
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
863
+ try:
864
+ wait_period_kwargs = {}
865
+ if max_wait_seconds is not None:
866
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
867
+ if wait_interval_seconds is not None:
868
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
869
+ if 'opc-work-request-id' not in result.headers:
870
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
871
+ cli_util.render_response(result, ctx)
872
+ return
873
+
874
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
875
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
876
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
877
+ # If we fail, we should show an error, but we should still provide the information to the customer
878
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
879
+ cli_util.render_response(result, ctx)
880
+ sys.exit(2)
881
+ except Exception:
882
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
883
+ cli_util.render_response(result, ctx)
884
+ raise
885
+ else:
886
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
887
+ cli_util.render_response(result, ctx)