oci-cli 3.68.0__py3-none-any.whl → 3.69.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 (293) hide show
  1. common_util/ignored_commands.py +1 -0
  2. oci_cli/bin/devops.psm1 +12 -1
  3. oci_cli/bin/streaming.psm1 +2 -2
  4. oci_cli/help_text_producer/data_files/text/cmdref/ai/language/endpoint/create.txt +0 -8
  5. oci_cli/help_text_producer/data_files/text/cmdref/compute/boot-volume-attachment/attach.txt +1 -1
  6. oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-host/list.txt +6 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/compute/console-history/capture.txt +1 -1
  8. oci_cli/help_text_producer/data_files/text/cmdref/compute/device/list-instance.txt +1 -1
  9. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/action.txt +1 -1
  10. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/attach-vnic.txt +1 -1
  11. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/change-compartment.txt +1 -1
  12. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get-windows-initial-creds.txt +1 -1
  13. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get.txt +1 -1
  14. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch.txt +1 -1
  15. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/terminate.txt +1 -1
  16. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-amd-vm-update-instance-platform-config.txt +1 -1
  17. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-intel-vm-update-instance-platform-config.txt +1 -1
  18. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-boot-volume-details.txt +1 -1
  19. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-image-details.txt +1 -1
  20. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update.txt +1 -1
  21. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/create.txt +1 -1
  22. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/delete.txt +1 -1
  23. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get-plink-connection-string.txt +1 -1
  24. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get.txt +1 -1
  25. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/update.txt +1 -1
  26. oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-maintenance-reboot/get.txt +1 -1
  27. oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/accept-shielded-integrity-policy.txt +1 -1
  28. oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/get.txt +1 -1
  29. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-iscsi-volume.txt +1 -1
  30. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-paravirtualized-volume.txt +1 -1
  31. oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach.txt +1 -1
  32. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-configuration/create-from-instance.txt +1 -1
  33. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/attach.txt +1 -1
  34. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/detach.txt +1 -1
  35. oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/get.txt +1 -1
  36. oci_cli/help_text_producer/data_files/text/cmdref/data-science/job-run/create.txt +17 -0
  37. oci_cli/help_text_producer/data_files/text/cmdref/data-science/pipeline/create.txt +12 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/data-science/pipeline/update.txt +12 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/data-science/pipeline-run/create.txt +30 -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/exadb-vm-cluster/create.txt +2 -2
  137. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/update.txt +2 -2
  138. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/create.txt +1 -1
  139. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/list.txt +1 -1
  140. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/set-oci-pdb-key-version.txt +2 -2
  141. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +4 -4
  142. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +4 -4
  143. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +4 -4
  144. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +4 -4
  145. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +2 -2
  146. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/add-lock.txt +1 -1
  147. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/change-compartment.txt +2 -2
  148. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-generic-jdbc.txt +11 -2
  149. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-mysql-database.txt +11 -2
  150. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-oracle-database.txt +10 -1
  151. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-postgresql.txt +11 -2
  152. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/delete.txt +1 -1
  153. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/list.txt +13 -5
  154. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/remove-lock.txt +1 -1
  155. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-generic-jdbc.txt +2 -2
  156. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-mysql-database.txt +3 -3
  157. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-oracle-database.txt +2 -2
  158. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-postgresql.txt +3 -3
  159. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection.txt +2 -1
  160. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/endpoint-service/list.txt +1 -1
  161. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/add-lock.txt +230 -0
  162. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/change-compartment.txt +136 -0
  163. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/create-oracle-database-resource-principal.txt +175 -0
  164. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/delete.txt +133 -0
  165. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/get.txt +91 -0
  166. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/list.txt +157 -0
  167. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/refresh-oracle-database-resource-principal-credential.txt +125 -0
  168. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/remove-lock.txt +230 -0
  169. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/update-oracle-database-resource-principal.txt +164 -0
  170. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/validate-oracle-database-resource-principal-credential.txt +101 -0
  171. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity.txt +32 -0
  172. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/add-lock.txt +1 -1
  173. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/change-compartment.txt +1 -1
  174. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/create.txt +1 -1
  175. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/delete.txt +1 -1
  176. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/list.txt +1 -1
  177. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/remove-lock.txt +1 -1
  178. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/update.txt +1 -1
  179. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint.txt +2 -1
  180. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/get.txt +1 -1
  181. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/list.txt +2 -2
  182. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-error/list.txt +1 -1
  183. oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-log-entry/list.txt +1 -1
  184. oci_cli/help_text_producer/data_files/text/cmdref/dbtools.txt +22 -0
  185. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
  186. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
  187. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log/list-logs.txt → work-request-log-entry/list-work-request-logs.txt} +5 -5
  188. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log.txt → work-request-log-entry.txt} +3 -3
  189. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +3 -3
  190. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +3 -3
  191. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result/trigger-deployment-dry-run-create-deploy-pipeline-deployment-details.txt +174 -0
  192. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result/trigger-deployment-dry-run-create-deploy-pipeline-redeployment-details.txt +146 -0
  193. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result/trigger-deployment-dry-run-create-single-deploy-stage-deployment-details.txt +179 -0
  194. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result/trigger-deployment-dry-run-create-single-deploy-stage-redeployment-details.txt +150 -0
  195. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result/trigger-deployment-dry-run.txt +116 -0
  196. oci_cli/help_text_producer/data_files/text/cmdref/devops/trigger-dry-run-result.txt +25 -0
  197. oci_cli/help_text_producer/data_files/text/cmdref/devops.txt +16 -0
  198. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/create.txt +204 -0
  199. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/delete.txt +146 -0
  200. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/get.txt +108 -0
  201. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/list.txt +189 -0
  202. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/update.txt +224 -0
  203. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration.txt +22 -0
  204. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-plan-execution/update.txt +1 -1
  205. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-protection-group/list.txt +1 -1
  206. oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery.txt +12 -0
  207. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-db.txt +1 -1
  208. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-collection/create-gi.txt +1 -1
  209. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-discovery/create-db.txt +1 -1
  210. oci_cli/help_text_producer/data_files/text/cmdref/fleet-software-update/fsu-discovery/create-gi.txt +1 -1
  211. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +19 -0
  212. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/update.txt +19 -0
  213. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log/{list-logs.txt → list.txt} +5 -5
  214. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log.txt +1 -1
  215. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +1 -1
  216. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +1 -1
  217. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/create.txt +20 -0
  218. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/list.txt +2 -2
  219. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/put.txt +20 -0
  220. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/search.txt +3 -3
  221. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider.txt +4 -0
  222. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains.txt +2 -4
  223. oci_cli/help_text_producer/data_files/text/cmdref/lb/load-balancer/update.txt +25 -0
  224. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/change-compartment.txt +148 -0
  225. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/create.txt +217 -0
  226. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/delete.txt +146 -0
  227. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get-sync-job.txt +122 -0
  228. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get.txt +108 -0
  229. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/list-sync-jobs.txt +167 -0
  230. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-export-to-object.txt +118 -0
  231. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-import-from-object.txt +118 -0
  232. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-export-to-object.txt +118 -0
  233. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-import-from-object.txt +118 -0
  234. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/update.txt +200 -0
  235. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection/list-object-storage-links.txt +154 -0
  236. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection.txt +16 -0
  237. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link.txt +42 -0
  238. oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +28 -0
  239. oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-cidr-utilization.txt +1 -1
  240. oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-ip-inventory.txt +1 -1
  241. oci_cli/help_text_producer/data_files/text/cmdref/network/private-ip/create.txt +18 -0
  242. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv4-subnet-cidr.txt +143 -0
  243. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv6-subnet-cidr.txt +1 -1
  244. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/change-compartment.txt +1 -1
  245. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/create.txt +28 -13
  246. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/delete.txt +1 -1
  247. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/get.txt +1 -1
  248. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/modify-ipv4-subnet-cidr.txt +148 -0
  249. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv4-subnet-cidr.txt +145 -0
  250. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv6-subnet-cidr.txt +1 -1
  251. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/update.txt +1 -1
  252. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet-topology/get.txt +1 -1
  253. oci_cli/help_text_producer/data_files/text/cmdref/network/subnet.txt +6 -0
  254. oci_cli/help_text_producer/data_files/text/cmdref/network/vnic/assign-private-ip.txt +18 -0
  255. oci_cli/help_text_producer/data_files/text/cmdref/network.txt +6 -0
  256. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
  257. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  258. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +1 -1
  259. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +4 -4
  260. oci_cli/help_text_producer/data_files/text/cmdref/streaming/admin/stream-pool/create.txt +18 -0
  261. oci_cli/help_text_producer/data_files/text/cmdref/streaming/admin/stream-pool/update.txt +18 -0
  262. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  263. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  264. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  265. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  266. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  267. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  268. oci_cli/version.py +1 -1
  269. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/METADATA +8 -4
  270. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/RECORD +292 -253
  271. services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py +1 -5
  272. services/core/src/oci_cli_compute/generated/compute_cli.py +4 -1
  273. services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py +245 -10
  274. services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py +11 -1
  275. services/data_science/src/oci_cli_data_science/generated/datascience_cli.py +139 -49
  276. services/database/src/oci_cli_database/generated/database_cli.py +1198 -1216
  277. services/database_tools/src/oci_cli_database_tools/databasetools_cli_extended.py +198 -4
  278. services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py +926 -53
  279. services/devops/src/oci_cli_devops/generated/devops_cli.py +226 -0
  280. services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py +366 -2
  281. services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +20 -8
  282. services/fleet_software_update/src/oci_cli_fleet_software_update/generated/fleetsoftwareupdate_cli.py +4 -4
  283. services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py +6 -6
  284. services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py +36 -11
  285. services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py +17 -5
  286. services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py +581 -0
  287. services/streaming/src/oci_cli_stream_admin/generated/streamadmin_cli.py +20 -8
  288. oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-providers.txt +0 -20
  289. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/LICENSE.txt +0 -0
  290. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  291. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/WHEEL +0 -0
  292. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/entry_points.txt +0 -0
  293. {oci_cli-3.68.0.dist-info → oci_cli-3.69.0.dist-info}/top_level.txt +0 -0
@@ -37,6 +37,12 @@ def work_request_error_group():
37
37
  pass
38
38
 
39
39
 
40
+ @click.command(cli_util.override('disaster_recovery.automatic_dr_configuration_group.command_name', 'automatic-dr-configuration'), cls=CommandGroupWithAlias, help="""The details of Automatic DR configuration.""")
41
+ @cli_util.help_option_group
42
+ def automatic_dr_configuration_group():
43
+ pass
44
+
45
+
40
46
  @click.command(cli_util.override('disaster_recovery.dr_plan_execution_group.command_name', 'dr-plan-execution'), cls=CommandGroupWithAlias, help="""The details of a DR plan execution.""")
41
47
  @cli_util.help_option_group
42
48
  def dr_plan_execution_group():
@@ -63,6 +69,7 @@ def dr_plan_group():
63
69
 
64
70
  disaster_recovery_root_group.add_command(dr_protection_group_group)
65
71
  disaster_recovery_root_group.add_command(work_request_error_group)
72
+ disaster_recovery_root_group.add_command(automatic_dr_configuration_group)
66
73
  disaster_recovery_root_group.add_command(dr_plan_execution_group)
67
74
  disaster_recovery_root_group.add_command(work_request_log_entry_group)
68
75
  disaster_recovery_root_group.add_command(work_request_group)
@@ -304,6 +311,91 @@ def change_dr_protection_group_compartment(ctx, from_json, wait_for_state, max_w
304
311
  cli_util.render_response(result, ctx)
305
312
 
306
313
 
314
+ @automatic_dr_configuration_group.command(name=cli_util.override('disaster_recovery.create_automatic_dr_configuration.command_name', 'create'), help=u"""Create a Automatic DR configuration. \n[Command Reference](createAutomaticDrConfiguration)""")
315
+ @cli_util.option('--display-name', required=True, help=u"""The display name of the Automatic DR configuration being created.
316
+
317
+ Example: `Automatic DR Configuration`""")
318
+ @cli_util.option('--dr-protection-group-id', required=True, help=u"""The OCID of the DR protection group to which this Automatic DR configuration belongs.
319
+
320
+ Example: `ocid1.drprotectiongroup.oc1..uniqueID`""")
321
+ @cli_util.option('--members', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of members for Automatic DR configuration.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
322
+ @cli_util.option('--default-switchover-dr-plan-id', help=u"""The unique id of a Switchover DR Plan.
323
+
324
+ Example: `ocid1.drplan.oc1..uniqueID`""")
325
+ @cli_util.option('--default-failover-dr-plan-id', help=u"""The unique id of a Failover DR Plan.
326
+
327
+ Example: `ocid1.drplan.oc1..uniqueID`""")
328
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
329
+
330
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
331
+ @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.
332
+
333
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
334
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "CANCELING", "CANCELED", "SUCCEEDED", "FAILED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
335
+ @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.""")
336
+ @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.""")
337
+ @json_skeleton_utils.get_cli_json_input_option({'members': {'module': 'disaster_recovery', 'class': 'list[CreateAutomaticDrConfigurationMemberDetails]'}, 'freeform-tags': {'module': 'disaster_recovery', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'disaster_recovery', 'class': 'dict(str, dict(str, object))'}})
338
+ @cli_util.help_option
339
+ @click.pass_context
340
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'members': {'module': 'disaster_recovery', 'class': 'list[CreateAutomaticDrConfigurationMemberDetails]'}, 'freeform-tags': {'module': 'disaster_recovery', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'disaster_recovery', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'disaster_recovery', 'class': 'AutomaticDrConfiguration'})
341
+ @cli_util.wrap_exceptions
342
+ def create_automatic_dr_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, dr_protection_group_id, members, default_switchover_dr_plan_id, default_failover_dr_plan_id, freeform_tags, defined_tags):
343
+
344
+ kwargs = {}
345
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
346
+
347
+ _details = {}
348
+ _details['displayName'] = display_name
349
+ _details['drProtectionGroupId'] = dr_protection_group_id
350
+ _details['members'] = cli_util.parse_json_parameter("members", members)
351
+
352
+ if default_switchover_dr_plan_id is not None:
353
+ _details['defaultSwitchoverDrPlanId'] = default_switchover_dr_plan_id
354
+
355
+ if default_failover_dr_plan_id is not None:
356
+ _details['defaultFailoverDrPlanId'] = default_failover_dr_plan_id
357
+
358
+ if freeform_tags is not None:
359
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
360
+
361
+ if defined_tags is not None:
362
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
363
+
364
+ client = cli_util.build_client('disaster_recovery', 'disaster_recovery', ctx)
365
+ result = client.create_automatic_dr_configuration(
366
+ create_automatic_dr_configuration_details=_details,
367
+ **kwargs
368
+ )
369
+ if wait_for_state:
370
+
371
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
372
+ try:
373
+ wait_period_kwargs = {}
374
+ if max_wait_seconds is not None:
375
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
376
+ if wait_interval_seconds is not None:
377
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
378
+ if 'opc-work-request-id' not in result.headers:
379
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
380
+ cli_util.render_response(result, ctx)
381
+ return
382
+
383
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
384
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
385
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
386
+ # If we fail, we should show an error, but we should still provide the information to the customer
387
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
388
+ cli_util.render_response(result, ctx)
389
+ sys.exit(2)
390
+ except Exception:
391
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
392
+ cli_util.render_response(result, ctx)
393
+ raise
394
+ else:
395
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
396
+ cli_util.render_response(result, ctx)
397
+
398
+
307
399
  @dr_plan_group.command(name=cli_util.override('disaster_recovery.create_dr_plan.command_name', 'create'), help=u"""Create a DR plan of the specified DR plan type. \n[Command Reference](createDrPlan)""")
308
400
  @cli_util.option('--display-name', required=True, help=u"""The display name of the DR plan being created.
309
401
 
@@ -1221,6 +1313,72 @@ def create_dr_protection_group(ctx, from_json, wait_for_state, max_wait_seconds,
1221
1313
  cli_util.render_response(result, ctx)
1222
1314
 
1223
1315
 
1316
+ @automatic_dr_configuration_group.command(name=cli_util.override('disaster_recovery.delete_automatic_dr_configuration.command_name', 'delete'), help=u"""Delete the automatic DR configuration identified by *automaticDrConfigurationId*. \n[Command Reference](deleteAutomaticDrConfiguration)""")
1317
+ @cli_util.option('--automatic-dr-configuration-id', required=True, help=u"""The OCID of the Automatic DR configuration.
1318
+
1319
+ Example: `ocid1.automaticDrConfiguration.oc1..uniqueID`""")
1320
+ @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.""")
1321
+ @cli_util.confirm_delete_option
1322
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "NEEDS_ATTENTION", "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.""")
1323
+ @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.""")
1324
+ @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.""")
1325
+ @json_skeleton_utils.get_cli_json_input_option({})
1326
+ @cli_util.help_option
1327
+ @click.pass_context
1328
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1329
+ @cli_util.wrap_exceptions
1330
+ def delete_automatic_dr_configuration(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, automatic_dr_configuration_id, if_match):
1331
+
1332
+ if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0:
1333
+ raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string')
1334
+
1335
+ kwargs = {}
1336
+ if if_match is not None:
1337
+ kwargs['if_match'] = if_match
1338
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1339
+ client = cli_util.build_client('disaster_recovery', 'disaster_recovery', ctx)
1340
+ result = client.delete_automatic_dr_configuration(
1341
+ automatic_dr_configuration_id=automatic_dr_configuration_id,
1342
+ **kwargs
1343
+ )
1344
+ if wait_for_state:
1345
+
1346
+ if hasattr(client, 'get_automatic_dr_configuration') and callable(getattr(client, 'get_automatic_dr_configuration')):
1347
+ try:
1348
+ wait_period_kwargs = {}
1349
+ if max_wait_seconds is not None:
1350
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1351
+ if wait_interval_seconds is not None:
1352
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1353
+
1354
+ click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
1355
+ oci.wait_until(client, client.get_automatic_dr_configuration(automatic_dr_configuration_id), 'lifecycle_state', wait_for_state, succeed_on_not_found=True, **wait_period_kwargs)
1356
+ except oci.exceptions.ServiceError as e:
1357
+ # We make an initial service call so we can pass the result to oci.wait_until(), however if we are waiting on the
1358
+ # outcome of a delete operation it is possible that the resource is already gone and so the initial service call
1359
+ # will result in an exception that reflects a HTTP 404. In this case, we can exit with success (rather than raising
1360
+ # the exception) since this would have been the behaviour in the waiter anyway (as for delete we provide the argument
1361
+ # succeed_on_not_found=True to the waiter).
1362
+ #
1363
+ # Any non-404 should still result in the exception being thrown.
1364
+ if e.status == 404:
1365
+ pass
1366
+ else:
1367
+ raise
1368
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1369
+ # If we fail, we should show an error, but we should still provide the information to the customer
1370
+ click.echo('Failed to wait until the resource entered the specified state. Please retrieve the resource to find its current state', file=sys.stderr)
1371
+ cli_util.render_response(result, ctx)
1372
+ sys.exit(2)
1373
+ except Exception:
1374
+ click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
1375
+ cli_util.render_response(result, ctx)
1376
+ raise
1377
+ else:
1378
+ click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
1379
+ cli_util.render_response(result, ctx)
1380
+
1381
+
1224
1382
  @dr_plan_group.command(name=cli_util.override('disaster_recovery.delete_dr_plan.command_name', 'delete'), help=u"""Delete the DR plan identified by *drPlanId*. \n[Command Reference](deleteDrPlan)""")
1225
1383
  @cli_util.option('--dr-plan-id', required=True, help=u"""The OCID of the DR plan.
1226
1384
 
@@ -1529,6 +1687,30 @@ def disassociate_dr_protection_group_disassociate_dr_protection_group_default_de
1529
1687
  cli_util.render_response(result, ctx)
1530
1688
 
1531
1689
 
1690
+ @automatic_dr_configuration_group.command(name=cli_util.override('disaster_recovery.get_automatic_dr_configuration.command_name', 'get'), help=u"""Get details for the Automatic DR configuration identified by *automaticDrConfigurationId*. \n[Command Reference](getAutomaticDrConfiguration)""")
1691
+ @cli_util.option('--automatic-dr-configuration-id', required=True, help=u"""The OCID of the Automatic DR configuration.
1692
+
1693
+ Example: `ocid1.automaticDrConfiguration.oc1..uniqueID`""")
1694
+ @json_skeleton_utils.get_cli_json_input_option({})
1695
+ @cli_util.help_option
1696
+ @click.pass_context
1697
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'disaster_recovery', 'class': 'AutomaticDrConfiguration'})
1698
+ @cli_util.wrap_exceptions
1699
+ def get_automatic_dr_configuration(ctx, from_json, automatic_dr_configuration_id):
1700
+
1701
+ if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0:
1702
+ raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string')
1703
+
1704
+ kwargs = {}
1705
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1706
+ client = cli_util.build_client('disaster_recovery', 'disaster_recovery', ctx)
1707
+ result = client.get_automatic_dr_configuration(
1708
+ automatic_dr_configuration_id=automatic_dr_configuration_id,
1709
+ **kwargs
1710
+ )
1711
+ cli_util.render_response(result, ctx)
1712
+
1713
+
1532
1714
  @dr_plan_group.command(name=cli_util.override('disaster_recovery.get_dr_plan.command_name', 'get'), help=u"""Get details for the DR plan identified by *drPlanId*. \n[Command Reference](getDrPlan)""")
1533
1715
  @cli_util.option('--dr-plan-id', required=True, help=u"""The OCID of the DR plan.
1534
1716
 
@@ -1696,6 +1878,86 @@ def ignore_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, w
1696
1878
  cli_util.render_response(result, ctx)
1697
1879
 
1698
1880
 
1881
+ @automatic_dr_configuration_group.command(name=cli_util.override('disaster_recovery.list_automatic_dr_configurations.command_name', 'list'), help=u"""Get a summary list of automatic DR configurations for a DR protection group. \n[Command Reference](listAutomaticDrConfigurations)""")
1882
+ @cli_util.option('--dr-protection-group-id', required=True, help=u"""The OCID of the DR protection group. Mandatory query param.
1883
+
1884
+ Example: `ocid1.drprotectiongroup.oc1..uniqueID`""")
1885
+ @cli_util.option('--automatic-dr-configuration-id', help=u"""The OCID of the automatic DR configuration.
1886
+
1887
+ Example: `ocid1.automaticDrConfiguration.oc1..uniqueID`""")
1888
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only Automatic DR configurations that match the given lifecycle state.""")
1889
+ @cli_util.option('--lifecycle-state-not-equal-to', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "INACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only Automatic DR configurations that do not match the given lifecycle state.""")
1890
+ @cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name.
1891
+
1892
+ Example: `MyResourceDisplayName`""")
1893
+ @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. 1 is the minimum, 1000 is the maximum.
1894
+
1895
+ For important details about how pagination works, see [List Pagination].
1896
+
1897
+ Example: `100`""")
1898
+ @cli_util.option('--page', help=u"""For list pagination. The value of the `opc-next-page` response header from the previous \"List\" call.
1899
+
1900
+ For important details about how pagination works, see [List Pagination].""")
1901
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'asc' or 'desc'.""")
1902
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified timeCreated is default.
1903
+
1904
+ Example: `MyResourceDisplayName`""")
1905
+ @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.""")
1906
+ @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.""")
1907
+ @json_skeleton_utils.get_cli_json_input_option({})
1908
+ @cli_util.help_option
1909
+ @click.pass_context
1910
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'disaster_recovery', 'class': 'AutomaticDrConfigurationCollection'})
1911
+ @cli_util.wrap_exceptions
1912
+ def list_automatic_dr_configurations(ctx, from_json, all_pages, page_size, dr_protection_group_id, automatic_dr_configuration_id, lifecycle_state, lifecycle_state_not_equal_to, display_name, limit, page, sort_order, sort_by):
1913
+
1914
+ if all_pages and limit:
1915
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1916
+
1917
+ kwargs = {}
1918
+ if automatic_dr_configuration_id is not None:
1919
+ kwargs['automatic_dr_configuration_id'] = automatic_dr_configuration_id
1920
+ if lifecycle_state is not None:
1921
+ kwargs['lifecycle_state'] = lifecycle_state
1922
+ if lifecycle_state_not_equal_to is not None:
1923
+ kwargs['lifecycle_state_not_equal_to'] = lifecycle_state_not_equal_to
1924
+ if display_name is not None:
1925
+ kwargs['display_name'] = display_name
1926
+ if limit is not None:
1927
+ kwargs['limit'] = limit
1928
+ if page is not None:
1929
+ kwargs['page'] = page
1930
+ if sort_order is not None:
1931
+ kwargs['sort_order'] = sort_order
1932
+ if sort_by is not None:
1933
+ kwargs['sort_by'] = sort_by
1934
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1935
+ client = cli_util.build_client('disaster_recovery', 'disaster_recovery', ctx)
1936
+ if all_pages:
1937
+ if page_size:
1938
+ kwargs['limit'] = page_size
1939
+
1940
+ result = cli_util.list_call_get_all_results(
1941
+ client.list_automatic_dr_configurations,
1942
+ dr_protection_group_id=dr_protection_group_id,
1943
+ **kwargs
1944
+ )
1945
+ elif limit is not None:
1946
+ result = cli_util.list_call_get_up_to_limit(
1947
+ client.list_automatic_dr_configurations,
1948
+ limit,
1949
+ page_size,
1950
+ dr_protection_group_id=dr_protection_group_id,
1951
+ **kwargs
1952
+ )
1953
+ else:
1954
+ result = client.list_automatic_dr_configurations(
1955
+ dr_protection_group_id=dr_protection_group_id,
1956
+ **kwargs
1957
+ )
1958
+ cli_util.render_response(result, ctx)
1959
+
1960
+
1699
1961
  @dr_plan_execution_group.command(name=cli_util.override('disaster_recovery.list_dr_plan_executions.command_name', 'list'), help=u"""Get a summary list of all DR plan executions for a DR protection group. \n[Command Reference](listDrPlanExecutions)""")
1700
1962
  @cli_util.option('--dr-protection-group-id', required=True, help=u"""The OCID of the DR protection group. Mandatory query param.
1701
1963
 
@@ -1880,7 +2142,7 @@ For important details about how pagination works, see [List Pagination].""")
1880
2142
 
1881
2143
  Example: `MyResourceDisplayName`""")
1882
2144
  @cli_util.option('--role', type=custom_types.CliCaseInsensitiveChoice(["PRIMARY", "STANDBY", "UNCONFIGURED"]), help=u"""The DR protection group Role.""")
1883
- @cli_util.option('--lifecycle-sub-state', type=custom_types.CliCaseInsensitiveChoice(["DR_DRILL_IN_PROGRESS"]), help=u"""A filter to return only DR protection groups that match the given lifecycle sub-state.""")
2145
+ @cli_util.option('--lifecycle-sub-state', type=custom_types.CliCaseInsensitiveChoice(["DR_DRILL_IN_PROGRESS", "DR_PLAN_EXECUTION_IN_PROGRESS", "AUTOMATIC_DR_PLAN_EXECUTION_IN_PROGRESS"]), help=u"""A filter to return only DR protection groups that match the given lifecycle sub-state.""")
1884
2146
  @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.""")
1885
2147
  @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.""")
1886
2148
  @json_skeleton_utils.get_cli_json_input_option({})
@@ -2470,6 +2732,108 @@ def retry_dr_plan_execution(ctx, from_json, wait_for_state, max_wait_seconds, wa
2470
2732
  cli_util.render_response(result, ctx)
2471
2733
 
2472
2734
 
2735
+ @automatic_dr_configuration_group.command(name=cli_util.override('disaster_recovery.update_automatic_dr_configuration.command_name', 'update'), help=u"""Update the Automatic DR configuration identified by *automaticDrConfigurationId*. \n[Command Reference](updateAutomaticDrConfiguration)""")
2736
+ @cli_util.option('--automatic-dr-configuration-id', required=True, help=u"""The OCID of the Automatic DR configuration.
2737
+
2738
+ Example: `ocid1.automaticDrConfiguration.oc1..uniqueID`""")
2739
+ @cli_util.option('--display-name', help=u"""The display name of the Automatic DR configuration being updated.
2740
+
2741
+ Example: `Automatic DR Configuration`""")
2742
+ @cli_util.option('--members', type=custom_types.CLI_COMPLEX_TYPE, help=u"""A list of members for Automatic DR configuration.
2743
+
2744
+ This option is a JSON list with items of type UpdateAutomaticDrConfigurationMemberDetails. For documentation on UpdateAutomaticDrConfigurationMemberDetails please see our API reference: https://docs.cloud.oracle.com/api/#/en/disasterrecovery/20220125/datatypes/UpdateAutomaticDrConfigurationMemberDetails.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
2745
+ @cli_util.option('--default-switchover-dr-plan-id', help=u"""The unique id of a Switchover DR Plan.
2746
+
2747
+ Example: `ocid1.drplan.oc1..uniqueID`""")
2748
+ @cli_util.option('--default-failover-dr-plan-id', help=u"""The unique id of a Failover DR Plan.
2749
+
2750
+ Example: `ocid1.drplan.oc1..uniqueID`""")
2751
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
2752
+
2753
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
2754
+ @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.
2755
+
2756
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
2757
+ @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.""")
2758
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
2759
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "CANCELING", "CANCELED", "SUCCEEDED", "FAILED", "NEEDS_ATTENTION"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
2760
+ @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.""")
2761
+ @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.""")
2762
+ @json_skeleton_utils.get_cli_json_input_option({'members': {'module': 'disaster_recovery', 'class': 'list[UpdateAutomaticDrConfigurationMemberDetails]'}, 'freeform-tags': {'module': 'disaster_recovery', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'disaster_recovery', 'class': 'dict(str, dict(str, object))'}})
2763
+ @cli_util.help_option
2764
+ @click.pass_context
2765
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'members': {'module': 'disaster_recovery', 'class': 'list[UpdateAutomaticDrConfigurationMemberDetails]'}, 'freeform-tags': {'module': 'disaster_recovery', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'disaster_recovery', 'class': 'dict(str, dict(str, object))'}})
2766
+ @cli_util.wrap_exceptions
2767
+ def update_automatic_dr_configuration(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, automatic_dr_configuration_id, display_name, members, default_switchover_dr_plan_id, default_failover_dr_plan_id, freeform_tags, defined_tags, if_match):
2768
+
2769
+ if isinstance(automatic_dr_configuration_id, six.string_types) and len(automatic_dr_configuration_id.strip()) == 0:
2770
+ raise click.UsageError('Parameter --automatic-dr-configuration-id cannot be whitespace or empty string')
2771
+ if not force:
2772
+ if members or freeform_tags or defined_tags:
2773
+ if not click.confirm("WARNING: Updates to members and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
2774
+ ctx.abort()
2775
+
2776
+ kwargs = {}
2777
+ if if_match is not None:
2778
+ kwargs['if_match'] = if_match
2779
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
2780
+
2781
+ _details = {}
2782
+
2783
+ if display_name is not None:
2784
+ _details['displayName'] = display_name
2785
+
2786
+ if members is not None:
2787
+ _details['members'] = cli_util.parse_json_parameter("members", members)
2788
+
2789
+ if default_switchover_dr_plan_id is not None:
2790
+ _details['defaultSwitchoverDrPlanId'] = default_switchover_dr_plan_id
2791
+
2792
+ if default_failover_dr_plan_id is not None:
2793
+ _details['defaultFailoverDrPlanId'] = default_failover_dr_plan_id
2794
+
2795
+ if freeform_tags is not None:
2796
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
2797
+
2798
+ if defined_tags is not None:
2799
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
2800
+
2801
+ client = cli_util.build_client('disaster_recovery', 'disaster_recovery', ctx)
2802
+ result = client.update_automatic_dr_configuration(
2803
+ automatic_dr_configuration_id=automatic_dr_configuration_id,
2804
+ update_automatic_dr_configuration_details=_details,
2805
+ **kwargs
2806
+ )
2807
+ if wait_for_state:
2808
+
2809
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
2810
+ try:
2811
+ wait_period_kwargs = {}
2812
+ if max_wait_seconds is not None:
2813
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
2814
+ if wait_interval_seconds is not None:
2815
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
2816
+ if 'opc-work-request-id' not in result.headers:
2817
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
2818
+ cli_util.render_response(result, ctx)
2819
+ return
2820
+
2821
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
2822
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
2823
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
2824
+ # If we fail, we should show an error, but we should still provide the information to the customer
2825
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
2826
+ cli_util.render_response(result, ctx)
2827
+ sys.exit(2)
2828
+ except Exception:
2829
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
2830
+ cli_util.render_response(result, ctx)
2831
+ raise
2832
+ else:
2833
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
2834
+ cli_util.render_response(result, ctx)
2835
+
2836
+
2473
2837
  @dr_plan_group.command(name=cli_util.override('disaster_recovery.update_dr_plan.command_name', 'update'), help=u"""Update the DR plan identified by *drPlanId*. \n[Command Reference](updateDrPlan)""")
2474
2838
  @cli_util.option('--dr-plan-id', required=True, help=u"""The OCID of the DR plan.
2475
2839
 
@@ -2564,7 +2928,7 @@ def update_dr_plan(ctx, from_json, force, wait_for_state, max_wait_seconds, wait
2564
2928
  @cli_util.option('--dr-plan-execution-id', required=True, help=u"""The OCID of the DR plan execution.
2565
2929
 
2566
2930
  Example: `ocid1.drplanexecution.oc1..uniqueID`""")
2567
- @cli_util.option('--display-name', help=u"""The display name of the DR protection group to update.
2931
+ @cli_util.option('--display-name', help=u"""The display name of the DR plan execution to update.
2568
2932
 
2569
2933
  Example: `EBS IAD Group`""")
2570
2934
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only.
@@ -1124,6 +1124,9 @@ Example: `10.0.3.3`""")
1124
1124
  @cli_util.option('--kerberos', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1125
1125
  @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]. Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1126
1126
  @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]. Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1127
+ @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.
1128
+
1129
+ Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"enforce\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1127
1130
  @cli_util.option('--locks', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Locks associated with this resource.
1128
1131
 
1129
1132
  This option is a JSON list with items of type ResourceLock. For documentation on ResourceLock please see our API reference: https://docs.cloud.oracle.com/api/#/en/filestorage/20171215/datatypes/ResourceLock.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1132,12 +1135,12 @@ This option is a JSON list with items of type ResourceLock. For documentation o
1132
1135
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING"]), 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.""")
1133
1136
  @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.""")
1134
1137
  @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.""")
1135
- @json_skeleton_utils.get_cli_json_input_option({'ldap-idmap': {'module': 'file_storage', 'class': 'CreateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'CreateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'locks': {'module': 'file_storage', 'class': 'list[ResourceLock]'}})
1138
+ @json_skeleton_utils.get_cli_json_input_option({'ldap-idmap': {'module': 'file_storage', 'class': 'CreateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'CreateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'locks': {'module': 'file_storage', 'class': 'list[ResourceLock]'}})
1136
1139
  @cli_util.help_option
1137
1140
  @click.pass_context
1138
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ldap-idmap': {'module': 'file_storage', 'class': 'CreateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'CreateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'locks': {'module': 'file_storage', 'class': 'list[ResourceLock]'}}, output_type={'module': 'file_storage', 'class': 'MountTarget'})
1141
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ldap-idmap': {'module': 'file_storage', 'class': 'CreateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'CreateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'locks': {'module': 'file_storage', 'class': 'list[ResourceLock]'}}, output_type={'module': 'file_storage', 'class': 'MountTarget'})
1139
1142
  @cli_util.wrap_exceptions
1140
- def create_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, availability_domain, compartment_id, subnet_id, display_name, hostname_label, ip_address, idmap_type, ldap_idmap, nsg_ids, kerberos, freeform_tags, defined_tags, locks, requested_throughput, is_lock_override):
1143
+ def create_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, availability_domain, compartment_id, subnet_id, display_name, hostname_label, ip_address, idmap_type, ldap_idmap, nsg_ids, kerberos, freeform_tags, defined_tags, security_attributes, locks, requested_throughput, is_lock_override):
1141
1144
 
1142
1145
  kwargs = {}
1143
1146
  if is_lock_override is not None:
@@ -1176,6 +1179,9 @@ def create_mount_target(ctx, from_json, wait_for_state, max_wait_seconds, wait_i
1176
1179
  if defined_tags is not None:
1177
1180
  _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1178
1181
 
1182
+ if security_attributes is not None:
1183
+ _details['securityAttributes'] = cli_util.parse_json_parameter("security_attributes", security_attributes)
1184
+
1179
1185
  if locks is not None:
1180
1186
  _details['locks'] = cli_util.parse_json_parameter("locks", locks)
1181
1187
 
@@ -4244,24 +4250,27 @@ Example: `My mount target`""")
4244
4250
  @cli_util.option('--kerberos', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4245
4251
  @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]. Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4246
4252
  @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]. Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4253
+ @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.
4254
+
4255
+ Example: `{\"Oracle-ZPR\": {\"MaxEgressCount\": {\"value\": \"42\", \"mode\": \"enforce\"}}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
4247
4256
  @cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
4248
4257
  @cli_util.option('--is-lock-override', type=click.BOOL, help=u"""Whether to override locks (if any exist).""")
4249
4258
  @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
4250
4259
  @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "DELETING", "DELETED", "FAILED", "UPDATING"]), 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.""")
4251
4260
  @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.""")
4252
4261
  @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.""")
4253
- @json_skeleton_utils.get_cli_json_input_option({'ldap-idmap': {'module': 'file_storage', 'class': 'UpdateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'UpdateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}})
4262
+ @json_skeleton_utils.get_cli_json_input_option({'ldap-idmap': {'module': 'file_storage', 'class': 'UpdateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'UpdateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}})
4254
4263
  @cli_util.help_option
4255
4264
  @click.pass_context
4256
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ldap-idmap': {'module': 'file_storage', 'class': 'UpdateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'UpdateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'file_storage', 'class': 'MountTarget'})
4265
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ldap-idmap': {'module': 'file_storage', 'class': 'UpdateLdapIdmapDetails'}, 'nsg-ids': {'module': 'file_storage', 'class': 'list[string]'}, 'kerberos': {'module': 'file_storage', 'class': 'UpdateKerberosDetails'}, 'freeform-tags': {'module': 'file_storage', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}, 'security-attributes': {'module': 'file_storage', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'file_storage', 'class': 'MountTarget'})
4257
4266
  @cli_util.wrap_exceptions
4258
- def update_mount_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, display_name, idmap_type, ldap_idmap, nsg_ids, kerberos, freeform_tags, defined_tags, if_match, is_lock_override):
4267
+ def update_mount_target(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, mount_target_id, display_name, idmap_type, ldap_idmap, nsg_ids, kerberos, freeform_tags, defined_tags, security_attributes, if_match, is_lock_override):
4259
4268
 
4260
4269
  if isinstance(mount_target_id, six.string_types) and len(mount_target_id.strip()) == 0:
4261
4270
  raise click.UsageError('Parameter --mount-target-id cannot be whitespace or empty string')
4262
4271
  if not force:
4263
- if ldap_idmap or nsg_ids or kerberos or freeform_tags or defined_tags:
4264
- if not click.confirm("WARNING: Updates to ldap-idmap and nsg-ids and kerberos and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
4272
+ if ldap_idmap or nsg_ids or kerberos or freeform_tags or defined_tags or security_attributes:
4273
+ if not click.confirm("WARNING: Updates to ldap-idmap and nsg-ids and kerberos and freeform-tags and defined-tags and security-attributes will replace any existing values. Are you sure you want to continue?"):
4265
4274
  ctx.abort()
4266
4275
 
4267
4276
  kwargs = {}
@@ -4294,6 +4303,9 @@ def update_mount_target(ctx, from_json, force, wait_for_state, max_wait_seconds,
4294
4303
  if defined_tags is not None:
4295
4304
  _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
4296
4305
 
4306
+ if security_attributes is not None:
4307
+ _details['securityAttributes'] = cli_util.parse_json_parameter("security_attributes", security_attributes)
4308
+
4297
4309
  client = cli_util.build_client('file_storage', 'file_storage', ctx)
4298
4310
  result = client.update_mount_target(
4299
4311
  mount_target_id=mount_target_id,
@@ -1119,7 +1119,7 @@ def create_fsu_collection(ctx, from_json, wait_for_state, max_wait_seconds, wait
1119
1119
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_db_fsu_collection_details.command_name', 'create-fsu-collection-create-db-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1120
1120
  @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1121
1121
  @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1122
- @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB_11204", "DB_121", "DB_122", "DB_18", "DB_19", "DB_23"]), help=u"""Database Major Version of targets to be included in the Exadata Fleet Update Collection. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions Only Database targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1122
+ @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB_11204", "DB_121", "DB_122", "DB_18", "DB_19", "DB_23", "DB_26"]), help=u"""Database Major Version of targets to be included in the Exadata Fleet Update Collection. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions Only Database targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1123
1123
  @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1124
1124
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1125
1125
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1194,7 +1194,7 @@ def create_fsu_collection_create_db_fsu_collection_details(ctx, from_json, wait_
1194
1194
  @fsu_collection_group.command(name=cli_util.override('fleet_software_update.create_fsu_collection_create_gi_fsu_collection_details.command_name', 'create-fsu-collection-create-gi-fsu-collection-details'), help=u"""Creates a new Exadata Fleet Update Collection. \n[Command Reference](createFsuCollection)""")
1195
1195
  @cli_util.option('--service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1196
1196
  @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the Compartment.""")
1197
- @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["GI_18", "GI_19", "GI_23"]), help=u"""Grid Infrastructure Major Version of targets to be included in the Exadata Fleet Update Collection. Only GI targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1197
+ @cli_util.option('--source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["GI_18", "GI_19", "GI_23", "GI_26"]), help=u"""Grid Infrastructure Major Version of targets to be included in the Exadata Fleet Update Collection. Only GI targets that match the version specified in this value would be added to the Exadata Fleet Update Collection.""")
1198
1198
  @cli_util.option('--display-name', help=u"""The user-friendly name for the Exadata Fleet Update Collection.""")
1199
1199
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1200
1200
  @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: `{\"foo-namespace\": {\"bar-key\": \"value\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1763,7 +1763,7 @@ def create_fsu_discovery(ctx, from_json, wait_for_state, max_wait_seconds, wait_
1763
1763
  @fsu_discovery_group.command(name=cli_util.override('fleet_software_update.create_fsu_discovery_gi_discovery_details.command_name', 'create-fsu-discovery-gi-discovery-details'), help=u"""Creates a new Exadata Fleet Update Discovery. \n[Command Reference](createFsuDiscovery)""")
1764
1764
  @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1765
1765
  @cli_util.option('--details-service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1766
- @cli_util.option('--details-source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["GI_18", "GI_19", "GI_23"]), help=u"""Grid Infrastructure Major Version of targets to be included in the Exadata Fleet Update Discovery results. Only GI targets that match the version specified in this value would be added to the Exadata Fleet Update Discovery results.""")
1766
+ @cli_util.option('--details-source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["GI_18", "GI_19", "GI_23", "GI_26"]), help=u"""Grid Infrastructure Major Version of targets to be included in the Exadata Fleet Update Discovery results. Only GI targets that match the version specified in this value would be added to the Exadata Fleet Update Discovery results.""")
1767
1767
  @cli_util.option('--details-criteria', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1768
1768
  @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection display name.""")
1769
1769
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
@@ -1837,7 +1837,7 @@ def create_fsu_discovery_gi_discovery_details(ctx, from_json, wait_for_state, ma
1837
1837
  @fsu_discovery_group.command(name=cli_util.override('fleet_software_update.create_fsu_discovery_db_discovery_details.command_name', 'create-fsu-discovery-db-discovery-details'), help=u"""Creates a new Exadata Fleet Update Discovery. \n[Command Reference](createFsuDiscovery)""")
1838
1838
  @cli_util.option('--compartment-id', required=True, help=u"""Compartment Identifier.""")
1839
1839
  @cli_util.option('--details-service-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["EXACS", "EXACC"]), help=u"""Exadata service type for the target resource members.""")
1840
- @cli_util.option('--details-source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB_11204", "DB_121", "DB_122", "DB_18", "DB_19", "DB_23"]), help=u"""Database Major Version of targets to be included in the Exadata Fleet Update Discovery results. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions Only Database targets that match the version specified in this value would be added to the Exadata Fleet Update Discovery results.""")
1840
+ @cli_util.option('--details-source-major-version', required=True, type=custom_types.CliCaseInsensitiveChoice(["DB_11204", "DB_121", "DB_122", "DB_18", "DB_19", "DB_23", "DB_26"]), help=u"""Database Major Version of targets to be included in the Exadata Fleet Update Discovery results. https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/DbVersionSummary/ListDbVersions Only Database targets that match the version specified in this value would be added to the Exadata Fleet Update Discovery results.""")
1841
1841
  @cli_util.option('--details-criteria', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1842
1842
  @cli_util.option('--display-name', help=u"""Exadata Fleet Update Collection display name.""")
1843
1843
  @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: `{\"bar-key\": \"value\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)