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.
- common_util/ignored_commands.py +2 -1
- oci_cli/bin/jms.psm1 +74 -6
- oci_cli/bin/marketplace.psm1 +7 -1
- oci_cli/cli_root.py +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/change-compartment.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/create.txt +185 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/delete.txt +135 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/get.txt +93 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform/update.txt +195 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection/list-ai-data-platforms.txt +155 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform-collection.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/ai-data-platform.txt +28 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/cancel.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request/list.txt +140 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry/list-work-request-logs.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request-log-entry.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform/work-request.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai-data-platform.txt +44 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/discovery-job/list-discovery-job-results.txt +13 -1
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-error-summary/list-masking-errors.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/list-masking-reports.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/masking-policy/mask-data.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/security-assessment/list-findings.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/sensitive-column/list.txt +22 -1
- oci_cli/help_text_producer/data_files/text/cmdref/data-safe/service/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/configure-exascale.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/list.txt +23 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/change-cloud-db-system-subscription.txt +134 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +6 -12
- 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
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-error.txt +1 -1
- 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
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/work-request-log-entry.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/jms/agent-installer-summary/generate-agent-installer-configuration.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms/blocklist/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary/list-containers.txt +338 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/container-summary.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/export-setting/update.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/fleet-agent-configuration/update.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/installation-usage/summarize.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/create.txt +12 -3
- oci_cli/help_text_producer/data_files/text/cmdref/jms/jms-plugin/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary/list-library-application-usage.txt +332 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-application-usage-summary.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory/summarize.txt +284 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-inventory.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary/list-library-managed-instance-usage.txt +332 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-managed-instance-usage-summary.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/scan.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/library-usage/summarize.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/jms/managed-instance-usage/summarize.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-add-installation-site-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-crypto-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-deployed-application-migration-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-java-migration-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-jfr-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-performance-tuning-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-remove-installation-site-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-java-server-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create-task-schedule-scan-library-task-details.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/create.txt +150 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/delete.txt +146 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/get.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/list.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-add-installation-site-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-crypto-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-deployed-application-migration-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-java-migration-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-jfr-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-performance-tuning-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-remove-installation-site-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-java-server-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update-task-schedule-scan-library-task-details.txt +165 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule/update.txt +171 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/task-schedule.txt +58 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary/list-uncorrelated-package-application-usage.txt +324 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-application-usage-summary.txt +16 -0
- 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
- oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-managed-instance-usage-summary.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary/list-uncorrelated-package-usage.txt +323 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/uncorrelated-package-usage-summary.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms/work-request/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads/java-license-acceptance-record/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/jms-java-downloads.txt +1 -3
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/get.txt +83 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration/update.txt +99 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/analyze-applications-configuration.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/delete.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/list.txt +128 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis/request.txt +172 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/java-migration-analysis.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/delete.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/list.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis/request.txt +172 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/performance-tuning-analysis.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/get.txt +83 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration/update.txt +95 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/subscription-acknowledgment-configuration.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary/list-work-items.txt +110 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-item-summary.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/cancel.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request/list.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error/list.txt +128 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-log-entry/list-work-request-logs.txt +128 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request-log-entry.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils/work-request.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms-utils.txt +65 -0
- oci_cli/help_text_producer/data_files/text/cmdref/jms.txt +76 -0
- oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details/create-marketplace-external-attested-metadata.txt +96 -0
- oci_cli/help_text_producer/data_files/text/cmdref/marketplace/create-marketplace-external-attested-metadata-details.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary/list-marketplace-metadata-public-keys.txt +121 -0
- oci_cli/help_text_producer/data_files/text/cmdref/marketplace/marketplace-metadata-public-key-summary.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/marketplace.txt +8 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/create.txt +127 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/delete.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/get.txt +98 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region/list.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/monitored-region.txt +26 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/change-compartment.txt +135 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/create.txt +204 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/delete.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/disable-oac.txt +129 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/enable-oac.txt +154 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/get.txt +95 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/list.txt +142 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance/update.txt +179 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/resource-analytics-instance.txt +34 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/create.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/delete.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/get.txt +98 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/list.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment/update.txt +137 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/tenancy-attachment.txt +29 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/cancel.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request/list.txt +140 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request-log-entry.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics/work-request.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/resource-analytics.txt +68 -0
- oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +7 -7
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
- oci_cli/help_text_producer/data_files/text/index.txt +8 -2
- oci_cli/help_text_producer/data_files/text/oci.txt +1 -1
- oci_cli/service_mapping.py +16 -1
- oci_cli/version.py +1 -1
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/METADATA +2 -2
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/RECORD +228 -75
- services/ai_data_platform/__init__.py +4 -0
- services/ai_data_platform/src/__init__.py +4 -0
- services/ai_data_platform/src/oci_cli_ai_data_platform/__init__.py +4 -0
- services/ai_data_platform/src/oci_cli_ai_data_platform/generated/__init__.py +4 -0
- services/ai_data_platform/src/oci_cli_ai_data_platform/generated/ai_data_platform_service_cli.py +14 -0
- services/ai_data_platform/src/oci_cli_ai_data_platform/generated/aidataplatform_cli.py +676 -0
- services/ai_data_platform/src/oci_cli_ai_data_platform/generated/client_mappings.py +14 -0
- services/ai_data_platform/tests/__init__.py +4 -0
- services/data_safe/src/oci_cli_data_safe/generated/datasafe_cli.py +28 -9
- services/database/src/oci_cli_database/database_cli_extended.py +46 -3
- services/database/src/oci_cli_database/generated/database_cli.py +217 -11
- services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +1 -5
- services/jms/src/oci_cli_java_management_service/generated/javamanagementservice_cli.py +4359 -2378
- services/jms_java_downloads/src/oci_cli_java_download/generated/javadownload_cli.py +5 -5
- services/jms_utils/__init__.py +4 -0
- services/jms_utils/src/__init__.py +4 -0
- services/jms_utils/src/oci_cli_jms_utils/__init__.py +4 -0
- services/jms_utils/src/oci_cli_jms_utils/generated/__init__.py +4 -0
- services/jms_utils/src/oci_cli_jms_utils/generated/client_mappings.py +14 -0
- services/jms_utils/src/oci_cli_jms_utils/generated/jmsutils_cli.py +812 -0
- services/jms_utils/tests/__init__.py +4 -0
- services/marketplace/src/oci_cli_marketplace/generated/marketplace_cli.py +94 -0
- services/resource_analytics/__init__.py +4 -0
- services/resource_analytics/src/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_monitored_region/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_monitored_region/generated/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_monitored_region/generated/client_mappings.py +14 -0
- services/resource_analytics/src/oci_cli_monitored_region/generated/monitoredregion_cli.py +233 -0
- services/resource_analytics/src/oci_cli_monitored_region/monitored_region_cli_extended.py +39 -0
- services/resource_analytics/src/oci_cli_resource_analytics/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_resource_analytics/generated/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_resource_analytics/generated/resource_analytics_service_cli.py +14 -0
- services/resource_analytics/src/oci_cli_resource_analytics_instance/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/client_mappings.py +14 -0
- services/resource_analytics/src/oci_cli_resource_analytics_instance/generated/resourceanalyticsinstance_cli.py +968 -0
- services/resource_analytics/src/oci_cli_resource_analytics_instance/resource_analytics_instance_cli_extended.py +40 -0
- services/resource_analytics/src/oci_cli_tenancy_attachment/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_tenancy_attachment/generated/__init__.py +4 -0
- services/resource_analytics/src/oci_cli_tenancy_attachment/generated/client_mappings.py +14 -0
- services/resource_analytics/src/oci_cli_tenancy_attachment/generated/tenancyattachment_cli.py +298 -0
- services/resource_analytics/src/oci_cli_tenancy_attachment/tenancy_attachment_cli_extended.py +39 -0
- services/resource_analytics/tests/__init__.py +4 -0
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/LICENSE.txt +0 -0
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/WHEEL +0 -0
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/entry_points.txt +0 -0
- {oci_cli-3.66.0.dist-info → oci_cli-3.66.2.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
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_resource_analytics_instance.generated import resourceanalyticsinstance_cli
|
|
27
|
+
|
|
28
|
+
# Add list command from collection to root group
|
|
29
|
+
# oci resource-analytics resource-analytics-instance list
|
|
30
|
+
resourceanalyticsinstance_cli.resource_analytics_instance_group.add_command(resourceanalyticsinstance_cli.list_resource_analytics_instances)
|
|
31
|
+
|
|
32
|
+
# Rearrange nested groups to be "top" level
|
|
33
|
+
# oci resource-analytics resource-analytics-instance resource-analytics-instance <command>
|
|
34
|
+
resourceanalyticsinstance_cli.resource_analytics_instance_root_group.commands.pop(resourceanalyticsinstance_cli.resource_analytics_instance_group.name)
|
|
35
|
+
# -> oci resource-analytics resource-analytics-instance <command>
|
|
36
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(resourceanalyticsinstance_cli.resource_analytics_instance_group)
|
|
37
|
+
# Re-add existing groups
|
|
38
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(resourceanalyticsinstance_cli.work_request_error_group)
|
|
39
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(resourceanalyticsinstance_cli.work_request_log_entry_group)
|
|
40
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(resourceanalyticsinstance_cli.work_request_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
|
+
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 TenancyAttachmentClient
|
|
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"]["tenancy_attachment"] = TenancyAttachmentClient
|
|
@@ -0,0 +1,298 @@
|
|
|
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('tenancy_attachment.tenancy_attachment_root_group.command_name', 'tenancy-attachment'), cls=CommandGroupWithAlias, help=cli_util.override('tenancy_attachment.tenancy_attachment_root_group.help', """Use the Resource Analytics API to manage Resource Analytics Instances."""), short_help=cli_util.override('tenancy_attachment.tenancy_attachment_root_group.short_help', """Resource Analytics API"""))
|
|
20
|
+
@cli_util.help_option_group
|
|
21
|
+
def tenancy_attachment_root_group():
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@click.command(cli_util.override('tenancy_attachment.tenancy_attachment_collection_group.command_name', 'tenancy-attachment-collection'), cls=CommandGroupWithAlias, help="""Results of a TenancyAttachment search. Contains both TenancyAttachmentSummary items and other information, such as metadata.""")
|
|
26
|
+
@cli_util.help_option_group
|
|
27
|
+
def tenancy_attachment_collection_group():
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@click.command(cli_util.override('tenancy_attachment.tenancy_attachment_group.command_name', 'tenancy-attachment'), cls=CommandGroupWithAlias, help="""A TenancyAttachment is a customers' tenancy attached to a ResourceAnalyticsInstance. Attached tenancies will be included in analytics collection.
|
|
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 tenancy_attachment_group():
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(tenancy_attachment_root_group)
|
|
40
|
+
tenancy_attachment_root_group.add_command(tenancy_attachment_collection_group)
|
|
41
|
+
tenancy_attachment_root_group.add_command(tenancy_attachment_group)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@tenancy_attachment_group.command(name=cli_util.override('tenancy_attachment.create_tenancy_attachment.command_name', 'create'), help=u"""Creates a TenancyAttachment. \n[Command Reference](createTenancyAttachment)""")
|
|
45
|
+
@cli_util.option('--resource-analytics-instance-id', required=True, help=u"""The [OCID] of the ResourceAnalyticsInstance associated with this TenancyAttachment.""")
|
|
46
|
+
@cli_util.option('--tenancy-id', required=True, help=u"""The [OCID] of the tenancy associated with this TenancyAttachment.""")
|
|
47
|
+
@cli_util.option('--description', help=u"""A description of the tenancy.""")
|
|
48
|
+
@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.""")
|
|
49
|
+
@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.""")
|
|
50
|
+
@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.""")
|
|
51
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
52
|
+
@cli_util.help_option
|
|
53
|
+
@click.pass_context
|
|
54
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'TenancyAttachment'})
|
|
55
|
+
@cli_util.wrap_exceptions
|
|
56
|
+
def create_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, resource_analytics_instance_id, tenancy_id, description):
|
|
57
|
+
|
|
58
|
+
kwargs = {}
|
|
59
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
60
|
+
|
|
61
|
+
_details = {}
|
|
62
|
+
_details['resourceAnalyticsInstanceId'] = resource_analytics_instance_id
|
|
63
|
+
_details['tenancyId'] = tenancy_id
|
|
64
|
+
|
|
65
|
+
if description is not None:
|
|
66
|
+
_details['description'] = description
|
|
67
|
+
|
|
68
|
+
client = cli_util.build_client('resource_analytics', 'tenancy_attachment', ctx)
|
|
69
|
+
result = client.create_tenancy_attachment(
|
|
70
|
+
create_tenancy_attachment_details=_details,
|
|
71
|
+
**kwargs
|
|
72
|
+
)
|
|
73
|
+
if wait_for_state:
|
|
74
|
+
|
|
75
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
76
|
+
try:
|
|
77
|
+
wait_period_kwargs = {}
|
|
78
|
+
if max_wait_seconds is not None:
|
|
79
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
80
|
+
if wait_interval_seconds is not None:
|
|
81
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
82
|
+
if 'opc-work-request-id' not in result.headers:
|
|
83
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
84
|
+
cli_util.render_response(result, ctx)
|
|
85
|
+
return
|
|
86
|
+
|
|
87
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
88
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
89
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
90
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
91
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
92
|
+
cli_util.render_response(result, ctx)
|
|
93
|
+
sys.exit(2)
|
|
94
|
+
except Exception:
|
|
95
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
96
|
+
cli_util.render_response(result, ctx)
|
|
97
|
+
raise
|
|
98
|
+
else:
|
|
99
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
100
|
+
cli_util.render_response(result, ctx)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
@tenancy_attachment_group.command(name=cli_util.override('tenancy_attachment.delete_tenancy_attachment.command_name', 'delete'), help=u"""Deletes a TenancyAttachment. \n[Command Reference](deleteTenancyAttachment)""")
|
|
104
|
+
@cli_util.option('--tenancy-attachment-id', required=True, help=u"""The [OCID] of the TenancyAttachment.""")
|
|
105
|
+
@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.""")
|
|
106
|
+
@cli_util.confirm_delete_option
|
|
107
|
+
@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.""")
|
|
108
|
+
@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.""")
|
|
109
|
+
@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.""")
|
|
110
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
111
|
+
@cli_util.help_option
|
|
112
|
+
@click.pass_context
|
|
113
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
114
|
+
@cli_util.wrap_exceptions
|
|
115
|
+
def delete_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tenancy_attachment_id, if_match):
|
|
116
|
+
|
|
117
|
+
if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0:
|
|
118
|
+
raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string')
|
|
119
|
+
|
|
120
|
+
kwargs = {}
|
|
121
|
+
if if_match is not None:
|
|
122
|
+
kwargs['if_match'] = if_match
|
|
123
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
124
|
+
client = cli_util.build_client('resource_analytics', 'tenancy_attachment', ctx)
|
|
125
|
+
result = client.delete_tenancy_attachment(
|
|
126
|
+
tenancy_attachment_id=tenancy_attachment_id,
|
|
127
|
+
**kwargs
|
|
128
|
+
)
|
|
129
|
+
if wait_for_state:
|
|
130
|
+
|
|
131
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
132
|
+
try:
|
|
133
|
+
wait_period_kwargs = {}
|
|
134
|
+
if max_wait_seconds is not None:
|
|
135
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
136
|
+
if wait_interval_seconds is not None:
|
|
137
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
138
|
+
if 'opc-work-request-id' not in result.headers:
|
|
139
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
140
|
+
cli_util.render_response(result, ctx)
|
|
141
|
+
return
|
|
142
|
+
|
|
143
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
144
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
145
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
146
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
147
|
+
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)
|
|
148
|
+
cli_util.render_response(result, ctx)
|
|
149
|
+
sys.exit(2)
|
|
150
|
+
except Exception:
|
|
151
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
152
|
+
cli_util.render_response(result, ctx)
|
|
153
|
+
raise
|
|
154
|
+
else:
|
|
155
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
156
|
+
cli_util.render_response(result, ctx)
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
@tenancy_attachment_group.command(name=cli_util.override('tenancy_attachment.get_tenancy_attachment.command_name', 'get'), help=u"""Gets information about a TenancyAttachment. \n[Command Reference](getTenancyAttachment)""")
|
|
160
|
+
@cli_util.option('--tenancy-attachment-id', required=True, help=u"""The [OCID] of the TenancyAttachment.""")
|
|
161
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
162
|
+
@cli_util.help_option
|
|
163
|
+
@click.pass_context
|
|
164
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'TenancyAttachment'})
|
|
165
|
+
@cli_util.wrap_exceptions
|
|
166
|
+
def get_tenancy_attachment(ctx, from_json, tenancy_attachment_id):
|
|
167
|
+
|
|
168
|
+
if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0:
|
|
169
|
+
raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string')
|
|
170
|
+
|
|
171
|
+
kwargs = {}
|
|
172
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
173
|
+
client = cli_util.build_client('resource_analytics', 'tenancy_attachment', ctx)
|
|
174
|
+
result = client.get_tenancy_attachment(
|
|
175
|
+
tenancy_attachment_id=tenancy_attachment_id,
|
|
176
|
+
**kwargs
|
|
177
|
+
)
|
|
178
|
+
cli_util.render_response(result, ctx)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
@tenancy_attachment_collection_group.command(name=cli_util.override('tenancy_attachment.list_tenancy_attachments.command_name', 'list'), help=u"""Gets a list of TenancyAttachments. \n[Command Reference](listTenancyAttachments)""")
|
|
182
|
+
@cli_util.option('--resource-analytics-instance-id', help=u"""The [OCID] of a ResourceAnalyticsInstance.""")
|
|
183
|
+
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "UPDATING", "ACTIVE", "NEEDS_ATTENTION", "DELETING", "DELETED", "FAILED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
|
|
184
|
+
@cli_util.option('--id', help=u"""The [OCID] of the TenancyAttachment.""")
|
|
185
|
+
@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].""")
|
|
186
|
+
@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].""")
|
|
187
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
188
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["TIME_CREATED", "DESCRIPTION"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `TIME_CREATED` is descending. Default order for `DESCRIPTION` is ascending.""")
|
|
189
|
+
@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.""")
|
|
190
|
+
@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.""")
|
|
191
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
192
|
+
@cli_util.help_option
|
|
193
|
+
@click.pass_context
|
|
194
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'resource_analytics', 'class': 'TenancyAttachmentCollection'})
|
|
195
|
+
@cli_util.wrap_exceptions
|
|
196
|
+
def list_tenancy_attachments(ctx, from_json, all_pages, page_size, resource_analytics_instance_id, lifecycle_state, id, limit, page, sort_order, sort_by):
|
|
197
|
+
|
|
198
|
+
if all_pages and limit:
|
|
199
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
200
|
+
|
|
201
|
+
kwargs = {}
|
|
202
|
+
if resource_analytics_instance_id is not None:
|
|
203
|
+
kwargs['resource_analytics_instance_id'] = resource_analytics_instance_id
|
|
204
|
+
if lifecycle_state is not None:
|
|
205
|
+
kwargs['lifecycle_state'] = lifecycle_state
|
|
206
|
+
if id is not None:
|
|
207
|
+
kwargs['id'] = id
|
|
208
|
+
if limit is not None:
|
|
209
|
+
kwargs['limit'] = limit
|
|
210
|
+
if page is not None:
|
|
211
|
+
kwargs['page'] = page
|
|
212
|
+
if sort_order is not None:
|
|
213
|
+
kwargs['sort_order'] = sort_order
|
|
214
|
+
if sort_by is not None:
|
|
215
|
+
kwargs['sort_by'] = sort_by
|
|
216
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
217
|
+
client = cli_util.build_client('resource_analytics', 'tenancy_attachment', ctx)
|
|
218
|
+
if all_pages:
|
|
219
|
+
if page_size:
|
|
220
|
+
kwargs['limit'] = page_size
|
|
221
|
+
|
|
222
|
+
result = cli_util.list_call_get_all_results(
|
|
223
|
+
client.list_tenancy_attachments,
|
|
224
|
+
**kwargs
|
|
225
|
+
)
|
|
226
|
+
elif limit is not None:
|
|
227
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
228
|
+
client.list_tenancy_attachments,
|
|
229
|
+
limit,
|
|
230
|
+
page_size,
|
|
231
|
+
**kwargs
|
|
232
|
+
)
|
|
233
|
+
else:
|
|
234
|
+
result = client.list_tenancy_attachments(
|
|
235
|
+
**kwargs
|
|
236
|
+
)
|
|
237
|
+
cli_util.render_response(result, ctx)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
@tenancy_attachment_group.command(name=cli_util.override('tenancy_attachment.update_tenancy_attachment.command_name', 'update'), help=u"""Updates a TenancyAttachment. \n[Command Reference](updateTenancyAttachment)""")
|
|
241
|
+
@cli_util.option('--tenancy-attachment-id', required=True, help=u"""The [OCID] of the TenancyAttachment.""")
|
|
242
|
+
@cli_util.option('--description', required=True, help=u"""A description of the tenancy.""")
|
|
243
|
+
@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.""")
|
|
244
|
+
@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.""")
|
|
245
|
+
@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.""")
|
|
246
|
+
@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.""")
|
|
247
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
248
|
+
@cli_util.help_option
|
|
249
|
+
@click.pass_context
|
|
250
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
251
|
+
@cli_util.wrap_exceptions
|
|
252
|
+
def update_tenancy_attachment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, tenancy_attachment_id, description, if_match):
|
|
253
|
+
|
|
254
|
+
if isinstance(tenancy_attachment_id, six.string_types) and len(tenancy_attachment_id.strip()) == 0:
|
|
255
|
+
raise click.UsageError('Parameter --tenancy-attachment-id cannot be whitespace or empty string')
|
|
256
|
+
|
|
257
|
+
kwargs = {}
|
|
258
|
+
if if_match is not None:
|
|
259
|
+
kwargs['if_match'] = if_match
|
|
260
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
261
|
+
|
|
262
|
+
_details = {}
|
|
263
|
+
_details['description'] = description
|
|
264
|
+
|
|
265
|
+
client = cli_util.build_client('resource_analytics', 'tenancy_attachment', ctx)
|
|
266
|
+
result = client.update_tenancy_attachment(
|
|
267
|
+
tenancy_attachment_id=tenancy_attachment_id,
|
|
268
|
+
update_tenancy_attachment_details=_details,
|
|
269
|
+
**kwargs
|
|
270
|
+
)
|
|
271
|
+
if wait_for_state:
|
|
272
|
+
|
|
273
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
274
|
+
try:
|
|
275
|
+
wait_period_kwargs = {}
|
|
276
|
+
if max_wait_seconds is not None:
|
|
277
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
278
|
+
if wait_interval_seconds is not None:
|
|
279
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
280
|
+
if 'opc-work-request-id' not in result.headers:
|
|
281
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
282
|
+
cli_util.render_response(result, ctx)
|
|
283
|
+
return
|
|
284
|
+
|
|
285
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
286
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
287
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
288
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
289
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
290
|
+
cli_util.render_response(result, ctx)
|
|
291
|
+
sys.exit(2)
|
|
292
|
+
except Exception:
|
|
293
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
294
|
+
cli_util.render_response(result, ctx)
|
|
295
|
+
raise
|
|
296
|
+
else:
|
|
297
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
298
|
+
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_tenancy_attachment.generated import tenancyattachment_cli
|
|
27
|
+
|
|
28
|
+
# Remove collection group
|
|
29
|
+
# oci resource-analytics tenancy-attachment tenancy-attachment-collection
|
|
30
|
+
tenancyattachment_cli.tenancy_attachment_root_group.commands.pop(tenancyattachment_cli.tenancy_attachment_collection_group.name)
|
|
31
|
+
# Add list command from collection to root group
|
|
32
|
+
# oci resource-analytics tenancy-attachment list
|
|
33
|
+
tenancyattachment_cli.tenancy_attachment_group.add_command(tenancyattachment_cli.list_tenancy_attachments)
|
|
34
|
+
|
|
35
|
+
# Rearrange nested groups to be "top" level
|
|
36
|
+
# oci resource-analytics tenancy-attachment tenancy-attachment <command>
|
|
37
|
+
tenancyattachment_cli.tenancy_attachment_root_group.commands.pop(tenancyattachment_cli.tenancy_attachment_group.name)
|
|
38
|
+
# -> oci resource-analytics tenancy-attachment <command>
|
|
39
|
+
resource_analytics_service_cli.resource_analytics_service_group.add_command(tenancyattachment_cli.tenancy_attachment_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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|