oci-cli 3.73.1__py3-none-any.whl → 3.73.2__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 (650) hide show
  1. oci_cli/bin/desktops.psm1 +2 -2
  2. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/create.txt +193 -0
  3. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/delete.txt +162 -0
  4. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/get.txt +124 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/{gdd/work-request → db/advanced-cluster-file-system}/list.txt +33 -25
  6. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/mount.txt +159 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/unmount.txt +159 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system/update.txt +202 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/db/advanced-cluster-file-system.txt +26 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/db/application-vip/create.txt +4 -4
  11. oci_cli/help_text_producer/data_files/text/cmdref/db/application-vip/delete.txt +4 -4
  12. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/add.txt +4 -4
  13. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/change-compartment.txt +4 -4
  14. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/change-dataguard-role.txt +4 -4
  15. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/convert-standby.txt +4 -4
  16. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-aws-encryption-key-details.txt +10 -9
  17. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-azure-encryption-key-details.txt +10 -9
  18. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-details.txt +10 -9
  19. 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 +10 -9
  20. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-external-hsm-encryption-details.txt +10 -9
  21. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-google-cloud-provider-encryption-key-details.txt +10 -9
  22. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +10 -9
  23. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/edit-autonomous-container-database-dataguard.txt +4 -4
  24. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/failover-autonomous-container-database-dataguard.txt +4 -4
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/reinstate-autonomous-container-database-dataguard.txt +4 -4
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/restart.txt +4 -4
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/rotate-key.txt +4 -4
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/switchover-autonomous-container-database-dataguard.txt +4 -4
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/terminate.txt +4 -4
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/update.txt +10 -9
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/create.txt +4 -4
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/failover.txt +4 -4
  33. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/migrate.txt +4 -4
  34. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/reinstate.txt +4 -4
  35. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/switchover.txt +4 -4
  36. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-dataguard/update.txt +4 -4
  37. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-autonomous-database-subscription.txt +4 -4
  38. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-compartment.txt +4 -4
  39. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-disaster-recovery-configuration.txt +4 -4
  40. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-key.txt +4 -4
  41. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-saas-admin-user.txt +4 -4
  42. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-adb-cross-region-data-guard-details.txt +21 -19
  43. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-create-cross-region-disaster-recovery-details.txt +21 -19
  44. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-gcp-key-details.txt +21 -19
  45. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-undelete-autonomous-database-details.txt +21 -19
  46. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-cross-tenancy-disaster-recovery-details.txt +21 -19
  47. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-id.txt +21 -19
  48. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-timestamp.txt +21 -19
  49. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-clone.txt +21 -19
  50. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +21 -19
  51. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create.txt +21 -19
  52. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/deregister.txt +4 -4
  53. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/register.txt +4 -4
  54. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/delete.txt +4 -4
  55. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-autonomous-database-management.txt +4 -4
  56. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-operations-insights.txt +4 -4
  57. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-autonomous-database-management.txt +4 -4
  58. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-operations-insights.txt +4 -4
  59. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/fail-over.txt +4 -4
  60. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/import-transportable-tablespace.txt +4 -4
  61. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/manual-refresh.txt +4 -4
  62. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restart.txt +4 -4
  63. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restore.txt +4 -4
  64. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/rotate-key.txt +4 -4
  65. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/shrink.txt +4 -4
  66. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/start.txt +4 -4
  67. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/stop.txt +4 -4
  68. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/switchover.txt +4 -4
  69. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update-autonomous-database-gcp-key-details.txt +21 -19
  70. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update.txt +21 -19
  71. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/create.txt +1 -1
  72. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/delete.txt +4 -4
  73. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/update.txt +1 -1
  74. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/change-compartment.txt +4 -4
  75. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/create.txt +4 -4
  76. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/delete.txt +4 -4
  77. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/update.txt +4 -4
  78. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate-regional-wallet.txt +4 -4
  79. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate.txt +4 -4
  80. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/change-compartment.txt +4 -4
  81. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/launch.txt +4 -4
  82. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/rotate-ords-certs.txt +4 -4
  83. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/rotate-ssl-certs.txt +4 -4
  84. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/terminate.txt +4 -4
  85. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/update.txt +4 -4
  86. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/change-compartment.txt +4 -4
  87. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/create.txt +4 -4
  88. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/delete.txt +4 -4
  89. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/rotate-autonomous-vm-cluster-ords-certs.txt +4 -4
  90. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/rotate-autonomous-vm-cluster-ssl-certs.txt +4 -4
  91. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-vm-cluster/update.txt +4 -4
  92. oci_cli/help_text_producer/data_files/text/cmdref/db/backup/cancel.txt +4 -4
  93. oci_cli/help_text_producer/data_files/text/cmdref/db/backup/create.txt +1 -1
  94. oci_cli/help_text_producer/data_files/text/cmdref/db/backup/delete.txt +4 -4
  95. oci_cli/help_text_producer/data_files/text/cmdref/db/backup/update.txt +1 -1
  96. oci_cli/help_text_producer/data_files/text/cmdref/db/backup-destination/change-compartment.txt +4 -4
  97. oci_cli/help_text_producer/data_files/text/cmdref/db/backup-destination/create-nfs-details.txt +1 -1
  98. oci_cli/help_text_producer/data_files/text/cmdref/db/backup-destination/create-recovery-appliance-details.txt +1 -1
  99. oci_cli/help_text_producer/data_files/text/cmdref/db/backup-destination/delete.txt +1 -1
  100. oci_cli/help_text_producer/data_files/text/cmdref/db/backup-destination/update.txt +1 -1
  101. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/change-cloud-autonomous-vm-cluster-subscription.txt +4 -4
  102. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/change-compartment.txt +4 -4
  103. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/create.txt +4 -4
  104. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/delete.txt +4 -4
  105. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/register-cloud-autonomous-vm-cluster-pkcs.txt +4 -4
  106. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/rotate-cloud-autonomous-vm-cluster-ords-certs.txt +4 -4
  107. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/rotate-cloud-autonomous-vm-cluster-ssl-certs.txt +4 -4
  108. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/unregister-cloud-autonomous-vm-cluster-pkcs.txt +4 -4
  109. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/update.txt +4 -4
  110. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/add-storage.txt +4 -4
  111. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/change-cloud-exadata-infrastructure-subscription.txt +4 -4
  112. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/change-compartment.txt +4 -4
  113. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/configure-exascale.txt +8 -4
  114. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +10 -9
  115. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/delete.txt +4 -4
  116. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/update.txt +10 -9
  117. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/add.txt +4 -4
  118. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/change-cloud-vm-cluster-subscription.txt +4 -4
  119. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/change-compartment.txt +4 -4
  120. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +32 -9
  121. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/delete.txt +4 -4
  122. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/register-cloud-vm-cluster-pkcs.txt +4 -4
  123. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/remove.txt +4 -4
  124. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/unregister-cloud-vm-cluster-pkcs.txt +4 -4
  125. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/update-exadata-iorm-config.txt +6 -5
  126. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/update.txt +20 -9
  127. oci_cli/help_text_producer/data_files/text/cmdref/db/console-connection/create.txt +1 -1
  128. oci_cli/help_text_producer/data_files/text/cmdref/db/console-connection/delete.txt +4 -4
  129. oci_cli/help_text_producer/data_files/text/cmdref/db/console-connection/update.txt +1 -1
  130. oci_cli/help_text_producer/data_files/text/cmdref/db/console-history/create.txt +4 -4
  131. oci_cli/help_text_producer/data_files/text/cmdref/db/console-history/delete.txt +4 -4
  132. oci_cli/help_text_producer/data_files/text/cmdref/db/console-history/update.txt +4 -4
  133. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-aws-encryption-key-details.txt +4 -4
  134. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-azure-encryption-key-details.txt +4 -4
  135. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-external-hsm-encryption-details.txt +4 -4
  136. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-google-cloud-provider-encryption-key-details.txt +4 -4
  137. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/failover.txt +4 -4
  138. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/migrate-to-multiple-standby-model.txt +4 -4
  139. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/reinstate.txt +4 -4
  140. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/switchover.txt +4 -4
  141. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/update.txt +4 -4
  142. oci_cli/help_text_producer/data_files/text/cmdref/db/database/change-encryption-key-location-aws-encryption-key-details.txt +4 -4
  143. oci_cli/help_text_producer/data_files/text/cmdref/db/database/change-encryption-key-location-azure-encryption-key-details.txt +4 -4
  144. oci_cli/help_text_producer/data_files/text/cmdref/db/database/change-encryption-key-location-google-cloud-provider-encryption-key-details.txt +4 -4
  145. oci_cli/help_text_producer/data_files/text/cmdref/db/database/change-key-store-type.txt +4 -4
  146. oci_cli/help_text_producer/data_files/text/cmdref/db/database/change-to-external-hsm-key-location.txt +4 -4
  147. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-standby-database-type.txt +4 -4
  148. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-to-new-pdb-precheck.txt +4 -4
  149. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-to-new-pdb.txt +4 -4
  150. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-to-pdb-sync-rollback.txt +4 -4
  151. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-to-pdb-sync.txt +4 -4
  152. oci_cli/help_text_producer/data_files/text/cmdref/db/database/convert-to-standalone.txt +4 -4
  153. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-database-from-database.txt +4 -4
  154. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-stand-by-database-details.txt +4 -4
  155. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-from-backup.txt +4 -4
  156. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-backup.txt +4 -4
  157. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-database.txt +4 -4
  158. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-standby-database.txt +4 -4
  159. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create.txt +4 -4
  160. oci_cli/help_text_producer/data_files/text/cmdref/db/database/disable-database-management.txt +4 -4
  161. oci_cli/help_text_producer/data_files/text/cmdref/db/database/enable-database-management.txt +4 -4
  162. oci_cli/help_text_producer/data_files/text/cmdref/db/database/failover-data-guard.txt +4 -4
  163. oci_cli/help_text_producer/data_files/text/cmdref/db/database/migrate-vault-key.txt +4 -4
  164. oci_cli/help_text_producer/data_files/text/cmdref/db/database/modify-database-management.txt +4 -4
  165. oci_cli/help_text_producer/data_files/text/cmdref/db/database/refresh-dataguard-health.txt +4 -4
  166. oci_cli/help_text_producer/data_files/text/cmdref/db/database/reinstate-data-guard.txt +4 -4
  167. oci_cli/help_text_producer/data_files/text/cmdref/db/database/restore.txt +4 -4
  168. oci_cli/help_text_producer/data_files/text/cmdref/db/database/rotate-vault-key.txt +4 -4
  169. oci_cli/help_text_producer/data_files/text/cmdref/db/database/run-data-patch.txt +4 -4
  170. oci_cli/help_text_producer/data_files/text/cmdref/db/database/set-oci-db-key-version.txt +4 -4
  171. oci_cli/help_text_producer/data_files/text/cmdref/db/database/switch-over-data-guard.txt +4 -4
  172. oci_cli/help_text_producer/data_files/text/cmdref/db/database/update-data-guard.txt +4 -4
  173. oci_cli/help_text_producer/data_files/text/cmdref/db/database/update.txt +4 -4
  174. oci_cli/help_text_producer/data_files/text/cmdref/db/database/upgrade-rollback.txt +4 -4
  175. oci_cli/help_text_producer/data_files/text/cmdref/db/database/upgrade-with-database-software-image.txt +4 -4
  176. oci_cli/help_text_producer/data_files/text/cmdref/db/database/upgrade-with-db-home.txt +4 -4
  177. oci_cli/help_text_producer/data_files/text/cmdref/db/database/upgrade-with-db-version.txt +4 -4
  178. oci_cli/help_text_producer/data_files/text/cmdref/db/database/upgrade.txt +4 -4
  179. oci_cli/help_text_producer/data_files/text/cmdref/db/database-software-image/change-compartment.txt +4 -4
  180. oci_cli/help_text_producer/data_files/text/cmdref/db/database-software-image/create.txt +4 -4
  181. oci_cli/help_text_producer/data_files/text/cmdref/db/database-software-image/delete.txt +4 -4
  182. oci_cli/help_text_producer/data_files/text/cmdref/db/database-software-image/update.txt +4 -4
  183. oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/create-db-home-create-db-home-with-vm-cluster-id-from-database-details.txt +4 -4
  184. oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/create.txt +4 -4
  185. oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/delete.txt +4 -4
  186. oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/update.txt +4 -4
  187. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/delete.txt +4 -4
  188. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/mount.txt +4 -4
  189. oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/unmount.txt +4 -4
  190. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/activate.txt +4 -4
  191. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/add-storage-capacity.txt +4 -4
  192. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/change-compartment.txt +4 -4
  193. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/configure-exascale.txt +8 -4
  194. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/create.txt +10 -9
  195. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/delete.txt +4 -4
  196. oci_cli/help_text_producer/data_files/text/cmdref/db/exadata-infrastructure/update.txt +10 -9
  197. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/change-compartment.txt +4 -4
  198. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/change-exadb-vm-cluster-subscription.txt +4 -4
  199. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/create.txt +4 -4
  200. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/delete.txt +4 -4
  201. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/remove.txt +4 -4
  202. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/update.txt +4 -4
  203. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/change-compartment.txt +4 -4
  204. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/change-exascale-db-storage-vault-subscription.txt +4 -4
  205. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +4 -4
  206. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/delete.txt +4 -4
  207. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/update.txt +4 -4
  208. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-action/create.txt +9 -9
  209. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-action/delete.txt +4 -4
  210. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-action/move-execution-action-member.txt +4 -4
  211. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-action/update.txt +9 -9
  212. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-window/cancel.txt +1 -1
  213. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-window/create.txt +1 -1
  214. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-window/delete.txt +1 -1
  215. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-window/reorder-execution-actions.txt +7 -6
  216. oci_cli/help_text_producer/data_files/text/cmdref/db/execution-window/update.txt +1 -1
  217. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/change-compartment.txt +4 -4
  218. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/create.txt +4 -4
  219. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/delete.txt +4 -4
  220. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/disable-db-management.txt +4 -4
  221. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/disable-external-container-database-stack-monitoring.txt +4 -4
  222. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/enable-db-management.txt +4 -4
  223. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/enable-external-container-database-stack-monitoring.txt +4 -4
  224. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/scan-pluggable-databases.txt +4 -4
  225. oci_cli/help_text_producer/data_files/text/cmdref/db/external-cdb/update.txt +4 -4
  226. oci_cli/help_text_producer/data_files/text/cmdref/db/external-db-connector/check-connection-status.txt +4 -4
  227. oci_cli/help_text_producer/data_files/text/cmdref/db/external-db-connector/create-macs-connector.txt +4 -4
  228. oci_cli/help_text_producer/data_files/text/cmdref/db/external-db-connector/delete.txt +4 -4
  229. oci_cli/help_text_producer/data_files/text/cmdref/db/external-db-connector/update-macs-connector.txt +4 -4
  230. oci_cli/help_text_producer/data_files/text/cmdref/db/external-db-connector/update.txt +4 -4
  231. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/change-compartment.txt +4 -4
  232. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/create.txt +4 -4
  233. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/delete.txt +4 -4
  234. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/disable-db-management.txt +4 -4
  235. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/disable-external-non-container-database-stack-monitoring.txt +4 -4
  236. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/disable-operations-insights.txt +4 -4
  237. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/enable-db-management.txt +4 -4
  238. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/enable-external-non-container-database-stack-monitoring.txt +4 -4
  239. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/enable-operations-insights.txt +4 -4
  240. oci_cli/help_text_producer/data_files/text/cmdref/db/external-non-cdb/update.txt +4 -4
  241. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/change-compartment.txt +4 -4
  242. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/create.txt +4 -4
  243. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/delete.txt +4 -4
  244. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/disable-db-management.txt +4 -4
  245. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/disable-external-pluggable-database-stack-monitoring.txt +4 -4
  246. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/disable-operations-insights.txt +4 -4
  247. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/enable-db-management.txt +4 -4
  248. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/enable-external-pluggable-database-stack-monitoring.txt +4 -4
  249. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/enable-operations-insights.txt +4 -4
  250. oci_cli/help_text_producer/data_files/text/cmdref/db/external-pdb/update.txt +4 -4
  251. oci_cli/help_text_producer/data_files/text/cmdref/db/key-store/change-compartment.txt +4 -4
  252. oci_cli/help_text_producer/data_files/text/cmdref/db/key-store/confirm-key-store-details-are-correct.txt +4 -4
  253. oci_cli/help_text_producer/data_files/text/cmdref/db/key-store/create-oracle-key-vault-details.txt +4 -4
  254. oci_cli/help_text_producer/data_files/text/cmdref/db/key-store/delete.txt +4 -4
  255. oci_cli/help_text_producer/data_files/text/cmdref/db/key-store/update-oracle-key-vault-details.txt +4 -4
  256. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/create.txt +4 -4
  257. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/update.txt +4 -4
  258. oci_cli/help_text_producer/data_files/text/cmdref/db/node/reset.txt +4 -4
  259. oci_cli/help_text_producer/data_files/text/cmdref/db/node/soft-reset.txt +4 -4
  260. oci_cli/help_text_producer/data_files/text/cmdref/db/node/start.txt +4 -4
  261. oci_cli/help_text_producer/data_files/text/cmdref/db/node/stop.txt +4 -4
  262. oci_cli/help_text_producer/data_files/text/cmdref/db/node/update.txt +4 -4
  263. oci_cli/help_text_producer/data_files/text/cmdref/db/oneoff-patch/change-compartment.txt +4 -4
  264. oci_cli/help_text_producer/data_files/text/cmdref/db/oneoff-patch/create.txt +4 -4
  265. oci_cli/help_text_producer/data_files/text/cmdref/db/oneoff-patch/delete.txt +4 -4
  266. oci_cli/help_text_producer/data_files/text/cmdref/db/oneoff-patch/update.txt +4 -4
  267. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/convert-to-regular.txt +4 -4
  268. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/create-local-clone.txt +4 -4
  269. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/create-remote-clone.txt +4 -4
  270. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/create-snapshot.txt +1 -1
  271. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/create.txt +4 -4
  272. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/delete-snapshot.txt +4 -4
  273. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/delete.txt +4 -4
  274. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/disable-pluggable-database-management.txt +4 -4
  275. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/enable-pluggable-database-management.txt +4 -4
  276. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/local-clone.txt +4 -4
  277. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/modify-pluggable-database-management.txt +4 -4
  278. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/refresh.txt +4 -4
  279. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/relocate-pdb.txt +4 -4
  280. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/remote-clone.txt +4 -4
  281. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/rotate-encryption-key.txt +4 -4
  282. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/set-oci-pdb-key-version.txt +4 -4
  283. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/start.txt +4 -4
  284. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/stop.txt +4 -4
  285. oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/update.txt +4 -4
  286. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduled-action/create.txt +7 -6
  287. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduled-action/delete.txt +4 -4
  288. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduled-action/update.txt +7 -6
  289. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-plan/cascading-delete.txt +4 -4
  290. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-plan/change-compartment.txt +4 -4
  291. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-plan/create.txt +1 -1
  292. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-plan/delete.txt +4 -4
  293. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-plan/reorder-scheduled-actions.txt +1 -1
  294. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-policy/change-compartment.txt +4 -4
  295. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-policy/create.txt +1 -1
  296. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-policy/delete.txt +1 -1
  297. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-policy/update.txt +1 -1
  298. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-window/create.txt +1 -1
  299. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduling-window/update.txt +1 -1
  300. oci_cli/help_text_producer/data_files/text/cmdref/db/system/change-cloud-db-system-subscription.txt +4 -4
  301. oci_cli/help_text_producer/data_files/text/cmdref/db/system/change-compartment.txt +4 -4
  302. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +4 -4
  303. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +4 -4
  304. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +4 -4
  305. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +4 -4
  306. oci_cli/help_text_producer/data_files/text/cmdref/db/system/terminate.txt +4 -4
  307. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update-exadata-iorm-config.txt +10 -9
  308. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +4 -4
  309. oci_cli/help_text_producer/data_files/text/cmdref/db/system/upgrade.txt +4 -4
  310. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/add.txt +4 -4
  311. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/change-compartment.txt +4 -4
  312. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/create.txt +32 -9
  313. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/delete.txt +4 -4
  314. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/remove.txt +4 -4
  315. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster/update.txt +20 -9
  316. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster-network/create.txt +10 -9
  317. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster-network/delete.txt +4 -4
  318. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster-network/resize.txt +4 -4
  319. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster-network/update.txt +22 -19
  320. oci_cli/help_text_producer/data_files/text/cmdref/db/vm-cluster-network/validate.txt +4 -4
  321. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +16 -0
  322. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log/list.txt → work-request-log-entry/list-work-request-logs.txt} +5 -5
  323. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +2 -2
  324. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +2 -2
  325. oci_cli/help_text_producer/data_files/text/cmdref/desktops/desktop-pool/create.txt +4 -0
  326. oci_cli/help_text_producer/data_files/text/cmdref/desktops/desktop-pool/update.txt +15 -0
  327. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/create.txt +14 -0
  328. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/update.txt +14 -0
  329. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-huggingface.txt +1 -1
  330. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model/create-from-objectstorage.txt +1 -1
  331. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/imported-model-collection/list-imported-models.txt +1 -1
  332. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/model-collection/list-models.txt +1 -1
  333. 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
  334. oci_cli/help_text_producer/data_files/text/cmdref/{delegate-access-control/work-request/work-request-log.txt → governance-rules-control-plane/work-request/work-request-log-entry.txt} +3 -3
  335. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
  336. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
  337. oci_cli/help_text_producer/data_files/text/cmdref/lfs/lustre-file-system.txt +1 -1
  338. oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link.txt +2 -2
  339. oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +1 -2
  340. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/delete-assocs.txt +2 -1
  341. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/get-assoc-summary.txt +2 -1
  342. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/list-associated-entities.txt +6 -1
  343. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/list-entity-source-assocs.txt +6 -1
  344. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/list-source-assocs.txt +6 -1
  345. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/upsert-assocs.txt +2 -1
  346. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/assoc/validate-assoc-params.txt +2 -1
  347. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/category/get.txt +2 -1
  348. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/category/list-resource-category.txt +2 -1
  349. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/category/list.txt +2 -1
  350. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/category/remove-resource-category.txt +2 -1
  351. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/category/update-resource-category.txt +2 -1
  352. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/char-encoding-collection/list-supported-encodings.txt +2 -1
  353. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/config-work-request/get-config-work-request.txt +5 -2
  354. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/config-work-request/list-config-work-requests.txt +2 -1
  355. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/content-export/export-custom-content.txt +2 -1
  356. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/content-import/import-custom-content.txt +2 -1
  357. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/change-compartment.txt +2 -1
  358. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/create.txt +2 -1
  359. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/delete.txt +2 -1
  360. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/get.txt +2 -1
  361. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/list.txt +2 -1
  362. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/summary.txt +2 -1
  363. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/em-bridge/update.txt +2 -1
  364. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/add-associations.txt +2 -1
  365. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/change-compartment.txt +2 -1
  366. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/create.txt +2 -1
  367. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/delete.txt +2 -1
  368. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/get.txt +2 -1
  369. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/list-associations.txt +2 -1
  370. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/list.txt +2 -1
  371. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/remove-associations.txt +2 -1
  372. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/summary.txt +2 -1
  373. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/update.txt +8 -1
  374. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity/upload-discovery-data.txt +3 -2
  375. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-topology/list.txt +2 -1
  376. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-type/create.txt +2 -1
  377. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-type/delete.txt +2 -1
  378. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-type/get.txt +2 -1
  379. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-type/list.txt +2 -1
  380. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/entity-type/update.txt +2 -1
  381. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/delete-field.txt +5 -2
  382. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/get-field.txt +5 -2
  383. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/get-fields-summary.txt +2 -1
  384. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/get-usages.txt +5 -2
  385. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/list-fields.txt +2 -1
  386. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/field/upsert-field.txt +2 -1
  387. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/change-compartment.txt +6 -2
  388. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/create.txt +2 -1
  389. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/delete.txt +6 -2
  390. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/disable.txt +6 -2
  391. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/enable.txt +6 -2
  392. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/get.txt +6 -2
  393. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/list.txt +2 -1
  394. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/ingest-time-rule/update.txt +6 -2
  395. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/batch-get-basic-info.txt +2 -1
  396. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/delete-label.txt +5 -2
  397. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/get-label-summary.txt +2 -1
  398. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/get-label.txt +5 -2
  399. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/list-label-priorities.txt +2 -1
  400. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/list-label-source-details.txt +2 -1
  401. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/list-labels.txt +3 -2
  402. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/label/upsert-label.txt +2 -1
  403. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/change-compartment.txt +2 -1
  404. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/create.txt +2 -1
  405. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/delete.txt +2 -1
  406. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/get-log-analytics-log-groups-summary.txt +2 -1
  407. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/get.txt +2 -1
  408. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/list.txt +2 -1
  409. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/log-group/update.txt +2 -1
  410. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/append-data.txt +2 -1
  411. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/change-compartment.txt +2 -1
  412. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/delete.txt +2 -1
  413. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/get-summary.txt +2 -1
  414. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/get.txt +2 -1
  415. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/list.txt +2 -1
  416. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/register-lookup.txt +2 -1
  417. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/update-data.txt +2 -1
  418. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/lookup/update.txt +2 -1
  419. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/namespace/get.txt +3 -2
  420. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/namespace/list.txt +5 -1
  421. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/namespace/offboard.txt +3 -2
  422. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/namespace/onboard.txt +3 -2
  423. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/namespace.txt +1 -1
  424. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/change-compartment.txt +2 -1
  425. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/create.txt +6 -5
  426. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/delete.txt +3 -2
  427. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/get.txt +2 -1
  428. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/list.txt +2 -1
  429. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/object-collection-rule/update.txt +6 -5
  430. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/delete-parser.txt +2 -1
  431. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/extract-structured-log-field-paths.txt +4 -3
  432. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/extract-structured-log-header-paths.txt +4 -3
  433. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/get-parser-summary.txt +2 -1
  434. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/get-parser.txt +2 -1
  435. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/list-parser-actions.txt +2 -1
  436. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/list-parser-functions.txt +2 -1
  437. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/list-parser-meta-plugins.txt +2 -1
  438. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/list-parsers.txt +2 -1
  439. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/test-parser.txt +3 -2
  440. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/parser/upsert-parser.txt +3 -2
  441. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/preference/get.txt +2 -1
  442. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/preference/remove.txt +2 -1
  443. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/preference/update.txt +2 -1
  444. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/property/list-effective-properties.txt +2 -1
  445. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/property/list-properties-metadata.txt +2 -1
  446. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/compare-content.txt +2 -1
  447. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/export.txt +2 -1
  448. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/filter.txt +2 -1
  449. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/get-query-result.txt +2 -1
  450. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/parse.txt +2 -1
  451. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/search.txt +16 -3
  452. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query/suggest.txt +2 -1
  453. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query-work-request/background.txt +5 -2
  454. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query-work-request/cancel.txt +5 -2
  455. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query-work-request/get.txt +5 -2
  456. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/query-work-request/list.txt +2 -1
  457. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/rule/get-rules-summary.txt +2 -1
  458. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/rule/list.txt +2 -1
  459. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/change-compartment.txt +2 -1
  460. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/clean.txt +2 -1
  461. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/create-acceleration-task.txt +6 -1
  462. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/create-standard-task.txt +6 -1
  463. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/delete.txt +2 -1
  464. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/get.txt +2 -1
  465. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/list.txt +2 -1
  466. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/pause.txt +2 -1
  467. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/resume.txt +2 -1
  468. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/run.txt +2 -1
  469. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/update.txt +6 -1
  470. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/scheduled-task/verify.txt +2 -1
  471. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/add-event-types.txt +2 -1
  472. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/delete-source.txt +2 -1
  473. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/disable-auto-assoc.txt +2 -1
  474. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/disable-event-types.txt +2 -1
  475. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/enable-auto-assoc.txt +2 -1
  476. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/enable-event-types.txt +2 -1
  477. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/get-column-names.txt +2 -1
  478. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/get-source-summary.txt +2 -1
  479. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/get-source.txt +2 -1
  480. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-associable-entities.txt +2 -1
  481. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-auto-assocs.txt +2 -1
  482. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-event-types.txt +2 -1
  483. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-meta-source-types.txt +2 -1
  484. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-source-extfield-defs.txt +2 -1
  485. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-source-functions.txt +2 -1
  486. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-source-label-operators.txt +2 -1
  487. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-source-patterns.txt +2 -1
  488. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/list-sources.txt +11 -1
  489. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/remove-event-types.txt +2 -1
  490. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/upsert-source.txt +2 -1
  491. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/validate-label-condition.txt +2 -1
  492. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/validate-log-endpoint.txt +2 -1
  493. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/validate-loglist-endpoint.txt +2 -1
  494. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/validate-source-extfield-details.txt +11 -2
  495. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/source/validate-source.txt +2 -1
  496. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/assign-encryption-key.txt +2 -1
  497. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/disable-archiving.txt +2 -1
  498. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/enable-archiving.txt +2 -1
  499. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/estimate-purge-data-size.txt +2 -1
  500. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/estimate-recall-data-size.txt +8 -1
  501. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/estimate-release-data-size.txt +7 -1
  502. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get-log-sets-count.txt +2 -1
  503. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get-recall-count.txt +2 -1
  504. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get-recalled-data-size.txt +2 -1
  505. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get-storage-usage.txt +2 -1
  506. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get-storage-work-request.txt +5 -2
  507. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/get.txt +2 -1
  508. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-encryption-key-info.txt +2 -1
  509. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-log-sets.txt +2 -1
  510. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-overlapping-recalls.txt +2 -1
  511. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-recalled-data.txt +2 -1
  512. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-recalled-info.txt +2 -1
  513. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-storage-work-request-errors.txt +5 -2
  514. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/list-storage-work-requests.txt +3 -2
  515. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/purge-storage-data.txt +2 -1
  516. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/recall-archived-data.txt +2 -1
  517. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/release-recalled-data.txt +2 -1
  518. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage/update.txt +2 -1
  519. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/storage.txt +1 -1
  520. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/template/get.txt +2 -1
  521. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/template/list.txt +2 -1
  522. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/timezone-collection/list-supported-timezones.txt +2 -1
  523. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/delete-upload-file.txt +2 -1
  524. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/delete-upload-warning.txt +2 -1
  525. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/delete.txt +2 -1
  526. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/get-unprocessed-bucket.txt +2 -1
  527. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/get.txt +2 -1
  528. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/list-upload-files.txt +2 -1
  529. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/list-upload-warnings.txt +2 -1
  530. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/list.txt +2 -1
  531. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/set-unprocessed-bucket.txt +6 -2
  532. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/upload-log-events-file.txt +3 -2
  533. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/upload-log-file.txt +6 -5
  534. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/upload-otlp-logs.txt +2 -1
  535. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/validate-file.txt +2 -1
  536. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/upload/validate-source-mapping.txt +2 -1
  537. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/warning/list.txt +3 -3
  538. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/warning/suppress.txt +2 -1
  539. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/warning/unsuppress.txt +2 -1
  540. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/work-request/get.txt +5 -2
  541. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/work-request/list.txt +2 -1
  542. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/work-request-error/list.txt +5 -2
  543. oci_cli/help_text_producer/data_files/text/cmdref/log-analytics/work-request-log/list.txt +5 -2
  544. oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/dashboard/list.txt +6 -0
  545. oci_cli/help_text_producer/data_files/text/cmdref/management-dashboard/saved-search/list.txt +6 -0
  546. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/address-list/create.txt +5 -0
  547. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/address-list/update-address-list-update-fqdn-address-list-details.txt +5 -0
  548. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/address-list/update-address-list-update-ip-address-list-details.txt +5 -0
  549. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/address-list/update.txt +5 -0
  550. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/application/create.txt +5 -0
  551. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/application/update.txt +5 -0
  552. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/application-group/create.txt +5 -0
  553. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/application-group/update.txt +5 -0
  554. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/decryption-profile/create.txt +5 -0
  555. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/decryption-profile/update.txt +5 -0
  556. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/decryption-rule/create.txt +5 -0
  557. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/decryption-rule/update.txt +5 -0
  558. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/mapped-secret/create.txt +5 -0
  559. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/mapped-secret/update.txt +5 -0
  560. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/bulk-upload.txt +1 -1
  561. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/create.txt +1 -1
  562. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/delete.txt +2 -2
  563. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/get.txt +2 -2
  564. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/list.txt +2 -2
  565. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule/update.txt +2 -2
  566. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/nat-rule.txt +2 -2
  567. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/network-firewall/create.txt +5 -0
  568. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/network-firewall/update.txt +5 -0
  569. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/network-firewall-policy/clone.txt +5 -0
  570. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/network-firewall-policy/create.txt +5 -0
  571. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/network-firewall-policy/update.txt +5 -0
  572. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/security-rule/create.txt +5 -0
  573. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/security-rule/update.txt +5 -0
  574. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/service/create.txt +5 -0
  575. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/service/update.txt +5 -0
  576. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/service-list/create.txt +5 -0
  577. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/service-list/update.txt +5 -0
  578. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/tunnel-inspection-rule/create.txt +5 -0
  579. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/tunnel-inspection-rule/update.txt +5 -0
  580. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/url-list/create.txt +5 -0
  581. oci_cli/help_text_producer/data_files/text/cmdref/network-firewall/url-list/update.txt +5 -0
  582. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log → work-request-log-entry}/list.txt +1 -19
  583. oci_cli/help_text_producer/data_files/text/cmdref/{governance-rules-control-plane/work-request/work-request-log.txt → organizations/work-request-log-entry.txt} +2 -2
  584. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +1 -1
  585. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +9 -9
  586. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  587. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  588. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  589. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  590. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  591. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  592. oci_cli/help_text_producer/data_files/text/index.txt +0 -2
  593. oci_cli/service_mapping.py +0 -5
  594. oci_cli/version.py +1 -1
  595. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/METADATA +2 -2
  596. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/RECORD +608 -643
  597. services/database/src/oci_cli_database/generated/database_cli.py +864 -433
  598. services/desktops/src/oci_cli_desktop_service/generated/desktopservice_cli.py +18 -6
  599. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +21 -13
  600. services/log_analytics/src/oci_cli_log_analytics/generated/loganalytics_cli.py +350 -295
  601. services/management_dashboard/src/oci_cli_dashx_apis/generated/dashxapis_cli.py +8 -2
  602. services/network_firewall/src/oci_cli_network_firewall/generated/networkfirewall_cli.py +240 -60
  603. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/change-compartment.txt +0 -134
  604. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/create.txt +0 -171
  605. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/delete.txt +0 -134
  606. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/get.txt +0 -104
  607. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/reinstate-proxy-instance.txt +0 -131
  608. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint/update.txt +0 -180
  609. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint-collection/list-private-endpoints.txt +0 -144
  610. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint-collection.txt +0 -14
  611. oci_cli/help_text_producer/data_files/text/cmdref/gdd/private-endpoint.txt +0 -24
  612. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/change-compartment.txt +0 -132
  613. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/configure-sharded-database-gsms.txt +0 -155
  614. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/configure-sharding.txt +0 -138
  615. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/create-sharded-database-create-dedicated-sharded-database.txt +0 -277
  616. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/delete.txt +0 -130
  617. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/download-gsm-certificate-signing-request.txt +0 -111
  618. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/fetch-connection-string.txt +0 -100
  619. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/generate-gsm-certificate-signing-request.txt +0 -133
  620. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/generate-wallet.txt +0 -113
  621. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/get.txt +0 -106
  622. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/patch.txt +0 -145
  623. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/start.txt +0 -126
  624. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/stop.txt +0 -126
  625. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/update.txt +0 -160
  626. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database/upload-signed-certificate-and-generate-wallet.txt +0 -134
  627. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database-collection/list-sharded-databases.txt +0 -144
  628. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database-collection.txt +0 -14
  629. oci_cli/help_text_producer/data_files/text/cmdref/gdd/sharded-database.txt +0 -42
  630. oci_cli/help_text_producer/data_files/text/cmdref/gdd/work-request/get.txt +0 -92
  631. oci_cli/help_text_producer/data_files/text/cmdref/gdd/work-request-error/list.txt +0 -130
  632. oci_cli/help_text_producer/data_files/text/cmdref/gdd/work-request-error.txt +0 -14
  633. oci_cli/help_text_producer/data_files/text/cmdref/gdd/work-request-log-entry/list-work-request-logs.txt +0 -130
  634. oci_cli/help_text_producer/data_files/text/cmdref/gdd/work-request.txt +0 -16
  635. oci_cli/help_text_producer/data_files/text/cmdref/gdd.txt +0 -81
  636. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-log.txt +0 -14
  637. services/globally_distributed_database/__init__.py +0 -4
  638. services/globally_distributed_database/src/__init__.py +0 -4
  639. services/globally_distributed_database/src/oci_cli_sharded_database_service/__init__.py +0 -4
  640. services/globally_distributed_database/src/oci_cli_sharded_database_service/generated/__init__.py +0 -4
  641. services/globally_distributed_database/src/oci_cli_sharded_database_service/generated/client_mappings.py +0 -14
  642. services/globally_distributed_database/src/oci_cli_sharded_database_service/generated/shardeddatabaseservice_cli.py +0 -1865
  643. services/globally_distributed_database/src/oci_cli_sharded_database_service/shardeddatabaseservice_cli_extended.py +0 -53
  644. services/globally_distributed_database/tests/__init__.py +0 -4
  645. /oci_cli/help_text_producer/data_files/text/cmdref/{gdd → delegate-access-control/work-request}/work-request-log-entry.txt +0 -0
  646. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/LICENSE.txt +0 -0
  647. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  648. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/WHEEL +0 -0
  649. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/entry_points.txt +0 -0
  650. {oci_cli-3.73.1.dist-info → oci_cli-3.73.2.dist-info}/top_level.txt +0 -0
@@ -1,1865 +0,0 @@
1
- # coding: utf-8
2
- # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved.
3
- # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
- # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20230301
5
-
6
- from __future__ import print_function
7
- import click
8
- import oci # noqa: F401
9
- import six # noqa: F401
10
- import sys # noqa: F401
11
- from oci_cli.cli_root import cli
12
- from oci_cli import cli_constants # noqa: F401
13
- from oci_cli import cli_util
14
- from oci_cli import json_skeleton_utils
15
- from oci_cli import custom_types # noqa: F401
16
- from oci_cli.aliasing import CommandGroupWithAlias
17
-
18
-
19
- @cli.command(cli_util.override('gdd.gdd_root_group.command_name', 'gdd'), cls=CommandGroupWithAlias, help=cli_util.override('gdd.gdd_root_group.help', """Use the Globally Distributed Database service APIs to create and manage distributed databases."""), short_help=cli_util.override('gdd.gdd_root_group.short_help', """Globally Distributed Database"""))
20
- @cli_util.help_option_group
21
- def gdd_root_group():
22
- pass
23
-
24
-
25
- @click.command(cli_util.override('gdd.private_endpoint_collection_group.command_name', 'private-endpoint-collection'), cls=CommandGroupWithAlias, help="""Collection of private endpoints.""")
26
- @cli_util.help_option_group
27
- def private_endpoint_collection_group():
28
- pass
29
-
30
-
31
- @click.command(cli_util.override('gdd.sharded_database_collection_group.command_name', 'sharded-database-collection'), cls=CommandGroupWithAlias, help="""Collection of sharded databases.""")
32
- @cli_util.help_option_group
33
- def sharded_database_collection_group():
34
- pass
35
-
36
-
37
- @click.command(cli_util.override('gdd.sharded_database_group.command_name', 'sharded-database'), cls=CommandGroupWithAlias, help="""Sharded Database resource.""")
38
- @cli_util.help_option_group
39
- def sharded_database_group():
40
- pass
41
-
42
-
43
- @click.command(cli_util.override('gdd.work_request_error_group.command_name', 'work-request-error'), cls=CommandGroupWithAlias, help="""An error encountered while executing a work request.""")
44
- @cli_util.help_option_group
45
- def work_request_error_group():
46
- pass
47
-
48
-
49
- @click.command(cli_util.override('gdd.private_endpoint_group.command_name', 'private-endpoint'), cls=CommandGroupWithAlias, help="""PrivateEndpoint resource.""")
50
- @cli_util.help_option_group
51
- def private_endpoint_group():
52
- pass
53
-
54
-
55
- @click.command(cli_util.override('gdd.work_request_log_entry_group.command_name', 'work-request-log-entry'), cls=CommandGroupWithAlias, help="""A log message from the execution of a work request.""")
56
- @cli_util.help_option_group
57
- def work_request_log_entry_group():
58
- pass
59
-
60
-
61
- @click.command(cli_util.override('gdd.work_request_group.command_name', 'work-request'), cls=CommandGroupWithAlias, help="""A description of workrequest status""")
62
- @cli_util.help_option_group
63
- def work_request_group():
64
- pass
65
-
66
-
67
- gdd_root_group.add_command(private_endpoint_collection_group)
68
- gdd_root_group.add_command(sharded_database_collection_group)
69
- gdd_root_group.add_command(sharded_database_group)
70
- gdd_root_group.add_command(work_request_error_group)
71
- gdd_root_group.add_command(private_endpoint_group)
72
- gdd_root_group.add_command(work_request_log_entry_group)
73
- gdd_root_group.add_command(work_request_group)
74
-
75
-
76
- @private_endpoint_group.command(name=cli_util.override('gdd.change_private_endpoint_compartment.command_name', 'change-compartment'), help=u"""Move the private endpoint to the specified compartment. \n[Command Reference](changePrivateEndpointCompartment)""")
77
- @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the resource to.""")
78
- @cli_util.option('--private-endpoint-id', required=True, help=u"""Oracle Sharded Database PrivateEndpoint identifier""")
79
- @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.""")
80
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
81
- @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.""")
82
- @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.""")
83
- @json_skeleton_utils.get_cli_json_input_option({})
84
- @cli_util.help_option
85
- @click.pass_context
86
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
87
- @cli_util.wrap_exceptions
88
- def change_private_endpoint_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, private_endpoint_id, if_match):
89
-
90
- if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0:
91
- raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string')
92
-
93
- kwargs = {}
94
- if if_match is not None:
95
- kwargs['if_match'] = if_match
96
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
97
-
98
- _details = {}
99
- _details['compartmentId'] = compartment_id
100
-
101
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
102
- result = client.change_private_endpoint_compartment(
103
- private_endpoint_id=private_endpoint_id,
104
- change_private_endpoint_compartment_details=_details,
105
- **kwargs
106
- )
107
- if wait_for_state:
108
-
109
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
110
- try:
111
- wait_period_kwargs = {}
112
- if max_wait_seconds is not None:
113
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
114
- if wait_interval_seconds is not None:
115
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
116
- if 'opc-work-request-id' not in result.headers:
117
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
118
- cli_util.render_response(result, ctx)
119
- return
120
-
121
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
122
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
123
- except oci.exceptions.MaximumWaitTimeExceeded as e:
124
- # If we fail, we should show an error, but we should still provide the information to the customer
125
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
126
- cli_util.render_response(result, ctx)
127
- sys.exit(2)
128
- except Exception:
129
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
130
- cli_util.render_response(result, ctx)
131
- raise
132
- else:
133
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
134
- cli_util.render_response(result, ctx)
135
-
136
-
137
- @sharded_database_group.command(name=cli_util.override('gdd.change_sharded_database_compartment.command_name', 'change-compartment'), help=u"""Move the sharded database database and its dependent resources to the specified compartment. \n[Command Reference](changeShardedDatabaseCompartment)""")
138
- @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the resource to.""")
139
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
140
- @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.""")
141
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
142
- @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.""")
143
- @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.""")
144
- @json_skeleton_utils.get_cli_json_input_option({})
145
- @cli_util.help_option
146
- @click.pass_context
147
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
148
- @cli_util.wrap_exceptions
149
- def change_sharded_database_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, sharded_database_id, if_match):
150
-
151
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
152
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
153
-
154
- kwargs = {}
155
- if if_match is not None:
156
- kwargs['if_match'] = if_match
157
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
158
-
159
- _details = {}
160
- _details['compartmentId'] = compartment_id
161
-
162
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
163
- result = client.change_sharded_database_compartment(
164
- sharded_database_id=sharded_database_id,
165
- change_sharded_database_compartment_details=_details,
166
- **kwargs
167
- )
168
- if wait_for_state:
169
-
170
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
171
- try:
172
- wait_period_kwargs = {}
173
- if max_wait_seconds is not None:
174
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
175
- if wait_interval_seconds is not None:
176
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
177
- if 'opc-work-request-id' not in result.headers:
178
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
179
- cli_util.render_response(result, ctx)
180
- return
181
-
182
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
183
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
184
- except oci.exceptions.MaximumWaitTimeExceeded as e:
185
- # If we fail, we should show an error, but we should still provide the information to the customer
186
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
187
- cli_util.render_response(result, ctx)
188
- sys.exit(2)
189
- except Exception:
190
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
191
- cli_util.render_response(result, ctx)
192
- raise
193
- else:
194
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
195
- cli_util.render_response(result, ctx)
196
-
197
-
198
- @sharded_database_group.command(name=cli_util.override('gdd.configure_sharded_database_gsms.command_name', 'configure-sharded-database-gsms'), help=u"""Configure new Global Service Manager(GSM aka shard manager) instances for the sharded database. Specify the names of old GSM instances that need to be replaced via parameter oldGsmNames in the request payload. Also specify whether rotated GSM instances shall be provisioned with latest image of GSM software or the image used by existing GSM instances shall be used. \n[Command Reference](configureShardedDatabaseGsms)""")
199
- @cli_util.option('--old-gsm-names', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Names of old global service manager(GSM) instances corresponding to which new GSM instances need to be configured.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
200
- @cli_util.option('--is-latest-gsm-image', required=True, type=click.BOOL, help=u"""Flag to indicate if new global service manager(GSM) instances shall use latest image or re-use image used by existing GSM instances.""")
201
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
202
- @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.""")
203
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
204
- @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.""")
205
- @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.""")
206
- @json_skeleton_utils.get_cli_json_input_option({'old-gsm-names': {'module': 'globally_distributed_database', 'class': 'list[string]'}})
207
- @cli_util.help_option
208
- @click.pass_context
209
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'old-gsm-names': {'module': 'globally_distributed_database', 'class': 'list[string]'}})
210
- @cli_util.wrap_exceptions
211
- def configure_sharded_database_gsms(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, old_gsm_names, is_latest_gsm_image, sharded_database_id, if_match):
212
-
213
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
214
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
215
-
216
- kwargs = {}
217
- if if_match is not None:
218
- kwargs['if_match'] = if_match
219
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
220
-
221
- _details = {}
222
- _details['oldGsmNames'] = cli_util.parse_json_parameter("old_gsm_names", old_gsm_names)
223
- _details['isLatestGsmImage'] = is_latest_gsm_image
224
-
225
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
226
- result = client.configure_sharded_database_gsms(
227
- sharded_database_id=sharded_database_id,
228
- configure_sharded_database_gsms_details=_details,
229
- **kwargs
230
- )
231
- if wait_for_state:
232
-
233
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
234
- try:
235
- wait_period_kwargs = {}
236
- if max_wait_seconds is not None:
237
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
238
- if wait_interval_seconds is not None:
239
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
240
- if 'opc-work-request-id' not in result.headers:
241
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
242
- cli_util.render_response(result, ctx)
243
- return
244
-
245
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
246
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
247
- except oci.exceptions.MaximumWaitTimeExceeded as e:
248
- # If we fail, we should show an error, but we should still provide the information to the customer
249
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
250
- cli_util.render_response(result, ctx)
251
- sys.exit(2)
252
- except Exception:
253
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
254
- cli_util.render_response(result, ctx)
255
- raise
256
- else:
257
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
258
- cli_util.render_response(result, ctx)
259
-
260
-
261
- @sharded_database_group.command(name=cli_util.override('gdd.configure_sharding.command_name', 'configure-sharding'), help=u"""Once all components of sharded database are provisioned, and signed GSM certificates are successfully uploaded, this api shall be invoked to configure sharding on the sharded database. Note that this 'ConfigureSharding' API also needs to be invoked after successfully adding a new shard to the sharded database using PATCH api. If this API is not invoked after successfully adding a new shard, then that new shard will not be a participant in sharding topology of the sharded database. \n[Command Reference](configureSharding)""")
262
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
263
- @cli_util.option('--is-rebalance-required', type=click.BOOL, help=u"""The flag to indicate whether chunks need to be re-balanced. This flag is not applicable for USER-defined sharding type.""")
264
- @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.""")
265
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
266
- @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.""")
267
- @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.""")
268
- @json_skeleton_utils.get_cli_json_input_option({})
269
- @cli_util.help_option
270
- @click.pass_context
271
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
272
- @cli_util.wrap_exceptions
273
- def configure_sharding(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, is_rebalance_required, if_match):
274
-
275
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
276
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
277
-
278
- kwargs = {}
279
- if is_rebalance_required is not None:
280
- kwargs['is_rebalance_required'] = is_rebalance_required
281
- if if_match is not None:
282
- kwargs['if_match'] = if_match
283
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
284
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
285
- result = client.configure_sharding(
286
- sharded_database_id=sharded_database_id,
287
- **kwargs
288
- )
289
- if wait_for_state:
290
-
291
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
292
- try:
293
- wait_period_kwargs = {}
294
- if max_wait_seconds is not None:
295
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
296
- if wait_interval_seconds is not None:
297
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
298
- if 'opc-work-request-id' not in result.headers:
299
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
300
- cli_util.render_response(result, ctx)
301
- return
302
-
303
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
304
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
305
- except oci.exceptions.MaximumWaitTimeExceeded as e:
306
- # If we fail, we should show an error, but we should still provide the information to the customer
307
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
308
- cli_util.render_response(result, ctx)
309
- sys.exit(2)
310
- except Exception:
311
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
312
- cli_util.render_response(result, ctx)
313
- raise
314
- else:
315
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
316
- cli_util.render_response(result, ctx)
317
-
318
-
319
- @private_endpoint_group.command(name=cli_util.override('gdd.create_private_endpoint.command_name', 'create'), help=u"""Creates a PrivateEndpoint. \n[Command Reference](createPrivateEndpoint)""")
320
- @cli_util.option('--compartment-id', required=True, help=u"""Identifier of the compartment where private endpoint is to be created.""")
321
- @cli_util.option('--subnet-id', required=True, help=u"""Identifier of the customer subnet against which private endpoint is to be created.""")
322
- @cli_util.option('--display-name', required=True, help=u"""Private endpoint display name.""")
323
- @cli_util.option('--description', help=u"""PrivateEndpoint description.""")
324
- @cli_util.option('--nsg-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The OCIDs of the network security groups that the private endpoint belongs to.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
325
- @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)
326
- @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)
327
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
328
- @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.""")
329
- @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.""")
330
- @json_skeleton_utils.get_cli_json_input_option({'nsg-ids': {'module': 'globally_distributed_database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}})
331
- @cli_util.help_option
332
- @click.pass_context
333
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'nsg-ids': {'module': 'globally_distributed_database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'globally_distributed_database', 'class': 'PrivateEndpoint'})
334
- @cli_util.wrap_exceptions
335
- def create_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, subnet_id, display_name, description, nsg_ids, freeform_tags, defined_tags):
336
-
337
- kwargs = {}
338
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
339
-
340
- _details = {}
341
- _details['compartmentId'] = compartment_id
342
- _details['subnetId'] = subnet_id
343
- _details['displayName'] = display_name
344
-
345
- if description is not None:
346
- _details['description'] = description
347
-
348
- if nsg_ids is not None:
349
- _details['nsgIds'] = cli_util.parse_json_parameter("nsg_ids", nsg_ids)
350
-
351
- if freeform_tags is not None:
352
- _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
353
-
354
- if defined_tags is not None:
355
- _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
356
-
357
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
358
- result = client.create_private_endpoint(
359
- create_private_endpoint_details=_details,
360
- **kwargs
361
- )
362
- if wait_for_state:
363
-
364
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
365
- try:
366
- wait_period_kwargs = {}
367
- if max_wait_seconds is not None:
368
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
369
- if wait_interval_seconds is not None:
370
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
371
- if 'opc-work-request-id' not in result.headers:
372
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
373
- cli_util.render_response(result, ctx)
374
- return
375
-
376
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
377
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
378
- except oci.exceptions.MaximumWaitTimeExceeded as e:
379
- # If we fail, we should show an error, but we should still provide the information to the customer
380
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
381
- cli_util.render_response(result, ctx)
382
- sys.exit(2)
383
- except Exception:
384
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
385
- cli_util.render_response(result, ctx)
386
- raise
387
- else:
388
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
389
- cli_util.render_response(result, ctx)
390
-
391
-
392
- @sharded_database_group.command(name=cli_util.override('gdd.create_sharded_database.command_name', 'create'), help=u"""Creates a Sharded Database. \n[Command Reference](createShardedDatabase)""")
393
- @cli_util.option('--compartment-id', required=True, help=u"""Identifier of the compartment where sharded database is to be created.""")
394
- @cli_util.option('--db-deployment-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["DEDICATED"]), help=u"""The database deployment type.""")
395
- @cli_util.option('--display-name', required=True, help=u"""Oracle sharded database display name.""")
396
- @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)
397
- @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)
398
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
399
- @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.""")
400
- @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.""")
401
- @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}})
402
- @cli_util.help_option
403
- @click.pass_context
404
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'globally_distributed_database', 'class': 'ShardedDatabase'})
405
- @cli_util.wrap_exceptions
406
- def create_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, db_deployment_type, display_name, freeform_tags, defined_tags):
407
-
408
- kwargs = {}
409
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
410
-
411
- _details = {}
412
- _details['compartmentId'] = compartment_id
413
- _details['dbDeploymentType'] = db_deployment_type
414
- _details['displayName'] = display_name
415
-
416
- if freeform_tags is not None:
417
- _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
418
-
419
- if defined_tags is not None:
420
- _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
421
-
422
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
423
- result = client.create_sharded_database(
424
- create_sharded_database_details=_details,
425
- **kwargs
426
- )
427
- if wait_for_state:
428
-
429
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
430
- try:
431
- wait_period_kwargs = {}
432
- if max_wait_seconds is not None:
433
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
434
- if wait_interval_seconds is not None:
435
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
436
- if 'opc-work-request-id' not in result.headers:
437
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
438
- cli_util.render_response(result, ctx)
439
- return
440
-
441
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
442
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
443
- except oci.exceptions.MaximumWaitTimeExceeded as e:
444
- # If we fail, we should show an error, but we should still provide the information to the customer
445
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
446
- cli_util.render_response(result, ctx)
447
- sys.exit(2)
448
- except Exception:
449
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
450
- cli_util.render_response(result, ctx)
451
- raise
452
- else:
453
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
454
- cli_util.render_response(result, ctx)
455
-
456
-
457
- @sharded_database_group.command(name=cli_util.override('gdd.create_sharded_database_create_dedicated_sharded_database.command_name', 'create-sharded-database-create-dedicated-sharded-database'), help=u"""Creates a Sharded Database. \n[Command Reference](createShardedDatabase)""")
458
- @cli_util.option('--compartment-id', required=True, help=u"""Identifier of the compartment where sharded database is to be created.""")
459
- @cli_util.option('--display-name', required=True, help=u"""Oracle sharded database display name.""")
460
- @cli_util.option('--db-workload', required=True, type=custom_types.CliCaseInsensitiveChoice(["OLTP", "DW"]), help=u"""Possible workload types.""")
461
- @cli_util.option('--sharding-method', required=True, type=custom_types.CliCaseInsensitiveChoice(["USER", "SYSTEM"]), help=u"""Sharding Method.""")
462
- @cli_util.option('--db-version', required=True, help=u"""Oracle Database version of the Autonomous Container Database.""")
463
- @cli_util.option('--character-set', required=True, help=u"""The character set for the new shard database being created. Use database api ListAutonomousDatabaseCharacterSets to get the list of allowed character set for autonomous dedicated database. See documentation: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ListAutonomousDatabaseCharacterSets""")
464
- @cli_util.option('--ncharacter-set', required=True, help=u"""The national character set for the new shard database being created. Use database api ListAutonomousDatabaseCharacterSets to get the list of allowed national character set for autonomous dedicated database. See documentation: https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/AutonomousDatabaseCharacterSets/ListAutonomousDatabaseCharacterSets""")
465
- @cli_util.option('--listener-port', required=True, type=click.INT, help=u"""The listener port number for sharded database.""")
466
- @cli_util.option('--listener-port-tls', required=True, type=click.INT, help=u"""The TLS listener port number for sharded database.""")
467
- @cli_util.option('--ons-port-local', required=True, type=click.INT, help=u"""Ons port local for sharded database.""")
468
- @cli_util.option('--ons-port-remote', required=True, type=click.INT, help=u"""Ons remote port for sharded database.""")
469
- @cli_util.option('--prefix', required=True, help=u"""Unique name prefix for the sharded databases. Only alpha-numeric values are allowed. First character has to be a letter followed by any combination of letter and number.""")
470
- @cli_util.option('--shard-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Collection of ATP-Dedicated shards that needs to be created.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
471
- @cli_util.option('--catalog-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Collection of ATP-Dedicated catalogs that needs to be created.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
472
- @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)
473
- @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)
474
- @cli_util.option('--replication-method', help=u"""The Replication method for sharded database.""")
475
- @cli_util.option('--replication-factor', type=click.INT, help=u"""The Replication factor for RAFT replication based sharded database. Currently supported values are 3, 5 and 7.""")
476
- @cli_util.option('--replication-unit', type=click.INT, help=u"""For RAFT replication based sharded database, the value should be atleast twice the number of shards.""")
477
- @cli_util.option('--cluster-certificate-common-name', help=u"""The certificate common name used in all cloudAutonomousVmClusters for the sharded database topology. Eg. Production. All the clusters used in one sharded database topology shall have same CABundle setup. Valid characterset for clusterCertificateCommonName include uppercase or lowercase letters, numbers, hyphens, underscores, and period.""")
478
- @cli_util.option('--chunks', type=click.INT, help=u"""The default number of unique chunks in a shardspace. The value of chunks must be greater than 2 times the size of the largest shardgroup in any shardspace.""")
479
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
480
- @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.""")
481
- @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.""")
482
- @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}, 'shard-details': {'module': 'globally_distributed_database', 'class': 'list[CreateDedicatedShardDetail]'}, 'catalog-details': {'module': 'globally_distributed_database', 'class': 'list[CreateDedicatedCatalogDetail]'}})
483
- @cli_util.help_option
484
- @click.pass_context
485
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}, 'shard-details': {'module': 'globally_distributed_database', 'class': 'list[CreateDedicatedShardDetail]'}, 'catalog-details': {'module': 'globally_distributed_database', 'class': 'list[CreateDedicatedCatalogDetail]'}}, output_type={'module': 'globally_distributed_database', 'class': 'ShardedDatabase'})
486
- @cli_util.wrap_exceptions
487
- def create_sharded_database_create_dedicated_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, display_name, db_workload, sharding_method, db_version, character_set, ncharacter_set, listener_port, listener_port_tls, ons_port_local, ons_port_remote, prefix, shard_details, catalog_details, freeform_tags, defined_tags, replication_method, replication_factor, replication_unit, cluster_certificate_common_name, chunks):
488
-
489
- kwargs = {}
490
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
491
-
492
- _details = {}
493
- _details['compartmentId'] = compartment_id
494
- _details['displayName'] = display_name
495
- _details['dbWorkload'] = db_workload
496
- _details['shardingMethod'] = sharding_method
497
- _details['dbVersion'] = db_version
498
- _details['characterSet'] = character_set
499
- _details['ncharacterSet'] = ncharacter_set
500
- _details['listenerPort'] = listener_port
501
- _details['listenerPortTls'] = listener_port_tls
502
- _details['onsPortLocal'] = ons_port_local
503
- _details['onsPortRemote'] = ons_port_remote
504
- _details['prefix'] = prefix
505
- _details['shardDetails'] = cli_util.parse_json_parameter("shard_details", shard_details)
506
- _details['catalogDetails'] = cli_util.parse_json_parameter("catalog_details", catalog_details)
507
-
508
- if freeform_tags is not None:
509
- _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
510
-
511
- if defined_tags is not None:
512
- _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
513
-
514
- if replication_method is not None:
515
- _details['replicationMethod'] = replication_method
516
-
517
- if replication_factor is not None:
518
- _details['replicationFactor'] = replication_factor
519
-
520
- if replication_unit is not None:
521
- _details['replicationUnit'] = replication_unit
522
-
523
- if cluster_certificate_common_name is not None:
524
- _details['clusterCertificateCommonName'] = cluster_certificate_common_name
525
-
526
- if chunks is not None:
527
- _details['chunks'] = chunks
528
-
529
- _details['dbDeploymentType'] = 'DEDICATED'
530
-
531
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
532
- result = client.create_sharded_database(
533
- create_sharded_database_details=_details,
534
- **kwargs
535
- )
536
- if wait_for_state:
537
-
538
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
539
- try:
540
- wait_period_kwargs = {}
541
- if max_wait_seconds is not None:
542
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
543
- if wait_interval_seconds is not None:
544
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
545
- if 'opc-work-request-id' not in result.headers:
546
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
547
- cli_util.render_response(result, ctx)
548
- return
549
-
550
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
551
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
552
- except oci.exceptions.MaximumWaitTimeExceeded as e:
553
- # If we fail, we should show an error, but we should still provide the information to the customer
554
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
555
- cli_util.render_response(result, ctx)
556
- sys.exit(2)
557
- except Exception:
558
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
559
- cli_util.render_response(result, ctx)
560
- raise
561
- else:
562
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
563
- cli_util.render_response(result, ctx)
564
-
565
-
566
- @private_endpoint_group.command(name=cli_util.override('gdd.delete_private_endpoint.command_name', 'delete'), help=u"""Delete the given private endpoint. \n[Command Reference](deletePrivateEndpoint)""")
567
- @cli_util.option('--private-endpoint-id', required=True, help=u"""Oracle Sharded Database PrivateEndpoint identifier""")
568
- @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.""")
569
- @cli_util.confirm_delete_option
570
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
571
- @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.""")
572
- @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.""")
573
- @json_skeleton_utils.get_cli_json_input_option({})
574
- @cli_util.help_option
575
- @click.pass_context
576
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
577
- @cli_util.wrap_exceptions
578
- def delete_private_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, if_match):
579
-
580
- if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0:
581
- raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string')
582
-
583
- kwargs = {}
584
- if if_match is not None:
585
- kwargs['if_match'] = if_match
586
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
587
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
588
- result = client.delete_private_endpoint(
589
- private_endpoint_id=private_endpoint_id,
590
- **kwargs
591
- )
592
- if wait_for_state:
593
-
594
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
595
- try:
596
- wait_period_kwargs = {}
597
- if max_wait_seconds is not None:
598
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
599
- if wait_interval_seconds is not None:
600
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
601
- if 'opc-work-request-id' not in result.headers:
602
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
603
- cli_util.render_response(result, ctx)
604
- return
605
-
606
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
607
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
608
- except oci.exceptions.MaximumWaitTimeExceeded as e:
609
- # If we fail, we should show an error, but we should still provide the information to the customer
610
- 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)
611
- cli_util.render_response(result, ctx)
612
- sys.exit(2)
613
- except Exception:
614
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
615
- cli_util.render_response(result, ctx)
616
- raise
617
- else:
618
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
619
- cli_util.render_response(result, ctx)
620
-
621
-
622
- @sharded_database_group.command(name=cli_util.override('gdd.delete_sharded_database.command_name', 'delete'), help=u"""Terminate the given sharded databases. \n[Command Reference](deleteShardedDatabase)""")
623
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
624
- @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.""")
625
- @cli_util.confirm_delete_option
626
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
627
- @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.""")
628
- @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.""")
629
- @json_skeleton_utils.get_cli_json_input_option({})
630
- @cli_util.help_option
631
- @click.pass_context
632
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
633
- @cli_util.wrap_exceptions
634
- def delete_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, if_match):
635
-
636
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
637
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
638
-
639
- kwargs = {}
640
- if if_match is not None:
641
- kwargs['if_match'] = if_match
642
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
643
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
644
- result = client.delete_sharded_database(
645
- sharded_database_id=sharded_database_id,
646
- **kwargs
647
- )
648
- if wait_for_state:
649
-
650
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
651
- try:
652
- wait_period_kwargs = {}
653
- if max_wait_seconds is not None:
654
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
655
- if wait_interval_seconds is not None:
656
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
657
- if 'opc-work-request-id' not in result.headers:
658
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
659
- cli_util.render_response(result, ctx)
660
- return
661
-
662
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
663
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
664
- except oci.exceptions.MaximumWaitTimeExceeded as e:
665
- # If we fail, we should show an error, but we should still provide the information to the customer
666
- 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)
667
- cli_util.render_response(result, ctx)
668
- sys.exit(2)
669
- except Exception:
670
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
671
- cli_util.render_response(result, ctx)
672
- raise
673
- else:
674
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
675
- cli_util.render_response(result, ctx)
676
-
677
-
678
- @sharded_database_group.command(name=cli_util.override('gdd.download_gsm_certificate_signing_request.command_name', 'download-gsm-certificate-signing-request'), help=u"""Generate the common certificate signing request for GSMs. Download the <sdb-prefix>.csr file from API response. Users can use this .csr file to generate the CA signed certificate, and as a next step use 'uploadSignedCertificateAndGenerateWallet' API to upload the CA signed certificate to GSM, and generate wallets for the GSM instances of the sharded database. \n[Command Reference](downloadGsmCertificateSigningRequest)""")
679
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
680
- @cli_util.option('--file', type=click.File(mode='wb'), required=True, help="The name of the file that will receive the response data, or '-' to write to STDOUT.")
681
- @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.""")
682
- @json_skeleton_utils.get_cli_json_input_option({})
683
- @cli_util.help_option
684
- @click.pass_context
685
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
686
- @cli_util.wrap_exceptions
687
- def download_gsm_certificate_signing_request(ctx, from_json, file, sharded_database_id, if_match):
688
-
689
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
690
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
691
-
692
- kwargs = {}
693
- if if_match is not None:
694
- kwargs['if_match'] = if_match
695
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
696
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
697
- result = client.download_gsm_certificate_signing_request(
698
- sharded_database_id=sharded_database_id,
699
- **kwargs
700
- )
701
-
702
- # If outputting to stdout we don't want to print a progress bar because it will get mixed up with the output
703
- # Also we need a non-zero Content-Length in order to display a meaningful progress bar
704
- bar = None
705
- if hasattr(file, 'name') and file.name != '<stdout>' and 'Content-Length' in result.headers:
706
- content_length = int(result.headers['Content-Length'])
707
- if content_length > 0:
708
- bar = click.progressbar(length=content_length, label='Downloading file')
709
-
710
- try:
711
- if bar:
712
- bar.__enter__()
713
-
714
- # TODO: Make the download size a configurable option
715
- # use decode_content=True to automatically unzip service responses (this should be overridden for object storage)
716
- for chunk in result.data.raw.stream(cli_constants.MEBIBYTE, decode_content=True):
717
- if bar:
718
- bar.update(len(chunk))
719
- file.write(chunk)
720
- finally:
721
- if bar:
722
- bar.render_finish()
723
- file.close()
724
-
725
-
726
- @sharded_database_group.command(name=cli_util.override('gdd.fetch_connection_string.command_name', 'fetch-connection-string'), help=u"""Gets the Sharded Database Connection Strings. \n[Command Reference](fetchConnectionString)""")
727
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
728
- @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.""")
729
- @json_skeleton_utils.get_cli_json_input_option({})
730
- @cli_util.help_option
731
- @click.pass_context
732
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'ConnectionString'})
733
- @cli_util.wrap_exceptions
734
- def fetch_connection_string(ctx, from_json, sharded_database_id, if_match):
735
-
736
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
737
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
738
-
739
- kwargs = {}
740
- if if_match is not None:
741
- kwargs['if_match'] = if_match
742
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
743
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
744
- result = client.fetch_connection_string(
745
- sharded_database_id=sharded_database_id,
746
- **kwargs
747
- )
748
- cli_util.render_response(result, ctx)
749
-
750
-
751
- @sharded_database_group.command(name=cli_util.override('gdd.fetch_shardable_cloud_autonomous_vm_clusters.command_name', 'fetch-shardable-cloud-autonomous-vm-clusters'), help=u"""List of cloudAutonomousVMClusters for the given tenancy, that can be sharded. \n[Command Reference](fetchShardableCloudAutonomousVmClusters)""")
752
- @cli_util.option('--compartment-id', required=True, help=u"""Compartment id of cloud autonomous vm clusters.""")
753
- @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "FAILED", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING", "UNAVAILABLE"]), help=u"""Lifecycle states for shardable Cloud autonomous vm cluster.""")
754
- @cli_util.option('--lifecycle-state-details', help=u"""Detailed message for the lifecycle state.""")
755
- @cli_util.option('--minimum-available-cdb-count', type=click.INT, help=u"""List only clusters for which atleast given minimum CDB count is available.""")
756
- @cli_util.option('--are-depleted-clusters-included', type=click.BOOL, help=u"""Flag to indicate of response shall also include clusters for which no more capacity is left to create new resources.""")
757
- @cli_util.option('--regions', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Region code of regions for which sharded cloud autonomous vm clusters need to be fetched.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
758
- @json_skeleton_utils.get_cli_json_input_option({'regions': {'module': 'globally_distributed_database', 'class': 'list[string]'}})
759
- @cli_util.help_option
760
- @click.pass_context
761
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'regions': {'module': 'globally_distributed_database', 'class': 'list[string]'}}, output_type={'module': 'globally_distributed_database', 'class': 'ShardableCloudAutonomousVmClusters'})
762
- @cli_util.wrap_exceptions
763
- def fetch_shardable_cloud_autonomous_vm_clusters(ctx, from_json, compartment_id, lifecycle_state, lifecycle_state_details, minimum_available_cdb_count, are_depleted_clusters_included, regions):
764
-
765
- kwargs = {}
766
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
767
-
768
- _details = {}
769
- _details['compartmentId'] = compartment_id
770
-
771
- if lifecycle_state is not None:
772
- _details['lifecycleState'] = lifecycle_state
773
-
774
- if lifecycle_state_details is not None:
775
- _details['lifecycleStateDetails'] = lifecycle_state_details
776
-
777
- if minimum_available_cdb_count is not None:
778
- _details['minimumAvailableCdbCount'] = minimum_available_cdb_count
779
-
780
- if are_depleted_clusters_included is not None:
781
- _details['areDepletedClustersIncluded'] = are_depleted_clusters_included
782
-
783
- if regions is not None:
784
- _details['regions'] = cli_util.parse_json_parameter("regions", regions)
785
-
786
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
787
- result = client.fetch_shardable_cloud_autonomous_vm_clusters(
788
- fetch_shardable_cloud_autonomous_vm_clusters_details=_details,
789
- **kwargs
790
- )
791
- cli_util.render_response(result, ctx)
792
-
793
-
794
- @sharded_database_group.command(name=cli_util.override('gdd.generate_gsm_certificate_signing_request.command_name', 'generate-gsm-certificate-signing-request'), help=u"""Generate the certificate signing request for GSM instances of the sharded database. Once certificate signing request is generated, then customers can download the certificate signing request using 'downloadGsmCertificateSigningRequest' api call. \n[Command Reference](generateGsmCertificateSigningRequest)""")
795
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
796
- @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.""")
797
- @cli_util.option('--ca-bundle-id', help=u"""The ID of the Ca Bundle.""")
798
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
799
- @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.""")
800
- @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.""")
801
- @json_skeleton_utils.get_cli_json_input_option({})
802
- @cli_util.help_option
803
- @click.pass_context
804
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
805
- @cli_util.wrap_exceptions
806
- def generate_gsm_certificate_signing_request(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, if_match, ca_bundle_id):
807
-
808
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
809
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
810
-
811
- kwargs = {}
812
- if if_match is not None:
813
- kwargs['if_match'] = if_match
814
- if ca_bundle_id is not None:
815
- kwargs['ca_bundle_id'] = ca_bundle_id
816
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
817
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
818
- result = client.generate_gsm_certificate_signing_request(
819
- sharded_database_id=sharded_database_id,
820
- **kwargs
821
- )
822
- if wait_for_state:
823
-
824
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
825
- try:
826
- wait_period_kwargs = {}
827
- if max_wait_seconds is not None:
828
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
829
- if wait_interval_seconds is not None:
830
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
831
- if 'opc-work-request-id' not in result.headers:
832
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
833
- cli_util.render_response(result, ctx)
834
- return
835
-
836
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
837
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
838
- except oci.exceptions.MaximumWaitTimeExceeded as e:
839
- # If we fail, we should show an error, but we should still provide the information to the customer
840
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
841
- cli_util.render_response(result, ctx)
842
- sys.exit(2)
843
- except Exception:
844
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
845
- cli_util.render_response(result, ctx)
846
- raise
847
- else:
848
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
849
- cli_util.render_response(result, ctx)
850
-
851
-
852
- @sharded_database_group.command(name=cli_util.override('gdd.generate_wallet.command_name', 'generate-wallet'), help=u"""Generate the wallet associated with sharded database. \n[Command Reference](generateWallet)""")
853
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
854
- @cli_util.option('--password', required=True, help=u"""The password to encrypt the keys inside the wallet. The password must be at least 8 characters long and must include at least 1 letter and either 1 numeric character or 1 special character.""")
855
- @cli_util.option('--file', type=click.File(mode='wb'), required=True, help="The name of the file that will receive the response data, or '-' to write to STDOUT.")
856
- @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.""")
857
- @json_skeleton_utils.get_cli_json_input_option({})
858
- @cli_util.help_option
859
- @click.pass_context
860
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
861
- @cli_util.wrap_exceptions
862
- def generate_wallet(ctx, from_json, file, sharded_database_id, password, if_match):
863
-
864
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
865
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
866
-
867
- kwargs = {}
868
- if if_match is not None:
869
- kwargs['if_match'] = if_match
870
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
871
-
872
- _details = {}
873
- _details['password'] = password
874
-
875
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
876
- result = client.generate_wallet(
877
- sharded_database_id=sharded_database_id,
878
- generate_wallet_details=_details,
879
- **kwargs
880
- )
881
-
882
- # If outputting to stdout we don't want to print a progress bar because it will get mixed up with the output
883
- # Also we need a non-zero Content-Length in order to display a meaningful progress bar
884
- bar = None
885
- if hasattr(file, 'name') and file.name != '<stdout>' and 'Content-Length' in result.headers:
886
- content_length = int(result.headers['Content-Length'])
887
- if content_length > 0:
888
- bar = click.progressbar(length=content_length, label='Downloading file')
889
-
890
- try:
891
- if bar:
892
- bar.__enter__()
893
-
894
- # TODO: Make the download size a configurable option
895
- # use decode_content=True to automatically unzip service responses (this should be overridden for object storage)
896
- for chunk in result.data.raw.stream(cli_constants.MEBIBYTE, decode_content=True):
897
- if bar:
898
- bar.update(len(chunk))
899
- file.write(chunk)
900
- finally:
901
- if bar:
902
- bar.render_finish()
903
- file.close()
904
-
905
-
906
- @private_endpoint_group.command(name=cli_util.override('gdd.get_private_endpoint.command_name', 'get'), help=u"""Get the PrivateEndpoint resource. \n[Command Reference](getPrivateEndpoint)""")
907
- @cli_util.option('--private-endpoint-id', required=True, help=u"""Oracle Sharded Database PrivateEndpoint identifier""")
908
- @cli_util.option('--if-none-match', help=u"""For conditional requests. In the GET call for a resource, set the `If-None-Match` header to the value of the ETag from a previous GET (or POST or PUT) response for that resource. The server will return with either a 304 Not Modified response if the resource has not changed, or a 200 OK response with the updated representation.""")
909
- @json_skeleton_utils.get_cli_json_input_option({})
910
- @cli_util.help_option
911
- @click.pass_context
912
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'PrivateEndpoint'})
913
- @cli_util.wrap_exceptions
914
- def get_private_endpoint(ctx, from_json, private_endpoint_id, if_none_match):
915
-
916
- if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0:
917
- raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string')
918
-
919
- kwargs = {}
920
- if if_none_match is not None:
921
- kwargs['if_none_match'] = if_none_match
922
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
923
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
924
- result = client.get_private_endpoint(
925
- private_endpoint_id=private_endpoint_id,
926
- **kwargs
927
- )
928
- cli_util.render_response(result, ctx)
929
-
930
-
931
- @sharded_database_group.command(name=cli_util.override('gdd.get_sharded_database.command_name', 'get'), help=u"""Gets the details of the Sharded database identified by given id. \n[Command Reference](getShardedDatabase)""")
932
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
933
- @cli_util.option('--metadata', help=u"""Comma separated names of argument corresponding to which metadata need to be retrived, namely VM_CLUSTER_INFO, ADDITIONAL_RESOURCE_INFO. An example is metadata=VM_CLUSTER_INFO,ADDITIONAL_RESOURCE_INFO.""")
934
- @cli_util.option('--if-none-match', help=u"""For conditional requests. In the GET call for a resource, set the `If-None-Match` header to the value of the ETag from a previous GET (or POST or PUT) response for that resource. The server will return with either a 304 Not Modified response if the resource has not changed, or a 200 OK response with the updated representation.""")
935
- @json_skeleton_utils.get_cli_json_input_option({})
936
- @cli_util.help_option
937
- @click.pass_context
938
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'ShardedDatabase'})
939
- @cli_util.wrap_exceptions
940
- def get_sharded_database(ctx, from_json, sharded_database_id, metadata, if_none_match):
941
-
942
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
943
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
944
-
945
- kwargs = {}
946
- if metadata is not None:
947
- kwargs['metadata'] = metadata
948
- if if_none_match is not None:
949
- kwargs['if_none_match'] = if_none_match
950
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
951
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
952
- result = client.get_sharded_database(
953
- sharded_database_id=sharded_database_id,
954
- **kwargs
955
- )
956
- cli_util.render_response(result, ctx)
957
-
958
-
959
- @work_request_group.command(name=cli_util.override('gdd.get_work_request.command_name', 'get'), help=u"""Gets details of the work request with the given ID. \n[Command Reference](getWorkRequest)""")
960
- @cli_util.option('--work-request-id', required=True, help=u"""The ID of the asynchronous request.""")
961
- @json_skeleton_utils.get_cli_json_input_option({})
962
- @cli_util.help_option
963
- @click.pass_context
964
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'WorkRequest'})
965
- @cli_util.wrap_exceptions
966
- def get_work_request(ctx, from_json, work_request_id):
967
-
968
- if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
969
- raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
970
-
971
- kwargs = {}
972
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
973
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
974
- result = client.get_work_request(
975
- work_request_id=work_request_id,
976
- **kwargs
977
- )
978
- cli_util.render_response(result, ctx)
979
-
980
-
981
- @private_endpoint_collection_group.command(name=cli_util.override('gdd.list_private_endpoints.command_name', 'list-private-endpoints'), help=u"""List of PrivateEndpoints. \n[Command Reference](listPrivateEndpoints)""")
982
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
983
- @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "FAILED", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING"]), help=u"""A filter to return only resources their lifecycleState matches the given lifecycleState.""")
984
- @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
985
- @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
986
- @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
987
- @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "timeUpdated"]), 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.""")
988
- @cli_util.option('--display-name', help=u"""A filter to return only private endpoint that match the entire name given. The match is not case sensitive.""")
989
- @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.""")
990
- @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.""")
991
- @json_skeleton_utils.get_cli_json_input_option({})
992
- @cli_util.help_option
993
- @click.pass_context
994
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'PrivateEndpointCollection'})
995
- @cli_util.wrap_exceptions
996
- def list_private_endpoints(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, limit, page, sort_order, sort_by, display_name):
997
-
998
- if all_pages and limit:
999
- raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1000
-
1001
- kwargs = {}
1002
- if lifecycle_state is not None:
1003
- kwargs['lifecycle_state'] = lifecycle_state
1004
- if limit is not None:
1005
- kwargs['limit'] = limit
1006
- if page is not None:
1007
- kwargs['page'] = page
1008
- if sort_order is not None:
1009
- kwargs['sort_order'] = sort_order
1010
- if sort_by is not None:
1011
- kwargs['sort_by'] = sort_by
1012
- if display_name is not None:
1013
- kwargs['display_name'] = display_name
1014
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1015
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1016
- if all_pages:
1017
- if page_size:
1018
- kwargs['limit'] = page_size
1019
-
1020
- result = cli_util.list_call_get_all_results(
1021
- client.list_private_endpoints,
1022
- compartment_id=compartment_id,
1023
- **kwargs
1024
- )
1025
- elif limit is not None:
1026
- result = cli_util.list_call_get_up_to_limit(
1027
- client.list_private_endpoints,
1028
- limit,
1029
- page_size,
1030
- compartment_id=compartment_id,
1031
- **kwargs
1032
- )
1033
- else:
1034
- result = client.list_private_endpoints(
1035
- compartment_id=compartment_id,
1036
- **kwargs
1037
- )
1038
- cli_util.render_response(result, ctx)
1039
-
1040
-
1041
- @sharded_database_collection_group.command(name=cli_util.override('gdd.list_sharded_databases.command_name', 'list-sharded-databases'), help=u"""List of Sharded databases. \n[Command Reference](listShardedDatabases)""")
1042
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
1043
- @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "FAILED", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING", "UNAVAILABLE"]), help=u"""A filter to return only resources their lifecycleState matches the given lifecycleState.""")
1044
- @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
1045
- @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
1046
- @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
1047
- @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "timeUpdated"]), 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.""")
1048
- @cli_util.option('--display-name', help=u"""A filter to return only sharded databases that match the entire name given. The match is not case sensitive.""")
1049
- @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.""")
1050
- @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.""")
1051
- @json_skeleton_utils.get_cli_json_input_option({})
1052
- @cli_util.help_option
1053
- @click.pass_context
1054
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'ShardedDatabaseCollection'})
1055
- @cli_util.wrap_exceptions
1056
- def list_sharded_databases(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, limit, page, sort_order, sort_by, display_name):
1057
-
1058
- if all_pages and limit:
1059
- raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1060
-
1061
- kwargs = {}
1062
- if lifecycle_state is not None:
1063
- kwargs['lifecycle_state'] = lifecycle_state
1064
- if limit is not None:
1065
- kwargs['limit'] = limit
1066
- if page is not None:
1067
- kwargs['page'] = page
1068
- if sort_order is not None:
1069
- kwargs['sort_order'] = sort_order
1070
- if sort_by is not None:
1071
- kwargs['sort_by'] = sort_by
1072
- if display_name is not None:
1073
- kwargs['display_name'] = display_name
1074
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1075
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1076
- if all_pages:
1077
- if page_size:
1078
- kwargs['limit'] = page_size
1079
-
1080
- result = cli_util.list_call_get_all_results(
1081
- client.list_sharded_databases,
1082
- compartment_id=compartment_id,
1083
- **kwargs
1084
- )
1085
- elif limit is not None:
1086
- result = cli_util.list_call_get_up_to_limit(
1087
- client.list_sharded_databases,
1088
- limit,
1089
- page_size,
1090
- compartment_id=compartment_id,
1091
- **kwargs
1092
- )
1093
- else:
1094
- result = client.list_sharded_databases(
1095
- compartment_id=compartment_id,
1096
- **kwargs
1097
- )
1098
- cli_util.render_response(result, ctx)
1099
-
1100
-
1101
- @work_request_error_group.command(name=cli_util.override('gdd.list_work_request_errors.command_name', 'list'), help=u"""Returns a (paginated) list of errors for the work request with the given ID. \n[Command Reference](listWorkRequestErrors)""")
1102
- @cli_util.option('--work-request-id', required=True, help=u"""The ID of the asynchronous request.""")
1103
- @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
1104
- @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
1105
- @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeAccepted"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.""")
1106
- @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
1107
- @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.""")
1108
- @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.""")
1109
- @json_skeleton_utils.get_cli_json_input_option({})
1110
- @cli_util.help_option
1111
- @click.pass_context
1112
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'WorkRequestErrorCollection'})
1113
- @cli_util.wrap_exceptions
1114
- def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
1115
-
1116
- if all_pages and limit:
1117
- raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1118
-
1119
- if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
1120
- raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
1121
-
1122
- kwargs = {}
1123
- if page is not None:
1124
- kwargs['page'] = page
1125
- if limit is not None:
1126
- kwargs['limit'] = limit
1127
- if sort_by is not None:
1128
- kwargs['sort_by'] = sort_by
1129
- if sort_order is not None:
1130
- kwargs['sort_order'] = sort_order
1131
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1132
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1133
- if all_pages:
1134
- if page_size:
1135
- kwargs['limit'] = page_size
1136
-
1137
- result = cli_util.list_call_get_all_results(
1138
- client.list_work_request_errors,
1139
- work_request_id=work_request_id,
1140
- **kwargs
1141
- )
1142
- elif limit is not None:
1143
- result = cli_util.list_call_get_up_to_limit(
1144
- client.list_work_request_errors,
1145
- limit,
1146
- page_size,
1147
- work_request_id=work_request_id,
1148
- **kwargs
1149
- )
1150
- else:
1151
- result = client.list_work_request_errors(
1152
- work_request_id=work_request_id,
1153
- **kwargs
1154
- )
1155
- cli_util.render_response(result, ctx)
1156
-
1157
-
1158
- @work_request_log_entry_group.command(name=cli_util.override('gdd.list_work_request_logs.command_name', 'list-work-request-logs'), help=u"""Returns a (paginated) list of logs for the work request with the given ID. \n[Command Reference](listWorkRequestLogs)""")
1159
- @cli_util.option('--work-request-id', required=True, help=u"""The ID of the asynchronous request.""")
1160
- @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
1161
- @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
1162
- @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeAccepted"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.""")
1163
- @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
1164
- @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.""")
1165
- @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.""")
1166
- @json_skeleton_utils.get_cli_json_input_option({})
1167
- @cli_util.help_option
1168
- @click.pass_context
1169
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'WorkRequestLogEntryCollection'})
1170
- @cli_util.wrap_exceptions
1171
- def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
1172
-
1173
- if all_pages and limit:
1174
- raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1175
-
1176
- if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
1177
- raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
1178
-
1179
- kwargs = {}
1180
- if page is not None:
1181
- kwargs['page'] = page
1182
- if limit is not None:
1183
- kwargs['limit'] = limit
1184
- if sort_by is not None:
1185
- kwargs['sort_by'] = sort_by
1186
- if sort_order is not None:
1187
- kwargs['sort_order'] = sort_order
1188
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1189
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1190
- if all_pages:
1191
- if page_size:
1192
- kwargs['limit'] = page_size
1193
-
1194
- result = cli_util.list_call_get_all_results(
1195
- client.list_work_request_logs,
1196
- work_request_id=work_request_id,
1197
- **kwargs
1198
- )
1199
- elif limit is not None:
1200
- result = cli_util.list_call_get_up_to_limit(
1201
- client.list_work_request_logs,
1202
- limit,
1203
- page_size,
1204
- work_request_id=work_request_id,
1205
- **kwargs
1206
- )
1207
- else:
1208
- result = client.list_work_request_logs(
1209
- work_request_id=work_request_id,
1210
- **kwargs
1211
- )
1212
- cli_util.render_response(result, ctx)
1213
-
1214
-
1215
- @work_request_group.command(name=cli_util.override('gdd.list_work_requests.command_name', 'list'), help=u"""Lists the work requests in a compartment. \n[Command Reference](listWorkRequests)""")
1216
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
1217
- @cli_util.option('--work-request-id', help=u"""The ID of the asynchronous work request.""")
1218
- @cli_util.option('--status', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), help=u"""A filter to return only resources their lifecycleState matches the given OperationStatus.""")
1219
- @cli_util.option('--resource-id', help=u"""The ID of the resource affected by the work request.""")
1220
- @cli_util.option('--page', help=u"""A token representing the position at which to start retrieving results. This must come from the `opc-next-page` header field of a previous response.""")
1221
- @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
1222
- @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'ASC' or 'DESC'.""")
1223
- @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeAccepted"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeAccepted is descending.""")
1224
- @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.""")
1225
- @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.""")
1226
- @json_skeleton_utils.get_cli_json_input_option({})
1227
- @cli_util.help_option
1228
- @click.pass_context
1229
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'globally_distributed_database', 'class': 'WorkRequestSummaryCollection'})
1230
- @cli_util.wrap_exceptions
1231
- def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, work_request_id, status, resource_id, page, limit, sort_order, sort_by):
1232
-
1233
- if all_pages and limit:
1234
- raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1235
-
1236
- kwargs = {}
1237
- if work_request_id is not None:
1238
- kwargs['work_request_id'] = work_request_id
1239
- if status is not None:
1240
- kwargs['status'] = status
1241
- if resource_id is not None:
1242
- kwargs['resource_id'] = resource_id
1243
- if page is not None:
1244
- kwargs['page'] = page
1245
- if limit is not None:
1246
- kwargs['limit'] = limit
1247
- if sort_order is not None:
1248
- kwargs['sort_order'] = sort_order
1249
- if sort_by is not None:
1250
- kwargs['sort_by'] = sort_by
1251
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1252
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1253
- if all_pages:
1254
- if page_size:
1255
- kwargs['limit'] = page_size
1256
-
1257
- result = cli_util.list_call_get_all_results(
1258
- client.list_work_requests,
1259
- compartment_id=compartment_id,
1260
- **kwargs
1261
- )
1262
- elif limit is not None:
1263
- result = cli_util.list_call_get_up_to_limit(
1264
- client.list_work_requests,
1265
- limit,
1266
- page_size,
1267
- compartment_id=compartment_id,
1268
- **kwargs
1269
- )
1270
- else:
1271
- result = client.list_work_requests(
1272
- compartment_id=compartment_id,
1273
- **kwargs
1274
- )
1275
- cli_util.render_response(result, ctx)
1276
-
1277
-
1278
- @sharded_database_group.command(name=cli_util.override('gdd.patch_sharded_database.command_name', 'patch'), help=u"""Patch operation to add, remove or update shards to the sharded database topology. In single patch operation, multiple shards can be either added, or removed or updated. Combination of inserts, update and remove in single operation is not allowed. \n[Command Reference](patchShardedDatabase)""")
1279
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1280
- @cli_util.option('--items', type=custom_types.CLI_COMPLEX_TYPE, help=u"""List of patch instructions.
1281
-
1282
- This option is a JSON list with items of type PatchInstruction. For documentation on PatchInstruction please see our API reference: https://docs.cloud.oracle.com/api/#/en/shardeddatabaseservice/20230301/datatypes/PatchInstruction.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1283
- @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.""")
1284
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1285
- @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.""")
1286
- @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.""")
1287
- @json_skeleton_utils.get_cli_json_input_option({'items': {'module': 'globally_distributed_database', 'class': 'list[PatchInstruction]'}})
1288
- @cli_util.help_option
1289
- @click.pass_context
1290
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'items': {'module': 'globally_distributed_database', 'class': 'list[PatchInstruction]'}})
1291
- @cli_util.wrap_exceptions
1292
- def patch_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, items, if_match):
1293
-
1294
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1295
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1296
-
1297
- kwargs = {}
1298
- if if_match is not None:
1299
- kwargs['if_match'] = if_match
1300
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1301
-
1302
- _details = {}
1303
-
1304
- if items is not None:
1305
- _details['items'] = cli_util.parse_json_parameter("items", items)
1306
-
1307
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1308
- result = client.patch_sharded_database(
1309
- sharded_database_id=sharded_database_id,
1310
- patch_sharded_database_details=_details,
1311
- **kwargs
1312
- )
1313
- if wait_for_state:
1314
-
1315
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1316
- try:
1317
- wait_period_kwargs = {}
1318
- if max_wait_seconds is not None:
1319
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1320
- if wait_interval_seconds is not None:
1321
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1322
- if 'opc-work-request-id' not in result.headers:
1323
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1324
- cli_util.render_response(result, ctx)
1325
- return
1326
-
1327
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1328
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1329
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1330
- # If we fail, we should show an error, but we should still provide the information to the customer
1331
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1332
- cli_util.render_response(result, ctx)
1333
- sys.exit(2)
1334
- except Exception:
1335
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1336
- cli_util.render_response(result, ctx)
1337
- raise
1338
- else:
1339
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1340
- cli_util.render_response(result, ctx)
1341
-
1342
-
1343
- @sharded_database_group.command(name=cli_util.override('gdd.prevalidate_sharded_database.command_name', 'prevalidate'), help=u"""Sharded database pre-validation request. \n[Command Reference](prevalidateShardedDatabase)""")
1344
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
1345
- @cli_util.option('--prevalidate-sharded-database-details', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1346
- @json_skeleton_utils.get_cli_json_input_option({'prevalidate-sharded-database-details': {'module': 'globally_distributed_database', 'class': 'PrevalidatePayload'}})
1347
- @cli_util.help_option
1348
- @click.pass_context
1349
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'prevalidate-sharded-database-details': {'module': 'globally_distributed_database', 'class': 'PrevalidatePayload'}}, output_type={'module': 'globally_distributed_database', 'class': 'PrevalidateShardedDatabaseResult'})
1350
- @cli_util.wrap_exceptions
1351
- def prevalidate_sharded_database(ctx, from_json, compartment_id, prevalidate_sharded_database_details):
1352
-
1353
- kwargs = {}
1354
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1355
-
1356
- _details = {}
1357
- _details['prevalidateShardedDatabaseDetails'] = cli_util.parse_json_parameter("prevalidate_sharded_database_details", prevalidate_sharded_database_details)
1358
-
1359
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1360
- result = client.prevalidate_sharded_database(
1361
- compartment_id=compartment_id,
1362
- prevalidate_sharded_database_details=_details,
1363
- **kwargs
1364
- )
1365
- cli_util.render_response(result, ctx)
1366
-
1367
-
1368
- @sharded_database_group.command(name=cli_util.override('gdd.prevalidate_sharded_database_prevalidate_patch_payload.command_name', 'prevalidate-sharded-database-prevalidate-patch-payload'), help=u"""Sharded database pre-validation request. \n[Command Reference](prevalidateShardedDatabase)""")
1369
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
1370
- @cli_util.option('--prevalidate-sharded-database-details-prevalidate-payload', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1371
- @cli_util.option('--prevalidate-sharded-database-details-sharded-database-id', required=True, help=u"""Sharded database identifier""")
1372
- @json_skeleton_utils.get_cli_json_input_option({'prevalidate-sharded-database-details-prevalidate-payload': {'module': 'globally_distributed_database', 'class': 'PatchShardedDatabaseDetails'}})
1373
- @cli_util.help_option
1374
- @click.pass_context
1375
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'prevalidate-sharded-database-details-prevalidate-payload': {'module': 'globally_distributed_database', 'class': 'PatchShardedDatabaseDetails'}}, output_type={'module': 'globally_distributed_database', 'class': 'PrevalidateShardedDatabaseResult'})
1376
- @cli_util.wrap_exceptions
1377
- def prevalidate_sharded_database_prevalidate_patch_payload(ctx, from_json, compartment_id, prevalidate_sharded_database_details_prevalidate_payload, prevalidate_sharded_database_details_sharded_database_id):
1378
-
1379
- kwargs = {}
1380
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1381
-
1382
- _details = {}
1383
- _details['prevalidateShardedDatabaseDetails'] = {}
1384
- _details['prevalidateShardedDatabaseDetails']['prevalidatePayload'] = cli_util.parse_json_parameter("prevalidate_sharded_database_details_prevalidate_payload", prevalidate_sharded_database_details_prevalidate_payload)
1385
- _details['prevalidateShardedDatabaseDetails']['shardedDatabaseId'] = prevalidate_sharded_database_details_sharded_database_id
1386
-
1387
- _details['prevalidateShardedDatabaseDetails']['operation'] = 'PATCH'
1388
-
1389
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1390
- result = client.prevalidate_sharded_database(
1391
- compartment_id=compartment_id,
1392
- prevalidate_sharded_database_details=_details,
1393
- **kwargs
1394
- )
1395
- cli_util.render_response(result, ctx)
1396
-
1397
-
1398
- @sharded_database_group.command(name=cli_util.override('gdd.prevalidate_sharded_database_prevalidate_create_payload.command_name', 'prevalidate-sharded-database-prevalidate-create-payload'), help=u"""Sharded database pre-validation request. \n[Command Reference](prevalidateShardedDatabase)""")
1399
- @cli_util.option('--compartment-id', required=True, help=u"""The ID of the compartment in which to list resources.""")
1400
- @cli_util.option('--prevalidate-sharded-database-details-prevalidate-payload', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1401
- @json_skeleton_utils.get_cli_json_input_option({'prevalidate-sharded-database-details-prevalidate-payload': {'module': 'globally_distributed_database', 'class': 'CreateShardedDatabaseDetails'}})
1402
- @cli_util.help_option
1403
- @click.pass_context
1404
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'prevalidate-sharded-database-details-prevalidate-payload': {'module': 'globally_distributed_database', 'class': 'CreateShardedDatabaseDetails'}}, output_type={'module': 'globally_distributed_database', 'class': 'PrevalidateShardedDatabaseResult'})
1405
- @cli_util.wrap_exceptions
1406
- def prevalidate_sharded_database_prevalidate_create_payload(ctx, from_json, compartment_id, prevalidate_sharded_database_details_prevalidate_payload):
1407
-
1408
- kwargs = {}
1409
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1410
-
1411
- _details = {}
1412
- _details['prevalidateShardedDatabaseDetails'] = {}
1413
- _details['prevalidateShardedDatabaseDetails']['prevalidatePayload'] = cli_util.parse_json_parameter("prevalidate_sharded_database_details_prevalidate_payload", prevalidate_sharded_database_details_prevalidate_payload)
1414
-
1415
- _details['prevalidateShardedDatabaseDetails']['operation'] = 'CREATE'
1416
-
1417
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1418
- result = client.prevalidate_sharded_database(
1419
- compartment_id=compartment_id,
1420
- prevalidate_sharded_database_details=_details,
1421
- **kwargs
1422
- )
1423
- cli_util.render_response(result, ctx)
1424
-
1425
-
1426
- @private_endpoint_group.command(name=cli_util.override('gdd.reinstate_proxy_instance.command_name', 'reinstate-proxy-instance'), help=u"""API to reinstate the proxy instances associated with the private endpoint. \n[Command Reference](reinstateProxyInstance)""")
1427
- @cli_util.option('--private-endpoint-id', required=True, help=u"""Oracle Sharded Database PrivateEndpoint identifier""")
1428
- @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.""")
1429
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1430
- @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.""")
1431
- @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.""")
1432
- @json_skeleton_utils.get_cli_json_input_option({})
1433
- @cli_util.help_option
1434
- @click.pass_context
1435
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1436
- @cli_util.wrap_exceptions
1437
- def reinstate_proxy_instance(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, if_match):
1438
-
1439
- if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0:
1440
- raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string')
1441
-
1442
- kwargs = {}
1443
- if if_match is not None:
1444
- kwargs['if_match'] = if_match
1445
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1446
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1447
- result = client.reinstate_proxy_instance(
1448
- private_endpoint_id=private_endpoint_id,
1449
- **kwargs
1450
- )
1451
- if wait_for_state:
1452
-
1453
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1454
- try:
1455
- wait_period_kwargs = {}
1456
- if max_wait_seconds is not None:
1457
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1458
- if wait_interval_seconds is not None:
1459
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1460
- if 'opc-work-request-id' not in result.headers:
1461
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1462
- cli_util.render_response(result, ctx)
1463
- return
1464
-
1465
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1466
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1467
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1468
- # If we fail, we should show an error, but we should still provide the information to the customer
1469
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1470
- cli_util.render_response(result, ctx)
1471
- sys.exit(2)
1472
- except Exception:
1473
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1474
- cli_util.render_response(result, ctx)
1475
- raise
1476
- else:
1477
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1478
- cli_util.render_response(result, ctx)
1479
-
1480
-
1481
- @sharded_database_group.command(name=cli_util.override('gdd.start_sharded_database.command_name', 'start'), help=u"""Start the shards, catalog and GSMs of Sharded Database. \n[Command Reference](startShardedDatabase)""")
1482
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1483
- @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.""")
1484
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1485
- @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.""")
1486
- @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.""")
1487
- @json_skeleton_utils.get_cli_json_input_option({})
1488
- @cli_util.help_option
1489
- @click.pass_context
1490
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1491
- @cli_util.wrap_exceptions
1492
- def start_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, if_match):
1493
-
1494
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1495
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1496
-
1497
- kwargs = {}
1498
- if if_match is not None:
1499
- kwargs['if_match'] = if_match
1500
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1501
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1502
- result = client.start_sharded_database(
1503
- sharded_database_id=sharded_database_id,
1504
- **kwargs
1505
- )
1506
- if wait_for_state:
1507
-
1508
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1509
- try:
1510
- wait_period_kwargs = {}
1511
- if max_wait_seconds is not None:
1512
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1513
- if wait_interval_seconds is not None:
1514
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1515
- if 'opc-work-request-id' not in result.headers:
1516
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1517
- cli_util.render_response(result, ctx)
1518
- return
1519
-
1520
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1521
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1522
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1523
- # If we fail, we should show an error, but we should still provide the information to the customer
1524
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1525
- cli_util.render_response(result, ctx)
1526
- sys.exit(2)
1527
- except Exception:
1528
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1529
- cli_util.render_response(result, ctx)
1530
- raise
1531
- else:
1532
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1533
- cli_util.render_response(result, ctx)
1534
-
1535
-
1536
- @sharded_database_group.command(name=cli_util.override('gdd.stop_sharded_database.command_name', 'stop'), help=u"""Stop the shards, catalog and GSM instances for the sharded database. \n[Command Reference](stopShardedDatabase)""")
1537
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1538
- @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.""")
1539
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1540
- @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.""")
1541
- @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.""")
1542
- @json_skeleton_utils.get_cli_json_input_option({})
1543
- @cli_util.help_option
1544
- @click.pass_context
1545
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1546
- @cli_util.wrap_exceptions
1547
- def stop_sharded_database(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, if_match):
1548
-
1549
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1550
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1551
-
1552
- kwargs = {}
1553
- if if_match is not None:
1554
- kwargs['if_match'] = if_match
1555
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1556
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1557
- result = client.stop_sharded_database(
1558
- sharded_database_id=sharded_database_id,
1559
- **kwargs
1560
- )
1561
- if wait_for_state:
1562
-
1563
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1564
- try:
1565
- wait_period_kwargs = {}
1566
- if max_wait_seconds is not None:
1567
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1568
- if wait_interval_seconds is not None:
1569
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1570
- if 'opc-work-request-id' not in result.headers:
1571
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1572
- cli_util.render_response(result, ctx)
1573
- return
1574
-
1575
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1576
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1577
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1578
- # If we fail, we should show an error, but we should still provide the information to the customer
1579
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1580
- cli_util.render_response(result, ctx)
1581
- sys.exit(2)
1582
- except Exception:
1583
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1584
- cli_util.render_response(result, ctx)
1585
- raise
1586
- else:
1587
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1588
- cli_util.render_response(result, ctx)
1589
-
1590
-
1591
- @private_endpoint_group.command(name=cli_util.override('gdd.update_private_endpoint.command_name', 'update'), help=u"""Updates the configuration of privateendpoint. \n[Command Reference](updatePrivateEndpoint)""")
1592
- @cli_util.option('--private-endpoint-id', required=True, help=u"""Oracle Sharded Database PrivateEndpoint identifier""")
1593
- @cli_util.option('--display-name', help=u"""Display name for PrivateEndpoint""")
1594
- @cli_util.option('--description', help=u"""PrivateEndpoint description.""")
1595
- @cli_util.option('--nsg-ids', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The OCIDs of the network security groups that the private endpoint belongs to.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
1596
- @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)
1597
- @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)
1598
- @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.""")
1599
- @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
1600
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "FAILED", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING"]), 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.""")
1601
- @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.""")
1602
- @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.""")
1603
- @json_skeleton_utils.get_cli_json_input_option({'nsg-ids': {'module': 'globally_distributed_database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}})
1604
- @cli_util.help_option
1605
- @click.pass_context
1606
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'nsg-ids': {'module': 'globally_distributed_database', 'class': 'list[string]'}, 'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'globally_distributed_database', 'class': 'PrivateEndpoint'})
1607
- @cli_util.wrap_exceptions
1608
- def update_private_endpoint(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, private_endpoint_id, display_name, description, nsg_ids, freeform_tags, defined_tags, if_match):
1609
-
1610
- if isinstance(private_endpoint_id, six.string_types) and len(private_endpoint_id.strip()) == 0:
1611
- raise click.UsageError('Parameter --private-endpoint-id cannot be whitespace or empty string')
1612
- if not force:
1613
- if nsg_ids or freeform_tags or defined_tags:
1614
- if not click.confirm("WARNING: Updates to nsg-ids and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
1615
- ctx.abort()
1616
-
1617
- kwargs = {}
1618
- if if_match is not None:
1619
- kwargs['if_match'] = if_match
1620
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1621
-
1622
- _details = {}
1623
-
1624
- if display_name is not None:
1625
- _details['displayName'] = display_name
1626
-
1627
- if description is not None:
1628
- _details['description'] = description
1629
-
1630
- if nsg_ids is not None:
1631
- _details['nsgIds'] = cli_util.parse_json_parameter("nsg_ids", nsg_ids)
1632
-
1633
- if freeform_tags is not None:
1634
- _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1635
-
1636
- if defined_tags is not None:
1637
- _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1638
-
1639
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1640
- result = client.update_private_endpoint(
1641
- private_endpoint_id=private_endpoint_id,
1642
- update_private_endpoint_details=_details,
1643
- **kwargs
1644
- )
1645
- if wait_for_state:
1646
-
1647
- if hasattr(client, 'get_private_endpoint') and callable(getattr(client, 'get_private_endpoint')):
1648
- try:
1649
- wait_period_kwargs = {}
1650
- if max_wait_seconds is not None:
1651
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1652
- if wait_interval_seconds is not None:
1653
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1654
-
1655
- click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
1656
- result = oci.wait_until(client, client.get_private_endpoint(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
1657
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1658
- # If we fail, we should show an error, but we should still provide the information to the customer
1659
- click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
1660
- cli_util.render_response(result, ctx)
1661
- sys.exit(2)
1662
- except Exception:
1663
- click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
1664
- cli_util.render_response(result, ctx)
1665
- raise
1666
- else:
1667
- click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
1668
- cli_util.render_response(result, ctx)
1669
-
1670
-
1671
- @sharded_database_group.command(name=cli_util.override('gdd.update_sharded_database.command_name', 'update'), help=u"""Updates the configuration of sharded database. \n[Command Reference](updateShardedDatabase)""")
1672
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1673
- @cli_util.option('--display-name', help=u"""Display name of the sharded database.""")
1674
- @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)
1675
- @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)
1676
- @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.""")
1677
- @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
1678
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACTIVE", "FAILED", "NEEDS_ATTENTION", "INACTIVE", "DELETING", "DELETED", "UPDATING", "CREATING", "UNAVAILABLE"]), 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.""")
1679
- @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.""")
1680
- @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.""")
1681
- @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}})
1682
- @cli_util.help_option
1683
- @click.pass_context
1684
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'globally_distributed_database', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'globally_distributed_database', 'class': 'ShardedDatabase'})
1685
- @cli_util.wrap_exceptions
1686
- def update_sharded_database(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, display_name, freeform_tags, defined_tags, if_match):
1687
-
1688
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1689
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1690
- if not force:
1691
- if freeform_tags or defined_tags:
1692
- if not click.confirm("WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
1693
- ctx.abort()
1694
-
1695
- kwargs = {}
1696
- if if_match is not None:
1697
- kwargs['if_match'] = if_match
1698
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1699
-
1700
- _details = {}
1701
-
1702
- if display_name is not None:
1703
- _details['displayName'] = display_name
1704
-
1705
- if freeform_tags is not None:
1706
- _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1707
-
1708
- if defined_tags is not None:
1709
- _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1710
-
1711
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1712
- result = client.update_sharded_database(
1713
- sharded_database_id=sharded_database_id,
1714
- update_sharded_database_details=_details,
1715
- **kwargs
1716
- )
1717
- if wait_for_state:
1718
-
1719
- if hasattr(client, 'get_sharded_database') and callable(getattr(client, 'get_sharded_database')):
1720
- try:
1721
- wait_period_kwargs = {}
1722
- if max_wait_seconds is not None:
1723
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1724
- if wait_interval_seconds is not None:
1725
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1726
-
1727
- click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
1728
- result = oci.wait_until(client, client.get_sharded_database(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
1729
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1730
- # If we fail, we should show an error, but we should still provide the information to the customer
1731
- click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
1732
- cli_util.render_response(result, ctx)
1733
- sys.exit(2)
1734
- except Exception:
1735
- click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
1736
- cli_util.render_response(result, ctx)
1737
- raise
1738
- else:
1739
- click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
1740
- cli_util.render_response(result, ctx)
1741
-
1742
-
1743
- @sharded_database_group.command(name=cli_util.override('gdd.upload_signed_certificate_and_generate_wallet.command_name', 'upload-signed-certificate-and-generate-wallet'), help=u"""Upload the CA signed certificate to the GSM instances and generate wallets for GSM instances of the sharded database. Customer shall provide the CA signed certificate key details by adding the certificate in request body. \n[Command Reference](uploadSignedCertificateAndGenerateWallet)""")
1744
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1745
- @cli_util.option('--ca-signed-certificate', required=True, help=u"""The CA signed certificate key..""")
1746
- @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.""")
1747
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1748
- @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.""")
1749
- @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.""")
1750
- @json_skeleton_utils.get_cli_json_input_option({})
1751
- @cli_util.help_option
1752
- @click.pass_context
1753
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1754
- @cli_util.wrap_exceptions
1755
- def upload_signed_certificate_and_generate_wallet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, ca_signed_certificate, if_match):
1756
-
1757
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1758
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1759
-
1760
- kwargs = {}
1761
- if if_match is not None:
1762
- kwargs['if_match'] = if_match
1763
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1764
-
1765
- _details = {}
1766
- _details['caSignedCertificate'] = ca_signed_certificate
1767
-
1768
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1769
- result = client.upload_signed_certificate_and_generate_wallet(
1770
- sharded_database_id=sharded_database_id,
1771
- upload_signed_certificate_and_generate_wallet_details=_details,
1772
- **kwargs
1773
- )
1774
- if wait_for_state:
1775
-
1776
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1777
- try:
1778
- wait_period_kwargs = {}
1779
- if max_wait_seconds is not None:
1780
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1781
- if wait_interval_seconds is not None:
1782
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1783
- if 'opc-work-request-id' not in result.headers:
1784
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1785
- cli_util.render_response(result, ctx)
1786
- return
1787
-
1788
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1789
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1790
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1791
- # If we fail, we should show an error, but we should still provide the information to the customer
1792
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1793
- cli_util.render_response(result, ctx)
1794
- sys.exit(2)
1795
- except Exception:
1796
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1797
- cli_util.render_response(result, ctx)
1798
- raise
1799
- else:
1800
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1801
- cli_util.render_response(result, ctx)
1802
-
1803
-
1804
- @sharded_database_group.command(name=cli_util.override('gdd.validate_network.command_name', 'validate-network'), help=u"""Validate the network connectivity between components of sharded database. \n[Command Reference](validateNetwork)""")
1805
- @cli_util.option('--sharded-database-id', required=True, help=u"""Sharded Database identifier""")
1806
- @cli_util.option('--is-surrogate', type=click.BOOL, help=u"""Determines the surrogates check. Default is true.""")
1807
- @cli_util.option('--resource-name', help=u"""Specify the name of shard or catalog.""")
1808
- @cli_util.option('--is-primary', type=click.BOOL, help=u"""Determines if the given resource name is for primary or not.""")
1809
- @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.""")
1810
- @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "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.""")
1811
- @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.""")
1812
- @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.""")
1813
- @json_skeleton_utils.get_cli_json_input_option({})
1814
- @cli_util.help_option
1815
- @click.pass_context
1816
- @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
1817
- @cli_util.wrap_exceptions
1818
- def validate_network(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, sharded_database_id, is_surrogate, resource_name, is_primary, if_match):
1819
-
1820
- if isinstance(sharded_database_id, six.string_types) and len(sharded_database_id.strip()) == 0:
1821
- raise click.UsageError('Parameter --sharded-database-id cannot be whitespace or empty string')
1822
-
1823
- kwargs = {}
1824
- if is_surrogate is not None:
1825
- kwargs['is_surrogate'] = is_surrogate
1826
- if resource_name is not None:
1827
- kwargs['resource_name'] = resource_name
1828
- if is_primary is not None:
1829
- kwargs['is_primary'] = is_primary
1830
- if if_match is not None:
1831
- kwargs['if_match'] = if_match
1832
- kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1833
- client = cli_util.build_client('globally_distributed_database', 'sharded_database_service', ctx)
1834
- result = client.validate_network(
1835
- sharded_database_id=sharded_database_id,
1836
- **kwargs
1837
- )
1838
- if wait_for_state:
1839
-
1840
- if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1841
- try:
1842
- wait_period_kwargs = {}
1843
- if max_wait_seconds is not None:
1844
- wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1845
- if wait_interval_seconds is not None:
1846
- wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1847
- if 'opc-work-request-id' not in result.headers:
1848
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1849
- cli_util.render_response(result, ctx)
1850
- return
1851
-
1852
- click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1853
- result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1854
- except oci.exceptions.MaximumWaitTimeExceeded as e:
1855
- # If we fail, we should show an error, but we should still provide the information to the customer
1856
- click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1857
- cli_util.render_response(result, ctx)
1858
- sys.exit(2)
1859
- except Exception:
1860
- click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1861
- cli_util.render_response(result, ctx)
1862
- raise
1863
- else:
1864
- click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1865
- cli_util.render_response(result, ctx)