oci-cli 3.68.1__py3-none-any.whl → 3.70.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (323) hide show
  1. common_util/ignored_commands.py +1 -0
  2. oci_cli/bin/psa.psm1 +51 -0
  3. oci_cli/help_text_producer/data_files/text/cmdref/ai/language/endpoint/create.txt +0 -8
  4. oci_cli/help_text_producer/data_files/text/cmdref/compute/boot-volume-attachment/attach.txt +1 -1
  5. oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-host/list.txt +6 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/compute/console-history/capture.txt +1 -1
  7. oci_cli/help_text_producer/data_files/text/cmdref/compute/device/list-instance.txt +1 -1
  8. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/action.txt +1 -1
  9. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/attach-vnic.txt +1 -1
  10. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/change-compartment.txt +1 -1
  11. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get-windows-initial-creds.txt +1 -1
  12. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get.txt +1 -1
  13. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch.txt +1 -1
  14. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/terminate.txt +1 -1
  15. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-amd-vm-update-instance-platform-config.txt +1 -1
  16. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-intel-vm-update-instance-platform-config.txt +1 -1
  17. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-boot-volume-details.txt +1 -1
  18. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-image-details.txt +1 -1
  19. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update.txt +1 -1
  20. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/create.txt +1 -1
  21. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/delete.txt +1 -1
  22. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get-plink-connection-string.txt +1 -1
  23. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get.txt +1 -1
  24. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/update.txt +1 -1
  25. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-maintenance-reboot/get.txt +1 -1
  26. oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/accept-shielded-integrity-policy.txt +1 -1
  27. oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/get.txt +1 -1
  28. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-iscsi-volume.txt +1 -1
  29. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-paravirtualized-volume.txt +1 -1
  30. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach.txt +1 -1
  31. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-configuration/create-from-instance.txt +1 -1
  32. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/create.txt +11 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/update.txt +11 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/attach.txt +2 -2
  35. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/detach.txt +1 -1
  36. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/get.txt +1 -1
  37. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/termination-proceed.txt +116 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance.txt +2 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/compute-management.txt +2 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/change-dataguard-role.txt +1 -1
  41. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/convert-standby.txt +1 -1
  42. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-details.txt +7 -7
  43. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-from-backup-details.txt +7 -7
  44. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +7 -7
  45. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-backup.txt +1 -1
  46. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-version.txt +1 -1
  47. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-autonomous-database-subscription.txt +1 -1
  48. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-compartment.txt +2 -2
  49. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-disaster-recovery-configuration.txt +6 -6
  50. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-key.txt +1 -1
  51. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-saas-admin-user.txt +3 -3
  52. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-adb-cross-region-data-guard-details.txt +105 -102
  53. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-create-cross-region-disaster-recovery-details.txt +114 -111
  54. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-gcp-key-details.txt +108 -105
  55. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-undelete-autonomous-database-details.txt +109 -106
  56. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-cross-tenancy-disaster-recovery-details.txt +111 -108
  57. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-id.txt +109 -106
  58. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-timestamp.txt +110 -107
  59. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-clone.txt +105 -102
  60. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +109 -106
  61. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create.txt +102 -99
  62. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/deregister.txt +1 -1
  63. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/register.txt +1 -1
  64. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/delete.txt +3 -3
  65. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-autonomous-database-management.txt +1 -1
  66. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-operations-insights.txt +1 -1
  67. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-autonomous-database-management.txt +1 -1
  68. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-operations-insights.txt +1 -1
  69. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/fail-over.txt +1 -1
  70. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/generate-wallet.txt +2 -1
  71. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/get.txt +1 -1
  72. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-autonomous-database-peers.txt +1 -1
  73. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-clones.txt +2 -2
  74. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-refreshable-clones.txt +3 -3
  75. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-resource-pool-members.txt +2 -2
  76. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list.txt +7 -7
  77. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/manual-refresh.txt +5 -5
  78. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restart.txt +1 -1
  79. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restore.txt +1 -1
  80. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/saas-admin-user-status.txt +1 -1
  81. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/start.txt +1 -1
  82. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/stop.txt +1 -1
  83. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/switchover.txt +1 -1
  84. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update-autonomous-database-gcp-key-details.txt +125 -110
  85. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update.txt +123 -108
  86. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/create.txt +2 -2
  87. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/delete.txt +1 -1
  88. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/get.txt +2 -2
  89. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/list.txt +1 -1
  90. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/update.txt +3 -3
  91. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup.txt +1 -1
  92. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-character-sets/list.txt +5 -5
  93. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-character-sets.txt +1 -1
  94. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard/get.txt +1 -1
  95. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard/list.txt +1 -1
  96. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard.txt +4 -4
  97. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/change-compartment.txt +2 -2
  98. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/create.txt +4 -4
  99. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/delete.txt +2 -2
  100. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/get.txt +2 -2
  101. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/list.txt +3 -3
  102. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/update.txt +3 -3
  103. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image.txt +2 -2
  104. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/get-metadata.txt +1 -1
  105. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/get-regional-wallet-metadata.txt +1 -1
  106. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate-regional-wallet.txt +1 -1
  107. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate.txt +1 -1
  108. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet.txt +1 -1
  109. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database.txt +1 -1
  110. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-preview-version/list.txt +2 -2
  111. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-preview-version.txt +2 -2
  112. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-version/list.txt +4 -4
  113. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-version.txt +1 -1
  114. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/launch.txt +8 -7
  115. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/update.txt +2 -2
  116. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/create.txt +12 -12
  117. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/update.txt +10 -10
  118. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/add-storage.txt +2 -2
  119. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/change-compartment.txt +4 -3
  120. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +1 -1
  121. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/delete.txt +2 -2
  122. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/get.txt +1 -1
  123. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/list.txt +1 -1
  124. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/update.txt +2 -2
  125. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +2 -2
  126. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/update.txt +2 -2
  127. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-stand-by-database-details.txt +2 -2
  128. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-from-backup.txt +2 -2
  129. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-backup.txt +2 -2
  130. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-database.txt +2 -2
  131. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-standby-database.txt +2 -2
  132. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create.txt +2 -2
  133. oci_cli/help_text_producer/data_files/text/cmdref/db/database/migrate-vault-key.txt +2 -2
  134. oci_cli/help_text_producer/data_files/text/cmdref/db/database/set-oci-db-key-version.txt +2 -2
  135. oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/create.txt +2 -2
  136. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/delete.txt +129 -0
  137. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/get.txt +92 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/list.txt +153 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/mount.txt +131 -0
  140. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/unmount.txt +131 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot.txt +22 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/add.txt +154 -0
  143. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/create.txt +2 -2
  144. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/update.txt +2 -2
  145. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster.txt +2 -0
  146. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/create.txt +1 -1
  147. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/list.txt +1 -1
  148. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/set-oci-pdb-key-version.txt +2 -2
  149. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +4 -4
  150. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +4 -4
  151. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +4 -4
  152. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +4 -4
  153. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +2 -2
  154. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +14 -0
  155. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/add-lock.txt +1 -1
  156. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/change-compartment.txt +2 -2
  157. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-generic-jdbc.txt +11 -2
  158. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-mysql-database.txt +11 -2
  159. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-oracle-database.txt +10 -1
  160. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-postgresql.txt +11 -2
  161. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/delete.txt +1 -1
  162. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/list.txt +13 -5
  163. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/remove-lock.txt +1 -1
  164. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-generic-jdbc.txt +2 -2
  165. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-mysql-database.txt +3 -3
  166. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-oracle-database.txt +2 -2
  167. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-postgresql.txt +3 -3
  168. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection.txt +2 -1
  169. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/endpoint-service/list.txt +1 -1
  170. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/add-lock.txt +230 -0
  171. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/change-compartment.txt +136 -0
  172. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/create-oracle-database-resource-principal.txt +175 -0
  173. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/delete.txt +133 -0
  174. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/get.txt +91 -0
  175. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/list.txt +157 -0
  176. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/refresh-oracle-database-resource-principal-credential.txt +125 -0
  177. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/remove-lock.txt +230 -0
  178. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/update-oracle-database-resource-principal.txt +164 -0
  179. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/validate-oracle-database-resource-principal-credential.txt +101 -0
  180. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity.txt +32 -0
  181. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/add-lock.txt +1 -1
  182. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/change-compartment.txt +1 -1
  183. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/create.txt +1 -1
  184. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/delete.txt +1 -1
  185. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/list.txt +1 -1
  186. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/remove-lock.txt +1 -1
  187. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/update.txt +1 -1
  188. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint.txt +2 -1
  189. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/get.txt +1 -1
  190. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/list.txt +2 -2
  191. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-error/list.txt +1 -1
  192. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-log-entry/list.txt +1 -1
  193. oci_cli/help_text_producer/data_files/text/cmdref/dbtools.txt +22 -0
  194. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
  195. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
  196. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-log/{list-logs.txt → list.txt} +5 -5
  197. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-log.txt +1 -1
  198. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +2 -2
  199. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +2 -2
  200. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/create.txt +204 -0
  201. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/delete.txt +146 -0
  202. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/get.txt +108 -0
  203. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/list.txt +189 -0
  204. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/update.txt +224 -0
  205. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration.txt +22 -0
  206. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-plan-execution/update.txt +1 -1
  207. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-protection-group/list.txt +1 -1
  208. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery.txt +12 -0
  209. 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
  210. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/create.txt +42 -12
  211. 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
  212. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database.txt +2 -0
  213. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service.txt +2 -0
  214. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/create.txt +31 -11
  215. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/rotate-distributed-database-passwords.txt +3 -2
  216. oci_cli/help_text_producer/data_files/text/cmdref/distributed-database.txt +2 -0
  217. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +19 -0
  218. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/update.txt +19 -0
  219. 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
  220. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log.txt → work-request-log-entry.txt} +3 -3
  221. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
  222. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
  223. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/create.txt +20 -0
  224. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/list.txt +2 -2
  225. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/put.txt +20 -0
  226. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/search.txt +3 -3
  227. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider.txt +4 -0
  228. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains.txt +2 -4
  229. oci_cli/help_text_producer/data_files/text/cmdref/lb/load-balancer/update.txt +25 -0
  230. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/change-compartment.txt +148 -0
  231. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/create.txt +217 -0
  232. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/delete.txt +146 -0
  233. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get-sync-job.txt +122 -0
  234. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get.txt +108 -0
  235. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/list-sync-jobs.txt +167 -0
  236. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-export-to-object.txt +118 -0
  237. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-import-from-object.txt +118 -0
  238. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-export-to-object.txt +118 -0
  239. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-import-from-object.txt +118 -0
  240. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/update.txt +200 -0
  241. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection/list-object-storage-links.txt +154 -0
  242. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection.txt +16 -0
  243. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link.txt +42 -0
  244. oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +28 -0
  245. oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-cidr-utilization.txt +1 -1
  246. oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-ip-inventory.txt +1 -1
  247. oci_cli/help_text_producer/data_files/text/cmdref/network/private-ip/create.txt +18 -0
  248. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv4-subnet-cidr.txt +143 -0
  249. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv6-subnet-cidr.txt +1 -1
  250. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/change-compartment.txt +1 -1
  251. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/create.txt +28 -13
  252. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/delete.txt +1 -1
  253. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/get.txt +1 -1
  254. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/modify-ipv4-subnet-cidr.txt +148 -0
  255. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv4-subnet-cidr.txt +145 -0
  256. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv6-subnet-cidr.txt +1 -1
  257. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/update.txt +1 -1
  258. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet-topology/get.txt +1 -1
  259. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet.txt +6 -0
  260. oci_cli/help_text_producer/data_files/text/cmdref/network/vnic/assign-private-ip.txt +18 -0
  261. oci_cli/help_text_producer/data_files/text/cmdref/network.txt +6 -0
  262. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
  263. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  264. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +1 -1
  265. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/change-compartment.txt +136 -0
  266. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/create.txt +214 -0
  267. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/delete.txt +133 -0
  268. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/get.txt +95 -0
  269. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/list.txt +152 -0
  270. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/update.txt +211 -0
  271. oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access.txt +25 -0
  272. oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services/list.txt +129 -0
  273. oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services.txt +16 -0
  274. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/cancel.txt +103 -0
  275. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/get.txt +91 -0
  276. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/list.txt +140 -0
  277. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error/list.txt +131 -0
  278. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error.txt +15 -0
  279. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log/list.txt +131 -0
  280. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log.txt +15 -0
  281. oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request.txt +23 -0
  282. oci_cli/help_text_producer/data_files/text/cmdref/psa.txt +47 -0
  283. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +9 -9
  284. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  285. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  286. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  287. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  288. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  289. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  290. oci_cli/help_text_producer/data_files/text/index.txt +2 -0
  291. oci_cli/service_mapping.py +5 -0
  292. oci_cli/version.py +1 -1
  293. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/METADATA +3 -3
  294. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/RECORD +322 -253
  295. services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py +1 -5
  296. services/core/src/oci_cli_compute/generated/compute_cli.py +4 -1
  297. services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py +44 -9
  298. services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py +245 -10
  299. services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py +11 -1
  300. services/database/src/oci_cli_database/generated/database_cli.py +1507 -1216
  301. services/database_tools/src/oci_cli_database_tools/databasetools_cli_extended.py +198 -4
  302. services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py +926 -53
  303. services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py +366 -2
  304. services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py +77 -12
  305. services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py +8 -8
  306. services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +20 -8
  307. services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py +36 -11
  308. services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py +17 -5
  309. services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py +581 -0
  310. services/psa/__init__.py +4 -0
  311. services/psa/src/__init__.py +4 -0
  312. services/psa/src/oci_cli_private_service_access/__init__.py +4 -0
  313. services/psa/src/oci_cli_private_service_access/generated/__init__.py +4 -0
  314. services/psa/src/oci_cli_private_service_access/generated/client_mappings.py +14 -0
  315. services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py +738 -0
  316. services/psa/src/oci_cli_private_service_access/privateserviceaccess_cli_extended.py +92 -0
  317. services/psa/tests/__init__.py +4 -0
  318. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-providers.txt +0 -20
  319. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/LICENSE.txt +0 -0
  320. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  321. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/WHEEL +0 -0
  322. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/entry_points.txt +0 -0
  323. {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/top_level.txt +0 -0
@@ -22,6 +22,14 @@ def lfs_root_group():
22
22
  pass
23
23
 
24
24
 
25
+ @click.command(cli_util.override('lfs.object_storage_link_group.command_name', 'object-storage-link'), cls=CommandGroupWithAlias, help="""Object Storage links create the relationship between a directory in an File Storage with Lustre file system and a path within an Object Storage bucket. For more information, see [Syncing Lustre file systems with Object Storage].
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 object_storage_link_group():
30
+ pass
31
+
32
+
25
33
  @click.command(cli_util.override('lfs.lustre_file_system_group.command_name', 'lustre-file-system'), cls=CommandGroupWithAlias, help="""A Lustre file system is a parallel file system that is used as a storage solution for HPC/AI/ML workloads. For more information, see [File Storage with Lustre].
26
34
 
27
35
  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].""")
@@ -54,11 +62,19 @@ def work_request_group():
54
62
  pass
55
63
 
56
64
 
65
+ @click.command(cli_util.override('lfs.object_storage_link_collection_group.command_name', 'object-storage-link-collection'), cls=CommandGroupWithAlias, help="""Results of a Object Storage link search. Contains both ObjectStorageLinkSummary items and other information, such as metadata.""")
66
+ @cli_util.help_option_group
67
+ def object_storage_link_collection_group():
68
+ pass
69
+
70
+
71
+ lfs_root_group.add_command(object_storage_link_group)
57
72
  lfs_root_group.add_command(lustre_file_system_group)
58
73
  lfs_root_group.add_command(lustre_file_system_collection_group)
59
74
  lfs_root_group.add_command(work_request_error_group)
60
75
  lfs_root_group.add_command(work_request_log_entry_group)
61
76
  lfs_root_group.add_command(work_request_group)
77
+ lfs_root_group.add_command(object_storage_link_collection_group)
62
78
 
63
79
 
64
80
  @work_request_group.command(name=cli_util.override('lfs.cancel_work_request.command_name', 'cancel'), help=u"""Cancels a work request. \n[Command Reference](cancelWorkRequest)""")
@@ -148,6 +164,63 @@ def change_lustre_file_system_compartment(ctx, from_json, wait_for_state, max_wa
148
164
  cli_util.render_response(result, ctx)
149
165
 
150
166
 
167
+ @object_storage_link_group.command(name=cli_util.override('lfs.change_object_storage_link_compartment.command_name', 'change-compartment'), help=u"""Moves an Object Storage link 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](changeObjectStorageLinkCompartment)""")
168
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
169
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the Object Storage link to.""")
170
+ @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.""")
171
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle 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.""")
172
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
173
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
174
+ @json_skeleton_utils.get_cli_json_input_option({})
175
+ @cli_util.help_option
176
+ @click.pass_context
177
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'ObjectStorageLink'})
178
+ @cli_util.wrap_exceptions
179
+ def change_object_storage_link_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, compartment_id, if_match):
180
+
181
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
182
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
183
+
184
+ kwargs = {}
185
+ if if_match is not None:
186
+ kwargs['if_match'] = if_match
187
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
188
+
189
+ _details = {}
190
+ _details['compartmentId'] = compartment_id
191
+
192
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
193
+ result = client.change_object_storage_link_compartment(
194
+ object_storage_link_id=object_storage_link_id,
195
+ change_object_storage_link_compartment_details=_details,
196
+ **kwargs
197
+ )
198
+ if wait_for_state:
199
+
200
+ if hasattr(client, 'get_object_storage_link') and callable(getattr(client, 'get_object_storage_link')):
201
+ try:
202
+ wait_period_kwargs = {}
203
+ if max_wait_seconds is not None:
204
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
205
+ if wait_interval_seconds is not None:
206
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
207
+
208
+ click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
209
+ result = oci.wait_until(client, client.get_object_storage_link(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
210
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
211
+ # If we fail, we should show an error, but we should still provide the information to the customer
212
+ click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
213
+ cli_util.render_response(result, ctx)
214
+ sys.exit(2)
215
+ except Exception:
216
+ click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
217
+ cli_util.render_response(result, ctx)
218
+ raise
219
+ else:
220
+ click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
221
+ cli_util.render_response(result, ctx)
222
+
223
+
151
224
  @lustre_file_system_group.command(name=cli_util.override('lfs.create_lustre_file_system.command_name', 'create'), help=u"""Creates a Lustre file system. \n[Command Reference](createLustreFileSystem)""")
152
225
  @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment that contains the Lustre file system.""")
153
226
  @cli_util.option('--availability-domain', required=True, help=u"""The availability domain the file system is in. May be unset as a blank or NULL value.
@@ -249,6 +322,89 @@ def create_lustre_file_system(ctx, from_json, wait_for_state, max_wait_seconds,
249
322
  cli_util.render_response(result, ctx)
250
323
 
251
324
 
325
+ @object_storage_link_group.command(name=cli_util.override('lfs.create_object_storage_link.command_name', 'create'), help=u"""Creates an Object Storage link. \n[Command Reference](createObjectStorageLink)""")
326
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment that contains the Object Storage link.""")
327
+ @cli_util.option('--availability-domain', required=True, help=u"""The availability domain that the Lustre file system is in. May be unset as a blank or NULL value.
328
+
329
+ Example: `Uocm:PHX-AD-1`""")
330
+ @cli_util.option('--lustre-file-system-id', required=True, help=u"""The [OCID] of the associated Lustre file system.""")
331
+ @cli_util.option('--file-system-path', required=True, help=u"""The path in the Lustre file system used for this Object Storage link.
332
+
333
+ Example: `myFileSystem/mount/myDirectory`""")
334
+ @cli_util.option('--object-storage-prefix', required=True, help=u"""The Object Storage namespace and bucket name, including optional object prefix string, to use as the source for imports or destination for exports.
335
+
336
+ Example: `objectStorageNamespace:/bucketName/optionalFolder/optionalPrefix`""")
337
+ @cli_util.option('--is-overwrite', required=True, type=click.BOOL, help=u"""The flag is an identifier to tell whether the job run has overwrite enabled. If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists.""")
338
+ @cli_util.option('--display-name', help=u"""A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information.
339
+
340
+ Example: `My Object Storage Link`""")
341
+ @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].
342
+
343
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
344
+ @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].
345
+
346
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
347
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle 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.""")
348
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
349
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
350
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, dict(str, object))'}})
351
+ @cli_util.help_option
352
+ @click.pass_context
353
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'lustre_file_storage', 'class': 'ObjectStorageLink'})
354
+ @cli_util.wrap_exceptions
355
+ def create_object_storage_link(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, availability_domain, lustre_file_system_id, file_system_path, object_storage_prefix, is_overwrite, display_name, freeform_tags, defined_tags):
356
+
357
+ kwargs = {}
358
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
359
+
360
+ _details = {}
361
+ _details['compartmentId'] = compartment_id
362
+ _details['availabilityDomain'] = availability_domain
363
+ _details['lustreFileSystemId'] = lustre_file_system_id
364
+ _details['fileSystemPath'] = file_system_path
365
+ _details['objectStoragePrefix'] = object_storage_prefix
366
+ _details['isOverwrite'] = is_overwrite
367
+
368
+ if display_name is not None:
369
+ _details['displayName'] = display_name
370
+
371
+ if freeform_tags is not None:
372
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
373
+
374
+ if defined_tags is not None:
375
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
376
+
377
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
378
+ result = client.create_object_storage_link(
379
+ create_object_storage_link_details=_details,
380
+ **kwargs
381
+ )
382
+ if wait_for_state:
383
+
384
+ if hasattr(client, 'get_object_storage_link') and callable(getattr(client, 'get_object_storage_link')):
385
+ try:
386
+ wait_period_kwargs = {}
387
+ if max_wait_seconds is not None:
388
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
389
+ if wait_interval_seconds is not None:
390
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
391
+
392
+ click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
393
+ result = oci.wait_until(client, client.get_object_storage_link(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
394
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
395
+ # If we fail, we should show an error, but we should still provide the information to the customer
396
+ click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
397
+ cli_util.render_response(result, ctx)
398
+ sys.exit(2)
399
+ except Exception:
400
+ click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
401
+ cli_util.render_response(result, ctx)
402
+ raise
403
+ else:
404
+ click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
405
+ cli_util.render_response(result, ctx)
406
+
407
+
252
408
  @lustre_file_system_group.command(name=cli_util.override('lfs.delete_lustre_file_system.command_name', 'delete'), help=u"""Deletes a Lustre file system. \n[Command Reference](deleteLustreFileSystem)""")
253
409
  @cli_util.option('--lustre-file-system-id', required=True, help=u"""The [OCID] of the Lustre file system.""")
254
410
  @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.""")
@@ -305,6 +461,62 @@ def delete_lustre_file_system(ctx, from_json, wait_for_state, max_wait_seconds,
305
461
  cli_util.render_response(result, ctx)
306
462
 
307
463
 
464
+ @object_storage_link_group.command(name=cli_util.override('lfs.delete_object_storage_link.command_name', 'delete'), help=u"""Deletes an Object Storage link. \n[Command Reference](deleteObjectStorageLink)""")
465
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
466
+ @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.""")
467
+ @cli_util.confirm_delete_option
468
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), 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.""")
469
+ @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.""")
470
+ @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.""")
471
+ @json_skeleton_utils.get_cli_json_input_option({})
472
+ @cli_util.help_option
473
+ @click.pass_context
474
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
475
+ @cli_util.wrap_exceptions
476
+ def delete_object_storage_link(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, if_match):
477
+
478
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
479
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
480
+
481
+ kwargs = {}
482
+ if if_match is not None:
483
+ kwargs['if_match'] = if_match
484
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
485
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
486
+ result = client.delete_object_storage_link(
487
+ object_storage_link_id=object_storage_link_id,
488
+ **kwargs
489
+ )
490
+ if wait_for_state:
491
+
492
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
493
+ try:
494
+ wait_period_kwargs = {}
495
+ if max_wait_seconds is not None:
496
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
497
+ if wait_interval_seconds is not None:
498
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
499
+ if 'opc-work-request-id' not in result.headers:
500
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
501
+ cli_util.render_response(result, ctx)
502
+ return
503
+
504
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
505
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
506
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
507
+ # If we fail, we should show an error, but we should still provide the information to the customer
508
+ 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)
509
+ cli_util.render_response(result, ctx)
510
+ sys.exit(2)
511
+ except Exception:
512
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
513
+ cli_util.render_response(result, ctx)
514
+ raise
515
+ else:
516
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
517
+ cli_util.render_response(result, ctx)
518
+
519
+
308
520
  @lustre_file_system_group.command(name=cli_util.override('lfs.get_lustre_file_system.command_name', 'get'), help=u"""Gets information about a Lustre file system. \n[Command Reference](getLustreFileSystem)""")
309
521
  @cli_util.option('--lustre-file-system-id', required=True, help=u"""The [OCID] of the Lustre file system.""")
310
522
  @json_skeleton_utils.get_cli_json_input_option({})
@@ -327,6 +539,58 @@ def get_lustre_file_system(ctx, from_json, lustre_file_system_id):
327
539
  cli_util.render_response(result, ctx)
328
540
 
329
541
 
542
+ @object_storage_link_group.command(name=cli_util.override('lfs.get_object_storage_link.command_name', 'get'), help=u"""Gets information about an Object Storage link. \n[Command Reference](getObjectStorageLink)""")
543
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
544
+ @json_skeleton_utils.get_cli_json_input_option({})
545
+ @cli_util.help_option
546
+ @click.pass_context
547
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'ObjectStorageLink'})
548
+ @cli_util.wrap_exceptions
549
+ def get_object_storage_link(ctx, from_json, object_storage_link_id):
550
+
551
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
552
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
553
+
554
+ kwargs = {}
555
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
556
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
557
+ result = client.get_object_storage_link(
558
+ object_storage_link_id=object_storage_link_id,
559
+ **kwargs
560
+ )
561
+ cli_util.render_response(result, ctx)
562
+
563
+
564
+ @object_storage_link_group.command(name=cli_util.override('lfs.get_sync_job.command_name', 'get-sync-job'), help=u"""Gets details of a sync job associated with an Object Storage link when `objectStorageLink` and a unique ID are provided. \n[Command Reference](getSyncJob)""")
565
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
566
+ @cli_util.option('--sync-job-id', required=True, help=u"""The [OCID] of the sync job.""")
567
+ @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.""")
568
+ @json_skeleton_utils.get_cli_json_input_option({})
569
+ @cli_util.help_option
570
+ @click.pass_context
571
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'SyncJob'})
572
+ @cli_util.wrap_exceptions
573
+ def get_sync_job(ctx, from_json, object_storage_link_id, sync_job_id, if_match):
574
+
575
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
576
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
577
+
578
+ if isinstance(sync_job_id, six.string_types) and len(sync_job_id.strip()) == 0:
579
+ raise click.UsageError('Parameter --sync-job-id cannot be whitespace or empty string')
580
+
581
+ kwargs = {}
582
+ if if_match is not None:
583
+ kwargs['if_match'] = if_match
584
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
585
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
586
+ result = client.get_sync_job(
587
+ object_storage_link_id=object_storage_link_id,
588
+ sync_job_id=sync_job_id,
589
+ **kwargs
590
+ )
591
+ cli_util.render_response(result, ctx)
592
+
593
+
330
594
  @work_request_group.command(name=cli_util.override('lfs.get_work_request.command_name', 'get'), help=u"""Gets the details of a work request. \n[Command Reference](getWorkRequest)""")
331
595
  @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
332
596
  @json_skeleton_utils.get_cli_json_input_option({})
@@ -418,6 +682,141 @@ def list_lustre_file_systems(ctx, from_json, all_pages, page_size, compartment_i
418
682
  cli_util.render_response(result, ctx)
419
683
 
420
684
 
685
+ @object_storage_link_collection_group.command(name=cli_util.override('lfs.list_object_storage_links.command_name', 'list-object-storage-links'), help=u"""Gets a list of Object Storage links. \n[Command Reference](listObjectStorageLinks)""")
686
+ @cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
687
+ @cli_util.option('--availability-domain', help=u"""The name of the availability domain.
688
+
689
+ Example: `Uocm:PHX-AD-1`""")
690
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
691
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
692
+ @cli_util.option('--id', help=u"""The [OCID] of the Object Storage link.""")
693
+ @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].""")
694
+ @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].""")
695
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
696
+ @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.""")
697
+ @cli_util.option('--lustre-file-system-id', help=u"""The [OCID] of the Lustre file system.""")
698
+ @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.""")
699
+ @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.""")
700
+ @json_skeleton_utils.get_cli_json_input_option({})
701
+ @cli_util.help_option
702
+ @click.pass_context
703
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'ObjectStorageLinkCollection'})
704
+ @cli_util.wrap_exceptions
705
+ def list_object_storage_links(ctx, from_json, all_pages, page_size, compartment_id, availability_domain, lifecycle_state, display_name, id, limit, page, sort_order, sort_by, lustre_file_system_id):
706
+
707
+ if all_pages and limit:
708
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
709
+ if sort_by and not availability_domain and not all_pages:
710
+ raise click.UsageError('You must provide an --availability-domain when doing a --sort-by, unless you specify the --all parameter')
711
+
712
+ kwargs = {}
713
+ if compartment_id is not None:
714
+ kwargs['compartment_id'] = compartment_id
715
+ if availability_domain is not None:
716
+ kwargs['availability_domain'] = availability_domain
717
+ if lifecycle_state is not None:
718
+ kwargs['lifecycle_state'] = lifecycle_state
719
+ if display_name is not None:
720
+ kwargs['display_name'] = display_name
721
+ if id is not None:
722
+ kwargs['id'] = id
723
+ if limit is not None:
724
+ kwargs['limit'] = limit
725
+ if page is not None:
726
+ kwargs['page'] = page
727
+ if sort_order is not None:
728
+ kwargs['sort_order'] = sort_order
729
+ if sort_by is not None:
730
+ kwargs['sort_by'] = sort_by
731
+ if lustre_file_system_id is not None:
732
+ kwargs['lustre_file_system_id'] = lustre_file_system_id
733
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
734
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
735
+ if all_pages:
736
+ if page_size:
737
+ kwargs['limit'] = page_size
738
+
739
+ result = cli_util.list_call_get_all_results(
740
+ client.list_object_storage_links,
741
+ **kwargs
742
+ )
743
+ elif limit is not None:
744
+ result = cli_util.list_call_get_up_to_limit(
745
+ client.list_object_storage_links,
746
+ limit,
747
+ page_size,
748
+ **kwargs
749
+ )
750
+ else:
751
+ result = client.list_object_storage_links(
752
+ **kwargs
753
+ )
754
+ cli_util.render_response(result, ctx)
755
+
756
+
757
+ @object_storage_link_group.command(name=cli_util.override('lfs.list_sync_jobs.command_name', 'list-sync-jobs'), help=u"""Lists all sync jobs associated with the Object Storage link. Contains a unique ID for each sync job. \n[Command Reference](listSyncJobs)""")
758
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
759
+ @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].""")
760
+ @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].""")
761
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
762
+ @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.""")
763
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["IN_PROGRESS", "SUCCEEDED", "CANCELING", "CANCELED", "FAILED", "FAILING"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
764
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated"]), 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.""")
765
+ @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.""")
766
+ @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.""")
767
+ @json_skeleton_utils.get_cli_json_input_option({})
768
+ @cli_util.help_option
769
+ @click.pass_context
770
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'SyncJobCollection'})
771
+ @cli_util.wrap_exceptions
772
+ def list_sync_jobs(ctx, from_json, all_pages, page_size, object_storage_link_id, limit, page, sort_order, if_match, lifecycle_state, sort_by):
773
+
774
+ if all_pages and limit:
775
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
776
+
777
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
778
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
779
+
780
+ kwargs = {}
781
+ if limit is not None:
782
+ kwargs['limit'] = limit
783
+ if page is not None:
784
+ kwargs['page'] = page
785
+ if sort_order is not None:
786
+ kwargs['sort_order'] = sort_order
787
+ if if_match is not None:
788
+ kwargs['if_match'] = if_match
789
+ if lifecycle_state is not None:
790
+ kwargs['lifecycle_state'] = lifecycle_state
791
+ if sort_by is not None:
792
+ kwargs['sort_by'] = sort_by
793
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
794
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
795
+ if all_pages:
796
+ if page_size:
797
+ kwargs['limit'] = page_size
798
+
799
+ result = cli_util.list_call_get_all_results(
800
+ client.list_sync_jobs,
801
+ object_storage_link_id=object_storage_link_id,
802
+ **kwargs
803
+ )
804
+ elif limit is not None:
805
+ result = cli_util.list_call_get_up_to_limit(
806
+ client.list_sync_jobs,
807
+ limit,
808
+ page_size,
809
+ object_storage_link_id=object_storage_link_id,
810
+ **kwargs
811
+ )
812
+ else:
813
+ result = client.list_sync_jobs(
814
+ object_storage_link_id=object_storage_link_id,
815
+ **kwargs
816
+ )
817
+ cli_util.render_response(result, ctx)
818
+
819
+
421
820
  @work_request_error_group.command(name=cli_util.override('lfs.list_work_request_errors.command_name', 'list'), help=u"""Lists the errors for a work request. \n[Command Reference](listWorkRequestErrors)""")
422
821
  @cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
423
822
  @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].""")
@@ -594,6 +993,106 @@ def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, wor
594
993
  cli_util.render_response(result, ctx)
595
994
 
596
995
 
996
+ @object_storage_link_group.command(name=cli_util.override('lfs.start_export_to_object.command_name', 'start-export-to-object'), help=u"""Starts the export of data from the Lustre file system to Object Storage. The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. \n[Command Reference](startExportToObject)""")
997
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
998
+ @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.""")
999
+ @json_skeleton_utils.get_cli_json_input_option({})
1000
+ @cli_util.help_option
1001
+ @click.pass_context
1002
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'SyncJob'})
1003
+ @cli_util.wrap_exceptions
1004
+ def start_export_to_object(ctx, from_json, object_storage_link_id, if_match):
1005
+
1006
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
1007
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
1008
+
1009
+ kwargs = {}
1010
+ if if_match is not None:
1011
+ kwargs['if_match'] = if_match
1012
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1013
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
1014
+ result = client.start_export_to_object(
1015
+ object_storage_link_id=object_storage_link_id,
1016
+ **kwargs
1017
+ )
1018
+ cli_util.render_response(result, ctx)
1019
+
1020
+
1021
+ @object_storage_link_group.command(name=cli_util.override('lfs.start_import_from_object.command_name', 'start-import-from-object'), help=u"""Starts the import of data from Object Storage to the Lustre file system. The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. \n[Command Reference](startImportFromObject)""")
1022
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
1023
+ @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.""")
1024
+ @json_skeleton_utils.get_cli_json_input_option({})
1025
+ @cli_util.help_option
1026
+ @click.pass_context
1027
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'lustre_file_storage', 'class': 'SyncJob'})
1028
+ @cli_util.wrap_exceptions
1029
+ def start_import_from_object(ctx, from_json, object_storage_link_id, if_match):
1030
+
1031
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
1032
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
1033
+
1034
+ kwargs = {}
1035
+ if if_match is not None:
1036
+ kwargs['if_match'] = if_match
1037
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1038
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
1039
+ result = client.start_import_from_object(
1040
+ object_storage_link_id=object_storage_link_id,
1041
+ **kwargs
1042
+ )
1043
+ cli_util.render_response(result, ctx)
1044
+
1045
+
1046
+ @object_storage_link_group.command(name=cli_util.override('lfs.stop_export_to_object.command_name', 'stop-export-to-object'), help=u"""Stops the export of data from the Lustre file system to Object Storage. The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. \n[Command Reference](stopExportToObject)""")
1047
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
1048
+ @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.""")
1049
+ @json_skeleton_utils.get_cli_json_input_option({})
1050
+ @cli_util.help_option
1051
+ @click.pass_context
1052
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1053
+ @cli_util.wrap_exceptions
1054
+ def stop_export_to_object(ctx, from_json, object_storage_link_id, if_match):
1055
+
1056
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
1057
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
1058
+
1059
+ kwargs = {}
1060
+ if if_match is not None:
1061
+ kwargs['if_match'] = if_match
1062
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1063
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
1064
+ result = client.stop_export_to_object(
1065
+ object_storage_link_id=object_storage_link_id,
1066
+ **kwargs
1067
+ )
1068
+ cli_util.render_response(result, ctx)
1069
+
1070
+
1071
+ @object_storage_link_group.command(name=cli_util.override('lfs.stop_import_from_object.command_name', 'stop-import-from-object'), help=u"""Stops the import of data from Object Storage to the Lustre file system. The Lustre file system path and Object Storage object prefix are defined in the Object Storage link resource. \n[Command Reference](stopImportFromObject)""")
1072
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
1073
+ @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.""")
1074
+ @json_skeleton_utils.get_cli_json_input_option({})
1075
+ @cli_util.help_option
1076
+ @click.pass_context
1077
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1078
+ @cli_util.wrap_exceptions
1079
+ def stop_import_from_object(ctx, from_json, object_storage_link_id, if_match):
1080
+
1081
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
1082
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
1083
+
1084
+ kwargs = {}
1085
+ if if_match is not None:
1086
+ kwargs['if_match'] = if_match
1087
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1088
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
1089
+ result = client.stop_import_from_object(
1090
+ object_storage_link_id=object_storage_link_id,
1091
+ **kwargs
1092
+ )
1093
+ cli_util.render_response(result, ctx)
1094
+
1095
+
597
1096
  @lustre_file_system_group.command(name=cli_util.override('lfs.update_lustre_file_system.command_name', 'update'), help=u"""Updates a Lustre file system. \n[Command Reference](updateLustreFileSystem)""")
598
1097
  @cli_util.option('--lustre-file-system-id', required=True, help=u"""The [OCID] of the Lustre file system.""")
599
1098
  @cli_util.option('--display-name', help=u"""A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information.
@@ -694,3 +1193,85 @@ def update_lustre_file_system(ctx, from_json, force, wait_for_state, max_wait_se
694
1193
  else:
695
1194
  click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
696
1195
  cli_util.render_response(result, ctx)
1196
+
1197
+
1198
+ @object_storage_link_group.command(name=cli_util.override('lfs.update_object_storage_link.command_name', 'update'), help=u"""Updates an Object Storage link. \n[Command Reference](updateObjectStorageLink)""")
1199
+ @cli_util.option('--object-storage-link-id', required=True, help=u"""The [OCID] of the Object Storage link.""")
1200
+ @cli_util.option('--display-name', help=u"""A user-friendly name. It does not have to be unique, and it is changeable. Avoid entering confidential information.
1201
+
1202
+ Example: `My Object Storage Link`""")
1203
+ @cli_util.option('--is-overwrite', type=click.BOOL, help=u"""The flag is an identifier to tell whether the job run has overwrite enabled. If `isOverwrite` is false, the file to be imported or exported will be skipped if it already exists. If `isOverwrite` is true, the file to be imported or exported will be overwritten if it already exists.""")
1204
+ @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].
1205
+
1206
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1207
+ @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].
1208
+
1209
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1210
+ @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.""")
1211
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
1212
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle 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.""")
1213
+ @cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
1214
+ @cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
1215
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, dict(str, object))'}})
1216
+ @cli_util.help_option
1217
+ @click.pass_context
1218
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'lustre_file_storage', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'lustre_file_storage', 'class': 'ObjectStorageLink'})
1219
+ @cli_util.wrap_exceptions
1220
+ def update_object_storage_link(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, object_storage_link_id, display_name, is_overwrite, freeform_tags, defined_tags, if_match):
1221
+
1222
+ if isinstance(object_storage_link_id, six.string_types) and len(object_storage_link_id.strip()) == 0:
1223
+ raise click.UsageError('Parameter --object-storage-link-id cannot be whitespace or empty string')
1224
+ if not force:
1225
+ if freeform_tags or defined_tags:
1226
+ if not click.confirm("WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
1227
+ ctx.abort()
1228
+
1229
+ kwargs = {}
1230
+ if if_match is not None:
1231
+ kwargs['if_match'] = if_match
1232
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1233
+
1234
+ _details = {}
1235
+
1236
+ if display_name is not None:
1237
+ _details['displayName'] = display_name
1238
+
1239
+ if is_overwrite is not None:
1240
+ _details['isOverwrite'] = is_overwrite
1241
+
1242
+ if freeform_tags is not None:
1243
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1244
+
1245
+ if defined_tags is not None:
1246
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1247
+
1248
+ client = cli_util.build_client('lustre_file_storage', 'lustre_file_storage', ctx)
1249
+ result = client.update_object_storage_link(
1250
+ object_storage_link_id=object_storage_link_id,
1251
+ update_object_storage_link_details=_details,
1252
+ **kwargs
1253
+ )
1254
+ if wait_for_state:
1255
+
1256
+ if hasattr(client, 'get_object_storage_link') and callable(getattr(client, 'get_object_storage_link')):
1257
+ try:
1258
+ wait_period_kwargs = {}
1259
+ if max_wait_seconds is not None:
1260
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1261
+ if wait_interval_seconds is not None:
1262
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1263
+
1264
+ click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
1265
+ result = oci.wait_until(client, client.get_object_storage_link(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
1266
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1267
+ # If we fail, we should show an error, but we should still provide the information to the customer
1268
+ click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
1269
+ cli_util.render_response(result, ctx)
1270
+ sys.exit(2)
1271
+ except Exception:
1272
+ click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
1273
+ cli_util.render_response(result, ctx)
1274
+ raise
1275
+ else:
1276
+ click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
1277
+ cli_util.render_response(result, ctx)