oci-cli 3.66.0__py3-none-any.whl → 3.66.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. common_util/ignored_commands.py +2 -1
  2. oci_cli/bin/jms.psm1 +74 -6
  3. oci_cli/bin/marketplace.psm1 +7 -1
  4. oci_cli/cli_root.py +2 -2
  5. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/change-compartment.txt +133 -0
  6. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/create.txt +185 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/delete.txt +135 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/get.txt +93 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/update.txt +195 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection/list-ai-data-platforms.txt +155 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection.txt +15 -0
  12. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform.txt +28 -0
  13. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/cancel.txt +103 -0
  14. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/get.txt +91 -0
  15. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/list.txt +140 -0
  16. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error/list.txt +131 -0
  17. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error.txt +15 -0
  18. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry/list-work-request-logs.txt +131 -0
  19. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry.txt +15 -0
  20. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request.txt +23 -0
  21. oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform.txt +44 -0
  22. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/discovery-job/list-discovery-job-results.txt +13 -1
  23. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-error-summary/list-masking-errors.txt +1 -1
  24. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/list-masking-reports.txt +5 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/mask-data.txt +6 -0
  26. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-findings.txt +5 -0
  27. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sensitive-column/list.txt +22 -1
  28. oci_cli/help_text_producer/data_files/text/cmdref/data-safe/service/get.txt +2 -2
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +8 -0
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/configure-exascale.txt +136 -0
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +2 -1
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra.txt +2 -0
  33. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +4 -0
  34. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +3 -2
  35. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/list.txt +23 -1
  36. oci_cli/help_text_producer/data_files/text/cmdref/db/system/change-cloud-db-system-subscription.txt +134 -0
  37. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +16 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +16 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +16 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +16 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +6 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/db/system.txt +2 -0
  43. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +4 -0
  44. oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +6 -12
  45. 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
  46. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
  47. 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
  48. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log-entry.txt +1 -1
  49. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
  50. oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
  51. oci_cli/help_text_producer/data_files/text/cmdref/jms/agent-installer-summary/generate-agent-installer-configuration.txt +8 -0
  52. oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/create.txt +1 -1
  53. oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/list.txt +1 -1
  54. oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary/list-containers.txt +338 -0
  55. oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary.txt +14 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/jms/export-setting/update.txt +15 -0
  57. oci_cli/help_text_producer/data_files/text/cmdref/jms/fleet-agent-configuration/update.txt +8 -0
  58. oci_cli/help_text_producer/data_files/text/cmdref/jms/installation-usage/summarize.txt +1 -1
  59. oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/create.txt +12 -3
  60. oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/list.txt +3 -3
  61. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary/list-library-application-usage.txt +332 -0
  62. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary.txt +16 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory/summarize.txt +284 -0
  64. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory.txt +14 -0
  65. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary/list-library-managed-instance-usage.txt +332 -0
  66. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary.txt +16 -0
  67. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/scan.txt +8 -0
  68. oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/summarize.txt +3 -3
  69. oci_cli/help_text_producer/data_files/text/cmdref/jms/managed-instance-usage/summarize.txt +1 -1
  70. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-add-installation-site-task-details.txt +148 -0
  71. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-crypto-task-details.txt +148 -0
  72. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-deployed-application-migration-task-details.txt +148 -0
  73. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-java-migration-task-details.txt +148 -0
  74. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-jfr-task-details.txt +148 -0
  75. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-performance-tuning-task-details.txt +148 -0
  76. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-remove-installation-site-task-details.txt +148 -0
  77. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-java-server-task-details.txt +148 -0
  78. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-library-task-details.txt +148 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create.txt +150 -0
  80. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/delete.txt +146 -0
  81. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/get.txt +108 -0
  82. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/list.txt +136 -0
  83. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-add-installation-site-task-details.txt +165 -0
  84. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-crypto-task-details.txt +165 -0
  85. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-deployed-application-migration-task-details.txt +165 -0
  86. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-java-migration-task-details.txt +165 -0
  87. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-jfr-task-details.txt +165 -0
  88. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-performance-tuning-task-details.txt +165 -0
  89. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-remove-installation-site-task-details.txt +165 -0
  90. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-java-server-task-details.txt +165 -0
  91. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-library-task-details.txt +165 -0
  92. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update.txt +171 -0
  93. oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule.txt +58 -0
  94. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary/list-uncorrelated-package-application-usage.txt +324 -0
  95. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary.txt +16 -0
  96. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-managed-instance-usage-summary/list-uncorrelated-package-managed-instance-usage.txt +324 -0
  97. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-managed-instance-usage-summary.txt +16 -0
  98. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary/list-uncorrelated-package-usage.txt +323 -0
  99. oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary.txt +14 -0
  100. oci_cli/help_text_producer/data_files/text/cmdref/jms/work-request/list.txt +1 -1
  101. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/get.txt +1 -1
  102. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/list.txt +1 -1
  103. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/create.txt +1 -1
  104. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/list.txt +1 -1
  105. oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads.txt +1 -3
  106. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/get.txt +83 -0
  107. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/update.txt +99 -0
  108. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration.txt +16 -0
  109. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/delete.txt +103 -0
  110. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/get.txt +91 -0
  111. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/list.txt +128 -0
  112. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/request.txt +172 -0
  113. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis.txt +23 -0
  114. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/delete.txt +103 -0
  115. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/get.txt +91 -0
  116. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/list.txt +136 -0
  117. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/request.txt +172 -0
  118. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis.txt +23 -0
  119. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/get.txt +83 -0
  120. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/update.txt +95 -0
  121. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration.txt +16 -0
  122. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary/list-work-items.txt +110 -0
  123. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary.txt +14 -0
  124. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/cancel.txt +103 -0
  125. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/get.txt +91 -0
  126. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/list.txt +137 -0
  127. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error/list.txt +128 -0
  128. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error.txt +15 -0
  129. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-log-entry/list-work-request-logs.txt +128 -0
  130. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-log-entry.txt +15 -0
  131. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request.txt +23 -0
  132. oci_cli/help_text_producer/data_files/text/cmdref/jms-utils.txt +65 -0
  133. oci_cli/help_text_producer/data_files/text/cmdref/jms.txt +76 -0
  134. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details/create-marketplace-external-attested-metadata.txt +96 -0
  135. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details.txt +15 -0
  136. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary/list-marketplace-metadata-public-keys.txt +121 -0
  137. oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary.txt +15 -0
  138. oci_cli/help_text_producer/data_files/text/cmdref/marketplace.txt +8 -0
  139. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/create.txt +127 -0
  140. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/delete.txt +136 -0
  141. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/get.txt +98 -0
  142. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/list.txt +137 -0
  143. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region.txt +26 -0
  144. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/change-compartment.txt +135 -0
  145. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/create.txt +204 -0
  146. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/delete.txt +133 -0
  147. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/disable-oac.txt +129 -0
  148. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/enable-oac.txt +154 -0
  149. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/get.txt +95 -0
  150. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/list.txt +142 -0
  151. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/update.txt +179 -0
  152. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance.txt +34 -0
  153. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/create.txt +131 -0
  154. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/delete.txt +136 -0
  155. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/get.txt +98 -0
  156. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/list.txt +137 -0
  157. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/update.txt +137 -0
  158. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment.txt +29 -0
  159. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/cancel.txt +103 -0
  160. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/get.txt +91 -0
  161. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/list.txt +140 -0
  162. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error/list.txt +131 -0
  163. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error.txt +15 -0
  164. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry/list.txt +131 -0
  165. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry.txt +15 -0
  166. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request.txt +23 -0
  167. oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics.txt +68 -0
  168. oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +7 -7
  169. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
  170. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
  171. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
  172. oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
  173. oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
  174. oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
  175. oci_cli/help_text_producer/data_files/text/index.txt +8 -2
  176. oci_cli/help_text_producer/data_files/text/oci.txt +1 -1
  177. oci_cli/service_mapping.py +16 -1
  178. oci_cli/version.py +1 -1
  179. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/METADATA +2 -2
  180. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/RECORD +228 -75
  181. services/ai_data_platform/__init__.py +4 -0
  182. services/ai_data_platform/src/__init__.py +4 -0
  183. services/ai_data_platform/src/oci_cli_ai_data_platform/__init__.py +4 -0
  184. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/__init__.py +4 -0
  185. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/ai_data_platform_service_cli.py +14 -0
  186. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py +676 -0
  187. services/ai_data_platform/src/oci_cli_ai_data_platform/generated/client_mappings.py +14 -0
  188. services/ai_data_platform/tests/__init__.py +4 -0
  189. services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py +28 -9
  190. services/database/src/oci_cli_database/database_cli_extended.py +46 -3
  191. services/database/src/oci_cli_database/generated/database_cli.py +217 -11
  192. services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +1 -5
  193. services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py +4359 -2378
  194. services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py +5 -5
  195. services/jms_utils/__init__.py +4 -0
  196. services/jms_utils/src/__init__.py +4 -0
  197. services/jms_utils/src/oci_cli_jms_utils/__init__.py +4 -0
  198. services/jms_utils/src/oci_cli_jms_utils/generated/__init__.py +4 -0
  199. services/jms_utils/src/oci_cli_jms_utils/generated/client_mappings.py +14 -0
  200. services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py +812 -0
  201. services/jms_utils/tests/__init__.py +4 -0
  202. services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py +94 -0
  203. services/resource_analytics/__init__.py +4 -0
  204. services/resource_analytics/src/__init__.py +4 -0
  205. services/resource_analytics/src/oci_cli_monitored_region/__init__.py +4 -0
  206. services/resource_analytics/src/oci_cli_monitored_region/generated/__init__.py +4 -0
  207. services/resource_analytics/src/oci_cli_monitored_region/generated/client_mappings.py +14 -0
  208. services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py +233 -0
  209. services/resource_analytics/src/oci_cli_monitored_region/monitored_region_cli_extended.py +39 -0
  210. services/resource_analytics/src/oci_cli_resource_analytics/__init__.py +4 -0
  211. services/resource_analytics/src/oci_cli_resource_analytics/generated/__init__.py +4 -0
  212. services/resource_analytics/src/oci_cli_resource_analytics/generated/resource_analytics_service_cli.py +14 -0
  213. services/resource_analytics/src/oci_cli_resource_analytics_instance/__init__.py +4 -0
  214. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/__init__.py +4 -0
  215. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/client_mappings.py +14 -0
  216. services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py +968 -0
  217. services/resource_analytics/src/oci_cli_resource_analytics_instance/resource_analytics_instance_cli_extended.py +40 -0
  218. services/resource_analytics/src/oci_cli_tenancy_attachment/__init__.py +4 -0
  219. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/__init__.py +4 -0
  220. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/client_mappings.py +14 -0
  221. services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py +298 -0
  222. services/resource_analytics/src/oci_cli_tenancy_attachment/tenancy_attachment_cli_extended.py +39 -0
  223. services/resource_analytics/tests/__init__.py +4 -0
  224. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/LICENSE.txt +0 -0
  225. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  226. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/WHEEL +0 -0
  227. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/entry_points.txt +0 -0
  228. {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,4 @@
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: 20250521
@@ -52,6 +52,12 @@ def listing_package_summary_group():
52
52
  pass
53
53
 
54
54
 
55
+ @click.command(cli_util.override('marketplace.marketplace_metadata_public_key_summary_group.command_name', 'marketplace-metadata-public-key-summary'), cls=CommandGroupWithAlias, help="""Model that contains signed marketplace instance metadata and associated signature in JWT form""")
56
+ @cli_util.help_option_group
57
+ def marketplace_metadata_public_key_summary_group():
58
+ pass
59
+
60
+
55
61
  @click.command(cli_util.override('marketplace.work_request_group.command_name', 'work-request'), cls=CommandGroupWithAlias, help="""A description of workrequest""")
56
62
  @cli_util.help_option_group
57
63
  def work_request_group():
@@ -64,6 +70,12 @@ def tax_summary_group():
64
70
  pass
65
71
 
66
72
 
73
+ @click.command(cli_util.override('marketplace.create_marketplace_external_attested_metadata_details_group.command_name', 'create-marketplace-external-attested-metadata-details'), cls=CommandGroupWithAlias, help="""Payload that customer will use to generate JWT for launched instance associated with Marketplace listing""")
74
+ @cli_util.help_option_group
75
+ def create_marketplace_external_attested_metadata_details_group():
76
+ pass
77
+
78
+
67
79
  @click.command(cli_util.override('marketplace.report_collection_group.command_name', 'report-collection'), cls=CommandGroupWithAlias, help="""A collection of reports that match the parameters of the request.""")
68
80
  @cli_util.help_option_group
69
81
  def report_collection_group():
@@ -118,8 +130,10 @@ marketplace_root_group.add_command(publication_package_group)
118
130
  marketplace_root_group.add_command(agreement_group)
119
131
  marketplace_root_group.add_command(category_summary_group)
120
132
  marketplace_root_group.add_command(listing_package_summary_group)
133
+ marketplace_root_group.add_command(marketplace_metadata_public_key_summary_group)
121
134
  marketplace_root_group.add_command(work_request_group)
122
135
  marketplace_root_group.add_command(tax_summary_group)
136
+ marketplace_root_group.add_command(create_marketplace_external_attested_metadata_details_group)
123
137
  marketplace_root_group.add_command(report_collection_group)
124
138
  marketplace_root_group.add_command(listing_summary_group)
125
139
  marketplace_root_group.add_command(listing_package_group)
@@ -135,8 +149,10 @@ marketplace_service_cli.marketplace_service_group.add_command(publication_packag
135
149
  marketplace_service_cli.marketplace_service_group.add_command(agreement_group)
136
150
  marketplace_service_cli.marketplace_service_group.add_command(category_summary_group)
137
151
  marketplace_service_cli.marketplace_service_group.add_command(listing_package_summary_group)
152
+ marketplace_service_cli.marketplace_service_group.add_command(marketplace_metadata_public_key_summary_group)
138
153
  marketplace_service_cli.marketplace_service_group.add_command(work_request_group)
139
154
  marketplace_service_cli.marketplace_service_group.add_command(tax_summary_group)
155
+ marketplace_service_cli.marketplace_service_group.add_command(create_marketplace_external_attested_metadata_details_group)
140
156
  marketplace_service_cli.marketplace_service_group.add_command(report_collection_group)
141
157
  marketplace_service_cli.marketplace_service_group.add_command(listing_summary_group)
142
158
  marketplace_service_cli.marketplace_service_group.add_command(listing_package_group)
@@ -223,6 +239,31 @@ def create_accepted_agreement(ctx, from_json, compartment_id, listing_id, packag
223
239
  cli_util.render_response(result, ctx)
224
240
 
225
241
 
242
+ @create_marketplace_external_attested_metadata_details_group.command(name=cli_util.override('marketplace.create_marketplace_external_attested_metadata.command_name', 'create-marketplace-external-attested-metadata'), help=u"""Generates attested marketplace metadata \n[Command Reference](createMarketplaceExternalAttestedMetadata)""")
243
+ @cli_util.option('--instance-id', required=True, help=u"""unique id that identifies the associated instance""")
244
+ @cli_util.option('--compartment-id', required=True, help=u"""compartment that associated instance is in""")
245
+ @json_skeleton_utils.get_cli_json_input_option({})
246
+ @cli_util.help_option
247
+ @click.pass_context
248
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'marketplace', 'class': 'MarketplaceExternalAttestedMetadata'})
249
+ @cli_util.wrap_exceptions
250
+ def create_marketplace_external_attested_metadata(ctx, from_json, instance_id, compartment_id):
251
+
252
+ kwargs = {}
253
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
254
+
255
+ _details = {}
256
+ _details['instanceId'] = instance_id
257
+ _details['compartmentId'] = compartment_id
258
+
259
+ client = cli_util.build_client('marketplace', 'marketplace', ctx)
260
+ result = client.create_marketplace_external_attested_metadata(
261
+ create_marketplace_external_attested_metadata_details=_details,
262
+ **kwargs
263
+ )
264
+ cli_util.render_response(result, ctx)
265
+
266
+
226
267
  @publication_group.command(name=cli_util.override('marketplace.create_publication.command_name', 'create'), help=u"""Creates a publication of the specified listing type with an optional default package. \n[Command Reference](createPublication)""")
227
268
  @cli_util.option('--listing-type', required=True, type=custom_types.CliCaseInsensitiveChoice(["COMMUNITY", "PARTNER", "PRIVATE"]), help=u"""The publisher category to which the publication belongs. The publisher category informs where the listing appears for use.""")
228
269
  @cli_util.option('--name', required=True, help=u"""The name of the publication, which is also used in the listing.""")
@@ -996,6 +1037,59 @@ def list_listings(ctx, from_json, all_pages, page_size, name, listing_id, image_
996
1037
  cli_util.render_response(result, ctx)
997
1038
 
998
1039
 
1040
+ @marketplace_metadata_public_key_summary_group.command(name=cli_util.override('marketplace.list_marketplace_metadata_public_keys.command_name', 'list-marketplace-metadata-public-keys'), help=u"""Get public certificates used in JWT signing, in JSON Web Key Sets format \n[Command Reference](listMarketplaceMetadataPublicKeys)""")
1041
+ @cli_util.option('--limit', type=click.INT, help=u"""How many records to return. Specify a value greater than zero and less than or equal to 1000. The default is 30.""")
1042
+ @cli_util.option('--page', help=u"""The value of the `opc-next-page` response header from the previous \"List\" call.""")
1043
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either `ASC` or `DESC`.""")
1044
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["keyId"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for keyId is descending.""")
1045
+ @cli_util.option('--compartment-id', help=u"""The unique identifier for the compartment.""")
1046
+ @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.""")
1047
+ @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.""")
1048
+ @json_skeleton_utils.get_cli_json_input_option({})
1049
+ @cli_util.help_option
1050
+ @click.pass_context
1051
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'marketplace', 'class': 'list[MarketplaceMetadataPublicKeySummary]'})
1052
+ @cli_util.wrap_exceptions
1053
+ def list_marketplace_metadata_public_keys(ctx, from_json, all_pages, page_size, limit, page, sort_order, sort_by, compartment_id):
1054
+
1055
+ if all_pages and limit:
1056
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
1057
+
1058
+ kwargs = {}
1059
+ if limit is not None:
1060
+ kwargs['limit'] = limit
1061
+ if page is not None:
1062
+ kwargs['page'] = page
1063
+ if sort_order is not None:
1064
+ kwargs['sort_order'] = sort_order
1065
+ if sort_by is not None:
1066
+ kwargs['sort_by'] = sort_by
1067
+ if compartment_id is not None:
1068
+ kwargs['compartment_id'] = compartment_id
1069
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
1070
+ client = cli_util.build_client('marketplace', 'marketplace', ctx)
1071
+ if all_pages:
1072
+ if page_size:
1073
+ kwargs['limit'] = page_size
1074
+
1075
+ result = cli_util.list_call_get_all_results(
1076
+ client.list_marketplace_metadata_public_keys,
1077
+ **kwargs
1078
+ )
1079
+ elif limit is not None:
1080
+ result = cli_util.list_call_get_up_to_limit(
1081
+ client.list_marketplace_metadata_public_keys,
1082
+ limit,
1083
+ page_size,
1084
+ **kwargs
1085
+ )
1086
+ else:
1087
+ result = client.list_marketplace_metadata_public_keys(
1088
+ **kwargs
1089
+ )
1090
+ cli_util.render_response(result, ctx)
1091
+
1092
+
999
1093
  @listing_package_summary_group.command(name=cli_util.override('marketplace.list_packages.command_name', 'list-packages'), help=u"""Gets the list of packages for a listing.
1000
1094
 
1001
1095
  If you plan to launch an instance from an image listing, you must first subscribe to the listing. When you launch the instance, you also need to provide the image ID of the listing resource version that you want.
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,14 @@
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: 20241031
5
+
6
+ import oci
7
+ from oci_cli.cli_clients import CLIENT_MAP
8
+ from oci_cli.cli_clients import MODULE_TO_TYPE_MAPPINGS
9
+ from oci.resource_analytics import MonitoredRegionClient
10
+
11
+ MODULE_TO_TYPE_MAPPINGS["resource_analytics"] = oci.resource_analytics.models.resource_analytics_type_mapping
12
+ if CLIENT_MAP.get("resource_analytics") is None:
13
+ CLIENT_MAP["resource_analytics"] = {}
14
+ CLIENT_MAP["resource_analytics"]["monitored_region"] = MonitoredRegionClient
@@ -0,0 +1,233 @@
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: 20241031
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.resource_analytics.src.oci_cli_resource_analytics.generated import resource_analytics_service_cli
17
+
18
+
19
+ @click.command(cli_util.override('monitored_region.monitored_region_root_group.command_name', 'monitored-region'), cls=CommandGroupWithAlias, help=cli_util.override('monitored_region.monitored_region_root_group.help', """Use the Resource Analytics API to manage Resource Analytics Instances."""), short_help=cli_util.override('monitored_region.monitored_region_root_group.short_help', """Resource Analytics API"""))
20
+ @cli_util.help_option_group
21
+ def monitored_region_root_group():
22
+ pass
23
+
24
+
25
+ @click.command(cli_util.override('monitored_region.monitored_region_collection_group.command_name', 'monitored-region-collection'), cls=CommandGroupWithAlias, help="""Results of a MonitoredRegion search. Contains both MonitoredRegionSummary items and other information, such as metadata.""")
26
+ @cli_util.help_option_group
27
+ def monitored_region_collection_group():
28
+ pass
29
+
30
+
31
+ @click.command(cli_util.override('monitored_region.monitored_region_group.command_name', 'monitored-region'), cls=CommandGroupWithAlias, help="""A MonitoredRegion is a region to collect data for the associated ResourceAnalyticsInstance.
32
+
33
+ To use any of the API operations, you must be authorized in an IAM policy. If you're not authorized, talk to an administrator. If you're an administrator who needs to write policies to give users access, see [Getting Started with Policies].""")
34
+ @cli_util.help_option_group
35
+ def monitored_region_group():
36
+ pass
37
+
38
+
39
+ resource_analytics_service_cli.resource_analytics_service_group.add_command(monitored_region_root_group)
40
+ monitored_region_root_group.add_command(monitored_region_collection_group)
41
+ monitored_region_root_group.add_command(monitored_region_group)
42
+
43
+
44
+ @monitored_region_group.command(name=cli_util.override('monitored_region.create_monitored_region.command_name', 'create'), help=u"""Creates a MonitoredRegion. \n[Command Reference](createMonitoredRegion)""")
45
+ @cli_util.option('--resource-analytics-instance-id', required=True, help=u"""The [OCID] of the ResourceAnalyticsInstance associated with this MonitoredRegion.""")
46
+ @cli_util.option('--region-id', required=True, help=u"""The [Region Identifier] of this MonitoredRegion.""")
47
+ @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.""")
48
+ @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.""")
49
+ @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.""")
50
+ @json_skeleton_utils.get_cli_json_input_option({})
51
+ @cli_util.help_option
52
+ @click.pass_context
53
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'MonitoredRegion'})
54
+ @cli_util.wrap_exceptions
55
+ def create_monitored_region(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, region_id):
56
+
57
+ kwargs = {}
58
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
59
+
60
+ _details = {}
61
+ _details['resourceAnalyticsInstanceId'] = resource_analytics_instance_id
62
+ _details['regionId'] = region_id
63
+
64
+ client = cli_util.build_client('resource_analytics', 'monitored_region', ctx)
65
+ result = client.create_monitored_region(
66
+ create_monitored_region_details=_details,
67
+ **kwargs
68
+ )
69
+ if wait_for_state:
70
+
71
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
72
+ try:
73
+ wait_period_kwargs = {}
74
+ if max_wait_seconds is not None:
75
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
76
+ if wait_interval_seconds is not None:
77
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
78
+ if 'opc-work-request-id' not in result.headers:
79
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
80
+ cli_util.render_response(result, ctx)
81
+ return
82
+
83
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
84
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
85
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
86
+ # If we fail, we should show an error, but we should still provide the information to the customer
87
+ click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
88
+ cli_util.render_response(result, ctx)
89
+ sys.exit(2)
90
+ except Exception:
91
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
92
+ cli_util.render_response(result, ctx)
93
+ raise
94
+ else:
95
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
96
+ cli_util.render_response(result, ctx)
97
+
98
+
99
+ @monitored_region_group.command(name=cli_util.override('monitored_region.delete_monitored_region.command_name', 'delete'), help=u"""Deletes a MonitoredRegion. \n[Command Reference](deleteMonitoredRegion)""")
100
+ @cli_util.option('--monitored-region-id', required=True, help=u"""The [OCID] of the MonitoredRegion.""")
101
+ @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.""")
102
+ @cli_util.confirm_delete_option
103
+ @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.""")
104
+ @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.""")
105
+ @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.""")
106
+ @json_skeleton_utils.get_cli_json_input_option({})
107
+ @cli_util.help_option
108
+ @click.pass_context
109
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
110
+ @cli_util.wrap_exceptions
111
+ def delete_monitored_region(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, monitored_region_id, if_match):
112
+
113
+ if isinstance(monitored_region_id, six.string_types) and len(monitored_region_id.strip()) == 0:
114
+ raise click.UsageError('Parameter --monitored-region-id cannot be whitespace or empty string')
115
+
116
+ kwargs = {}
117
+ if if_match is not None:
118
+ kwargs['if_match'] = if_match
119
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
120
+ client = cli_util.build_client('resource_analytics', 'monitored_region', ctx)
121
+ result = client.delete_monitored_region(
122
+ monitored_region_id=monitored_region_id,
123
+ **kwargs
124
+ )
125
+ if wait_for_state:
126
+
127
+ if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
128
+ try:
129
+ wait_period_kwargs = {}
130
+ if max_wait_seconds is not None:
131
+ wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
132
+ if wait_interval_seconds is not None:
133
+ wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
134
+ if 'opc-work-request-id' not in result.headers:
135
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
136
+ cli_util.render_response(result, ctx)
137
+ return
138
+
139
+ click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
140
+ result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
141
+ except oci.exceptions.MaximumWaitTimeExceeded as e:
142
+ # If we fail, we should show an error, but we should still provide the information to the customer
143
+ 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)
144
+ cli_util.render_response(result, ctx)
145
+ sys.exit(2)
146
+ except Exception:
147
+ click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
148
+ cli_util.render_response(result, ctx)
149
+ raise
150
+ else:
151
+ click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
152
+ cli_util.render_response(result, ctx)
153
+
154
+
155
+ @monitored_region_group.command(name=cli_util.override('monitored_region.get_monitored_region.command_name', 'get'), help=u"""Gets information about a MonitoredRegion. \n[Command Reference](getMonitoredRegion)""")
156
+ @cli_util.option('--monitored-region-id', required=True, help=u"""The [OCID] of the MonitoredRegion.""")
157
+ @json_skeleton_utils.get_cli_json_input_option({})
158
+ @cli_util.help_option
159
+ @click.pass_context
160
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'MonitoredRegion'})
161
+ @cli_util.wrap_exceptions
162
+ def get_monitored_region(ctx, from_json, monitored_region_id):
163
+
164
+ if isinstance(monitored_region_id, six.string_types) and len(monitored_region_id.strip()) == 0:
165
+ raise click.UsageError('Parameter --monitored-region-id cannot be whitespace or empty string')
166
+
167
+ kwargs = {}
168
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
169
+ client = cli_util.build_client('resource_analytics', 'monitored_region', ctx)
170
+ result = client.get_monitored_region(
171
+ monitored_region_id=monitored_region_id,
172
+ **kwargs
173
+ )
174
+ cli_util.render_response(result, ctx)
175
+
176
+
177
+ @monitored_region_collection_group.command(name=cli_util.override('monitored_region.list_monitored_regions.command_name', 'list'), help=u"""Gets a list of MonitoredRegions. \n[Command Reference](listMonitoredRegions)""")
178
+ @cli_util.option('--resource-analytics-instance-id', help=u"""The [OCID] of a ResourceAnalyticsInstance.""")
179
+ @cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
180
+ @cli_util.option('--id', help=u"""The [OCID] of the MonitoredRegion.""")
181
+ @cli_util.option('--limit', type=click.INT, help=u"""For list pagination. The maximum number of results per page, or items to return in a paginated \"List\" call. For important details about how pagination works, see [List Pagination].""")
182
+ @cli_util.option('--page', help=u"""For list pagination. The value of the opc-next-page response header from the previous \"List\" call. For important details about how pagination works, see [List Pagination].""")
183
+ @cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
184
+ @cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["TIME_CREATED", "REGION_ID"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `TIME_CREATED` is descending. Default order for `REGION_ID` is ascending.""")
185
+ @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.""")
186
+ @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.""")
187
+ @json_skeleton_utils.get_cli_json_input_option({})
188
+ @cli_util.help_option
189
+ @click.pass_context
190
+ @json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'MonitoredRegionCollection'})
191
+ @cli_util.wrap_exceptions
192
+ def list_monitored_regions(ctx, from_json, all_pages, page_size, resource_analytics_instance_id, lifecycle_state, id, limit, page, sort_order, sort_by):
193
+
194
+ if all_pages and limit:
195
+ raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
196
+
197
+ kwargs = {}
198
+ if resource_analytics_instance_id is not None:
199
+ kwargs['resource_analytics_instance_id'] = resource_analytics_instance_id
200
+ if lifecycle_state is not None:
201
+ kwargs['lifecycle_state'] = lifecycle_state
202
+ if id is not None:
203
+ kwargs['id'] = id
204
+ if limit is not None:
205
+ kwargs['limit'] = limit
206
+ if page is not None:
207
+ kwargs['page'] = page
208
+ if sort_order is not None:
209
+ kwargs['sort_order'] = sort_order
210
+ if sort_by is not None:
211
+ kwargs['sort_by'] = sort_by
212
+ kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
213
+ client = cli_util.build_client('resource_analytics', 'monitored_region', ctx)
214
+ if all_pages:
215
+ if page_size:
216
+ kwargs['limit'] = page_size
217
+
218
+ result = cli_util.list_call_get_all_results(
219
+ client.list_monitored_regions,
220
+ **kwargs
221
+ )
222
+ elif limit is not None:
223
+ result = cli_util.list_call_get_up_to_limit(
224
+ client.list_monitored_regions,
225
+ limit,
226
+ page_size,
227
+ **kwargs
228
+ )
229
+ else:
230
+ result = client.list_monitored_regions(
231
+ **kwargs
232
+ )
233
+ cli_util.render_response(result, ctx)
@@ -0,0 +1,39 @@
1
+ # Copyright (c) 2016, 2023, Oracle and/or its affiliates.
2
+ #
3
+ # This software is dual-licensed to you under the Universal Permissive License
4
+ # (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl and Apache License
5
+ # 2.0 as shown at https://www.apache.org/licenses/LICENSE-2.0. You may choose
6
+ # either license.
7
+ #
8
+ # If you elect to accept the software under the Apache License, Version 2.0,
9
+ # the following applies:
10
+ #
11
+ # Licensed under the Apache License, Version 2.0 (the "License");
12
+ # you may not use this file except in compliance with the License.
13
+ # You may obtain a copy of the License at
14
+ #
15
+ # https://www.apache.org/licenses/LICENSE-2.0
16
+ #
17
+ # Unless required by applicable law or agreed to in writing, software
18
+ # distributed under the License is distributed on an "AS IS" BASIS,
19
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20
+ # See the License for the specific language governing permissions and
21
+ # limitations under the License.
22
+ # coding: utf-8
23
+ # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved.
24
+ # 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.
25
+ from services.resource_analytics.src.oci_cli_resource_analytics.generated import resource_analytics_service_cli
26
+ from services.resource_analytics.src.oci_cli_monitored_region.generated import monitoredregion_cli
27
+
28
+ # Remove collection group
29
+ # oci resource-analytics monitored-region monitored-region-collection
30
+ monitoredregion_cli.monitored_region_root_group.commands.pop(monitoredregion_cli.monitored_region_collection_group.name)
31
+ # Add list command from collection to root group
32
+ # oci resource-analytics monitored-region list
33
+ monitoredregion_cli.monitored_region_group.add_command(monitoredregion_cli.list_monitored_regions)
34
+
35
+ # Rearrange nested groups to be "top" level
36
+ # oci resource-analytics monitored-region monitored-region <command>
37
+ monitoredregion_cli.monitored_region_root_group.commands.pop(monitoredregion_cli.monitored_region_group.name)
38
+ # -> oci resource-analytics monitored-region <command>
39
+ resource_analytics_service_cli.resource_analytics_service_group.add_command(monitoredregion_cli.monitored_region_group)
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,14 @@
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: 20241031
5
+
6
+ from oci_cli.cli_root import cli
7
+ from oci_cli import cli_util
8
+ from oci_cli.aliasing import CommandGroupWithAlias
9
+
10
+
11
+ @cli.command(cli_util.override('tenancy_attachment.resource_analytics_service_group.command_name', 'resource-analytics'), cls=CommandGroupWithAlias, help=cli_util.override('tenancy_attachment.resource_analytics_service_group.help', """Use the Resource Analytics API to manage Resource Analytics Instances."""), short_help=cli_util.override('tenancy_attachment.resource_analytics_service_group.short_help', """Resource Analytics API"""))
12
+ @cli_util.help_option_group
13
+ def resource_analytics_service_group():
14
+ pass
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,4 @@
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: 20241031
@@ -0,0 +1,14 @@
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: 20241031
5
+
6
+ import oci
7
+ from oci_cli.cli_clients import CLIENT_MAP
8
+ from oci_cli.cli_clients import MODULE_TO_TYPE_MAPPINGS
9
+ from oci.resource_analytics import ResourceAnalyticsInstanceClient
10
+
11
+ MODULE_TO_TYPE_MAPPINGS["resource_analytics"] = oci.resource_analytics.models.resource_analytics_type_mapping
12
+ if CLIENT_MAP.get("resource_analytics") is None:
13
+ CLIENT_MAP["resource_analytics"] = {}
14
+ CLIENT_MAP["resource_analytics"]["resource_analytics_instance"] = ResourceAnalyticsInstanceClient