oci-cli 3.69.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 (253) 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/bin/psa.psm1 +51 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image/list.txt +8 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image/lookup.txt +93 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container/image.txt +2 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/artifacts/container.txt +2 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/artifacts.txt +18 -2
  10. oci_cli/help_text_producer/data_files/text/cmdref/bv/volume-kms-key/update.txt +5 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/ce/addon-option/list.txt +6 -1
  12. oci_cli/help_text_producer/data_files/text/cmdref/ce/cluster-options/get.txt +4 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/ce/node-pool-options/get.txt +24 -0
  14. 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
  15. 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
  16. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/create.txt +12 -0
  17. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host/list.txt +5 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/compute/dedicated-vm-host-instance/list.txt +5 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/create.txt +11 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/update.txt +11 -0
  21. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/attach.txt +1 -1
  22. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/termination-proceed.txt +116 -0
  23. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance.txt +2 -0
  24. oci_cli/help_text_producer/data_files/text/cmdref/compute-management.txt +2 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/delete.txt +129 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/get.txt +92 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/list.txt +153 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/mount.txt +131 -0
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/unmount.txt +131 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot.txt +22 -0
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/add.txt +154 -0
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster.txt +2 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +14 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list.txt → list-errors.txt} +5 -5
  35. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
  36. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log-entry/list-work-request-logs.txt → work-request-log/list.txt} +5 -5
  37. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +3 -3
  38. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +3 -3
  39. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/add.txt +227 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/change-compartment.txt +136 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/create.txt +262 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/delete.txt +134 -0
  43. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/deploy-artifacts.txt +198 -0
  44. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/get.txt +96 -0
  45. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack/update.txt +274 -0
  46. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack-collection/list-stacks.txt +142 -0
  47. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack-collection.txt +15 -0
  48. oci_cli/help_text_producer/data_files/text/cmdref/dif/stack.txt +31 -0
  49. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/cancel.txt +103 -0
  50. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/get.txt +91 -0
  51. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request/list.txt +140 -0
  52. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-error/list.txt +131 -0
  53. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-error.txt +15 -0
  54. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-log-entry/list-work-request-logs.txt +131 -0
  55. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request-log-entry.txt +15 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/dif/work-request.txt +23 -0
  57. oci_cli/help_text_producer/data_files/text/cmdref/dif.txt +49 -0
  58. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/change-distributed-autonomous-db-backup-config.txt +159 -0
  59. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/create.txt +42 -12
  60. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/rotate-distributed-autonomous-database-passwords.txt +3 -2
  61. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database.txt +2 -0
  62. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service.txt +2 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/create.txt +31 -11
  64. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/rotate-distributed-database-passwords.txt +3 -2
  65. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database.txt +2 -0
  66. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/compliance/get.txt +99 -0
  67. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/compliance.txt +14 -0
  68. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-dynamic-resource-selection.txt +5 -4
  69. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-environment-fleet-details.txt +5 -4
  70. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-generic-fleet-details.txt +5 -4
  71. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-group-fleet-details.txt +5 -4
  72. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-manual-resource-selection.txt +5 -4
  73. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create-fleet-product-fleet-details.txt +5 -4
  74. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/create.txt +5 -4
  75. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update-fleet-dynamic-resource-selection.txt +10 -4
  76. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update-fleet-manual-resource-selection.txt +10 -4
  77. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet/update.txt +10 -4
  78. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/onboarding/create.txt +26 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/onboarding/update.txt +30 -0
  80. 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
  81. 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
  82. 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
  83. 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
  84. 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
  85. 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
  86. 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
  87. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/create.txt +26 -0
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. 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
  95. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/platform-configuration/update.txt +26 -0
  96. 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
  97. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/property/create.txt +26 -0
  98. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-admin/property/update.txt +26 -0
  99. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/configure.txt +218 -0
  100. 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
  101. 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
  102. 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
  103. 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
  104. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/create.txt +4 -0
  105. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item/update.txt +4 -0
  106. 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
  107. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item-variables-definition/get.txt +97 -0
  108. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item-variables-definition.txt +14 -0
  109. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog/catalog-item.txt +2 -0
  110. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-catalog.txt +6 -0
  111. 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
  112. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/installed-patch-collection.txt +14 -0
  113. 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
  114. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/job-activity/get.txt +4 -0
  115. 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
  116. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/recommended-patch-collection.txt +14 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-collection/report.txt +180 -0
  118. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-collection.txt +14 -0
  119. 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
  120. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/report-metadata-collection.txt +14 -0
  121. 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
  122. 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
  123. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-component-collection.txt +14 -0
  124. 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
  125. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations/target-property-collection.txt +14 -0
  126. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-operations.txt +24 -0
  127. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-details/import-runbook.txt +187 -0
  128. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-details.txt +14 -0
  129. 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
  130. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-precheck-details.txt +14 -0
  131. 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
  132. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/import-runbook-version-details.txt +14 -0
  133. 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
  134. 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
  135. 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
  136. 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
  137. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export-runbook-version.txt +145 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook/export.txt +155 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export/get.txt +105 -0
  140. 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
  141. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-dependency-collection.txt +15 -0
  142. 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
  143. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export-status-collection.txt +15 -0
  144. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-export.txt +14 -0
  145. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import/get.txt +105 -0
  146. 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
  147. 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
  148. 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
  149. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-dependency-collection.txt +21 -0
  150. 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
  151. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import-status-collection.txt +15 -0
  152. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-import.txt +14 -0
  153. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version/create.txt +5 -4
  154. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version/update.txt +1 -1
  155. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook-version.txt +4 -1
  156. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks/runbook.txt +14 -0
  157. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-apps-management-runbooks.txt +56 -0
  158. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-target-collection/list-fleet-targets.txt +9 -0
  159. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management/fleet-target-collection/list-targets.txt +4 -0
  160. oci_cli/help_text_producer/data_files/text/cmdref/fleet-apps-management.txt +90 -0
  161. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/dedicated-ai-cluster/create.txt +10 -1
  162. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/change-compartment.txt +106 -0
  163. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-huggingface.txt +213 -0
  164. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-objectstorage.txt +203 -0
  165. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/delete.txt +131 -0
  166. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/get.txt +91 -0
  167. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/update.txt +183 -0
  168. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model-collection/list-imported-models.txt +161 -0
  169. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model-collection.txt +14 -0
  170. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model.txt +30 -0
  171. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/model-collection/list-models.txt +1 -1
  172. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai.txt +18 -0
  173. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
  174. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
  175. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log/list.txt → work-request-log-entry/list-work-request-logs.txt} +5 -5
  176. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +3 -3
  177. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +3 -3
  178. oci_cli/help_text_producer/data_files/text/cmdref/limits/definition/list.txt +5 -5
  179. oci_cli/help_text_producer/data_files/text/cmdref/limits/resource-availability/get.txt +9 -5
  180. oci_cli/help_text_producer/data_files/text/cmdref/limits/service/list.txt +1 -1
  181. oci_cli/help_text_producer/data_files/text/cmdref/limits/value/list.txt +7 -3
  182. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list-errors.txt → list.txt} +5 -5
  183. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
  184. oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
  185. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list-errors.txt → list.txt} +5 -5
  186. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  187. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log → work-request-log-entry}/list.txt +1 -19
  188. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log.txt → work-request-log-entry.txt} +2 -2
  189. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
  190. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/change-compartment.txt +136 -0
  191. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/create.txt +214 -0
  192. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/delete.txt +133 -0
  193. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/get.txt +95 -0
  194. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/list.txt +152 -0
  195. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/update.txt +211 -0
  196. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access.txt +25 -0
  197. oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services/list.txt +129 -0
  198. oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services.txt +16 -0
  199. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/cancel.txt +103 -0
  200. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/get.txt +91 -0
  201. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/list.txt +140 -0
  202. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error/list.txt +131 -0
  203. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error.txt +15 -0
  204. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log/list.txt +131 -0
  205. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log.txt +15 -0
  206. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request.txt +23 -0
  207. oci_cli/help_text_producer/data_files/text/cmdref/psa.txt +47 -0
  208. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +9 -9
  209. oci_cli/help_text_producer/data_files/text/index.txt +4 -0
  210. oci_cli/service_mapping.py +10 -0
  211. oci_cli/version.py +1 -1
  212. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/METADATA +2 -2
  213. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/RECORD +253 -135
  214. services/artifacts/src/oci_cli_artifacts/artifacts_cli_extended.py +4 -0
  215. services/artifacts/src/oci_cli_artifacts/generated/artifacts_cli.py +36 -3
  216. services/container_engine/src/oci_cli_container_engine/generated/containerengine_cli.py +18 -3
  217. services/core/src/oci_cli_blockstorage/generated/blockstorage_cli.py +4 -1
  218. services/core/src/oci_cli_compute/generated/compute_cli.py +35 -5
  219. services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py +44 -9
  220. services/database/src/oci_cli_database/generated/database_cli.py +309 -0
  221. services/dif/__init__.py +4 -0
  222. services/dif/src/__init__.py +4 -0
  223. services/dif/src/oci_cli_stack/__init__.py +4 -0
  224. services/dif/src/oci_cli_stack/generated/__init__.py +4 -0
  225. services/dif/src/oci_cli_stack/generated/client_mappings.py +14 -0
  226. services/dif/src/oci_cli_stack/generated/stack_cli.py +887 -0
  227. services/dif/src/oci_cli_stack/stack_cli_extended.py +51 -0
  228. services/dif/tests/__init__.py +4 -0
  229. services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py +77 -12
  230. services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py +8 -8
  231. services/fleet_apps_management/src/oci_cli_fleet_apps_management/generated/fleetappsmanagement_cli.py +63 -15
  232. services/fleet_apps_management/src/oci_cli_fleet_apps_management_admin/generated/fleetappsmanagementadmin_cli.py +265 -65
  233. services/fleet_apps_management/src/oci_cli_fleet_apps_management_catalog/generated/fleetappsmanagementcatalog_cli.py +154 -7
  234. services/fleet_apps_management/src/oci_cli_fleet_apps_management_operations/generated/fleetappsmanagementoperations_cli.py +473 -31
  235. services/fleet_apps_management/src/oci_cli_fleet_apps_management_runbooks/generated/fleetappsmanagementrunbooks_cli.py +1055 -34
  236. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +640 -59
  237. services/generative_ai/src/oci_cli_generative_ai/generativeai_cli_extended.py +107 -0
  238. services/limits/src/oci_cli_limits/generated/limits_cli.py +15 -9
  239. services/psa/__init__.py +4 -0
  240. services/psa/src/__init__.py +4 -0
  241. services/psa/src/oci_cli_private_service_access/__init__.py +4 -0
  242. services/psa/src/oci_cli_private_service_access/generated/__init__.py +4 -0
  243. services/psa/src/oci_cli_private_service_access/generated/client_mappings.py +14 -0
  244. services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py +738 -0
  245. services/psa/src/oci_cli_private_service_access/privateserviceaccess_cli_extended.py +92 -0
  246. services/psa/tests/__init__.py +4 -0
  247. /oci_cli/help_text_producer/data_files/text/cmdref/{governance-rules-control-plane → delegate-access-control}/work-request/work-request-log.txt +0 -0
  248. /oci_cli/help_text_producer/data_files/text/cmdref/{delegate-access-control → governance-rules-control-plane}/work-request/work-request-log-entry.txt +0 -0
  249. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/LICENSE.txt +0 -0
  250. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  251. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/WHEEL +0 -0
  252. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/entry_points.txt +0 -0
  253. {oci_cli-3.69.0.dist-info → oci_cli-3.70.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,738 @@
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: 20240301
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('psa.psa_root_group.command_name', 'psa'), cls=CommandGroupWithAlias, help=cli_util.override('psa.psa_root_group.help', """Use the PrivateServiceAccess Control Plane API to manage privateServiceAccess."""), short_help=cli_util.override('psa.psa_root_group.short_help', """PrivateServiceAccess Control Plane API"""))
20
+ @cli_util.help_option_group
21
+ def psa_root_group():
22
+ pass
23
+
24
+
25
+ @click.command(cli_util.override('psa.private_service_access_group.command_name', 'private-service-access'), cls=CommandGroupWithAlias, help="""Private Service Access (PSA) is a new way to create private accesss for a service.""")
26
+ @cli_util.help_option_group
27
+ def private_service_access_group():
28
+ pass
29
+
30
+
31
+ @click.command(cli_util.override('psa.private_service_access_collection_group.command_name', 'private-service-access-collection'), cls=CommandGroupWithAlias, help="""Results of a privateServiceAccess search. Contains both PrivateServiceAccessSummary items and other information, such as metadata.""")
32
+ @cli_util.help_option_group
33
+ def private_service_access_collection_group():
34
+ pass
35
+
36
+
37
+ @click.command(cli_util.override('psa.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.""")
38
+ @cli_util.help_option_group
39
+ def work_request_error_group():
40
+ pass
41
+
42
+
43
+ @click.command(cli_util.override('psa.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.""")
44
+ @cli_util.help_option_group
45
+ def work_request_log_entry_group():
46
+ pass
47
+
48
+
49
+ @click.command(cli_util.override('psa.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.""")
50
+ @cli_util.help_option_group
51
+ def work_request_group():
52
+ pass
53
+
54
+
55
+ @click.command(cli_util.override('psa.psa_service_collection_group.command_name', 'psa-service-collection'), cls=CommandGroupWithAlias, help="""Results of a psaServices search. Contains PsaServiceSummary items.""")
56
+ @cli_util.help_option_group
57
+ def psa_service_collection_group():
58
+ pass
59
+
60
+
61
+ psa_root_group.add_command(private_service_access_group)
62
+ psa_root_group.add_command(private_service_access_collection_group)
63
+ psa_root_group.add_command(work_request_error_group)
64
+ psa_root_group.add_command(work_request_log_entry_group)
65
+ psa_root_group.add_command(work_request_group)
66
+ psa_root_group.add_command(psa_service_collection_group)
67
+
68
+
69
+ @work_request_group.command(name=cli_util.override('psa.cancel_psa_work_request.command_name', 'cancel-psa'), help=u"""Cancels a PrivateServiceAccess work request. \n[Command Reference](cancelPsaWorkRequest)""")
70
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
71
+ @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.""")
72
+ @cli_util.confirm_delete_option
73
+ @json_skeleton_utils.get_cli_json_input_option({})
74
+ @cli_util.help_option
75
+ @click.pass_context
76
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
77
+ @cli_util.wrap_exceptions
78
+ def cancel_psa_work_request(ctx, from_json, work_request_id, if_match):
79
+
80
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
81
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
82
+
83
+ kwargs = {}
84
+ if if_match is not None:
85
+ kwargs['if_match'] = if_match
86
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
87
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
88
+ result = client.cancel_psa_work_request(
89
+ work_request_id=work_request_id,
90
+ **kwargs
91
+ )
92
+ cli_util.render_response(result, ctx)
93
+
94
+
95
+ @private_service_access_group.command(name=cli_util.override('psa.change_private_service_access_compartment.command_name', 'change-compartment'), help=u"""Moves a PrivateServiceAccess 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](changePrivateServiceAccessCompartment)""")
96
+ @cli_util.option('--private-service-access-id', required=True, help=u"""The [OCID] of the PrivateServiceAccess.""")
97
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment into which the private service access should be moved.""")
98
+ @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.""")
99
+ @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.""")
100
+ @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.""")
101
+ @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.""")
102
+ @json_skeleton_utils.get_cli_json_input_option({})
103
+ @cli_util.help_option
104
+ @click.pass_context
105
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
106
+ @cli_util.wrap_exceptions
107
+ def change_private_service_access_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, compartment_id, if_match):
108
+
109
+ if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0:
110
+ raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string')
111
+
112
+ kwargs = {}
113
+ if if_match is not None:
114
+ kwargs['if_match'] = if_match
115
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
116
+
117
+ _details = {}
118
+ _details['compartmentId'] = compartment_id
119
+
120
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
121
+ result = client.change_private_service_access_compartment(
122
+ private_service_access_id=private_service_access_id,
123
+ change_private_service_access_compartment_details=_details,
124
+ **kwargs
125
+ )
126
+ if wait_for_state:
127
+
128
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
129
+ try:
130
+ wait_period_kwargs = {}
131
+ if max_wait_seconds is not None:
132
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
133
+ if wait_interval_seconds is not None:
134
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
135
+ if 'opc-work-request-id' not in result.headers:
136
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
137
+ cli_util.render_response(result, ctx)
138
+ return
139
+
140
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
141
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
142
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
143
+ # If we fail, we should show an error, but we should still provide the information to the customer
144
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
145
+ cli_util.render_response(result, ctx)
146
+ sys.exit(2)
147
+ except Exception:
148
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
149
+ cli_util.render_response(result, ctx)
150
+ raise
151
+ else:
152
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
153
+ cli_util.render_response(result, ctx)
154
+
155
+
156
+ @private_service_access_group.command(name=cli_util.override('psa.create_private_service_access.command_name', 'create'), help=u"""Creates a private service access in the specified subnet (in the consumer's VCN) and the specified compartment for a particular service. \n[Command Reference](createPrivateServiceAccess)""")
157
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to contain the private service access.""")
158
+ @cli_util.option('--subnet-id', required=True, help=u"""The [OCID] of the VCN's subnet where the private service access's VNIC will reside.""")
159
+ @cli_util.option('--service-id', required=True, help=u"""A unique service identifier for which the private service access was created.""")
160
+ @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].
161
+
162
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
163
+ @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].
164
+
165
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
166
+ @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""[Security attributes] are labels for a resource that can be referenced in a [Zero Trust Packet Routing] (ZPR) policy to control access to ZPR-supported resources.
167
+
168
+ Example: `{\"Oracle-DataSecurity-ZPR\": {\"MaxEgressCount\": {\"value\":\"42\",\"mode\":\"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
169
+ @cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
170
+ @cli_util.option('--description', help=u"""A description of this private service accesss.""")
171
+ @cli_util.option('--nsg-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of the OCIDs of the network security groups (NSGs) to add the private service access's VNIC to. For more information about NSGs, see [NetworkSecurityGroup].""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
172
+ @cli_util.option('--ipv4-ip', help=u"""The private IPv4 address (in the consumer's VCN) that represents the access point for the associated service.""")
173
+ @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.""")
174
+ @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.""")
175
+ @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.""")
176
+ @json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'psa', 'class': 'dict(str, string)'}, 'security-attributes': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'nsg-ids': {'module': 'psa', 'class': 'list[string]'}})
177
+ @cli_util.help_option
178
+ @click.pass_context
179
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'psa', 'class': 'dict(str, string)'}, 'security-attributes': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'nsg-ids': {'module': 'psa', 'class': 'list[string]'}}, output_type={'module': 'psa', 'class': 'PrivateServiceAccess'})
180
+ @cli_util.wrap_exceptions
181
+ def create_private_service_access(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, subnet_id, service_id, defined_tags, freeform_tags, security_attributes, display_name, description, nsg_ids, ipv4_ip):
182
+
183
+ kwargs = {}
184
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
185
+
186
+ _details = {}
187
+ _details['compartmentId'] = compartment_id
188
+ _details['subnetId'] = subnet_id
189
+ _details['serviceId'] = service_id
190
+
191
+ if defined_tags is not None:
192
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
193
+
194
+ if freeform_tags is not None:
195
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
196
+
197
+ if security_attributes is not None:
198
+ _details['securityAttributes'] = cli_util.parse_json_parameter("security_attributes", security_attributes)
199
+
200
+ if display_name is not None:
201
+ _details['displayName'] = display_name
202
+
203
+ if description is not None:
204
+ _details['description'] = description
205
+
206
+ if nsg_ids is not None:
207
+ _details['nsgIds'] = cli_util.parse_json_parameter("nsg_ids", nsg_ids)
208
+
209
+ if ipv4_ip is not None:
210
+ _details['ipv4Ip'] = ipv4_ip
211
+
212
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
213
+ result = client.create_private_service_access(
214
+ create_private_service_access_details=_details,
215
+ **kwargs
216
+ )
217
+ if wait_for_state:
218
+
219
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
220
+ try:
221
+ wait_period_kwargs = {}
222
+ if max_wait_seconds is not None:
223
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
224
+ if wait_interval_seconds is not None:
225
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
226
+ if 'opc-work-request-id' not in result.headers:
227
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
228
+ cli_util.render_response(result, ctx)
229
+ return
230
+
231
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
232
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
233
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
234
+ # If we fail, we should show an error, but we should still provide the information to the customer
235
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
236
+ cli_util.render_response(result, ctx)
237
+ sys.exit(2)
238
+ except Exception:
239
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
240
+ cli_util.render_response(result, ctx)
241
+ raise
242
+ else:
243
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
244
+ cli_util.render_response(result, ctx)
245
+
246
+
247
+ @private_service_access_group.command(name=cli_util.override('psa.delete_private_service_access.command_name', 'delete'), help=u"""Deletes a PrivateServiceAccess. \n[Command Reference](deletePrivateServiceAccess)""")
248
+ @cli_util.option('--private-service-access-id', required=True, help=u"""The [OCID] of the PrivateServiceAccess.""")
249
+ @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.""")
250
+ @cli_util.confirm_delete_option
251
+ @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.""")
252
+ @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.""")
253
+ @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.""")
254
+ @json_skeleton_utils.get_cli_json_input_option({})
255
+ @cli_util.help_option
256
+ @click.pass_context
257
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
258
+ @cli_util.wrap_exceptions
259
+ def delete_private_service_access(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, if_match):
260
+
261
+ if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0:
262
+ raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string')
263
+
264
+ kwargs = {}
265
+ if if_match is not None:
266
+ kwargs['if_match'] = if_match
267
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
268
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
269
+ result = client.delete_private_service_access(
270
+ private_service_access_id=private_service_access_id,
271
+ **kwargs
272
+ )
273
+ if wait_for_state:
274
+
275
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
276
+ try:
277
+ wait_period_kwargs = {}
278
+ if max_wait_seconds is not None:
279
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
280
+ if wait_interval_seconds is not None:
281
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
282
+ if 'opc-work-request-id' not in result.headers:
283
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
284
+ cli_util.render_response(result, ctx)
285
+ return
286
+
287
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
288
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
289
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
290
+ # If we fail, we should show an error, but we should still provide the information to the customer
291
+ 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)
292
+ cli_util.render_response(result, ctx)
293
+ sys.exit(2)
294
+ except Exception:
295
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
296
+ cli_util.render_response(result, ctx)
297
+ raise
298
+ else:
299
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
300
+ cli_util.render_response(result, ctx)
301
+
302
+
303
+ @private_service_access_group.command(name=cli_util.override('psa.get_private_service_access.command_name', 'get'), help=u"""Gets information about a PrivateServiceAccess. \n[Command Reference](getPrivateServiceAccess)""")
304
+ @cli_util.option('--private-service-access-id', required=True, help=u"""The [OCID] of the PrivateServiceAccess.""")
305
+ @json_skeleton_utils.get_cli_json_input_option({})
306
+ @cli_util.help_option
307
+ @click.pass_context
308
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'PrivateServiceAccess'})
309
+ @cli_util.wrap_exceptions
310
+ def get_private_service_access(ctx, from_json, private_service_access_id):
311
+
312
+ if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0:
313
+ raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string')
314
+
315
+ kwargs = {}
316
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
317
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
318
+ result = client.get_private_service_access(
319
+ private_service_access_id=private_service_access_id,
320
+ **kwargs
321
+ )
322
+ cli_util.render_response(result, ctx)
323
+
324
+
325
+ @work_request_group.command(name=cli_util.override('psa.get_psa_work_request.command_name', 'get-psa'), help=u"""Gets the details of a PrivateServiceAccess work request. \n[Command Reference](getPsaWorkRequest)""")
326
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
327
+ @json_skeleton_utils.get_cli_json_input_option({})
328
+ @cli_util.help_option
329
+ @click.pass_context
330
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'WorkRequest'})
331
+ @cli_util.wrap_exceptions
332
+ def get_psa_work_request(ctx, from_json, work_request_id):
333
+
334
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
335
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
336
+
337
+ kwargs = {}
338
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
339
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
340
+ result = client.get_psa_work_request(
341
+ work_request_id=work_request_id,
342
+ **kwargs
343
+ )
344
+ cli_util.render_response(result, ctx)
345
+
346
+
347
+ @private_service_access_collection_group.command(name=cli_util.override('psa.list_private_service_accesses.command_name', 'list-private-service-accesses'), help=u"""List the private service accesses in the specified compartment. You can optionally filter the list by specifying the [OCID] of a subnet in the cunsumer's VCN. \n[Command Reference](listPrivateServiceAccesses)""")
348
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
349
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
350
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
351
+ @cli_util.option('--id', help=u"""The [OCID] of the resource.""")
352
+ @cli_util.option('--vcn-id', help=u"""The [OCID] of the VCN.""")
353
+ @cli_util.option('--service-id', help=u"""The unique identifier of the OCI service.""")
354
+ @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].""")
355
+ @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].""")
356
+ @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.""")
357
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
358
+ @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.""")
359
+ @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.""")
360
+ @json_skeleton_utils.get_cli_json_input_option({})
361
+ @cli_util.help_option
362
+ @click.pass_context
363
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'PrivateServiceAccessCollection'})
364
+ @cli_util.wrap_exceptions
365
+ def list_private_service_accesses(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, display_name, id, vcn_id, service_id, limit, page, sort_by, sort_order):
366
+
367
+ if all_pages and limit:
368
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
369
+
370
+ kwargs = {}
371
+ if compartment_id is not None:
372
+ kwargs['compartment_id'] = compartment_id
373
+ if lifecycle_state is not None:
374
+ kwargs['lifecycle_state'] = lifecycle_state
375
+ if display_name is not None:
376
+ kwargs['display_name'] = display_name
377
+ if id is not None:
378
+ kwargs['id'] = id
379
+ if vcn_id is not None:
380
+ kwargs['vcn_id'] = vcn_id
381
+ if service_id is not None:
382
+ kwargs['service_id'] = service_id
383
+ if limit is not None:
384
+ kwargs['limit'] = limit
385
+ if page is not None:
386
+ kwargs['page'] = page
387
+ if sort_by is not None:
388
+ kwargs['sort_by'] = sort_by
389
+ if sort_order is not None:
390
+ kwargs['sort_order'] = sort_order
391
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
392
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
393
+ if all_pages:
394
+ if page_size:
395
+ kwargs['limit'] = page_size
396
+
397
+ result = cli_util.list_call_get_all_results(
398
+ client.list_private_service_accesses,
399
+ **kwargs
400
+ )
401
+ elif limit is not None:
402
+ result = cli_util.list_call_get_up_to_limit(
403
+ client.list_private_service_accesses,
404
+ limit,
405
+ page_size,
406
+ **kwargs
407
+ )
408
+ else:
409
+ result = client.list_private_service_accesses(
410
+ **kwargs
411
+ )
412
+ cli_util.render_response(result, ctx)
413
+
414
+
415
+ @psa_service_collection_group.command(name=cli_util.override('psa.list_psa_services.command_name', 'list-psa-services'), help=u"""List the OCI services available for Private Service Access catalog in the region, sorted by service name. \n[Command Reference](listPsaServices)""")
416
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
417
+ @cli_util.option('--service-id', help=u"""The unique identifier of the OCI service.""")
418
+ @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].""")
419
+ @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].""")
420
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `displayName` is descending.""")
421
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
422
+ @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.""")
423
+ @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.""")
424
+ @json_skeleton_utils.get_cli_json_input_option({})
425
+ @cli_util.help_option
426
+ @click.pass_context
427
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'PsaServiceCollection'})
428
+ @cli_util.wrap_exceptions
429
+ def list_psa_services(ctx, from_json, all_pages, page_size, display_name, service_id, limit, page, sort_by, sort_order):
430
+
431
+ if all_pages and limit:
432
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
433
+
434
+ kwargs = {}
435
+ if display_name is not None:
436
+ kwargs['display_name'] = display_name
437
+ if service_id is not None:
438
+ kwargs['service_id'] = service_id
439
+ if limit is not None:
440
+ kwargs['limit'] = limit
441
+ if page is not None:
442
+ kwargs['page'] = page
443
+ if sort_by is not None:
444
+ kwargs['sort_by'] = sort_by
445
+ if sort_order is not None:
446
+ kwargs['sort_order'] = sort_order
447
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
448
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
449
+ if all_pages:
450
+ if page_size:
451
+ kwargs['limit'] = page_size
452
+
453
+ result = cli_util.list_call_get_all_results(
454
+ client.list_psa_services,
455
+ **kwargs
456
+ )
457
+ elif limit is not None:
458
+ result = cli_util.list_call_get_up_to_limit(
459
+ client.list_psa_services,
460
+ limit,
461
+ page_size,
462
+ **kwargs
463
+ )
464
+ else:
465
+ result = client.list_psa_services(
466
+ **kwargs
467
+ )
468
+ cli_util.render_response(result, ctx)
469
+
470
+
471
+ @work_request_error_group.command(name=cli_util.override('psa.list_psa_work_request_errors.command_name', 'list-psa'), help=u"""Lists the errors for a PrivateServiceAccess work request. \n[Command Reference](listPsaWorkRequestErrors)""")
472
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
473
+ @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].""")
474
+ @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].""")
475
+ @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.""")
476
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
477
+ @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.""")
478
+ @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.""")
479
+ @json_skeleton_utils.get_cli_json_input_option({})
480
+ @cli_util.help_option
481
+ @click.pass_context
482
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'WorkRequestErrorCollection'})
483
+ @cli_util.wrap_exceptions
484
+ def list_psa_work_request_errors(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
485
+
486
+ if all_pages and limit:
487
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
488
+
489
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
490
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
491
+
492
+ kwargs = {}
493
+ if page is not None:
494
+ kwargs['page'] = page
495
+ if limit is not None:
496
+ kwargs['limit'] = limit
497
+ if sort_by is not None:
498
+ kwargs['sort_by'] = sort_by
499
+ if sort_order is not None:
500
+ kwargs['sort_order'] = sort_order
501
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
502
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
503
+ if all_pages:
504
+ if page_size:
505
+ kwargs['limit'] = page_size
506
+
507
+ result = cli_util.list_call_get_all_results(
508
+ client.list_psa_work_request_errors,
509
+ work_request_id=work_request_id,
510
+ **kwargs
511
+ )
512
+ elif limit is not None:
513
+ result = cli_util.list_call_get_up_to_limit(
514
+ client.list_psa_work_request_errors,
515
+ limit,
516
+ page_size,
517
+ work_request_id=work_request_id,
518
+ **kwargs
519
+ )
520
+ else:
521
+ result = client.list_psa_work_request_errors(
522
+ work_request_id=work_request_id,
523
+ **kwargs
524
+ )
525
+ cli_util.render_response(result, ctx)
526
+
527
+
528
+ @work_request_log_entry_group.command(name=cli_util.override('psa.list_psa_work_request_logs.command_name', 'list-psa-work-request-logs'), help=u"""Lists the logs for a PrivateServiceAccess work request. \n[Command Reference](listPsaWorkRequestLogs)""")
529
+ @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
530
+ @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].""")
531
+ @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].""")
532
+ @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.""")
533
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
534
+ @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.""")
535
+ @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.""")
536
+ @json_skeleton_utils.get_cli_json_input_option({})
537
+ @cli_util.help_option
538
+ @click.pass_context
539
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'WorkRequestLogEntryCollection'})
540
+ @cli_util.wrap_exceptions
541
+ def list_psa_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
542
+
543
+ if all_pages and limit:
544
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
545
+
546
+ if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
547
+ raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
548
+
549
+ kwargs = {}
550
+ if page is not None:
551
+ kwargs['page'] = page
552
+ if limit is not None:
553
+ kwargs['limit'] = limit
554
+ if sort_by is not None:
555
+ kwargs['sort_by'] = sort_by
556
+ if sort_order is not None:
557
+ kwargs['sort_order'] = sort_order
558
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
559
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
560
+ if all_pages:
561
+ if page_size:
562
+ kwargs['limit'] = page_size
563
+
564
+ result = cli_util.list_call_get_all_results(
565
+ client.list_psa_work_request_logs,
566
+ work_request_id=work_request_id,
567
+ **kwargs
568
+ )
569
+ elif limit is not None:
570
+ result = cli_util.list_call_get_up_to_limit(
571
+ client.list_psa_work_request_logs,
572
+ limit,
573
+ page_size,
574
+ work_request_id=work_request_id,
575
+ **kwargs
576
+ )
577
+ else:
578
+ result = client.list_psa_work_request_logs(
579
+ work_request_id=work_request_id,
580
+ **kwargs
581
+ )
582
+ cli_util.render_response(result, ctx)
583
+
584
+
585
+ @work_request_group.command(name=cli_util.override('psa.list_psa_work_requests.command_name', 'list-psa'), help=u"""Lists the PrivateServiceAccess work requests in a compartment. \n[Command Reference](listPsaWorkRequests)""")
586
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
587
+ @cli_util.option('--work-request-id', help=u"""The [OCID] of the asynchronous work request.""")
588
+ @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.""")
589
+ @cli_util.option('--resource-id', help=u"""The [OCID] of the resource affected by the work request.""")
590
+ @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].""")
591
+ @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].""")
592
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
593
+ @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.""")
594
+ @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.""")
595
+ @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.""")
596
+ @json_skeleton_utils.get_cli_json_input_option({})
597
+ @cli_util.help_option
598
+ @click.pass_context
599
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'psa', 'class': 'WorkRequestSummaryCollection'})
600
+ @cli_util.wrap_exceptions
601
+ def list_psa_work_requests(ctx, from_json, all_pages, page_size, compartment_id, work_request_id, status, resource_id, page, limit, sort_order, sort_by):
602
+
603
+ if all_pages and limit:
604
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
605
+
606
+ kwargs = {}
607
+ if compartment_id is not None:
608
+ kwargs['compartment_id'] = compartment_id
609
+ if work_request_id is not None:
610
+ kwargs['work_request_id'] = work_request_id
611
+ if status is not None:
612
+ kwargs['status'] = status
613
+ if resource_id is not None:
614
+ kwargs['resource_id'] = resource_id
615
+ if page is not None:
616
+ kwargs['page'] = page
617
+ if limit is not None:
618
+ kwargs['limit'] = limit
619
+ if sort_order is not None:
620
+ kwargs['sort_order'] = sort_order
621
+ if sort_by is not None:
622
+ kwargs['sort_by'] = sort_by
623
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
624
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
625
+ if all_pages:
626
+ if page_size:
627
+ kwargs['limit'] = page_size
628
+
629
+ result = cli_util.list_call_get_all_results(
630
+ client.list_psa_work_requests,
631
+ **kwargs
632
+ )
633
+ elif limit is not None:
634
+ result = cli_util.list_call_get_up_to_limit(
635
+ client.list_psa_work_requests,
636
+ limit,
637
+ page_size,
638
+ **kwargs
639
+ )
640
+ else:
641
+ result = client.list_psa_work_requests(
642
+ **kwargs
643
+ )
644
+ cli_util.render_response(result, ctx)
645
+
646
+
647
+ @private_service_access_group.command(name=cli_util.override('psa.update_private_service_access.command_name', 'update'), help=u"""Updates a PrivateServiceAccess. \n[Command Reference](updatePrivateServiceAccess)""")
648
+ @cli_util.option('--private-service-access-id', required=True, help=u"""The [OCID] of the PrivateServiceAccess.""")
649
+ @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].
650
+
651
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
652
+ @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].
653
+
654
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
655
+ @cli_util.option('--security-attributes', type=custom_types.CLI_COMPLEX_TYPE, help=u"""[Security attributes] are labels for a resource that can be referenced in a [Zero Trust Packet Routing] (ZPR) policy to control access to ZPR-supported resources.
656
+
657
+ Example: `{\"Oracle-DataSecurity-ZPR\": {\"MaxEgressCount\": {\"value\":\"42\",\"mode\":\"audit\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
658
+ @cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
659
+ @cli_util.option('--description', help=u"""A description of this private service.""")
660
+ @cli_util.option('--nsg-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of the OCIDs of the network security groups (NSGs) to add the private service access's VNIC to. For more information about NSGs, see [NetworkSecurityGroup].""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
661
+ @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.""")
662
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
663
+ @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.""")
664
+ @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.""")
665
+ @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.""")
666
+ @json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'psa', 'class': 'dict(str, string)'}, 'security-attributes': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'nsg-ids': {'module': 'psa', 'class': 'list[string]'}})
667
+ @cli_util.help_option
668
+ @click.pass_context
669
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'psa', 'class': 'dict(str, string)'}, 'security-attributes': {'module': 'psa', 'class': 'dict(str, dict(str, object))'}, 'nsg-ids': {'module': 'psa', 'class': 'list[string]'}})
670
+ @cli_util.wrap_exceptions
671
+ def update_private_service_access(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_service_access_id, defined_tags, freeform_tags, security_attributes, display_name, description, nsg_ids, if_match):
672
+
673
+ if isinstance(private_service_access_id, six.string_types) and len(private_service_access_id.strip()) == 0:
674
+ raise click.UsageError('Parameter --private-service-access-id cannot be whitespace or empty string')
675
+ if not force:
676
+ if defined_tags or freeform_tags or security_attributes or nsg_ids:
677
+ if not click.confirm("WARNING: Updates to defined-tags and freeform-tags and security-attributes and nsg-ids will replace any existing values. Are you sure you want to continue?"):
678
+ ctx.abort()
679
+
680
+ kwargs = {}
681
+ if if_match is not None:
682
+ kwargs['if_match'] = if_match
683
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
684
+
685
+ _details = {}
686
+
687
+ if defined_tags is not None:
688
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
689
+
690
+ if freeform_tags is not None:
691
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
692
+
693
+ if security_attributes is not None:
694
+ _details['securityAttributes'] = cli_util.parse_json_parameter("security_attributes", security_attributes)
695
+
696
+ if display_name is not None:
697
+ _details['displayName'] = display_name
698
+
699
+ if description is not None:
700
+ _details['description'] = description
701
+
702
+ if nsg_ids is not None:
703
+ _details['nsgIds'] = cli_util.parse_json_parameter("nsg_ids", nsg_ids)
704
+
705
+ client = cli_util.build_client('psa', 'private_service_access', ctx)
706
+ result = client.update_private_service_access(
707
+ private_service_access_id=private_service_access_id,
708
+ update_private_service_access_details=_details,
709
+ **kwargs
710
+ )
711
+ if wait_for_state:
712
+
713
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
714
+ try:
715
+ wait_period_kwargs = {}
716
+ if max_wait_seconds is not None:
717
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
718
+ if wait_interval_seconds is not None:
719
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
720
+ if 'opc-work-request-id' not in result.headers:
721
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
722
+ cli_util.render_response(result, ctx)
723
+ return
724
+
725
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
726
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
727
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
728
+ # If we fail, we should show an error, but we should still provide the information to the customer
729
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
730
+ cli_util.render_response(result, ctx)
731
+ sys.exit(2)
732
+ except Exception:
733
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
734
+ cli_util.render_response(result, ctx)
735
+ raise
736
+ else:
737
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
738
+ cli_util.render_response(result, ctx)