oci-cli 3.64.1__py3-none-any.whl → 3.65.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (572) hide show
  1. oci_cli/bin/dbmulticloud.psm1 +39 -4
  2. oci_cli/bin/mysql.psm1 +4 -2
  3. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/condition-metadata-type/get.txt +1 -1
  4. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/detector-recipe/create.txt +1 -1
  5. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/create.txt +5 -1
  6. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/list.txt +1 -1
  7. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/update.txt +4 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/problem/list.txt +1 -1
  9. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/problem-aggregation/request-summarized-problems.txt +1 -1
  10. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/resource/list.txt +1 -1
  11. oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/resource-type-summary/list-resource-types.txt +1 -1
  12. 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 +2 -2
  13. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +3 -3
  14. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-backup/list.txt +2 -2
  15. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/register-cloud-vm-cluster-pkcs.txt +1 -1
  16. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/unregister-cloud-vm-cluster-pkcs.txt +1 -1
  17. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create/with-new-db-system.txt +15 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-google-cloud-provider-encryption-key-details.txt +206 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association.txt +3 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/access-policy/delete.txt → db/database/change-encryption-key-location-google-cloud-provider-encryption-key-details.txt} +19 -24
  21. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-stand-by-database-details.txt +6 -0
  22. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-from-backup.txt +6 -0
  23. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-backup.txt +10 -0
  24. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-standby-database.txt +20 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/database/create.txt +10 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/database/update.txt +11 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/database.txt +3 -0
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/create.txt +9 -0
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +10 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/list.txt +21 -0
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/update.txt +10 -0
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/gi-version/list.txt +5 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +42 -27
  34. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +42 -27
  35. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +42 -27
  36. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +42 -27
  37. oci_cli/help_text_producer/data_files/text/cmdref/db/system/list-db-system-storage-performances.txt +4 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +15 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/db/system-shape/list.txt +5 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/db/version/list.txt +5 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +6 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/change-compartment.txt +6 -6
  43. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/create.txt +24 -4
  44. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/delete.txt +3 -2
  45. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/get.txt +3 -3
  46. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/list.txt +14 -7
  47. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/update.txt +7 -6
  48. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery.txt +57 -12
  49. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/change-compartment.txt +3 -3
  50. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/create.txt +6 -8
  51. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/delete.txt +2 -2
  52. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/get.txt +3 -3
  53. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/list.txt +9 -5
  54. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/update.txt +8 -8
  55. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container.txt +57 -12
  56. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/change-compartment.txt +2 -2
  57. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/create.txt +8 -8
  58. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/delete.txt +4 -3
  59. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/get.txt +3 -3
  60. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/list.txt +7 -5
  61. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/update.txt +8 -6
  62. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount.txt +57 -12
  63. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/change-compartment.txt +4 -4
  64. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/create.txt +11 -12
  65. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/delete.txt +2 -3
  66. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/get.txt +3 -2
  67. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/list.txt +6 -5
  68. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/patch.txt +2 -2
  69. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/update.txt +12 -13
  70. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector.txt +61 -16
  71. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key/get.txt +3 -3
  72. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key/list.txt +7 -4
  73. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key.txt +57 -12
  74. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/change-compartment.txt +3 -3
  75. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/create.txt +10 -10
  76. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/delete.txt +2 -2
  77. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/get.txt +5 -3
  78. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/list.txt +8 -5
  79. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/refresh.txt +6 -2
  80. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/update.txt +17 -12
  81. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/cascading-delete.txt +2 -2
  82. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/change-compartment.txt +2 -2
  83. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/create.txt +7 -6
  84. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/delete.txt +2 -2
  85. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/get.txt +3 -3
  86. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/list.txt +9 -5
  87. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/update.txt +9 -7
  88. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association.txt +61 -16
  89. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault.txt +61 -16
  90. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-gcp-identity-connector/change-compartment.txt +132 -0
  91. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/ingress-gateway → dbmulticloud/oracle-db-gcp-identity-connector}/create.txt +54 -69
  92. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/model → dbmulticloud/oracle-db-gcp-identity-connector}/delete.txt +8 -18
  93. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance → dbmulticloud/oracle-db-gcp-identity-connector}/get.txt +7 -6
  94. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → dbmulticloud/oracle-db-gcp-identity-connector}/list.txt +15 -13
  95. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/install-all-updates.txt → dbmulticloud/oracle-db-gcp-identity-connector/refresh.txt} +17 -17
  96. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe → dbmulticloud/oracle-db-gcp-identity-connector}/update.txt +57 -38
  97. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-gcp-identity-connector.txt +29 -0
  98. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request → dbmulticloud/oracle-db-gcp-key}/get.txt +7 -6
  99. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe → dbmulticloud/oracle-db-gcp-key}/list.txt +18 -15
  100. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → dbmulticloud/oracle-db-gcp-key-ring}/change-compartment.txt +15 -21
  101. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh/update.txt → dbmulticloud/oracle-db-gcp-key-ring/create.txt} +54 -47
  102. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh → dbmulticloud/oracle-db-gcp-key-ring}/delete.txt +9 -13
  103. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/list.txt → dbmulticloud/oracle-db-gcp-key-ring/get.txt} +13 -44
  104. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → dbmulticloud/oracle-db-gcp-key-ring}/list.txt +21 -14
  105. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh/change-compartment.txt → dbmulticloud/oracle-db-gcp-key-ring/refresh.txt} +15 -20
  106. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/model → dbmulticloud/oracle-db-gcp-key-ring}/update.txt +31 -30
  107. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance-group.txt → dbmulticloud/oracle-db-gcp-key-ring.txt} +4 -8
  108. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request.txt → dbmulticloud/oracle-db-gcp-key.txt} +3 -5
  109. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/work-request.txt +61 -16
  110. oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud.txt +95 -12
  111. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/dedicated-ai-cluster/create.txt +2 -1
  112. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint-collection/list-endpoints.txt +4 -0
  113. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/chat-result/chat-generic-chat-request.txt +11 -0
  114. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/create.txt +12 -0
  115. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/list.txt +9 -0
  116. oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/update.txt +12 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
  118. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
  119. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log-entry/{list-logs.txt → list-work-request-logs.txt} +5 -5
  120. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log-entry.txt +1 -1
  121. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
  122. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
  123. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe/delete.txt → kafka/cluster/change-compartment.txt} +16 -21
  124. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → kafka/cluster}/create.txt +78 -66
  125. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster}/delete.txt +7 -12
  126. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/install-all-windows-updates.txt → kafka/cluster/disable-superuser.txt} +17 -17
  127. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe/change-compartment.txt → kafka/cluster/enable-superuser.txt} +18 -19
  128. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/erratum → kafka/cluster}/get.txt +6 -6
  129. oci_cli/help_text_producer/data_files/text/cmdref/{dts/job → kafka/cluster}/list.txt +36 -23
  130. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → kafka/cluster}/update.txt +62 -58
  131. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster-config}/change-compartment.txt +10 -10
  132. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → kafka/cluster-config}/create.txt +30 -33
  133. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance-group → kafka/cluster-config}/delete.txt +7 -10
  134. oci_cli/help_text_producer/data_files/text/cmdref/{os-management/windows-update → kafka/cluster-config}/get.txt +6 -6
  135. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh → kafka/cluster-config}/list.txt +25 -30
  136. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → kafka/cluster-config}/update.txt +40 -30
  137. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request/cancel.txt → kafka/cluster-config-version/delete.txt} +12 -7
  138. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster-config-version}/get.txt +11 -8
  139. oci_cli/help_text_producer/data_files/text/cmdref/{dts/export → kafka/cluster-config-version}/list.txt +25 -23
  140. oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster-config-version.txt +18 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster-config.txt +29 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster.txt +33 -0
  143. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/cancel.txt +5 -5
  144. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/get.txt +5 -5
  145. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/list.txt +26 -31
  146. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/work-request/list-work-request-errors.txt → kafka/work-request-error/list.txt} +16 -13
  147. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection → kafka}/work-request-error.txt +2 -1
  148. oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/work-request → kafka/work-request-log-entry}/list-work-request-logs.txt +14 -11
  149. oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection → kafka}/work-request-log-entry.txt +2 -1
  150. oci_cli/help_text_producer/data_files/text/cmdref/kafka/work-request.txt +23 -0
  151. oci_cli/help_text_producer/data_files/text/cmdref/kafka.txt +69 -0
  152. oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup/list.txt +16 -0
  153. oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup/validate.txt +141 -0
  154. oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup.txt +2 -0
  155. oci_cli/help_text_producer/data_files/text/cmdref/mysql.txt +2 -0
  156. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list.txt → list-errors.txt} +5 -5
  157. oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
  158. oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
  159. oci_cli/help_text_producer/data_files/text/index.txt +3 -9
  160. oci_cli/service_mapping.py +6 -21
  161. oci_cli/version.py +1 -1
  162. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/METADATA +2 -2
  163. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/RECORD +198 -556
  164. services/cims/src/oci_cli_incident/cims_cli_extended.py +1 -1
  165. services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py +18 -10
  166. services/database/src/oci_cli_database/database_cli_extended.py +67 -3
  167. services/database/src/oci_cli_database/generated/database_cli.py +367 -70
  168. services/{ai_anomaly_detection → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider}/__init__.py +1 -1
  169. services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/dbmulticloudgcpprovider_cli_extended.py +18 -0
  170. services/{ai_anomaly_detection/src → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated}/__init__.py +1 -1
  171. services/{dts/src/oci_cli_transfer_appliance_entitlement → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider}/generated/client_mappings.py +6 -6
  172. services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py +1057 -0
  173. services/dbmulticloud/src/oci_cli_dbmulticloud/generated/dbmulticloud_service_cli.py +27 -8
  174. services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py +63 -37
  175. services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py +52 -33
  176. services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py +49 -30
  177. services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py +113 -39
  178. services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py +34 -15
  179. services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py +69 -42
  180. services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py +52 -33
  181. services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py +27 -8
  182. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +5 -2
  183. services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py +7 -3
  184. services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py +22 -3
  185. services/{ai_anomaly_detection/src/oci_cli_anomaly_detection → managed_kafka}/__init__.py +1 -1
  186. services/{ai_anomaly_detection/src/oci_cli_anomaly_detection/generated → managed_kafka/src}/__init__.py +1 -1
  187. services/managed_kafka/src/oci_cli_kafka_cluster/__init__.py +4 -0
  188. services/managed_kafka/src/oci_cli_kafka_cluster/generated/__init__.py +4 -0
  189. services/{os_management/src/oci_cli_os_management → managed_kafka/src/oci_cli_kafka_cluster}/generated/client_mappings.py +6 -6
  190. services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py +1254 -0
  191. services/managed_kafka/src/oci_cli_kafka_cluster/kafkacluster_cli_extended.py +46 -0
  192. services/managed_kafka/tests/__init__.py +4 -0
  193. services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py +70 -1
  194. oci_cli/bin/dts.psm1 +0 -147
  195. oci_cli/bin/os-management.psm1 +0 -140
  196. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/change-compartment.txt +0 -138
  197. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-atp.txt +0 -207
  198. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-influx.txt +0 -198
  199. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-os.txt +0 -174
  200. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/delete.txt +0 -138
  201. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/get.txt +0 -100
  202. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset.txt +0 -30
  203. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/change-compartment.txt +0 -119
  204. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-embedded-input-details.txt +0 -144
  205. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-inline-input-details.txt +0 -185
  206. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-object-list-input-details.txt +0 -173
  207. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-object-store-output-details.txt +0 -175
  208. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create.txt +0 -173
  209. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/delete.txt +0 -143
  210. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/get.txt +0 -105
  211. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/update.txt +0 -147
  212. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job-collection/list-detect-anomaly-jobs.txt +0 -155
  213. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job-collection.txt +0 -15
  214. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job.txt +0 -31
  215. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/change-compartment.txt +0 -113
  216. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/create.txt +0 -174
  217. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies-embedded.txt +0 -124
  218. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies-inline.txt +0 -139
  219. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies.txt +0 -125
  220. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/get.txt +0 -100
  221. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/list.txt +0 -148
  222. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model.txt +0 -30
  223. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe/create.txt +0 -170
  224. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe/get.txt +0 -99
  225. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe.txt +0 -25
  226. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project/create.txt +0 -152
  227. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project/update.txt +0 -166
  228. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project.txt +0 -24
  229. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request/list.txt +0 -114
  230. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request-error/list.txt +0 -110
  231. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request-log-entry/list-work-request-logs.txt +0 -110
  232. oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection.txt +0 -125
  233. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/cancel.txt +0 -101
  234. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/delete.txt +0 -105
  235. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/get-passphrase.txt +0 -101
  236. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/list.txt +0 -100
  237. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/never-receive.txt +0 -101
  238. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request-entitlement.txt +0 -189
  239. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request-return-label.txt +0 -249
  240. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request.txt +0 -188
  241. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/setup-notifications.txt +0 -63
  242. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/show-entitlement.txt +0 -113
  243. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/show.txt +0 -101
  244. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/update-minimum-storage-capacity.txt +0 -107
  245. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/update-shipping-address.txt +0 -154
  246. oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance.txt +0 -38
  247. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/change-compartment.txt +0 -106
  248. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/configure-physical-appliance.txt +0 -114
  249. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/create-policy.txt +0 -68
  250. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/create.txt +0 -226
  251. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/delete.txt +0 -132
  252. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/generate-manifest.txt +0 -97
  253. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/get-passphrase.txt +0 -68
  254. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/request-appliance.txt +0 -68
  255. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/request-return-label.txt +0 -245
  256. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/setup-notifications.txt +0 -51
  257. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/show.txt +0 -96
  258. oci_cli/help_text_producer/data_files/text/cmdref/dts/export/update.txt +0 -265
  259. oci_cli/help_text_producer/data_files/text/cmdref/dts/export.txt +0 -38
  260. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/change-compartment.txt +0 -106
  261. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/close.txt +0 -96
  262. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/create.txt +0 -192
  263. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/delete.txt +0 -100
  264. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/detach-devices-details/change-compartment.txt +0 -102
  265. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/detach-devices-details.txt +0 -12
  266. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/setup-notifications.txt +0 -68
  267. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/show.txt +0 -96
  268. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/update.txt +0 -150
  269. oci_cli/help_text_producer/data_files/text/cmdref/dts/job/verify-upload-user-credentials.txt +0 -91
  270. oci_cli/help_text_producer/data_files/text/cmdref/dts/job.txt +0 -34
  271. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/activate.txt +0 -93
  272. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/create.txt +0 -93
  273. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/deactivate.txt +0 -77
  274. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/delete.txt +0 -77
  275. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/get-seal-manifest.txt +0 -81
  276. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/list.txt +0 -67
  277. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/reopen.txt +0 -77
  278. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/seal-status.txt +0 -77
  279. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/seal.txt +0 -75
  280. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/set-export.txt +0 -93
  281. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/show.txt +0 -77
  282. oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset.txt +0 -34
  283. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/configure-encryption.txt +0 -81
  284. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/finalize.txt +0 -89
  285. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/initialize-authentication.txt +0 -106
  286. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/list.txt +0 -63
  287. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/show.txt +0 -67
  288. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/unlock.txt +0 -75
  289. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/unregister.txt +0 -67
  290. oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance.txt +0 -26
  291. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/configured.txt +0 -111
  292. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/copied.txt +0 -105
  293. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/monitored.txt +0 -102
  294. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/prepared.txt +0 -104
  295. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/shipped.txt +0 -106
  296. oci_cli/help_text_producer/data_files/text/cmdref/dts/verify.txt +0 -22
  297. oci_cli/help_text_producer/data_files/text/cmdref/dts.txt +0 -144
  298. oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum-summary/list-errata.txt +0 -310
  299. oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum-summary.txt +0 -15
  300. oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum.txt +0 -14
  301. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/delete-content.txt +0 -113
  302. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/get-content.txt +0 -108
  303. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/get-report.txt +0 -270
  304. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/list-related-events.txt +0 -307
  305. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/list.txt +0 -319
  306. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/update.txt +0 -139
  307. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/upload-content.txt +0 -110
  308. oci_cli/help_text_producer/data_files/text/cmdref/os-management/event.txt +0 -27
  309. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/attach-child.txt +0 -102
  310. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/attach-parent.txt +0 -104
  311. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/detach-child.txt +0 -101
  312. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/detach-parent.txt +0 -102
  313. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/disable-module-stream.txt +0 -138
  314. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/enable-module-stream.txt +0 -139
  315. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-module-profile.txt +0 -141
  316. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-package.txt +0 -123
  317. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-update.txt +0 -123
  318. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-windows-update.txt +0 -124
  319. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-packages.txt +0 -142
  320. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-software-sources.txt +0 -141
  321. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-updates.txt +0 -141
  322. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-windows-updates.txt +0 -150
  323. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-installed-packages.txt +0 -141
  324. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-installed-windows-updates.txt +0 -142
  325. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-managed-instance-errata.txt +0 -141
  326. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-module-profiles.txt +0 -210
  327. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-module-streams.txt +0 -210
  328. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/remove-module-profile.txt +0 -142
  329. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/remove-package.txt +0 -123
  330. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/switch-module-stream.txt +0 -138
  331. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/attach.txt +0 -102
  332. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/change-compartment.txt +0 -107
  333. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/create.txt +0 -163
  334. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/detach.txt +0 -99
  335. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/get.txt +0 -94
  336. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/install-all-updates.txt +0 -128
  337. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/list.txt +0 -152
  338. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/update.txt +0 -166
  339. oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance.txt +0 -64
  340. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile/get.txt +0 -137
  341. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile/list.txt +0 -189
  342. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile.txt +0 -16
  343. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream/get.txt +0 -132
  344. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream/list.txt +0 -188
  345. oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream.txt +0 -16
  346. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/change-compartment.txt +0 -110
  347. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/create.txt +0 -357
  348. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/delete.txt +0 -135
  349. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/get.txt +0 -97
  350. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/list-upcoming.txt +0 -251
  351. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/list.txt +0 -174
  352. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/run-now.txt +0 -106
  353. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/skip-next-execution.txt +0 -106
  354. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/update.txt +0 -323
  355. oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job.txt +0 -30
  356. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/add-packages.txt +0 -111
  357. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/change-compartment.txt +0 -108
  358. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/create.txt +0 -187
  359. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/delete.txt +0 -133
  360. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/get-package.txt +0 -101
  361. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/get.txt +0 -95
  362. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/list-packages.txt +0 -145
  363. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/list.txt +0 -144
  364. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/remove-packages.txt +0 -112
  365. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/search-packages.txt +0 -124
  366. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/update.txt +0 -187
  367. oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source.txt +0 -34
  368. oci_cli/help_text_producer/data_files/text/cmdref/os-management/update-managed-instance-details/update-managed-instance.txt +0 -107
  369. oci_cli/help_text_producer/data_files/text/cmdref/os-management/update-managed-instance-details.txt +0 -14
  370. oci_cli/help_text_producer/data_files/text/cmdref/os-management/windows-update/list.txt +0 -129
  371. oci_cli/help_text_producer/data_files/text/cmdref/os-management/windows-update.txt +0 -16
  372. oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/get.txt +0 -91
  373. oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list-errors.txt +0 -128
  374. oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list-logs.txt +0 -128
  375. oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list.txt +0 -148
  376. oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request.txt +0 -20
  377. oci_cli/help_text_producer/data_files/text/cmdref/os-management.txt +0 -187
  378. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/change-compartment.txt +0 -143
  379. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/create.txt +0 -187
  380. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/get.txt +0 -103
  381. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/list.txt +0 -150
  382. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/update.txt +0 -193
  383. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy.txt +0 -25
  384. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/debug/report.txt +0 -60
  385. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/debug.txt +0 -14
  386. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/change-compartment.txt +0 -143
  387. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/delete.txt +0 -141
  388. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/get.txt +0 -103
  389. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/list.txt +0 -150
  390. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/update.txt +0 -215
  391. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/change-compartment.txt +0 -147
  392. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/create.txt +0 -197
  393. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/delete.txt +0 -145
  394. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/get.txt +0 -107
  395. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/list.txt +0 -150
  396. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/update.txt +0 -203
  397. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table.txt +0 -25
  398. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway.txt +0 -26
  399. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh/create.txt +0 -190
  400. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh/get.txt +0 -99
  401. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh.txt +0 -27
  402. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/proxy-details/get.txt +0 -79
  403. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/proxy-details.txt +0 -14
  404. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/change-compartment.txt +0 -143
  405. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create-virtual-deployment-disabled-service-discovery-configuration.txt +0 -204
  406. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create-virtual-deployment-dns-service-discovery-configuration.txt +0 -209
  407. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create.txt +0 -215
  408. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/delete.txt +0 -141
  409. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/get.txt +0 -103
  410. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/list.txt +0 -150
  411. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update-virtual-deployment-disabled-service-discovery-configuration.txt +0 -204
  412. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update-virtual-deployment-dns-service-discovery-configuration.txt +0 -209
  413. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update.txt +0 -215
  414. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment.txt +0 -33
  415. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/delete.txt +0 -139
  416. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/get.txt +0 -101
  417. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/list.txt +0 -150
  418. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/change-compartment.txt +0 -145
  419. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/create.txt +0 -195
  420. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/delete.txt +0 -143
  421. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/get.txt +0 -105
  422. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/list.txt +0 -150
  423. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/update.txt +0 -201
  424. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table.txt +0 -25
  425. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service.txt +0 -27
  426. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/work-request.txt +0 -22
  427. oci_cli/help_text_producer/data_files/text/cmdref/service-mesh.txt +0 -139
  428. services/ai_anomaly_detection/src/oci_cli_anomaly_detection/anomalydetection_cli_extended.py +0 -234
  429. services/ai_anomaly_detection/src/oci_cli_anomaly_detection/generated/anomalydetection_cli.py +0 -2665
  430. services/ai_anomaly_detection/src/oci_cli_anomaly_detection/generated/client_mappings.py +0 -14
  431. services/ai_anomaly_detection/tests/__init__.py +0 -4
  432. services/dts/__init__.py +0 -4
  433. services/dts/src/__init__.py +0 -4
  434. services/dts/src/oci_cli_appliance_export_job/__init__.py +0 -4
  435. services/dts/src/oci_cli_appliance_export_job/applianceexportjob_cli_extended.py +0 -582
  436. services/dts/src/oci_cli_appliance_export_job/applianceexportjob_constants.py +0 -11
  437. services/dts/src/oci_cli_appliance_export_job/generated/__init__.py +0 -4
  438. services/dts/src/oci_cli_appliance_export_job/generated/applianceexportjob_cli.py +0 -428
  439. services/dts/src/oci_cli_appliance_export_job/generated/client_mappings.py +0 -14
  440. services/dts/src/oci_cli_appliance_export_job/manifest/__init__.py +0 -3
  441. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_constants.py +0 -12
  442. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_iterator.py +0 -86
  443. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_line_item.py +0 -22
  444. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_stats.py +0 -93
  445. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_stats_consumer.py +0 -15
  446. services/dts/src/oci_cli_appliance_export_job/manifest/manifest_writer.py +0 -117
  447. services/dts/src/oci_cli_appliance_export_job/manifest/object_uploader.py +0 -124
  448. services/dts/src/oci_cli_dts/__init__.py +0 -4
  449. services/dts/src/oci_cli_dts/appliance_auth_manager.py +0 -59
  450. services/dts/src/oci_cli_dts/appliance_cert_manager.py +0 -51
  451. services/dts/src/oci_cli_dts/appliance_client_proxy.py +0 -57
  452. services/dts/src/oci_cli_dts/appliance_config.py +0 -34
  453. services/dts/src/oci_cli_dts/appliance_config_manager.py +0 -145
  454. services/dts/src/oci_cli_dts/appliance_config_spec.py +0 -38
  455. services/dts/src/oci_cli_dts/appliance_constants.py +0 -35
  456. services/dts/src/oci_cli_dts/appliance_init_auth.py +0 -81
  457. services/dts/src/oci_cli_dts/appliance_init_auth_spec.py +0 -32
  458. services/dts/src/oci_cli_dts/base_client.py +0 -102
  459. services/dts/src/oci_cli_dts/cli_utils.py +0 -131
  460. services/dts/src/oci_cli_dts/dts_service_cli_extended.py +0 -95
  461. services/dts/src/oci_cli_dts/dts_transform.py +0 -31
  462. services/dts/src/oci_cli_dts/generated/__init__.py +0 -4
  463. services/dts/src/oci_cli_dts/generated/dts_service_cli.py +0 -14
  464. services/dts/src/oci_cli_dts/nfs_dataset_client_proxy.py +0 -85
  465. services/dts/src/oci_cli_dts/nfsdataset_cli_extended.py +0 -371
  466. services/dts/src/oci_cli_dts/physical_appliance_control_plane/__init__.py +0 -3
  467. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/__init__.py +0 -16
  468. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/diagnose_tools_client.py +0 -163
  469. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/diagnose_tools_client_composite_operations.py +0 -24
  470. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/__init__.py +0 -28
  471. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/dataset_seal_status.py +0 -282
  472. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/details.py +0 -66
  473. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_dataset_info.py +0 -191
  474. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_dataset_spec.py +0 -93
  475. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_export_config.py +0 -174
  476. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_export_details.py +0 -66
  477. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/object_storage_upload_config.py +0 -201
  478. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/passphrase_details.py +0 -66
  479. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/physical_transfer_appliance.py +0 -214
  480. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/nfs_dataset_client.py +0 -835
  481. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/nfs_dataset_client_composite_operations.py +0 -24
  482. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/physical_transfer_appliance_client.py +0 -374
  483. services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/physical_transfer_appliance_client_composite_operations.py +0 -24
  484. services/dts/src/oci_cli_dts/physical_appliance_control_plane/service_endpoints.py +0 -9
  485. services/dts/src/oci_cli_dts/physicalappliance_cli_extended.py +0 -590
  486. services/dts/src/oci_cli_dts/verify_cli_extended.py +0 -494
  487. services/dts/src/oci_cli_shipping_vendors/__init__.py +0 -4
  488. services/dts/src/oci_cli_shipping_vendors/generated/__init__.py +0 -4
  489. services/dts/src/oci_cli_shipping_vendors/generated/client_mappings.py +0 -14
  490. services/dts/src/oci_cli_shipping_vendors/generated/shippingvendors_cli.py +0 -49
  491. services/dts/src/oci_cli_transfer_appliance/__init__.py +0 -4
  492. services/dts/src/oci_cli_transfer_appliance/generated/__init__.py +0 -4
  493. services/dts/src/oci_cli_transfer_appliance/generated/client_mappings.py +0 -14
  494. services/dts/src/oci_cli_transfer_appliance/generated/transferappliance_cli.py +0 -364
  495. services/dts/src/oci_cli_transfer_appliance/transferappliance_cli_extended.py +0 -362
  496. services/dts/src/oci_cli_transfer_appliance_entitlement/__init__.py +0 -4
  497. services/dts/src/oci_cli_transfer_appliance_entitlement/generated/__init__.py +0 -4
  498. services/dts/src/oci_cli_transfer_appliance_entitlement/generated/transferapplianceentitlement_cli.py +0 -155
  499. services/dts/src/oci_cli_transfer_appliance_entitlement/transferapplianceentitlement_cli_extended.py +0 -66
  500. services/dts/src/oci_cli_transfer_device/__init__.py +0 -4
  501. services/dts/src/oci_cli_transfer_device/generated/__init__.py +0 -4
  502. services/dts/src/oci_cli_transfer_device/generated/client_mappings.py +0 -14
  503. services/dts/src/oci_cli_transfer_device/generated/transferdevice_cli.py +0 -209
  504. services/dts/src/oci_cli_transfer_job/__init__.py +0 -4
  505. services/dts/src/oci_cli_transfer_job/generated/__init__.py +0 -4
  506. services/dts/src/oci_cli_transfer_job/generated/client_mappings.py +0 -14
  507. services/dts/src/oci_cli_transfer_job/generated/transferjob_cli.py +0 -368
  508. services/dts/src/oci_cli_transfer_job/transferjob_cli_extended.py +0 -281
  509. services/dts/src/oci_cli_transfer_package/__init__.py +0 -4
  510. services/dts/src/oci_cli_transfer_package/generated/__init__.py +0 -4
  511. services/dts/src/oci_cli_transfer_package/generated/client_mappings.py +0 -14
  512. services/dts/src/oci_cli_transfer_package/generated/transferpackage_cli.py +0 -326
  513. services/dts/tests/__init__.py +0 -4
  514. services/os_management/__init__.py +0 -4
  515. services/os_management/src/__init__.py +0 -4
  516. services/os_management/src/oci_cli_event/__init__.py +0 -4
  517. services/os_management/src/oci_cli_event/event_cli_extended.py +0 -34
  518. services/os_management/src/oci_cli_event/generated/__init__.py +0 -4
  519. services/os_management/src/oci_cli_event/generated/client_mappings.py +0 -14
  520. services/os_management/src/oci_cli_event/generated/event_cli.py +0 -430
  521. services/os_management/src/oci_cli_os_management/__init__.py +0 -4
  522. services/os_management/src/oci_cli_os_management/generated/__init__.py +0 -4
  523. services/os_management/src/oci_cli_os_management/generated/os_management_service_cli.py +0 -15
  524. services/os_management/src/oci_cli_os_management/generated/osmanagement_cli.py +0 -4009
  525. services/os_management/src/oci_cli_os_management/osmanagement_cli_extended.py +0 -244
  526. services/os_management/tests/__init__.py +0 -4
  527. services/service_mesh/__init__.py +0 -4
  528. services/service_mesh/src/__init__.py +0 -4
  529. services/service_mesh/src/oci_cli_service_mesh/__init__.py +0 -4
  530. services/service_mesh/src/oci_cli_service_mesh/generated/__init__.py +0 -4
  531. services/service_mesh/src/oci_cli_service_mesh/generated/client_mappings.py +0 -14
  532. services/service_mesh/src/oci_cli_service_mesh/generated/servicemesh_cli.py +0 -3306
  533. services/service_mesh/src/oci_cli_service_mesh/service_mesh_cli_extended.py +0 -57
  534. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/__init__.py +0 -76
  535. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/aggregators/__init__.py +0 -3
  536. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/aggregators/aggregation_orchestrator.py +0 -88
  537. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/bundle_analyser.py +0 -163
  538. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/event.py +0 -43
  539. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/handlers/__init__.py +0 -3
  540. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/handlers/debug_handler.py +0 -209
  541. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/report_orchestrator.py +0 -82
  542. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/task_orchestrator.py +0 -76
  543. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/task_request.py +0 -232
  544. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/__init__.py +0 -3
  545. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/common_worker.py +0 -116
  546. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/csv_worker.py +0 -39
  547. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/file_worker.py +0 -33
  548. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/igd_worker.py +0 -48
  549. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/mesh_report_worker.py +0 -60
  550. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/mesh_resources_worker.py +0 -49
  551. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/namespaces_worker.py +0 -33
  552. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/oci_cli_version_worker.py +0 -34
  553. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/pod_worker.py +0 -112
  554. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/resource_worker.py +0 -75
  555. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/services_worker.py +0 -34
  556. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/task_worker.py +0 -33
  557. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/validate_crds_worker.py +0 -34
  558. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/vdb_worker.py +0 -51
  559. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/webhooks_worker.py +0 -34
  560. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/__init__.py +0 -3
  561. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/bundle_helper.py +0 -154
  562. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/constants.py +0 -137
  563. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/helper.py +0 -12
  564. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/kubectl_command_helper.py +0 -646
  565. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/messages.py +0 -16
  566. services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/summary.py +0 -222
  567. services/service_mesh/tests/__init__.py +0 -4
  568. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/LICENSE.txt +0 -0
  569. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  570. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/WHEEL +0 -0
  571. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/entry_points.txt +0 -0
  572. {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1057 @@
1
+ # coding: utf-8
2
+ # Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.
3
+ # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
4
+ # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20240501
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 import cli_constants # noqa: F401
12
+ from oci_cli import cli_util
13
+ from oci_cli import json_skeleton_utils
14
+ from oci_cli import custom_types # noqa: F401
15
+ from oci_cli.aliasing import CommandGroupWithAlias
16
+ from services.dbmulticloud.src.oci_cli_dbmulticloud.generated import dbmulticloud_service_cli
17
+
18
+
19
+ @click.command(cli_util.override('db_multicloud_gcp_provider.db_multicloud_gcp_provider_root_group.command_name', 'db-multicloud-gcp-provider'), cls=CommandGroupWithAlias, help=cli_util.override('db_multicloud_gcp_provider.db_multicloud_gcp_provider_root_group.help', """<b>Microsoft Azure:</b> <br>
20
+ <b>Oracle Azure Connector Resource:</b>:&nbsp;&nbsp;The Oracle Azure Connector Resource is used to install the Azure Arc Server on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D).
21
+ The supported method to install the Azure Arc Server (Azure Identity) on the Exadata VM cluster:
22
+ <ul>
23
+ <li>Using a Bearer Access Token</li>
24
+ </ul>
25
+
26
+ <b>Oracle Azure Blob Container Resource:</b>&nbsp;&nbsp;The Oracle Azure Blob Container Resource is used to capture the details of an Azure Blob Container.
27
+ This resource can then be reused across multiple Exadata VM clusters in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D) to mount the Azure container.
28
+
29
+ <b>Oracle Azure Blob Mount Resource:</b>&nbsp;&nbsp;The Oracle Azure Blob Mount Resource is used to mount an Azure Blob Container on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D).
30
+ It relies on both the Oracle Azure Connector and the Oracle Azure Blob Container Resource to perform the mount operation.
31
+
32
+ <b>Discover Azure Vaults and Keys Resource:</b>&nbsp;&nbsp;The Discover Oracle Azure Vaults and Azure Keys Resource is used to discover Azure Vaults and the associated encryption keys available in your Azure project.
33
+
34
+ <b>Oracle Azure Vault:</b>&nbsp;&nbsp;The Oracle Azure Vault Resource is used to manage Azure Vaults within Oracle Cloud Infrastructure (OCI) for use with services such as Oracle Exadata Database Service on Dedicated Infrastructure.
35
+
36
+ <b>Oracle Azure Key:</b>&nbsp;&nbsp;Oracle Azure Key Resource is used to register and manage a Oracle Azure Key Key within Oracle Cloud Infrastructure (OCI) under an associated Azure Vault.
37
+
38
+ <br>
39
+
40
+ <b>Google Cloud:</b><br>
41
+ <b>Oracle Google Cloud Connector Resource:</b>&nbsp;&nbsp;The Oracle Google Cloud Connector Resource is used to install the Google Cloud Identity Connector on an Exadata VM cluster in Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D).
42
+
43
+ <b>Discover Google Key Rings and Keys Resource:</b>&nbsp;&nbsp;The Discover Google Key Rings and Keys Resource is used to discover Google Cloud Key Rings and the associated encryption keys available in your Google Cloud project.
44
+
45
+ <b>Google Key Rings Resource:</b>&nbsp;&nbsp;The Google Key Rings Resource is used to register and manage Google Cloud Key Rings within Oracle Cloud Infrastructure (OCI) for use with services such as Oracle Exadata Database Service on Dedicated Infrastructure.
46
+
47
+ <b>Google Key Resource:</b>&nbsp;&nbsp;The Google Key Resource is used to register and manage a Google Cloud Key within Oracle Cloud Infrastructure (OCI) under an associated Google Key Ring."""), short_help=cli_util.override('db_multicloud_gcp_provider.db_multicloud_gcp_provider_root_group.short_help', """Oracle Database MultiCloud Data Plane Integration"""))
48
+ @cli_util.help_option_group
49
+ def db_multicloud_gcp_provider_root_group():
50
+ pass
51
+
52
+
53
+ @click.command(cli_util.override('db_multicloud_gcp_provider.oracle_db_gcp_identity_connector_group.command_name', 'oracle-db-gcp-identity-connector'), cls=CommandGroupWithAlias, help="""This resource is used to create and manage a GCP Identity Connector for Oracle Database running on Oracle Exadata Database Service on Dedicated Infrastructure (ExaDB-D). The Identity Connector enables secure communication between Oracle Cloud and Google Cloud services.""")
54
+ @cli_util.help_option_group
55
+ def oracle_db_gcp_identity_connector_group():
56
+ pass
57
+
58
+
59
+ @click.command(cli_util.override('db_multicloud_gcp_provider.oracle_db_gcp_key_ring_group.command_name', 'oracle-db-gcp-key-ring'), cls=CommandGroupWithAlias, help="""Oracle DB GCP Key Ring resource object.""")
60
+ @cli_util.help_option_group
61
+ def oracle_db_gcp_key_ring_group():
62
+ pass
63
+
64
+
65
+ @click.command(cli_util.override('db_multicloud_gcp_provider.oracle_db_gcp_key_group.command_name', 'oracle-db-gcp-key'), cls=CommandGroupWithAlias, help="""Oracle DB Google Cloud Key resource.""")
66
+ @cli_util.help_option_group
67
+ def oracle_db_gcp_key_group():
68
+ pass
69
+
70
+
71
+ dbmulticloud_service_cli.dbmulticloud_service_group.add_command(db_multicloud_gcp_provider_root_group)
72
+ db_multicloud_gcp_provider_root_group.add_command(oracle_db_gcp_identity_connector_group)
73
+ db_multicloud_gcp_provider_root_group.add_command(oracle_db_gcp_key_ring_group)
74
+ db_multicloud_gcp_provider_root_group.add_command(oracle_db_gcp_key_group)
75
+
76
+
77
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.change_oracle_db_gcp_identity_connector_compartment.command_name', 'change-compartment'), help=u"""Moves the Oracle DB GCP Identity Connector resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. \n[Command Reference](changeOracleDbGcpIdentityConnectorCompartment)""")
78
+ @cli_util.option('--oracle-db-gcp-identity-connector-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Identity Configuration Resource.""")
79
+ @cli_util.option('--compartment-id', help=u"""The OCID of the compartment that contains the Oracle DB GCP Identity Connector resource.""")
80
+ @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.""")
81
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
82
+ @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.""")
83
+ @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.""")
84
+ @json_skeleton_utils.get_cli_json_input_option({})
85
+ @cli_util.help_option
86
+ @click.pass_context
87
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
88
+ @cli_util.wrap_exceptions
89
+ def change_oracle_db_gcp_identity_connector_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, compartment_id, if_match):
90
+
91
+ if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0:
92
+ raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string')
93
+
94
+ kwargs = {}
95
+ if if_match is not None:
96
+ kwargs['if_match'] = if_match
97
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
98
+
99
+ _details = {}
100
+
101
+ if compartment_id is not None:
102
+ _details['compartmentId'] = compartment_id
103
+
104
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
105
+ result = client.change_oracle_db_gcp_identity_connector_compartment(
106
+ oracle_db_gcp_identity_connector_id=oracle_db_gcp_identity_connector_id,
107
+ change_oracle_db_gcp_identity_connector_compartment_details=_details,
108
+ **kwargs
109
+ )
110
+ if wait_for_state:
111
+
112
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
113
+ try:
114
+ wait_period_kwargs = {}
115
+ if max_wait_seconds is not None:
116
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
117
+ if wait_interval_seconds is not None:
118
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
119
+ if 'opc-work-request-id' not in result.headers:
120
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
121
+ cli_util.render_response(result, ctx)
122
+ return
123
+
124
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
125
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
126
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
127
+ # If we fail, we should show an error, but we should still provide the information to the customer
128
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
129
+ cli_util.render_response(result, ctx)
130
+ sys.exit(2)
131
+ except Exception:
132
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
133
+ cli_util.render_response(result, ctx)
134
+ raise
135
+ else:
136
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
137
+ cli_util.render_response(result, ctx)
138
+
139
+
140
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.change_oracle_db_gcp_key_ring_compartment.command_name', 'change-compartment'), help=u"""Moves the GCP Key Ring resource into a different compartment. When provided, 'If-Match' is checked against 'ETag' values of the resource. \n[Command Reference](changeOracleDbGcpKeyRingCompartment)""")
141
+ @cli_util.option('--oracle-db-gcp-key-ring-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Key-Ring resource.""")
142
+ @cli_util.option('--compartment-id', help=u"""The compartment [OCID] where the Oracle DB GCP Key Ring resource resides.""")
143
+ @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.""")
144
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
145
+ @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.""")
146
+ @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.""")
147
+ @json_skeleton_utils.get_cli_json_input_option({})
148
+ @cli_util.help_option
149
+ @click.pass_context
150
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
151
+ @cli_util.wrap_exceptions
152
+ def change_oracle_db_gcp_key_ring_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, compartment_id, if_match):
153
+
154
+ if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0:
155
+ raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string')
156
+
157
+ kwargs = {}
158
+ if if_match is not None:
159
+ kwargs['if_match'] = if_match
160
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
161
+
162
+ _details = {}
163
+
164
+ if compartment_id is not None:
165
+ _details['compartmentId'] = compartment_id
166
+
167
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
168
+ result = client.change_oracle_db_gcp_key_ring_compartment(
169
+ oracle_db_gcp_key_ring_id=oracle_db_gcp_key_ring_id,
170
+ change_oracle_db_gcp_key_ring_compartment_details=_details,
171
+ **kwargs
172
+ )
173
+ if wait_for_state:
174
+
175
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
176
+ try:
177
+ wait_period_kwargs = {}
178
+ if max_wait_seconds is not None:
179
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
180
+ if wait_interval_seconds is not None:
181
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
182
+ if 'opc-work-request-id' not in result.headers:
183
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
184
+ cli_util.render_response(result, ctx)
185
+ return
186
+
187
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
188
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
189
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
190
+ # If we fail, we should show an error, but we should still provide the information to the customer
191
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
192
+ cli_util.render_response(result, ctx)
193
+ sys.exit(2)
194
+ except Exception:
195
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
196
+ cli_util.render_response(result, ctx)
197
+ raise
198
+ else:
199
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
200
+ cli_util.render_response(result, ctx)
201
+
202
+
203
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.create_oracle_db_gcp_identity_connector.command_name', 'create'), help=u"""Creates Oracle DB GCP Identity Connector resource. \n[Command Reference](createOracleDbGcpIdentityConnector)""")
204
+ @cli_util.option('--display-name', required=True, help=u"""Oracle DB Google GCP Identity Connector resource name.""")
205
+ @cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment that contains the Oracle DB GCP Identity Connector resource.""")
206
+ @cli_util.option('--issuer-url', required=True, help=u"""OIDC token issuer Url""")
207
+ @cli_util.option('--project-id', required=True, help=u"""Project id of the customer project.""")
208
+ @cli_util.option('--resource-id', required=True, help=u"""The [OCID] of the GCP VM Cluster resource.""")
209
+ @cli_util.option('--gcp-location', required=True, help=u"""GCP Location.""")
210
+ @cli_util.option('--gcp-workload-identity-pool-id', required=True, help=u"""The ID of the cloud GCP Workload Identity Pool.""")
211
+ @cli_util.option('--gcp-workload-identity-provider-id', required=True, help=u"""The ID of the GCP Workload Identity Provider.""")
212
+ @cli_util.option('--gcp-resource-service-agent-id', required=True, help=u"""The ID of the GCP resource service agent.""")
213
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
214
+
215
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
216
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
217
+
218
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
219
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
220
+ @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.""")
221
+ @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.""")
222
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
223
+ @cli_util.help_option
224
+ @click.pass_context
225
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpIdentityConnector'})
226
+ @cli_util.wrap_exceptions
227
+ def create_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, display_name, compartment_id, issuer_url, project_id, resource_id, gcp_location, gcp_workload_identity_pool_id, gcp_workload_identity_provider_id, gcp_resource_service_agent_id, freeform_tags, defined_tags):
228
+
229
+ kwargs = {}
230
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
231
+
232
+ _details = {}
233
+ _details['displayName'] = display_name
234
+ _details['compartmentId'] = compartment_id
235
+ _details['issuerUrl'] = issuer_url
236
+ _details['projectId'] = project_id
237
+ _details['resourceId'] = resource_id
238
+ _details['gcpLocation'] = gcp_location
239
+ _details['gcpWorkloadIdentityPoolId'] = gcp_workload_identity_pool_id
240
+ _details['gcpWorkloadIdentityProviderId'] = gcp_workload_identity_provider_id
241
+ _details['gcpResourceServiceAgentId'] = gcp_resource_service_agent_id
242
+
243
+ if freeform_tags is not None:
244
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
245
+
246
+ if defined_tags is not None:
247
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
248
+
249
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
250
+ result = client.create_oracle_db_gcp_identity_connector(
251
+ create_oracle_db_gcp_identity_connector_details=_details,
252
+ **kwargs
253
+ )
254
+ if wait_for_state:
255
+
256
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
257
+ try:
258
+ wait_period_kwargs = {}
259
+ if max_wait_seconds is not None:
260
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
261
+ if wait_interval_seconds is not None:
262
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
263
+ if 'opc-work-request-id' not in result.headers:
264
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
265
+ cli_util.render_response(result, ctx)
266
+ return
267
+
268
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
269
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
270
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
271
+ # If we fail, we should show an error, but we should still provide the information to the customer
272
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
273
+ cli_util.render_response(result, ctx)
274
+ sys.exit(2)
275
+ except Exception:
276
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
277
+ cli_util.render_response(result, ctx)
278
+ raise
279
+ else:
280
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
281
+ cli_util.render_response(result, ctx)
282
+
283
+
284
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.create_oracle_db_gcp_key_ring.command_name', 'create'), help=u"""Creates DB GCP Key Rings based on the provided information and retrieves the associated keys. \n[Command Reference](createOracleDbGcpKeyRing)""")
285
+ @cli_util.option('--compartment-id', required=True, help=u"""The compartment [OCID] where the Oracle DB GCP Key Ring resource resides.""")
286
+ @cli_util.option('--oracle-db-connector-id', required=True, help=u"""The [OCID] of the compartment where the Oracle DB GCP Identity Connector resource resides.""")
287
+ @cli_util.option('--display-name', required=True, help=u"""Display name of DB GCP Key Ring resource.""")
288
+ @cli_util.option('--gcp-key-ring-id', help=u"""GCP Key Ring ID.""")
289
+ @cli_util.option('--type', help=u"""Oracle DB GCP Key Ring resource Type.""")
290
+ @cli_util.option('--location', help=u"""Location of the GCP Key Ring resource.""")
291
+ @cli_util.option('--properties', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Oracle DB GCP Key Ring resource's properties.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
292
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
293
+
294
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
295
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
296
+
297
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
298
+ @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.""")
299
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
300
+ @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.""")
301
+ @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.""")
302
+ @json_skeleton_utils.get_cli_json_input_option({'properties': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
303
+ @cli_util.help_option
304
+ @click.pass_context
305
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'properties': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpKeyRing'})
306
+ @cli_util.wrap_exceptions
307
+ def create_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, oracle_db_connector_id, display_name, gcp_key_ring_id, type, location, properties, freeform_tags, defined_tags, if_match):
308
+
309
+ kwargs = {}
310
+ if if_match is not None:
311
+ kwargs['if_match'] = if_match
312
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
313
+
314
+ _details = {}
315
+ _details['compartmentId'] = compartment_id
316
+ _details['oracleDbConnectorId'] = oracle_db_connector_id
317
+ _details['displayName'] = display_name
318
+
319
+ if gcp_key_ring_id is not None:
320
+ _details['gcpKeyRingId'] = gcp_key_ring_id
321
+
322
+ if type is not None:
323
+ _details['type'] = type
324
+
325
+ if location is not None:
326
+ _details['location'] = location
327
+
328
+ if properties is not None:
329
+ _details['properties'] = cli_util.parse_json_parameter("properties", properties)
330
+
331
+ if freeform_tags is not None:
332
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
333
+
334
+ if defined_tags is not None:
335
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
336
+
337
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
338
+ result = client.create_oracle_db_gcp_key_ring(
339
+ create_oracle_db_gcp_key_ring_details=_details,
340
+ **kwargs
341
+ )
342
+ if wait_for_state:
343
+
344
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
345
+ try:
346
+ wait_period_kwargs = {}
347
+ if max_wait_seconds is not None:
348
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
349
+ if wait_interval_seconds is not None:
350
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
351
+ if 'opc-work-request-id' not in result.headers:
352
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
353
+ cli_util.render_response(result, ctx)
354
+ return
355
+
356
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
357
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
358
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
359
+ # If we fail, we should show an error, but we should still provide the information to the customer
360
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
361
+ cli_util.render_response(result, ctx)
362
+ sys.exit(2)
363
+ except Exception:
364
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
365
+ cli_util.render_response(result, ctx)
366
+ raise
367
+ else:
368
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
369
+ cli_util.render_response(result, ctx)
370
+
371
+
372
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.delete_oracle_db_gcp_identity_connector.command_name', 'delete'), help=u"""Deletes the Oracle DB GCP Identity Connector resource and removes the associated connector from the database resource. \n[Command Reference](deleteOracleDbGcpIdentityConnector)""")
373
+ @cli_util.option('--oracle-db-gcp-identity-connector-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Identity Configuration Resource.""")
374
+ @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.""")
375
+ @cli_util.confirm_delete_option
376
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
377
+ @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.""")
378
+ @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.""")
379
+ @json_skeleton_utils.get_cli_json_input_option({})
380
+ @cli_util.help_option
381
+ @click.pass_context
382
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
383
+ @cli_util.wrap_exceptions
384
+ def delete_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, if_match):
385
+
386
+ if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0:
387
+ raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string')
388
+
389
+ kwargs = {}
390
+ if if_match is not None:
391
+ kwargs['if_match'] = if_match
392
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
393
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
394
+ result = client.delete_oracle_db_gcp_identity_connector(
395
+ oracle_db_gcp_identity_connector_id=oracle_db_gcp_identity_connector_id,
396
+ **kwargs
397
+ )
398
+ if wait_for_state:
399
+
400
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
401
+ try:
402
+ wait_period_kwargs = {}
403
+ if max_wait_seconds is not None:
404
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
405
+ if wait_interval_seconds is not None:
406
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
407
+ if 'opc-work-request-id' not in result.headers:
408
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
409
+ cli_util.render_response(result, ctx)
410
+ return
411
+
412
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
413
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
414
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
415
+ # If we fail, we should show an error, but we should still provide the information to the customer
416
+ 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)
417
+ cli_util.render_response(result, ctx)
418
+ sys.exit(2)
419
+ except Exception:
420
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
421
+ cli_util.render_response(result, ctx)
422
+ raise
423
+ else:
424
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
425
+ cli_util.render_response(result, ctx)
426
+
427
+
428
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.delete_oracle_db_gcp_key_ring.command_name', 'delete'), help=u"""Deletes the GCP Key Ring and its associated metadata. \n[Command Reference](deleteOracleDbGcpKeyRing)""")
429
+ @cli_util.option('--oracle-db-gcp-key-ring-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Key-Ring resource.""")
430
+ @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.""")
431
+ @cli_util.confirm_delete_option
432
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
433
+ @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.""")
434
+ @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.""")
435
+ @json_skeleton_utils.get_cli_json_input_option({})
436
+ @cli_util.help_option
437
+ @click.pass_context
438
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
439
+ @cli_util.wrap_exceptions
440
+ def delete_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, if_match):
441
+
442
+ if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0:
443
+ raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string')
444
+
445
+ kwargs = {}
446
+ if if_match is not None:
447
+ kwargs['if_match'] = if_match
448
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
449
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
450
+ result = client.delete_oracle_db_gcp_key_ring(
451
+ oracle_db_gcp_key_ring_id=oracle_db_gcp_key_ring_id,
452
+ **kwargs
453
+ )
454
+ if wait_for_state:
455
+
456
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
457
+ try:
458
+ wait_period_kwargs = {}
459
+ if max_wait_seconds is not None:
460
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
461
+ if wait_interval_seconds is not None:
462
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
463
+ if 'opc-work-request-id' not in result.headers:
464
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
465
+ cli_util.render_response(result, ctx)
466
+ return
467
+
468
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
469
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
470
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
471
+ # If we fail, we should show an error, but we should still provide the information to the customer
472
+ 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)
473
+ cli_util.render_response(result, ctx)
474
+ sys.exit(2)
475
+ except Exception:
476
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
477
+ cli_util.render_response(result, ctx)
478
+ raise
479
+ else:
480
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
481
+ cli_util.render_response(result, ctx)
482
+
483
+
484
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.get_oracle_db_gcp_identity_connector.command_name', 'get'), help=u"""Retrieves the Oracle DB GCP Identity Connector for a specified resource [OCID]. \n[Command Reference](getOracleDbGcpIdentityConnector)""")
485
+ @cli_util.option('--oracle-db-gcp-identity-connector-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Identity Configuration Resource.""")
486
+ @json_skeleton_utils.get_cli_json_input_option({})
487
+ @cli_util.help_option
488
+ @click.pass_context
489
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpIdentityConnector'})
490
+ @cli_util.wrap_exceptions
491
+ def get_oracle_db_gcp_identity_connector(ctx, from_json, oracle_db_gcp_identity_connector_id):
492
+
493
+ if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0:
494
+ raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string')
495
+
496
+ kwargs = {}
497
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
498
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
499
+ result = client.get_oracle_db_gcp_identity_connector(
500
+ oracle_db_gcp_identity_connector_id=oracle_db_gcp_identity_connector_id,
501
+ **kwargs
502
+ )
503
+ cli_util.render_response(result, ctx)
504
+
505
+
506
+ @oracle_db_gcp_key_group.command(name=cli_util.override('db_multicloud_gcp_provider.get_oracle_db_gcp_key.command_name', 'get'), help=u"""Retrieves Oracle DB Google Cloud Key details using a specific resource [OCID]. \n[Command Reference](getOracleDbGcpKey)""")
507
+ @cli_util.option('--oracle-db-gcp-key-id', required=True, help=u"""The [OCID] of the Oracle DB Google Cloud Key resource.""")
508
+ @json_skeleton_utils.get_cli_json_input_option({})
509
+ @cli_util.help_option
510
+ @click.pass_context
511
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpKey'})
512
+ @cli_util.wrap_exceptions
513
+ def get_oracle_db_gcp_key(ctx, from_json, oracle_db_gcp_key_id):
514
+
515
+ if isinstance(oracle_db_gcp_key_id, six.string_types) and len(oracle_db_gcp_key_id.strip()) == 0:
516
+ raise click.UsageError('Parameter --oracle-db-gcp-key-id cannot be whitespace or empty string')
517
+
518
+ kwargs = {}
519
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
520
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
521
+ result = client.get_oracle_db_gcp_key(
522
+ oracle_db_gcp_key_id=oracle_db_gcp_key_id,
523
+ **kwargs
524
+ )
525
+ cli_util.render_response(result, ctx)
526
+
527
+
528
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.get_oracle_db_gcp_key_ring.command_name', 'get'), help=u"""Retrieves the Oracle GCP Key Ring details using a specific Container resource [OCID]. \n[Command Reference](getOracleDbGcpKeyRing)""")
529
+ @cli_util.option('--oracle-db-gcp-key-ring-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Key-Ring resource.""")
530
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
531
+ @cli_util.option('--page', help=u"""The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.""")
532
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'asc' or 'desc'.""")
533
+ @json_skeleton_utils.get_cli_json_input_option({})
534
+ @cli_util.help_option
535
+ @click.pass_context
536
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpKeyRing'})
537
+ @cli_util.wrap_exceptions
538
+ def get_oracle_db_gcp_key_ring(ctx, from_json, oracle_db_gcp_key_ring_id, limit, page, sort_order):
539
+
540
+ if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0:
541
+ raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string')
542
+
543
+ kwargs = {}
544
+ if limit is not None:
545
+ kwargs['limit'] = limit
546
+ if page is not None:
547
+ kwargs['page'] = page
548
+ if sort_order is not None:
549
+ kwargs['sort_order'] = sort_order
550
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
551
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
552
+ result = client.get_oracle_db_gcp_key_ring(
553
+ oracle_db_gcp_key_ring_id=oracle_db_gcp_key_ring_id,
554
+ **kwargs
555
+ )
556
+ cli_util.render_response(result, ctx)
557
+
558
+
559
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.list_oracle_db_gcp_identity_connectors.command_name', 'list'), help=u"""Lists all Oracle DB GCP Identity Connectors based on the specified filters. \n[Command Reference](listOracleDbGcpIdentityConnectors)""")
560
+ @cli_util.option('--compartment-id', required=True, help=u"""The [ID] of the compartment.""")
561
+ @cli_util.option('--display-name', help=u"""A filter to return Oracle DB GCP Identity Connector resources that match the specified display name.""")
562
+ @cli_util.option('--resource-id', help=u"""A filter to return Oracle DB GCP Identity Connector resource that match the given resource [OCID].""")
563
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the specified lifecycle state. The state value is case-insensitive.""")
564
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
565
+ @cli_util.option('--page', help=u"""The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.""")
566
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'asc' or 'desc'.""")
567
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified, default is timeCreated.""")
568
+ @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.""")
569
+ @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.""")
570
+ @json_skeleton_utils.get_cli_json_input_option({})
571
+ @cli_util.help_option
572
+ @click.pass_context
573
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpIdentityConnectorSummaryCollection'})
574
+ @cli_util.wrap_exceptions
575
+ def list_oracle_db_gcp_identity_connectors(ctx, from_json, all_pages, page_size, compartment_id, display_name, resource_id, lifecycle_state, limit, page, sort_order, sort_by):
576
+
577
+ if all_pages and limit:
578
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
579
+
580
+ kwargs = {}
581
+ if display_name is not None:
582
+ kwargs['display_name'] = display_name
583
+ if resource_id is not None:
584
+ kwargs['resource_id'] = resource_id
585
+ if lifecycle_state is not None:
586
+ kwargs['lifecycle_state'] = lifecycle_state
587
+ if limit is not None:
588
+ kwargs['limit'] = limit
589
+ if page is not None:
590
+ kwargs['page'] = page
591
+ if sort_order is not None:
592
+ kwargs['sort_order'] = sort_order
593
+ if sort_by is not None:
594
+ kwargs['sort_by'] = sort_by
595
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
596
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
597
+ if all_pages:
598
+ if page_size:
599
+ kwargs['limit'] = page_size
600
+
601
+ result = cli_util.list_call_get_all_results(
602
+ client.list_oracle_db_gcp_identity_connectors,
603
+ compartment_id=compartment_id,
604
+ **kwargs
605
+ )
606
+ elif limit is not None:
607
+ result = cli_util.list_call_get_up_to_limit(
608
+ client.list_oracle_db_gcp_identity_connectors,
609
+ limit,
610
+ page_size,
611
+ compartment_id=compartment_id,
612
+ **kwargs
613
+ )
614
+ else:
615
+ result = client.list_oracle_db_gcp_identity_connectors(
616
+ compartment_id=compartment_id,
617
+ **kwargs
618
+ )
619
+ cli_util.render_response(result, ctx)
620
+
621
+
622
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.list_oracle_db_gcp_key_rings.command_name', 'list'), help=u"""Lists the all DB GCP Key Rings based on filters. \n[Command Reference](listOracleDbGcpKeyRings)""")
623
+ @cli_util.option('--compartment-id', required=True, help=u"""The [ID] of the compartment.""")
624
+ @cli_util.option('--display-name', help=u"""A filter to return Oracle DB GCP Key Ring resources that match the specified display name.""")
625
+ @cli_util.option('--oracle-db-gcp-key-ring-id', help=u"""A filter to return Oracle DB GCP Key Rings.""")
626
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
627
+ @cli_util.option('--oracle-db-gcp-connector-id', help=u"""A filter to return Oracle DB GCP Identity Connector resources that match the specified resource [OCID].""")
628
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
629
+ @cli_util.option('--page', help=u"""The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.""")
630
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'asc' or 'desc'.""")
631
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified, default is timeCreated.""")
632
+ @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.""")
633
+ @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.""")
634
+ @json_skeleton_utils.get_cli_json_input_option({})
635
+ @cli_util.help_option
636
+ @click.pass_context
637
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpKeyRingSummaryCollection'})
638
+ @cli_util.wrap_exceptions
639
+ def list_oracle_db_gcp_key_rings(ctx, from_json, all_pages, page_size, compartment_id, display_name, oracle_db_gcp_key_ring_id, lifecycle_state, oracle_db_gcp_connector_id, limit, page, sort_order, sort_by):
640
+
641
+ if all_pages and limit:
642
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
643
+
644
+ kwargs = {}
645
+ if display_name is not None:
646
+ kwargs['display_name'] = display_name
647
+ if oracle_db_gcp_key_ring_id is not None:
648
+ kwargs['oracle_db_gcp_key_ring_id'] = oracle_db_gcp_key_ring_id
649
+ if lifecycle_state is not None:
650
+ kwargs['lifecycle_state'] = lifecycle_state
651
+ if oracle_db_gcp_connector_id is not None:
652
+ kwargs['oracle_db_gcp_connector_id'] = oracle_db_gcp_connector_id
653
+ if limit is not None:
654
+ kwargs['limit'] = limit
655
+ if page is not None:
656
+ kwargs['page'] = page
657
+ if sort_order is not None:
658
+ kwargs['sort_order'] = sort_order
659
+ if sort_by is not None:
660
+ kwargs['sort_by'] = sort_by
661
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
662
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
663
+ if all_pages:
664
+ if page_size:
665
+ kwargs['limit'] = page_size
666
+
667
+ result = cli_util.list_call_get_all_results(
668
+ client.list_oracle_db_gcp_key_rings,
669
+ compartment_id=compartment_id,
670
+ **kwargs
671
+ )
672
+ elif limit is not None:
673
+ result = cli_util.list_call_get_up_to_limit(
674
+ client.list_oracle_db_gcp_key_rings,
675
+ limit,
676
+ page_size,
677
+ compartment_id=compartment_id,
678
+ **kwargs
679
+ )
680
+ else:
681
+ result = client.list_oracle_db_gcp_key_rings(
682
+ compartment_id=compartment_id,
683
+ **kwargs
684
+ )
685
+ cli_util.render_response(result, ctx)
686
+
687
+
688
+ @oracle_db_gcp_key_group.command(name=cli_util.override('db_multicloud_gcp_provider.list_oracle_db_gcp_keys.command_name', 'list'), help=u"""Lists all Oracle DB Google Cloud Keys based on the specified filters. \n[Command Reference](listOracleDbGcpKeys)""")
689
+ @cli_util.option('--compartment-id', required=True, help=u"""The [ID] of the compartment.""")
690
+ @cli_util.option('--display-name', help=u"""A filter to return Oracle DB Google Cloud Key resources that match the specified display name.""")
691
+ @cli_util.option('--oracle-db-gcp-key-ring-id', help=u"""A filter to return Oracle DB GCP Key Rings.""")
692
+ @cli_util.option('--oracle-db-gcp-key-id', help=u"""A filter to return Oracle DB Google Cloud Key resources.""")
693
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the specified lifecycle state. The state value is case-insensitive.""")
694
+ @cli_util.option('--limit', type=click.INT, help=u"""The maximum number of items to return.""")
695
+ @cli_util.option('--page', help=u"""The page token representing the page at which to start retrieving results. This is usually retrieved from a previous list call.""")
696
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either 'asc' or 'desc'.""")
697
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. If no value is specified, default is timeCreated.""")
698
+ @cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
699
+ @cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
700
+ @json_skeleton_utils.get_cli_json_input_option({})
701
+ @cli_util.help_option
702
+ @click.pass_context
703
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'dbmulticloud', 'class': 'OracleDbGcpKeySummaryCollection'})
704
+ @cli_util.wrap_exceptions
705
+ def list_oracle_db_gcp_keys(ctx, from_json, all_pages, page_size, compartment_id, display_name, oracle_db_gcp_key_ring_id, oracle_db_gcp_key_id, lifecycle_state, limit, page, sort_order, sort_by):
706
+
707
+ if all_pages and limit:
708
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
709
+
710
+ kwargs = {}
711
+ if display_name is not None:
712
+ kwargs['display_name'] = display_name
713
+ if oracle_db_gcp_key_ring_id is not None:
714
+ kwargs['oracle_db_gcp_key_ring_id'] = oracle_db_gcp_key_ring_id
715
+ if oracle_db_gcp_key_id is not None:
716
+ kwargs['oracle_db_gcp_key_id'] = oracle_db_gcp_key_id
717
+ if lifecycle_state is not None:
718
+ kwargs['lifecycle_state'] = lifecycle_state
719
+ if limit is not None:
720
+ kwargs['limit'] = limit
721
+ if page is not None:
722
+ kwargs['page'] = page
723
+ if sort_order is not None:
724
+ kwargs['sort_order'] = sort_order
725
+ if sort_by is not None:
726
+ kwargs['sort_by'] = sort_by
727
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
728
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
729
+ if all_pages:
730
+ if page_size:
731
+ kwargs['limit'] = page_size
732
+
733
+ result = cli_util.list_call_get_all_results(
734
+ client.list_oracle_db_gcp_keys,
735
+ compartment_id=compartment_id,
736
+ **kwargs
737
+ )
738
+ elif limit is not None:
739
+ result = cli_util.list_call_get_up_to_limit(
740
+ client.list_oracle_db_gcp_keys,
741
+ limit,
742
+ page_size,
743
+ compartment_id=compartment_id,
744
+ **kwargs
745
+ )
746
+ else:
747
+ result = client.list_oracle_db_gcp_keys(
748
+ compartment_id=compartment_id,
749
+ **kwargs
750
+ )
751
+ cli_util.render_response(result, ctx)
752
+
753
+
754
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.refresh_oracle_db_gcp_identity_connector.command_name', 'refresh'), help=u"""Refreshes the Oracle DB GCP Connector resource. \n[Command Reference](refreshOracleDbGcpIdentityConnector)""")
755
+ @cli_util.option('--oracle-db-gcp-identity-connector-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Identity Configuration Resource.""")
756
+ @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.""")
757
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
758
+ @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.""")
759
+ @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.""")
760
+ @json_skeleton_utils.get_cli_json_input_option({})
761
+ @cli_util.help_option
762
+ @click.pass_context
763
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
764
+ @cli_util.wrap_exceptions
765
+ def refresh_oracle_db_gcp_identity_connector(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, if_match):
766
+
767
+ if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0:
768
+ raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string')
769
+
770
+ kwargs = {}
771
+ if if_match is not None:
772
+ kwargs['if_match'] = if_match
773
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
774
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
775
+ result = client.refresh_oracle_db_gcp_identity_connector(
776
+ oracle_db_gcp_identity_connector_id=oracle_db_gcp_identity_connector_id,
777
+ **kwargs
778
+ )
779
+ if wait_for_state:
780
+
781
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
782
+ try:
783
+ wait_period_kwargs = {}
784
+ if max_wait_seconds is not None:
785
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
786
+ if wait_interval_seconds is not None:
787
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
788
+ if 'opc-work-request-id' not in result.headers:
789
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
790
+ cli_util.render_response(result, ctx)
791
+ return
792
+
793
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
794
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
795
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
796
+ # If we fail, we should show an error, but we should still provide the information to the customer
797
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
798
+ cli_util.render_response(result, ctx)
799
+ sys.exit(2)
800
+ except Exception:
801
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
802
+ cli_util.render_response(result, ctx)
803
+ raise
804
+ else:
805
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
806
+ cli_util.render_response(result, ctx)
807
+
808
+
809
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.refresh_oracle_db_gcp_key_ring.command_name', 'refresh'), help=u"""Refreshes Oracle GCP Key Ring details from the backend. \n[Command Reference](refreshOracleDbGcpKeyRing)""")
810
+ @cli_util.option('--oracle-db-gcp-key-ring-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Key-Ring resource.""")
811
+ @cli_util.option('--oracle-db-gcp-connector-id', help=u"""The [OCID] of the Oracle DB GCP Connector resource.""")
812
+ @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.""")
813
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
814
+ @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.""")
815
+ @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.""")
816
+ @json_skeleton_utils.get_cli_json_input_option({})
817
+ @cli_util.help_option
818
+ @click.pass_context
819
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
820
+ @cli_util.wrap_exceptions
821
+ def refresh_oracle_db_gcp_key_ring(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, oracle_db_gcp_connector_id, if_match):
822
+
823
+ if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0:
824
+ raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string')
825
+
826
+ kwargs = {}
827
+ if if_match is not None:
828
+ kwargs['if_match'] = if_match
829
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
830
+
831
+ _details = {}
832
+
833
+ if oracle_db_gcp_connector_id is not None:
834
+ _details['oracleDbGcpConnectorId'] = oracle_db_gcp_connector_id
835
+
836
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
837
+ result = client.refresh_oracle_db_gcp_key_ring(
838
+ oracle_db_gcp_key_ring_id=oracle_db_gcp_key_ring_id,
839
+ refresh_oracle_db_gcp_key_ring_details=_details,
840
+ **kwargs
841
+ )
842
+ if wait_for_state:
843
+
844
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
845
+ try:
846
+ wait_period_kwargs = {}
847
+ if max_wait_seconds is not None:
848
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
849
+ if wait_interval_seconds is not None:
850
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
851
+ if 'opc-work-request-id' not in result.headers:
852
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
853
+ cli_util.render_response(result, ctx)
854
+ return
855
+
856
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
857
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
858
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
859
+ # If we fail, we should show an error, but we should still provide the information to the customer
860
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
861
+ cli_util.render_response(result, ctx)
862
+ sys.exit(2)
863
+ except Exception:
864
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
865
+ cli_util.render_response(result, ctx)
866
+ raise
867
+ else:
868
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
869
+ cli_util.render_response(result, ctx)
870
+
871
+
872
+ @oracle_db_gcp_identity_connector_group.command(name=cli_util.override('db_multicloud_gcp_provider.update_oracle_db_gcp_identity_connector.command_name', 'update'), help=u"""Modifies the existing Oracle DB GCP Identity Connector resource for a given [OCID]. \n[Command Reference](updateOracleDbGcpIdentityConnector)""")
873
+ @cli_util.option('--oracle-db-gcp-identity-connector-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Identity Configuration Resource.""")
874
+ @cli_util.option('--display-name', help=u"""Oracle DB Google GCP Identity Connector resource name.""")
875
+ @cli_util.option('--issuer-url', help=u"""OIDC token issuer Url""")
876
+ @cli_util.option('--project-id', help=u"""Project ID of the customer project.""")
877
+ @cli_util.option('--resource-id', help=u"""The [OCID] of the GCP VM Cluster resource.""")
878
+ @cli_util.option('--gcp-location', help=u"""GCP Location.""")
879
+ @cli_util.option('--gcp-workload-identity-pool-id', help=u"""The ID of the cloud GCP Workload Identity Pool.""")
880
+ @cli_util.option('--gcp-workload-identity-provider-id', help=u"""The ID of the GCP Workload Identity Provider.""")
881
+ @cli_util.option('--gcp-resource-service-agent-id', help=u"""The ID of the GCP resource service agent.""")
882
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
883
+
884
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
885
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
886
+
887
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
888
+ @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.""")
889
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
890
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
891
+ @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.""")
892
+ @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.""")
893
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
894
+ @cli_util.help_option
895
+ @click.pass_context
896
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
897
+ @cli_util.wrap_exceptions
898
+ def update_oracle_db_gcp_identity_connector(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_identity_connector_id, display_name, issuer_url, project_id, resource_id, gcp_location, gcp_workload_identity_pool_id, gcp_workload_identity_provider_id, gcp_resource_service_agent_id, freeform_tags, defined_tags, if_match):
899
+
900
+ if isinstance(oracle_db_gcp_identity_connector_id, six.string_types) and len(oracle_db_gcp_identity_connector_id.strip()) == 0:
901
+ raise click.UsageError('Parameter --oracle-db-gcp-identity-connector-id cannot be whitespace or empty string')
902
+ if not force:
903
+ if freeform_tags or defined_tags:
904
+ if not click.confirm("WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
905
+ ctx.abort()
906
+
907
+ kwargs = {}
908
+ if if_match is not None:
909
+ kwargs['if_match'] = if_match
910
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
911
+
912
+ _details = {}
913
+
914
+ if display_name is not None:
915
+ _details['displayName'] = display_name
916
+
917
+ if issuer_url is not None:
918
+ _details['issuerUrl'] = issuer_url
919
+
920
+ if project_id is not None:
921
+ _details['projectId'] = project_id
922
+
923
+ if resource_id is not None:
924
+ _details['resourceId'] = resource_id
925
+
926
+ if gcp_location is not None:
927
+ _details['gcpLocation'] = gcp_location
928
+
929
+ if gcp_workload_identity_pool_id is not None:
930
+ _details['gcpWorkloadIdentityPoolId'] = gcp_workload_identity_pool_id
931
+
932
+ if gcp_workload_identity_provider_id is not None:
933
+ _details['gcpWorkloadIdentityProviderId'] = gcp_workload_identity_provider_id
934
+
935
+ if gcp_resource_service_agent_id is not None:
936
+ _details['gcpResourceServiceAgentId'] = gcp_resource_service_agent_id
937
+
938
+ if freeform_tags is not None:
939
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
940
+
941
+ if defined_tags is not None:
942
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
943
+
944
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
945
+ result = client.update_oracle_db_gcp_identity_connector(
946
+ oracle_db_gcp_identity_connector_id=oracle_db_gcp_identity_connector_id,
947
+ update_oracle_db_gcp_identity_connector_details=_details,
948
+ **kwargs
949
+ )
950
+ if wait_for_state:
951
+
952
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
953
+ try:
954
+ wait_period_kwargs = {}
955
+ if max_wait_seconds is not None:
956
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
957
+ if wait_interval_seconds is not None:
958
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
959
+ if 'opc-work-request-id' not in result.headers:
960
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
961
+ cli_util.render_response(result, ctx)
962
+ return
963
+
964
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
965
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
966
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
967
+ # If we fail, we should show an error, but we should still provide the information to the customer
968
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
969
+ cli_util.render_response(result, ctx)
970
+ sys.exit(2)
971
+ except Exception:
972
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
973
+ cli_util.render_response(result, ctx)
974
+ raise
975
+ else:
976
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
977
+ cli_util.render_response(result, ctx)
978
+
979
+
980
+ @oracle_db_gcp_key_ring_group.command(name=cli_util.override('db_multicloud_gcp_provider.update_oracle_db_gcp_key_ring.command_name', 'update'), help=u"""Modifies the existing Oracle GCP Key Ring Details for a given [OCID]. \n[Command Reference](updateOracleDbGcpKeyRing)""")
981
+ @cli_util.option('--oracle-db-gcp-key-ring-id', required=True, help=u"""The [OCID] of the Oracle DB GCP Key-Ring resource.""")
982
+ @cli_util.option('--display-name', help=u"""Display name of DB GCP Key Ring resource.""")
983
+ @cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
984
+
985
+ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
986
+ @cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
987
+
988
+ Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
989
+ @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.""")
990
+ @cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
991
+ @cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
992
+ @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.""")
993
+ @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.""")
994
+ @json_skeleton_utils.get_cli_json_input_option({'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
995
+ @cli_util.help_option
996
+ @click.pass_context
997
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'dbmulticloud', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'dbmulticloud', 'class': 'dict(str, dict(str, object))'}})
998
+ @cli_util.wrap_exceptions
999
+ def update_oracle_db_gcp_key_ring(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, oracle_db_gcp_key_ring_id, display_name, freeform_tags, defined_tags, if_match):
1000
+
1001
+ if isinstance(oracle_db_gcp_key_ring_id, six.string_types) and len(oracle_db_gcp_key_ring_id.strip()) == 0:
1002
+ raise click.UsageError('Parameter --oracle-db-gcp-key-ring-id cannot be whitespace or empty string')
1003
+ if not force:
1004
+ if freeform_tags or defined_tags:
1005
+ if not click.confirm("WARNING: Updates to freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
1006
+ ctx.abort()
1007
+
1008
+ kwargs = {}
1009
+ if if_match is not None:
1010
+ kwargs['if_match'] = if_match
1011
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1012
+
1013
+ _details = {}
1014
+
1015
+ if display_name is not None:
1016
+ _details['displayName'] = display_name
1017
+
1018
+ if freeform_tags is not None:
1019
+ _details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
1020
+
1021
+ if defined_tags is not None:
1022
+ _details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
1023
+
1024
+ client = cli_util.build_client('dbmulticloud', 'db_multicloud_gcp_provider', ctx)
1025
+ result = client.update_oracle_db_gcp_key_ring(
1026
+ oracle_db_gcp_key_ring_id=oracle_db_gcp_key_ring_id,
1027
+ update_oracle_db_gcp_key_ring_details=_details,
1028
+ **kwargs
1029
+ )
1030
+ if wait_for_state:
1031
+
1032
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
1033
+ try:
1034
+ wait_period_kwargs = {}
1035
+ if max_wait_seconds is not None:
1036
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
1037
+ if wait_interval_seconds is not None:
1038
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
1039
+ if 'opc-work-request-id' not in result.headers:
1040
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
1041
+ cli_util.render_response(result, ctx)
1042
+ return
1043
+
1044
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
1045
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
1046
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
1047
+ # If we fail, we should show an error, but we should still provide the information to the customer
1048
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
1049
+ cli_util.render_response(result, ctx)
1050
+ sys.exit(2)
1051
+ except Exception:
1052
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
1053
+ cli_util.render_response(result, ctx)
1054
+ raise
1055
+ else:
1056
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
1057
+ cli_util.render_response(result, ctx)