oci-cli 3.64.1__py3-none-any.whl → 3.65.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oci_cli/bin/dbmulticloud.psm1 +39 -4
- oci_cli/bin/mysql.psm1 +4 -2
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/condition-metadata-type/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/detector-recipe/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/create.txt +5 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/managed-list/update.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/problem/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/problem-aggregation/request-summarized-problems.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/resource/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/cloud-guard/resource-type-summary/list-resource-types.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-from-backup-details.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-backup/list.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/register-cloud-vm-cluster-pkcs.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/unregister-cloud-vm-cluster-pkcs.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create/with-new-db-system.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association/create-data-guard-association-google-cloud-provider-encryption-key-details.txt +206 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/data-guard-association.txt +3 -0
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/access-policy/delete.txt → db/database/change-encryption-key-location-google-cloud-provider-encryption-key-details.txt} +19 -24
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-stand-by-database-details.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-from-backup.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-backup.txt +10 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-standby-database.txt +20 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create.txt +10 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/update.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/database.txt +3 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/create.txt +9 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +10 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/list.txt +21 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/update.txt +10 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/gi-version/list.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +42 -27
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +42 -27
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +42 -27
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +42 -27
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/list-db-system-storage-performances.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/system-shape/list.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/version/list.txt +5 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/change-compartment.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/create.txt +24 -4
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/delete.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/get.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/list.txt +14 -7
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery/update.txt +7 -6
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/multi-cloud-resource-discovery.txt +57 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/change-compartment.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/create.txt +6 -8
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/get.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/list.txt +9 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container/update.txt +8 -8
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-container.txt +57 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/change-compartment.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/create.txt +8 -8
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/delete.txt +4 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/get.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/list.txt +7 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount/update.txt +8 -6
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-blob-mount.txt +57 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/change-compartment.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/create.txt +11 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/delete.txt +2 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/get.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/list.txt +6 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/patch.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector/update.txt +12 -13
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-connector.txt +61 -16
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key/get.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key/list.txt +7 -4
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-key.txt +57 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/change-compartment.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/create.txt +10 -10
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/get.txt +5 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/list.txt +8 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/refresh.txt +6 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault/update.txt +17 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/cascading-delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/change-compartment.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/create.txt +7 -6
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/get.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/list.txt +9 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association/update.txt +9 -7
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault-association.txt +61 -16
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-azure-vault.txt +61 -16
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-gcp-identity-connector/change-compartment.txt +132 -0
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/ingress-gateway → dbmulticloud/oracle-db-gcp-identity-connector}/create.txt +54 -69
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/model → dbmulticloud/oracle-db-gcp-identity-connector}/delete.txt +8 -18
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance → dbmulticloud/oracle-db-gcp-identity-connector}/get.txt +7 -6
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → dbmulticloud/oracle-db-gcp-identity-connector}/list.txt +15 -13
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/install-all-updates.txt → dbmulticloud/oracle-db-gcp-identity-connector/refresh.txt} +17 -17
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe → dbmulticloud/oracle-db-gcp-identity-connector}/update.txt +57 -38
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/oracle-db-gcp-identity-connector.txt +29 -0
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request → dbmulticloud/oracle-db-gcp-key}/get.txt +7 -6
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe → dbmulticloud/oracle-db-gcp-key}/list.txt +18 -15
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → dbmulticloud/oracle-db-gcp-key-ring}/change-compartment.txt +15 -21
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh/update.txt → dbmulticloud/oracle-db-gcp-key-ring/create.txt} +54 -47
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh → dbmulticloud/oracle-db-gcp-key-ring}/delete.txt +9 -13
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/list.txt → dbmulticloud/oracle-db-gcp-key-ring/get.txt} +13 -44
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → dbmulticloud/oracle-db-gcp-key-ring}/list.txt +21 -14
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh/change-compartment.txt → dbmulticloud/oracle-db-gcp-key-ring/refresh.txt} +15 -20
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/model → dbmulticloud/oracle-db-gcp-key-ring}/update.txt +31 -30
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance-group.txt → dbmulticloud/oracle-db-gcp-key-ring.txt} +4 -8
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request.txt → dbmulticloud/oracle-db-gcp-key.txt} +3 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud/work-request.txt +61 -16
- oci_cli/help_text_producer/data_files/text/cmdref/dbmulticloud.txt +95 -12
- oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/dedicated-ai-cluster/create.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint-collection/list-endpoints.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/chat-result/chat-generic-chat-request.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/create.txt +12 -0
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/list.txt +9 -0
- oci_cli/help_text_producer/data_files/text/cmdref/goldengate/deployment/update.txt +12 -0
- 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/{anomaly-detection/pe/delete.txt → kafka/cluster/change-compartment.txt} +16 -21
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → kafka/cluster}/create.txt +78 -66
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster}/delete.txt +7 -12
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance/install-all-windows-updates.txt → kafka/cluster/disable-superuser.txt} +17 -17
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/pe/change-compartment.txt → kafka/cluster/enable-superuser.txt} +18 -19
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/erratum → kafka/cluster}/get.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/{dts/job → kafka/cluster}/list.txt +36 -23
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/virtual-service → kafka/cluster}/update.txt +62 -58
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster-config}/change-compartment.txt +10 -10
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → kafka/cluster-config}/create.txt +30 -33
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/managed-instance-group → kafka/cluster-config}/delete.txt +7 -10
- oci_cli/help_text_producer/data_files/text/cmdref/{os-management/windows-update → kafka/cluster-config}/get.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/mesh → kafka/cluster-config}/list.txt +25 -30
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/data-asset → kafka/cluster-config}/update.txt +40 -30
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/work-request/cancel.txt → kafka/cluster-config-version/delete.txt} +12 -7
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection/project → kafka/cluster-config-version}/get.txt +11 -8
- oci_cli/help_text_producer/data_files/text/cmdref/{dts/export → kafka/cluster-config-version}/list.txt +25 -23
- oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster-config-version.txt +18 -0
- oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster-config.txt +29 -0
- oci_cli/help_text_producer/data_files/text/cmdref/kafka/cluster.txt +33 -0
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/cancel.txt +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/get.txt +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh → kafka}/work-request/list.txt +26 -31
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/work-request/list-work-request-errors.txt → kafka/work-request-error/list.txt} +16 -13
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection → kafka}/work-request-error.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/{service-mesh/work-request → kafka/work-request-log-entry}/list-work-request-logs.txt +14 -11
- oci_cli/help_text_producer/data_files/text/cmdref/{anomaly-detection → kafka}/work-request-log-entry.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/kafka/work-request.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/kafka.txt +69 -0
- oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup/list.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup/validate.txt +141 -0
- oci_cli/help_text_producer/data_files/text/cmdref/mysql/backup.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/mysql.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/ocvs.txt +1 -1
- oci_cli/help_text_producer/data_files/text/index.txt +3 -9
- oci_cli/service_mapping.py +6 -21
- oci_cli/version.py +1 -1
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/METADATA +2 -2
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/RECORD +198 -556
- services/cims/src/oci_cli_incident/cims_cli_extended.py +1 -1
- services/cloud_guard/src/oci_cli_cloud_guard/generated/cloudguard_cli.py +18 -10
- services/database/src/oci_cli_database/database_cli_extended.py +67 -3
- services/database/src/oci_cli_database/generated/database_cli.py +367 -70
- services/{ai_anomaly_detection → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider}/__init__.py +1 -1
- services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/dbmulticloudgcpprovider_cli_extended.py +18 -0
- services/{ai_anomaly_detection/src → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated}/__init__.py +1 -1
- services/{dts/src/oci_cli_transfer_appliance_entitlement → dbmulticloud/src/oci_cli_db_multicloud_gcp_provider}/generated/client_mappings.py +6 -6
- services/dbmulticloud/src/oci_cli_db_multicloud_gcp_provider/generated/dbmulticloudgcpprovider_cli.py +1057 -0
- services/dbmulticloud/src/oci_cli_dbmulticloud/generated/dbmulticloud_service_cli.py +27 -8
- services/dbmulticloud/src/oci_cli_multi_cloud_resource_discovery/generated/multicloudresourcediscovery_cli.py +63 -37
- services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_container/generated/oracledbazureblobcontainer_cli.py +52 -33
- services/dbmulticloud/src/oci_cli_oracle_db_azure_blob_mount/generated/oracledbazureblobmount_cli.py +49 -30
- services/dbmulticloud/src/oci_cli_oracle_db_azure_connector/generated/oracledbazureconnector_cli.py +113 -39
- services/dbmulticloud/src/oci_cli_oracle_db_azure_key/generated/oracledbazurekey_cli.py +34 -15
- services/dbmulticloud/src/oci_cli_oracle_db_azure_vault/generated/oracledbazurevault_cli.py +69 -42
- services/dbmulticloud/src/oci_cli_oracle_db_azure_vault_association/generated/oracledbazurevaultassociation_cli.py +52 -33
- services/dbmulticloud/src/oci_cli_work_request/generated/workrequest_cli.py +27 -8
- services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +5 -2
- services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py +7 -3
- services/golden_gate/src/oci_cli_golden_gate/generated/goldengate_cli.py +22 -3
- services/{ai_anomaly_detection/src/oci_cli_anomaly_detection → managed_kafka}/__init__.py +1 -1
- services/{ai_anomaly_detection/src/oci_cli_anomaly_detection/generated → managed_kafka/src}/__init__.py +1 -1
- services/managed_kafka/src/oci_cli_kafka_cluster/__init__.py +4 -0
- services/managed_kafka/src/oci_cli_kafka_cluster/generated/__init__.py +4 -0
- services/{os_management/src/oci_cli_os_management → managed_kafka/src/oci_cli_kafka_cluster}/generated/client_mappings.py +6 -6
- services/managed_kafka/src/oci_cli_kafka_cluster/generated/kafkacluster_cli.py +1254 -0
- services/managed_kafka/src/oci_cli_kafka_cluster/kafkacluster_cli_extended.py +46 -0
- services/managed_kafka/tests/__init__.py +4 -0
- services/mysql/src/oci_cli_db_backups/generated/dbbackups_cli.py +70 -1
- oci_cli/bin/dts.psm1 +0 -147
- oci_cli/bin/os-management.psm1 +0 -140
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/change-compartment.txt +0 -138
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-atp.txt +0 -207
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-influx.txt +0 -198
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/create-data-source-os.txt +0 -174
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/delete.txt +0 -138
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset/get.txt +0 -100
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/data-asset.txt +0 -30
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/change-compartment.txt +0 -119
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-embedded-input-details.txt +0 -144
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-inline-input-details.txt +0 -185
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-object-list-input-details.txt +0 -173
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create-detect-anomaly-job-object-store-output-details.txt +0 -175
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/create.txt +0 -173
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/delete.txt +0 -143
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/get.txt +0 -105
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job/update.txt +0 -147
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job-collection/list-detect-anomaly-jobs.txt +0 -155
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job-collection.txt +0 -15
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/detect-anomaly-job.txt +0 -31
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/change-compartment.txt +0 -113
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/create.txt +0 -174
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies-embedded.txt +0 -124
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies-inline.txt +0 -139
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/detect-anomalies.txt +0 -125
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/get.txt +0 -100
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model/list.txt +0 -148
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/model.txt +0 -30
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe/create.txt +0 -170
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe/get.txt +0 -99
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/pe.txt +0 -25
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project/create.txt +0 -152
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project/update.txt +0 -166
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/project.txt +0 -24
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request/list.txt +0 -114
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request-error/list.txt +0 -110
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection/work-request-log-entry/list-work-request-logs.txt +0 -110
- oci_cli/help_text_producer/data_files/text/cmdref/anomaly-detection.txt +0 -125
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/cancel.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/delete.txt +0 -105
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/get-passphrase.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/list.txt +0 -100
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/never-receive.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request-entitlement.txt +0 -189
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request-return-label.txt +0 -249
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/request.txt +0 -188
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/setup-notifications.txt +0 -63
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/show-entitlement.txt +0 -113
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/show.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/update-minimum-storage-capacity.txt +0 -107
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance/update-shipping-address.txt +0 -154
- oci_cli/help_text_producer/data_files/text/cmdref/dts/appliance.txt +0 -38
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/change-compartment.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/configure-physical-appliance.txt +0 -114
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/create-policy.txt +0 -68
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/create.txt +0 -226
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/delete.txt +0 -132
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/generate-manifest.txt +0 -97
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/get-passphrase.txt +0 -68
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/request-appliance.txt +0 -68
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/request-return-label.txt +0 -245
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/setup-notifications.txt +0 -51
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/show.txt +0 -96
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export/update.txt +0 -265
- oci_cli/help_text_producer/data_files/text/cmdref/dts/export.txt +0 -38
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/change-compartment.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/close.txt +0 -96
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/create.txt +0 -192
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/delete.txt +0 -100
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/detach-devices-details/change-compartment.txt +0 -102
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/detach-devices-details.txt +0 -12
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/setup-notifications.txt +0 -68
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/show.txt +0 -96
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/update.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job/verify-upload-user-credentials.txt +0 -91
- oci_cli/help_text_producer/data_files/text/cmdref/dts/job.txt +0 -34
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/activate.txt +0 -93
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/create.txt +0 -93
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/deactivate.txt +0 -77
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/delete.txt +0 -77
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/get-seal-manifest.txt +0 -81
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/list.txt +0 -67
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/reopen.txt +0 -77
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/seal-status.txt +0 -77
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/seal.txt +0 -75
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/set-export.txt +0 -93
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset/show.txt +0 -77
- oci_cli/help_text_producer/data_files/text/cmdref/dts/nfs-dataset.txt +0 -34
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/configure-encryption.txt +0 -81
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/finalize.txt +0 -89
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/initialize-authentication.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/list.txt +0 -63
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/show.txt +0 -67
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/unlock.txt +0 -75
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance/unregister.txt +0 -67
- oci_cli/help_text_producer/data_files/text/cmdref/dts/physical-appliance.txt +0 -26
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/configured.txt +0 -111
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/copied.txt +0 -105
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/monitored.txt +0 -102
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/prepared.txt +0 -104
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify/shipped.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/dts/verify.txt +0 -22
- oci_cli/help_text_producer/data_files/text/cmdref/dts.txt +0 -144
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum-summary/list-errata.txt +0 -310
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum-summary.txt +0 -15
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/erratum.txt +0 -14
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/delete-content.txt +0 -113
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/get-content.txt +0 -108
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/get-report.txt +0 -270
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/list-related-events.txt +0 -307
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/list.txt +0 -319
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/update.txt +0 -139
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event/upload-content.txt +0 -110
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/event.txt +0 -27
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/attach-child.txt +0 -102
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/attach-parent.txt +0 -104
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/detach-child.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/detach-parent.txt +0 -102
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/disable-module-stream.txt +0 -138
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/enable-module-stream.txt +0 -139
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-module-profile.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-package.txt +0 -123
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-update.txt +0 -123
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/install-windows-update.txt +0 -124
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-packages.txt +0 -142
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-software-sources.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-updates.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-available-windows-updates.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-installed-packages.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-installed-windows-updates.txt +0 -142
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-managed-instance-errata.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-module-profiles.txt +0 -210
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/list-module-streams.txt +0 -210
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/remove-module-profile.txt +0 -142
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/remove-package.txt +0 -123
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance/switch-module-stream.txt +0 -138
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/attach.txt +0 -102
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/change-compartment.txt +0 -107
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/create.txt +0 -163
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/detach.txt +0 -99
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/get.txt +0 -94
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/install-all-updates.txt +0 -128
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/list.txt +0 -152
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance-group/update.txt +0 -166
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/managed-instance.txt +0 -64
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile/get.txt +0 -137
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile/list.txt +0 -189
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-profile.txt +0 -16
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream/get.txt +0 -132
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream/list.txt +0 -188
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/module-stream.txt +0 -16
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/change-compartment.txt +0 -110
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/create.txt +0 -357
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/delete.txt +0 -135
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/get.txt +0 -97
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/list-upcoming.txt +0 -251
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/list.txt +0 -174
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/run-now.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/skip-next-execution.txt +0 -106
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job/update.txt +0 -323
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/scheduled-job.txt +0 -30
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/add-packages.txt +0 -111
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/change-compartment.txt +0 -108
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/create.txt +0 -187
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/delete.txt +0 -133
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/get-package.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/get.txt +0 -95
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/list-packages.txt +0 -145
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/list.txt +0 -144
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/remove-packages.txt +0 -112
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/search-packages.txt +0 -124
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source/update.txt +0 -187
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/software-source.txt +0 -34
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/update-managed-instance-details/update-managed-instance.txt +0 -107
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/update-managed-instance-details.txt +0 -14
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/windows-update/list.txt +0 -129
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/windows-update.txt +0 -16
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/get.txt +0 -91
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list-errors.txt +0 -128
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list-logs.txt +0 -128
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request/list.txt +0 -148
- oci_cli/help_text_producer/data_files/text/cmdref/os-management/work-request.txt +0 -20
- oci_cli/help_text_producer/data_files/text/cmdref/os-management.txt +0 -187
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/change-compartment.txt +0 -143
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/create.txt +0 -187
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/get.txt +0 -103
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy/update.txt +0 -193
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/access-policy.txt +0 -25
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/debug/report.txt +0 -60
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/debug.txt +0 -14
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/change-compartment.txt +0 -143
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/delete.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/get.txt +0 -103
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway/update.txt +0 -215
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/change-compartment.txt +0 -147
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/create.txt +0 -197
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/delete.txt +0 -145
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/get.txt +0 -107
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table/update.txt +0 -203
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway-route-table.txt +0 -25
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/ingress-gateway.txt +0 -26
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh/create.txt +0 -190
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh/get.txt +0 -99
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/mesh.txt +0 -27
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/proxy-details/get.txt +0 -79
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/proxy-details.txt +0 -14
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/change-compartment.txt +0 -143
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create-virtual-deployment-disabled-service-discovery-configuration.txt +0 -204
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create-virtual-deployment-dns-service-discovery-configuration.txt +0 -209
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/create.txt +0 -215
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/delete.txt +0 -141
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/get.txt +0 -103
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update-virtual-deployment-disabled-service-discovery-configuration.txt +0 -204
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update-virtual-deployment-dns-service-discovery-configuration.txt +0 -209
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment/update.txt +0 -215
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-deployment.txt +0 -33
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/delete.txt +0 -139
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/get.txt +0 -101
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/change-compartment.txt +0 -145
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/create.txt +0 -195
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/delete.txt +0 -143
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/get.txt +0 -105
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/list.txt +0 -150
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table/update.txt +0 -201
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service-route-table.txt +0 -25
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/virtual-service.txt +0 -27
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh/work-request.txt +0 -22
- oci_cli/help_text_producer/data_files/text/cmdref/service-mesh.txt +0 -139
- services/ai_anomaly_detection/src/oci_cli_anomaly_detection/anomalydetection_cli_extended.py +0 -234
- services/ai_anomaly_detection/src/oci_cli_anomaly_detection/generated/anomalydetection_cli.py +0 -2665
- services/ai_anomaly_detection/src/oci_cli_anomaly_detection/generated/client_mappings.py +0 -14
- services/ai_anomaly_detection/tests/__init__.py +0 -4
- services/dts/__init__.py +0 -4
- services/dts/src/__init__.py +0 -4
- services/dts/src/oci_cli_appliance_export_job/__init__.py +0 -4
- services/dts/src/oci_cli_appliance_export_job/applianceexportjob_cli_extended.py +0 -582
- services/dts/src/oci_cli_appliance_export_job/applianceexportjob_constants.py +0 -11
- services/dts/src/oci_cli_appliance_export_job/generated/__init__.py +0 -4
- services/dts/src/oci_cli_appliance_export_job/generated/applianceexportjob_cli.py +0 -428
- services/dts/src/oci_cli_appliance_export_job/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_appliance_export_job/manifest/__init__.py +0 -3
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_constants.py +0 -12
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_iterator.py +0 -86
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_line_item.py +0 -22
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_stats.py +0 -93
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_stats_consumer.py +0 -15
- services/dts/src/oci_cli_appliance_export_job/manifest/manifest_writer.py +0 -117
- services/dts/src/oci_cli_appliance_export_job/manifest/object_uploader.py +0 -124
- services/dts/src/oci_cli_dts/__init__.py +0 -4
- services/dts/src/oci_cli_dts/appliance_auth_manager.py +0 -59
- services/dts/src/oci_cli_dts/appliance_cert_manager.py +0 -51
- services/dts/src/oci_cli_dts/appliance_client_proxy.py +0 -57
- services/dts/src/oci_cli_dts/appliance_config.py +0 -34
- services/dts/src/oci_cli_dts/appliance_config_manager.py +0 -145
- services/dts/src/oci_cli_dts/appliance_config_spec.py +0 -38
- services/dts/src/oci_cli_dts/appliance_constants.py +0 -35
- services/dts/src/oci_cli_dts/appliance_init_auth.py +0 -81
- services/dts/src/oci_cli_dts/appliance_init_auth_spec.py +0 -32
- services/dts/src/oci_cli_dts/base_client.py +0 -102
- services/dts/src/oci_cli_dts/cli_utils.py +0 -131
- services/dts/src/oci_cli_dts/dts_service_cli_extended.py +0 -95
- services/dts/src/oci_cli_dts/dts_transform.py +0 -31
- services/dts/src/oci_cli_dts/generated/__init__.py +0 -4
- services/dts/src/oci_cli_dts/generated/dts_service_cli.py +0 -14
- services/dts/src/oci_cli_dts/nfs_dataset_client_proxy.py +0 -85
- services/dts/src/oci_cli_dts/nfsdataset_cli_extended.py +0 -371
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/__init__.py +0 -3
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/__init__.py +0 -16
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/diagnose_tools_client.py +0 -163
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/diagnose_tools_client_composite_operations.py +0 -24
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/__init__.py +0 -28
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/dataset_seal_status.py +0 -282
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/details.py +0 -66
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_dataset_info.py +0 -191
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_dataset_spec.py +0 -93
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_export_config.py +0 -174
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/nfs_export_details.py +0 -66
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/object_storage_upload_config.py +0 -201
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/passphrase_details.py +0 -66
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/models/physical_transfer_appliance.py +0 -214
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/nfs_dataset_client.py +0 -835
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/nfs_dataset_client_composite_operations.py +0 -24
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/physical_transfer_appliance_client.py +0 -374
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/client/physical_transfer_appliance_client_composite_operations.py +0 -24
- services/dts/src/oci_cli_dts/physical_appliance_control_plane/service_endpoints.py +0 -9
- services/dts/src/oci_cli_dts/physicalappliance_cli_extended.py +0 -590
- services/dts/src/oci_cli_dts/verify_cli_extended.py +0 -494
- services/dts/src/oci_cli_shipping_vendors/__init__.py +0 -4
- services/dts/src/oci_cli_shipping_vendors/generated/__init__.py +0 -4
- services/dts/src/oci_cli_shipping_vendors/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_shipping_vendors/generated/shippingvendors_cli.py +0 -49
- services/dts/src/oci_cli_transfer_appliance/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_appliance/generated/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_appliance/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_transfer_appliance/generated/transferappliance_cli.py +0 -364
- services/dts/src/oci_cli_transfer_appliance/transferappliance_cli_extended.py +0 -362
- services/dts/src/oci_cli_transfer_appliance_entitlement/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_appliance_entitlement/generated/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_appliance_entitlement/generated/transferapplianceentitlement_cli.py +0 -155
- services/dts/src/oci_cli_transfer_appliance_entitlement/transferapplianceentitlement_cli_extended.py +0 -66
- services/dts/src/oci_cli_transfer_device/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_device/generated/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_device/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_transfer_device/generated/transferdevice_cli.py +0 -209
- services/dts/src/oci_cli_transfer_job/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_job/generated/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_job/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_transfer_job/generated/transferjob_cli.py +0 -368
- services/dts/src/oci_cli_transfer_job/transferjob_cli_extended.py +0 -281
- services/dts/src/oci_cli_transfer_package/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_package/generated/__init__.py +0 -4
- services/dts/src/oci_cli_transfer_package/generated/client_mappings.py +0 -14
- services/dts/src/oci_cli_transfer_package/generated/transferpackage_cli.py +0 -326
- services/dts/tests/__init__.py +0 -4
- services/os_management/__init__.py +0 -4
- services/os_management/src/__init__.py +0 -4
- services/os_management/src/oci_cli_event/__init__.py +0 -4
- services/os_management/src/oci_cli_event/event_cli_extended.py +0 -34
- services/os_management/src/oci_cli_event/generated/__init__.py +0 -4
- services/os_management/src/oci_cli_event/generated/client_mappings.py +0 -14
- services/os_management/src/oci_cli_event/generated/event_cli.py +0 -430
- services/os_management/src/oci_cli_os_management/__init__.py +0 -4
- services/os_management/src/oci_cli_os_management/generated/__init__.py +0 -4
- services/os_management/src/oci_cli_os_management/generated/os_management_service_cli.py +0 -15
- services/os_management/src/oci_cli_os_management/generated/osmanagement_cli.py +0 -4009
- services/os_management/src/oci_cli_os_management/osmanagement_cli_extended.py +0 -244
- services/os_management/tests/__init__.py +0 -4
- services/service_mesh/__init__.py +0 -4
- services/service_mesh/src/__init__.py +0 -4
- services/service_mesh/src/oci_cli_service_mesh/__init__.py +0 -4
- services/service_mesh/src/oci_cli_service_mesh/generated/__init__.py +0 -4
- services/service_mesh/src/oci_cli_service_mesh/generated/client_mappings.py +0 -14
- services/service_mesh/src/oci_cli_service_mesh/generated/servicemesh_cli.py +0 -3306
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_cli_extended.py +0 -57
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/__init__.py +0 -76
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/aggregators/__init__.py +0 -3
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/aggregators/aggregation_orchestrator.py +0 -88
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/bundle_analyser.py +0 -163
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/event.py +0 -43
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/handlers/__init__.py +0 -3
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/handlers/debug_handler.py +0 -209
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/report_orchestrator.py +0 -82
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/task_orchestrator.py +0 -76
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/task_request.py +0 -232
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/__init__.py +0 -3
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/common_worker.py +0 -116
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/csv_worker.py +0 -39
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/file_worker.py +0 -33
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/igd_worker.py +0 -48
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/mesh_report_worker.py +0 -60
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/mesh_resources_worker.py +0 -49
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/namespaces_worker.py +0 -33
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/oci_cli_version_worker.py +0 -34
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/pod_worker.py +0 -112
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/resource_worker.py +0 -75
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/services_worker.py +0 -34
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/task_worker.py +0 -33
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/validate_crds_worker.py +0 -34
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/vdb_worker.py +0 -51
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/tasks/webhooks_worker.py +0 -34
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/__init__.py +0 -3
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/bundle_helper.py +0 -154
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/constants.py +0 -137
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/helper.py +0 -12
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/kubectl_command_helper.py +0 -646
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/messages.py +0 -16
- services/service_mesh/src/oci_cli_service_mesh/service_mesh_troubleshoot/utils/summary.py +0 -222
- services/service_mesh/tests/__init__.py +0 -4
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/LICENSE.txt +0 -0
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/WHEEL +0 -0
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/entry_points.txt +0 -0
- {oci_cli-3.64.1.dist-info → oci_cli-3.65.1.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,1254 @@
|
|
|
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: 20240901
|
|
5
|
+
|
|
6
|
+
from __future__ import print_function
|
|
7
|
+
import click
|
|
8
|
+
import oci # noqa: F401
|
|
9
|
+
import six # noqa: F401
|
|
10
|
+
import sys # noqa: F401
|
|
11
|
+
from oci_cli.cli_root import cli
|
|
12
|
+
from oci_cli import cli_constants # noqa: F401
|
|
13
|
+
from oci_cli import cli_util
|
|
14
|
+
from oci_cli import json_skeleton_utils
|
|
15
|
+
from oci_cli import custom_types # noqa: F401
|
|
16
|
+
from oci_cli.aliasing import CommandGroupWithAlias
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@cli.command(cli_util.override('kafka.kafka_root_group.command_name', 'kafka'), cls=CommandGroupWithAlias, help=cli_util.override('kafka.kafka_root_group.help', """Use Oracle Streaming with Apache Kafka Control Plane API to create/update/delete managed Kafka clusters."""), short_help=cli_util.override('kafka.kafka_root_group.short_help', """Oracle Streaming with Apache Kafka (OSAK) API"""))
|
|
20
|
+
@cli_util.help_option_group
|
|
21
|
+
def kafka_root_group():
|
|
22
|
+
pass
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@click.command(cli_util.override('kafka.kafka_cluster_config_version_collection_group.command_name', 'kafka-cluster-config-version-collection'), cls=CommandGroupWithAlias, help="""Results of a kafkaClusterConfigVersion search. Contains both KafkaClusterConfigVersionSummary items.""")
|
|
26
|
+
@cli_util.help_option_group
|
|
27
|
+
def kafka_cluster_config_version_collection_group():
|
|
28
|
+
pass
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
@click.command(cli_util.override('kafka.work_request_error_group.command_name', 'work-request-error'), cls=CommandGroupWithAlias, help="""An error encountered while performing an operation that is tracked by a work request.""")
|
|
32
|
+
@cli_util.help_option_group
|
|
33
|
+
def work_request_error_group():
|
|
34
|
+
pass
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@click.command(cli_util.override('kafka.kafka_cluster_config_version_group.command_name', 'kafka-cluster-config-version'), cls=CommandGroupWithAlias, help="""A shared configuration object used by 0 or more kafka clusters.""")
|
|
38
|
+
@cli_util.help_option_group
|
|
39
|
+
def kafka_cluster_config_version_group():
|
|
40
|
+
pass
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@click.command(cli_util.override('kafka.kafka_cluster_config_group.command_name', 'kafka-cluster-config'), cls=CommandGroupWithAlias, help="""A shared configuration object used by 0 or more kafka clusters.
|
|
44
|
+
|
|
45
|
+
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].""")
|
|
46
|
+
@cli_util.help_option_group
|
|
47
|
+
def kafka_cluster_config_group():
|
|
48
|
+
pass
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@click.command(cli_util.override('kafka.work_request_log_entry_group.command_name', 'work-request-log-entry'), cls=CommandGroupWithAlias, help="""A log message from performing an operation that is tracked by a work request.""")
|
|
52
|
+
@cli_util.help_option_group
|
|
53
|
+
def work_request_log_entry_group():
|
|
54
|
+
pass
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
@click.command(cli_util.override('kafka.work_request_group.command_name', 'work-request'), cls=CommandGroupWithAlias, help="""An asynchronous work request. Work requests help you monitor long-running operations. When you start a long-running operation, the service creates a work request. A work request is an activity log that lets you track each step in the operation's progress. Each work request has an OCID that lets you interact with it programmatically and use it for automation.""")
|
|
58
|
+
@cli_util.help_option_group
|
|
59
|
+
def work_request_group():
|
|
60
|
+
pass
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
@click.command(cli_util.override('kafka.kafka_cluster_group.command_name', 'kafka-cluster'), cls=CommandGroupWithAlias, help="""A KafkaCluster is a description of a KafkaCluster.
|
|
64
|
+
|
|
65
|
+
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].""")
|
|
66
|
+
@cli_util.help_option_group
|
|
67
|
+
def kafka_cluster_group():
|
|
68
|
+
pass
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
kafka_root_group.add_command(kafka_cluster_config_version_collection_group)
|
|
72
|
+
kafka_root_group.add_command(work_request_error_group)
|
|
73
|
+
kafka_root_group.add_command(kafka_cluster_config_version_group)
|
|
74
|
+
kafka_root_group.add_command(kafka_cluster_config_group)
|
|
75
|
+
kafka_root_group.add_command(work_request_log_entry_group)
|
|
76
|
+
kafka_root_group.add_command(work_request_group)
|
|
77
|
+
kafka_root_group.add_command(kafka_cluster_group)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@work_request_group.command(name=cli_util.override('kafka.cancel_work_request.command_name', 'cancel'), help=u"""Cancels a work request. \n[Command Reference](cancelWorkRequest)""")
|
|
81
|
+
@cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
|
|
82
|
+
@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.""")
|
|
83
|
+
@cli_util.confirm_delete_option
|
|
84
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
85
|
+
@cli_util.help_option
|
|
86
|
+
@click.pass_context
|
|
87
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
88
|
+
@cli_util.wrap_exceptions
|
|
89
|
+
def cancel_work_request(ctx, from_json, work_request_id, if_match):
|
|
90
|
+
|
|
91
|
+
if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
|
|
92
|
+
raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
|
|
93
|
+
|
|
94
|
+
kwargs = {}
|
|
95
|
+
if if_match is not None:
|
|
96
|
+
kwargs['if_match'] = if_match
|
|
97
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
98
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
99
|
+
result = client.cancel_work_request(
|
|
100
|
+
work_request_id=work_request_id,
|
|
101
|
+
**kwargs
|
|
102
|
+
)
|
|
103
|
+
cli_util.render_response(result, ctx)
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.change_kafka_cluster_compartment.command_name', 'change-compartment'), help=u"""Moves a KafkaCluster into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment]. \n[Command Reference](changeKafkaClusterCompartment)""")
|
|
107
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
108
|
+
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the KafkaCluster to.""")
|
|
109
|
+
@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.""")
|
|
110
|
+
@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.""")
|
|
111
|
+
@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.""")
|
|
112
|
+
@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.""")
|
|
113
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
114
|
+
@cli_util.help_option
|
|
115
|
+
@click.pass_context
|
|
116
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
117
|
+
@cli_util.wrap_exceptions
|
|
118
|
+
def change_kafka_cluster_compartment(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, compartment_id, if_match):
|
|
119
|
+
|
|
120
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
121
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
122
|
+
|
|
123
|
+
kwargs = {}
|
|
124
|
+
if if_match is not None:
|
|
125
|
+
kwargs['if_match'] = if_match
|
|
126
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
127
|
+
|
|
128
|
+
_details = {}
|
|
129
|
+
_details['compartmentId'] = compartment_id
|
|
130
|
+
|
|
131
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
132
|
+
result = client.change_kafka_cluster_compartment(
|
|
133
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
134
|
+
change_kafka_cluster_compartment_details=_details,
|
|
135
|
+
**kwargs
|
|
136
|
+
)
|
|
137
|
+
if wait_for_state:
|
|
138
|
+
|
|
139
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
140
|
+
try:
|
|
141
|
+
wait_period_kwargs = {}
|
|
142
|
+
if max_wait_seconds is not None:
|
|
143
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
144
|
+
if wait_interval_seconds is not None:
|
|
145
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
146
|
+
if 'opc-work-request-id' not in result.headers:
|
|
147
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
148
|
+
cli_util.render_response(result, ctx)
|
|
149
|
+
return
|
|
150
|
+
|
|
151
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
152
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
153
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
154
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
155
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
156
|
+
cli_util.render_response(result, ctx)
|
|
157
|
+
sys.exit(2)
|
|
158
|
+
except Exception:
|
|
159
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
160
|
+
cli_util.render_response(result, ctx)
|
|
161
|
+
raise
|
|
162
|
+
else:
|
|
163
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
164
|
+
cli_util.render_response(result, ctx)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.change_kafka_cluster_config_compartment.command_name', 'change-compartment'), help=u"""Moves a KafkaClusterConfig into a different compartment within the same tenancy. For information about moving resources between compartments, see [Moving Resources to a Different Compartment]. \n[Command Reference](changeKafkaClusterConfigCompartment)""")
|
|
168
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
169
|
+
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to move the KafkaClusterConfig to.""")
|
|
170
|
+
@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.""")
|
|
171
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
172
|
+
@cli_util.help_option
|
|
173
|
+
@click.pass_context
|
|
174
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
175
|
+
@cli_util.wrap_exceptions
|
|
176
|
+
def change_kafka_cluster_config_compartment(ctx, from_json, kafka_cluster_config_id, compartment_id, if_match):
|
|
177
|
+
|
|
178
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
179
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
if if_match is not None:
|
|
183
|
+
kwargs['if_match'] = if_match
|
|
184
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
185
|
+
|
|
186
|
+
_details = {}
|
|
187
|
+
_details['compartmentId'] = compartment_id
|
|
188
|
+
|
|
189
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
190
|
+
result = client.change_kafka_cluster_config_compartment(
|
|
191
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
192
|
+
change_kafka_cluster_config_compartment_details=_details,
|
|
193
|
+
**kwargs
|
|
194
|
+
)
|
|
195
|
+
cli_util.render_response(result, ctx)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.create_kafka_cluster.command_name', 'create'), help=u"""Creates a KafkaCluster. \n[Command Reference](createKafkaCluster)""")
|
|
199
|
+
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to create the KafkaCluster in.""")
|
|
200
|
+
@cli_util.option('--access-subnets', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""Subnets where broker/coordinator VNICs will be created.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
201
|
+
@cli_util.option('--kafka-version', required=True, help=u"""Version of Kafka to use to spin up the cluster""")
|
|
202
|
+
@cli_util.option('--cluster-type', required=True, help=u"""Type of the cluster to spin up. DEVELOPMENT - setting that allows to sacrifice HA and spin up cluster on single node PRODUCTION - Minimum allowed broker count is 3""")
|
|
203
|
+
@cli_util.option('--broker-shape', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
204
|
+
@cli_util.option('--cluster-config-id', required=True, help=u"""The [OCID] of Kafka Cluster configuration object""")
|
|
205
|
+
@cli_util.option('--cluster-config-version', required=True, type=click.INT, help=u"""The version of configuration object""")
|
|
206
|
+
@cli_util.option('--coordination-type', required=True, help=u"""Kafka coordination type. Set of available types depends on Kafka version""")
|
|
207
|
+
@cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
|
|
208
|
+
@cli_util.option('--client-certificate-bundle', help=u"""CA certificate bundle for mTLS broker authentication.""")
|
|
209
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
210
|
+
|
|
211
|
+
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
212
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
213
|
+
|
|
214
|
+
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
215
|
+
@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.""")
|
|
216
|
+
@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.""")
|
|
217
|
+
@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.""")
|
|
218
|
+
@json_skeleton_utils.get_cli_json_input_option({'access-subnets': {'module': 'managed_kafka', 'class': 'list[SubnetSet]'}, 'broker-shape': {'module': 'managed_kafka', 'class': 'BrokerShape'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}})
|
|
219
|
+
@cli_util.help_option
|
|
220
|
+
@click.pass_context
|
|
221
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'access-subnets': {'module': 'managed_kafka', 'class': 'list[SubnetSet]'}, 'broker-shape': {'module': 'managed_kafka', 'class': 'BrokerShape'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'managed_kafka', 'class': 'KafkaCluster'})
|
|
222
|
+
@cli_util.wrap_exceptions
|
|
223
|
+
def create_kafka_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, access_subnets, kafka_version, cluster_type, broker_shape, cluster_config_id, cluster_config_version, coordination_type, display_name, client_certificate_bundle, freeform_tags, defined_tags):
|
|
224
|
+
|
|
225
|
+
kwargs = {}
|
|
226
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
227
|
+
|
|
228
|
+
_details = {}
|
|
229
|
+
_details['compartmentId'] = compartment_id
|
|
230
|
+
_details['accessSubnets'] = cli_util.parse_json_parameter("access_subnets", access_subnets)
|
|
231
|
+
_details['kafkaVersion'] = kafka_version
|
|
232
|
+
_details['clusterType'] = cluster_type
|
|
233
|
+
_details['brokerShape'] = cli_util.parse_json_parameter("broker_shape", broker_shape)
|
|
234
|
+
_details['clusterConfigId'] = cluster_config_id
|
|
235
|
+
_details['clusterConfigVersion'] = cluster_config_version
|
|
236
|
+
_details['coordinationType'] = coordination_type
|
|
237
|
+
|
|
238
|
+
if display_name is not None:
|
|
239
|
+
_details['displayName'] = display_name
|
|
240
|
+
|
|
241
|
+
if client_certificate_bundle is not None:
|
|
242
|
+
_details['clientCertificateBundle'] = client_certificate_bundle
|
|
243
|
+
|
|
244
|
+
if freeform_tags is not None:
|
|
245
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
246
|
+
|
|
247
|
+
if defined_tags is not None:
|
|
248
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
249
|
+
|
|
250
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
251
|
+
result = client.create_kafka_cluster(
|
|
252
|
+
create_kafka_cluster_details=_details,
|
|
253
|
+
**kwargs
|
|
254
|
+
)
|
|
255
|
+
if wait_for_state:
|
|
256
|
+
|
|
257
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
258
|
+
try:
|
|
259
|
+
wait_period_kwargs = {}
|
|
260
|
+
if max_wait_seconds is not None:
|
|
261
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
262
|
+
if wait_interval_seconds is not None:
|
|
263
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
264
|
+
if 'opc-work-request-id' not in result.headers:
|
|
265
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
266
|
+
cli_util.render_response(result, ctx)
|
|
267
|
+
return
|
|
268
|
+
|
|
269
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
270
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
271
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
272
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
273
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
274
|
+
cli_util.render_response(result, ctx)
|
|
275
|
+
sys.exit(2)
|
|
276
|
+
except Exception:
|
|
277
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
278
|
+
cli_util.render_response(result, ctx)
|
|
279
|
+
raise
|
|
280
|
+
else:
|
|
281
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
282
|
+
cli_util.render_response(result, ctx)
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.create_kafka_cluster_config.command_name', 'create'), help=u"""Creates a KafkaClusterConfig. \n[Command Reference](createKafkaClusterConfig)""")
|
|
286
|
+
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to create the KafkaClusterConfig in.""")
|
|
287
|
+
@cli_util.option('--latest-config', required=True, type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
288
|
+
@cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
|
|
289
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
290
|
+
|
|
291
|
+
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
292
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
293
|
+
|
|
294
|
+
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
295
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
296
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
297
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
298
|
+
@json_skeleton_utils.get_cli_json_input_option({'latest-config': {'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersion'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}})
|
|
299
|
+
@cli_util.help_option
|
|
300
|
+
@click.pass_context
|
|
301
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'latest-config': {'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersion'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfig'})
|
|
302
|
+
@cli_util.wrap_exceptions
|
|
303
|
+
def create_kafka_cluster_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, latest_config, display_name, freeform_tags, defined_tags):
|
|
304
|
+
|
|
305
|
+
kwargs = {}
|
|
306
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
307
|
+
|
|
308
|
+
_details = {}
|
|
309
|
+
_details['compartmentId'] = compartment_id
|
|
310
|
+
_details['latestConfig'] = cli_util.parse_json_parameter("latest_config", latest_config)
|
|
311
|
+
|
|
312
|
+
if display_name is not None:
|
|
313
|
+
_details['displayName'] = display_name
|
|
314
|
+
|
|
315
|
+
if freeform_tags is not None:
|
|
316
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
317
|
+
|
|
318
|
+
if defined_tags is not None:
|
|
319
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
320
|
+
|
|
321
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
322
|
+
result = client.create_kafka_cluster_config(
|
|
323
|
+
create_kafka_cluster_config_details=_details,
|
|
324
|
+
**kwargs
|
|
325
|
+
)
|
|
326
|
+
if wait_for_state:
|
|
327
|
+
|
|
328
|
+
if hasattr(client, 'get_kafka_cluster_config') and callable(getattr(client, 'get_kafka_cluster_config')):
|
|
329
|
+
try:
|
|
330
|
+
wait_period_kwargs = {}
|
|
331
|
+
if max_wait_seconds is not None:
|
|
332
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
333
|
+
if wait_interval_seconds is not None:
|
|
334
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
335
|
+
|
|
336
|
+
click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
337
|
+
result = oci.wait_until(client, client.get_kafka_cluster_config(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
|
|
338
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
339
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
340
|
+
click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
341
|
+
cli_util.render_response(result, ctx)
|
|
342
|
+
sys.exit(2)
|
|
343
|
+
except Exception:
|
|
344
|
+
click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
345
|
+
cli_util.render_response(result, ctx)
|
|
346
|
+
raise
|
|
347
|
+
else:
|
|
348
|
+
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
|
|
349
|
+
cli_util.render_response(result, ctx)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.delete_kafka_cluster.command_name', 'delete'), help=u"""Deletes a KafkaCluster. \n[Command Reference](deleteKafkaCluster)""")
|
|
353
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
354
|
+
@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.""")
|
|
355
|
+
@cli_util.confirm_delete_option
|
|
356
|
+
@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.""")
|
|
357
|
+
@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.""")
|
|
358
|
+
@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.""")
|
|
359
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
360
|
+
@cli_util.help_option
|
|
361
|
+
@click.pass_context
|
|
362
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
363
|
+
@cli_util.wrap_exceptions
|
|
364
|
+
def delete_kafka_cluster(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, if_match):
|
|
365
|
+
|
|
366
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
367
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
368
|
+
|
|
369
|
+
kwargs = {}
|
|
370
|
+
if if_match is not None:
|
|
371
|
+
kwargs['if_match'] = if_match
|
|
372
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
373
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
374
|
+
result = client.delete_kafka_cluster(
|
|
375
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
376
|
+
**kwargs
|
|
377
|
+
)
|
|
378
|
+
if wait_for_state:
|
|
379
|
+
|
|
380
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
381
|
+
try:
|
|
382
|
+
wait_period_kwargs = {}
|
|
383
|
+
if max_wait_seconds is not None:
|
|
384
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
385
|
+
if wait_interval_seconds is not None:
|
|
386
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
387
|
+
if 'opc-work-request-id' not in result.headers:
|
|
388
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
389
|
+
cli_util.render_response(result, ctx)
|
|
390
|
+
return
|
|
391
|
+
|
|
392
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
393
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
394
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
395
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
396
|
+
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)
|
|
397
|
+
cli_util.render_response(result, ctx)
|
|
398
|
+
sys.exit(2)
|
|
399
|
+
except Exception:
|
|
400
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
401
|
+
cli_util.render_response(result, ctx)
|
|
402
|
+
raise
|
|
403
|
+
else:
|
|
404
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
405
|
+
cli_util.render_response(result, ctx)
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.delete_kafka_cluster_config.command_name', 'delete'), help=u"""Deletes a KafkaClusterConfig. \n[Command Reference](deleteKafkaClusterConfig)""")
|
|
409
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
410
|
+
@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.""")
|
|
411
|
+
@cli_util.confirm_delete_option
|
|
412
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
413
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
414
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
415
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
416
|
+
@cli_util.help_option
|
|
417
|
+
@click.pass_context
|
|
418
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
419
|
+
@cli_util.wrap_exceptions
|
|
420
|
+
def delete_kafka_cluster_config(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_config_id, if_match):
|
|
421
|
+
|
|
422
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
423
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
424
|
+
|
|
425
|
+
kwargs = {}
|
|
426
|
+
if if_match is not None:
|
|
427
|
+
kwargs['if_match'] = if_match
|
|
428
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
429
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
430
|
+
result = client.delete_kafka_cluster_config(
|
|
431
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
432
|
+
**kwargs
|
|
433
|
+
)
|
|
434
|
+
if wait_for_state:
|
|
435
|
+
|
|
436
|
+
if hasattr(client, 'get_kafka_cluster_config') and callable(getattr(client, 'get_kafka_cluster_config')):
|
|
437
|
+
try:
|
|
438
|
+
wait_period_kwargs = {}
|
|
439
|
+
if max_wait_seconds is not None:
|
|
440
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
441
|
+
if wait_interval_seconds is not None:
|
|
442
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
443
|
+
|
|
444
|
+
click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
445
|
+
oci.wait_until(client, client.get_kafka_cluster_config(kafka_cluster_config_id), 'lifecycle_state', wait_for_state, succeed_on_not_found=True, **wait_period_kwargs)
|
|
446
|
+
except oci.exceptions.ServiceError as e:
|
|
447
|
+
# We make an initial service call so we can pass the result to oci.wait_until(), however if we are waiting on the
|
|
448
|
+
# outcome of a delete operation it is possible that the resource is already gone and so the initial service call
|
|
449
|
+
# will result in an exception that reflects a HTTP 404. In this case, we can exit with success (rather than raising
|
|
450
|
+
# the exception) since this would have been the behaviour in the waiter anyway (as for delete we provide the argument
|
|
451
|
+
# succeed_on_not_found=True to the waiter).
|
|
452
|
+
#
|
|
453
|
+
# Any non-404 should still result in the exception being thrown.
|
|
454
|
+
if e.status == 404:
|
|
455
|
+
pass
|
|
456
|
+
else:
|
|
457
|
+
raise
|
|
458
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
459
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
460
|
+
click.echo('Failed to wait until the resource entered the specified state. Please retrieve the resource to find its current state', file=sys.stderr)
|
|
461
|
+
cli_util.render_response(result, ctx)
|
|
462
|
+
sys.exit(2)
|
|
463
|
+
except Exception:
|
|
464
|
+
click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
465
|
+
cli_util.render_response(result, ctx)
|
|
466
|
+
raise
|
|
467
|
+
else:
|
|
468
|
+
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
|
|
469
|
+
cli_util.render_response(result, ctx)
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
@kafka_cluster_config_version_group.command(name=cli_util.override('kafka.delete_kafka_cluster_config_version.command_name', 'delete'), help=u"""Deletes a KafkaClusterConfig version. \n[Command Reference](deleteKafkaClusterConfigVersion)""")
|
|
473
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
474
|
+
@cli_util.option('--version-number', required=True, type=click.INT, help=u"""The versionNumber of the KafkaClusterConfig.""")
|
|
475
|
+
@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.""")
|
|
476
|
+
@cli_util.confirm_delete_option
|
|
477
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
478
|
+
@cli_util.help_option
|
|
479
|
+
@click.pass_context
|
|
480
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
481
|
+
@cli_util.wrap_exceptions
|
|
482
|
+
def delete_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, version_number, if_match):
|
|
483
|
+
|
|
484
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
485
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
486
|
+
|
|
487
|
+
if isinstance(version_number, six.string_types) and len(version_number.strip()) == 0:
|
|
488
|
+
raise click.UsageError('Parameter --version-number cannot be whitespace or empty string')
|
|
489
|
+
|
|
490
|
+
kwargs = {}
|
|
491
|
+
if if_match is not None:
|
|
492
|
+
kwargs['if_match'] = if_match
|
|
493
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
494
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
495
|
+
result = client.delete_kafka_cluster_config_version(
|
|
496
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
497
|
+
version_number=version_number,
|
|
498
|
+
**kwargs
|
|
499
|
+
)
|
|
500
|
+
cli_util.render_response(result, ctx)
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.disable_superuser.command_name', 'disable-superuser'), help=u"""Removes the SASL superuser to the Kafka cluster. \n[Command Reference](disableSuperuser)""")
|
|
504
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
505
|
+
@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.""")
|
|
506
|
+
@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.""")
|
|
507
|
+
@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.""")
|
|
508
|
+
@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.""")
|
|
509
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
510
|
+
@cli_util.help_option
|
|
511
|
+
@click.pass_context
|
|
512
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
513
|
+
@cli_util.wrap_exceptions
|
|
514
|
+
def disable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, if_match):
|
|
515
|
+
|
|
516
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
517
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
518
|
+
|
|
519
|
+
kwargs = {}
|
|
520
|
+
if if_match is not None:
|
|
521
|
+
kwargs['if_match'] = if_match
|
|
522
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
523
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
524
|
+
result = client.disable_superuser(
|
|
525
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
526
|
+
**kwargs
|
|
527
|
+
)
|
|
528
|
+
if wait_for_state:
|
|
529
|
+
|
|
530
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
531
|
+
try:
|
|
532
|
+
wait_period_kwargs = {}
|
|
533
|
+
if max_wait_seconds is not None:
|
|
534
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
535
|
+
if wait_interval_seconds is not None:
|
|
536
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
537
|
+
if 'opc-work-request-id' not in result.headers:
|
|
538
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
539
|
+
cli_util.render_response(result, ctx)
|
|
540
|
+
return
|
|
541
|
+
|
|
542
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
543
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
544
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
545
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
546
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
547
|
+
cli_util.render_response(result, ctx)
|
|
548
|
+
sys.exit(2)
|
|
549
|
+
except Exception:
|
|
550
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
551
|
+
cli_util.render_response(result, ctx)
|
|
552
|
+
raise
|
|
553
|
+
else:
|
|
554
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
555
|
+
cli_util.render_response(result, ctx)
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.enable_superuser.command_name', 'enable-superuser'), help=u"""Adds a SASL superuser to the Kafka cluster. A generated password will be updated to the specified vault. \n[Command Reference](enableSuperuser)""")
|
|
559
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
560
|
+
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment that contains the superuser secret.""")
|
|
561
|
+
@cli_util.option('--secret-id', required=True, help=u"""The [OCID] of the secret that will be populated with the generated superuser password.""")
|
|
562
|
+
@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.""")
|
|
563
|
+
@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.""")
|
|
564
|
+
@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.""")
|
|
565
|
+
@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.""")
|
|
566
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
567
|
+
@cli_util.help_option
|
|
568
|
+
@click.pass_context
|
|
569
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
570
|
+
@cli_util.wrap_exceptions
|
|
571
|
+
def enable_superuser(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, compartment_id, secret_id, if_match):
|
|
572
|
+
|
|
573
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
574
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
575
|
+
|
|
576
|
+
kwargs = {}
|
|
577
|
+
if if_match is not None:
|
|
578
|
+
kwargs['if_match'] = if_match
|
|
579
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
580
|
+
|
|
581
|
+
_details = {}
|
|
582
|
+
_details['compartmentId'] = compartment_id
|
|
583
|
+
_details['secretId'] = secret_id
|
|
584
|
+
|
|
585
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
586
|
+
result = client.enable_superuser(
|
|
587
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
588
|
+
enable_superuser_details=_details,
|
|
589
|
+
**kwargs
|
|
590
|
+
)
|
|
591
|
+
if wait_for_state:
|
|
592
|
+
|
|
593
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
594
|
+
try:
|
|
595
|
+
wait_period_kwargs = {}
|
|
596
|
+
if max_wait_seconds is not None:
|
|
597
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
598
|
+
if wait_interval_seconds is not None:
|
|
599
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
600
|
+
if 'opc-work-request-id' not in result.headers:
|
|
601
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
602
|
+
cli_util.render_response(result, ctx)
|
|
603
|
+
return
|
|
604
|
+
|
|
605
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
606
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
607
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
608
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
609
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
610
|
+
cli_util.render_response(result, ctx)
|
|
611
|
+
sys.exit(2)
|
|
612
|
+
except Exception:
|
|
613
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
614
|
+
cli_util.render_response(result, ctx)
|
|
615
|
+
raise
|
|
616
|
+
else:
|
|
617
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
618
|
+
cli_util.render_response(result, ctx)
|
|
619
|
+
|
|
620
|
+
|
|
621
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.get_kafka_cluster.command_name', 'get'), help=u"""Gets information about a KafkaCluster. \n[Command Reference](getKafkaCluster)""")
|
|
622
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
623
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
624
|
+
@cli_util.help_option
|
|
625
|
+
@click.pass_context
|
|
626
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaCluster'})
|
|
627
|
+
@cli_util.wrap_exceptions
|
|
628
|
+
def get_kafka_cluster(ctx, from_json, kafka_cluster_id):
|
|
629
|
+
|
|
630
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
631
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
632
|
+
|
|
633
|
+
kwargs = {}
|
|
634
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
635
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
636
|
+
result = client.get_kafka_cluster(
|
|
637
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
638
|
+
**kwargs
|
|
639
|
+
)
|
|
640
|
+
cli_util.render_response(result, ctx)
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.get_kafka_cluster_config.command_name', 'get'), help=u"""Gets information about a KafkaClusterConfig. \n[Command Reference](getKafkaClusterConfig)""")
|
|
644
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
645
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
646
|
+
@cli_util.help_option
|
|
647
|
+
@click.pass_context
|
|
648
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfig'})
|
|
649
|
+
@cli_util.wrap_exceptions
|
|
650
|
+
def get_kafka_cluster_config(ctx, from_json, kafka_cluster_config_id):
|
|
651
|
+
|
|
652
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
653
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
654
|
+
|
|
655
|
+
kwargs = {}
|
|
656
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
657
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
658
|
+
result = client.get_kafka_cluster_config(
|
|
659
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
660
|
+
**kwargs
|
|
661
|
+
)
|
|
662
|
+
cli_util.render_response(result, ctx)
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
@kafka_cluster_config_version_group.command(name=cli_util.override('kafka.get_kafka_cluster_config_version.command_name', 'get'), help=u"""Gets information about a KafkaClusterConfig version. \n[Command Reference](getKafkaClusterConfigVersion)""")
|
|
666
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
667
|
+
@cli_util.option('--version-number', required=True, type=click.INT, help=u"""The versionNumber of the KafkaClusterConfig.""")
|
|
668
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
669
|
+
@cli_util.help_option
|
|
670
|
+
@click.pass_context
|
|
671
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersion'})
|
|
672
|
+
@cli_util.wrap_exceptions
|
|
673
|
+
def get_kafka_cluster_config_version(ctx, from_json, kafka_cluster_config_id, version_number):
|
|
674
|
+
|
|
675
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
676
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
677
|
+
|
|
678
|
+
if isinstance(version_number, six.string_types) and len(version_number.strip()) == 0:
|
|
679
|
+
raise click.UsageError('Parameter --version-number cannot be whitespace or empty string')
|
|
680
|
+
|
|
681
|
+
kwargs = {}
|
|
682
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
683
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
684
|
+
result = client.get_kafka_cluster_config_version(
|
|
685
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
686
|
+
version_number=version_number,
|
|
687
|
+
**kwargs
|
|
688
|
+
)
|
|
689
|
+
cli_util.render_response(result, ctx)
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
@work_request_group.command(name=cli_util.override('kafka.get_work_request.command_name', 'get'), help=u"""Gets the details of a work request. \n[Command Reference](getWorkRequest)""")
|
|
693
|
+
@cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
|
|
694
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
695
|
+
@cli_util.help_option
|
|
696
|
+
@click.pass_context
|
|
697
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'WorkRequest'})
|
|
698
|
+
@cli_util.wrap_exceptions
|
|
699
|
+
def get_work_request(ctx, from_json, work_request_id):
|
|
700
|
+
|
|
701
|
+
if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
|
|
702
|
+
raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
|
|
703
|
+
|
|
704
|
+
kwargs = {}
|
|
705
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
706
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
707
|
+
result = client.get_work_request(
|
|
708
|
+
work_request_id=work_request_id,
|
|
709
|
+
**kwargs
|
|
710
|
+
)
|
|
711
|
+
cli_util.render_response(result, ctx)
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
@kafka_cluster_config_version_collection_group.command(name=cli_util.override('kafka.list_kafka_cluster_config_versions.command_name', 'list-kafka-cluster-config-versions'), help=u"""Gets a list of KafkaClusterConfig Versions. \n[Command Reference](listKafkaClusterConfigVersions)""")
|
|
715
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
716
|
+
@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].""")
|
|
717
|
+
@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].""")
|
|
718
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
719
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["versionNumber"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `versionNumber` is descending.""")
|
|
720
|
+
@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.""")
|
|
721
|
+
@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.""")
|
|
722
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
723
|
+
@cli_util.help_option
|
|
724
|
+
@click.pass_context
|
|
725
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersionCollection'})
|
|
726
|
+
@cli_util.wrap_exceptions
|
|
727
|
+
def list_kafka_cluster_config_versions(ctx, from_json, all_pages, page_size, kafka_cluster_config_id, limit, page, sort_order, sort_by):
|
|
728
|
+
|
|
729
|
+
if all_pages and limit:
|
|
730
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
731
|
+
|
|
732
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
733
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
734
|
+
|
|
735
|
+
kwargs = {}
|
|
736
|
+
if limit is not None:
|
|
737
|
+
kwargs['limit'] = limit
|
|
738
|
+
if page is not None:
|
|
739
|
+
kwargs['page'] = page
|
|
740
|
+
if sort_order is not None:
|
|
741
|
+
kwargs['sort_order'] = sort_order
|
|
742
|
+
if sort_by is not None:
|
|
743
|
+
kwargs['sort_by'] = sort_by
|
|
744
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
745
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
746
|
+
if all_pages:
|
|
747
|
+
if page_size:
|
|
748
|
+
kwargs['limit'] = page_size
|
|
749
|
+
|
|
750
|
+
result = cli_util.list_call_get_all_results(
|
|
751
|
+
client.list_kafka_cluster_config_versions,
|
|
752
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
753
|
+
**kwargs
|
|
754
|
+
)
|
|
755
|
+
elif limit is not None:
|
|
756
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
757
|
+
client.list_kafka_cluster_config_versions,
|
|
758
|
+
limit,
|
|
759
|
+
page_size,
|
|
760
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
761
|
+
**kwargs
|
|
762
|
+
)
|
|
763
|
+
else:
|
|
764
|
+
result = client.list_kafka_cluster_config_versions(
|
|
765
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
766
|
+
**kwargs
|
|
767
|
+
)
|
|
768
|
+
cli_util.render_response(result, ctx)
|
|
769
|
+
|
|
770
|
+
|
|
771
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.list_kafka_cluster_configs.command_name', 'list'), help=u"""Gets a list of KafkaClusterConfigs. \n[Command Reference](listKafkaClusterConfigs)""")
|
|
772
|
+
@cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
|
|
773
|
+
@cli_util.option('--lifecycle-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETED"]), help=u"""A filter to return only resources that match the given lifecycle state. The state value is case-insensitive.""")
|
|
774
|
+
@cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
|
|
775
|
+
@cli_util.option('--id', help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
776
|
+
@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].""")
|
|
777
|
+
@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].""")
|
|
778
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
779
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.""")
|
|
780
|
+
@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.""")
|
|
781
|
+
@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.""")
|
|
782
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
783
|
+
@cli_util.help_option
|
|
784
|
+
@click.pass_context
|
|
785
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfigCollection'})
|
|
786
|
+
@cli_util.wrap_exceptions
|
|
787
|
+
def list_kafka_cluster_configs(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, display_name, id, limit, page, sort_order, sort_by):
|
|
788
|
+
|
|
789
|
+
if all_pages and limit:
|
|
790
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
791
|
+
|
|
792
|
+
kwargs = {}
|
|
793
|
+
if compartment_id is not None:
|
|
794
|
+
kwargs['compartment_id'] = compartment_id
|
|
795
|
+
if lifecycle_state is not None:
|
|
796
|
+
kwargs['lifecycle_state'] = lifecycle_state
|
|
797
|
+
if display_name is not None:
|
|
798
|
+
kwargs['display_name'] = display_name
|
|
799
|
+
if id is not None:
|
|
800
|
+
kwargs['id'] = id
|
|
801
|
+
if limit is not None:
|
|
802
|
+
kwargs['limit'] = limit
|
|
803
|
+
if page is not None:
|
|
804
|
+
kwargs['page'] = page
|
|
805
|
+
if sort_order is not None:
|
|
806
|
+
kwargs['sort_order'] = sort_order
|
|
807
|
+
if sort_by is not None:
|
|
808
|
+
kwargs['sort_by'] = sort_by
|
|
809
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
810
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
811
|
+
if all_pages:
|
|
812
|
+
if page_size:
|
|
813
|
+
kwargs['limit'] = page_size
|
|
814
|
+
|
|
815
|
+
result = cli_util.list_call_get_all_results(
|
|
816
|
+
client.list_kafka_cluster_configs,
|
|
817
|
+
**kwargs
|
|
818
|
+
)
|
|
819
|
+
elif limit is not None:
|
|
820
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
821
|
+
client.list_kafka_cluster_configs,
|
|
822
|
+
limit,
|
|
823
|
+
page_size,
|
|
824
|
+
**kwargs
|
|
825
|
+
)
|
|
826
|
+
else:
|
|
827
|
+
result = client.list_kafka_cluster_configs(
|
|
828
|
+
**kwargs
|
|
829
|
+
)
|
|
830
|
+
cli_util.render_response(result, ctx)
|
|
831
|
+
|
|
832
|
+
|
|
833
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.list_kafka_clusters.command_name', 'list'), help=u"""Gets a list of KafkaClusters. \n[Command Reference](listKafkaClusters)""")
|
|
834
|
+
@cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
|
|
835
|
+
@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.""")
|
|
836
|
+
@cli_util.option('--display-name', help=u"""A filter to return only resources that match the given display name exactly.""")
|
|
837
|
+
@cli_util.option('--id', help=u"""The [OCID] of the KafkaCluster.""")
|
|
838
|
+
@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].""")
|
|
839
|
+
@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].""")
|
|
840
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
841
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeCreated", "displayName"]), help=u"""The field to sort by. You can provide only one sort order. Default order for `timeCreated` is descending. Default order for `displayName` is ascending.""")
|
|
842
|
+
@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.""")
|
|
843
|
+
@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.""")
|
|
844
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
845
|
+
@cli_util.help_option
|
|
846
|
+
@click.pass_context
|
|
847
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterCollection'})
|
|
848
|
+
@cli_util.wrap_exceptions
|
|
849
|
+
def list_kafka_clusters(ctx, from_json, all_pages, page_size, compartment_id, lifecycle_state, display_name, id, limit, page, sort_order, sort_by):
|
|
850
|
+
|
|
851
|
+
if all_pages and limit:
|
|
852
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
853
|
+
|
|
854
|
+
kwargs = {}
|
|
855
|
+
if compartment_id is not None:
|
|
856
|
+
kwargs['compartment_id'] = compartment_id
|
|
857
|
+
if lifecycle_state is not None:
|
|
858
|
+
kwargs['lifecycle_state'] = lifecycle_state
|
|
859
|
+
if display_name is not None:
|
|
860
|
+
kwargs['display_name'] = display_name
|
|
861
|
+
if id is not None:
|
|
862
|
+
kwargs['id'] = id
|
|
863
|
+
if limit is not None:
|
|
864
|
+
kwargs['limit'] = limit
|
|
865
|
+
if page is not None:
|
|
866
|
+
kwargs['page'] = page
|
|
867
|
+
if sort_order is not None:
|
|
868
|
+
kwargs['sort_order'] = sort_order
|
|
869
|
+
if sort_by is not None:
|
|
870
|
+
kwargs['sort_by'] = sort_by
|
|
871
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
872
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
873
|
+
if all_pages:
|
|
874
|
+
if page_size:
|
|
875
|
+
kwargs['limit'] = page_size
|
|
876
|
+
|
|
877
|
+
result = cli_util.list_call_get_all_results(
|
|
878
|
+
client.list_kafka_clusters,
|
|
879
|
+
**kwargs
|
|
880
|
+
)
|
|
881
|
+
elif limit is not None:
|
|
882
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
883
|
+
client.list_kafka_clusters,
|
|
884
|
+
limit,
|
|
885
|
+
page_size,
|
|
886
|
+
**kwargs
|
|
887
|
+
)
|
|
888
|
+
else:
|
|
889
|
+
result = client.list_kafka_clusters(
|
|
890
|
+
**kwargs
|
|
891
|
+
)
|
|
892
|
+
cli_util.render_response(result, ctx)
|
|
893
|
+
|
|
894
|
+
|
|
895
|
+
@work_request_error_group.command(name=cli_util.override('kafka.list_work_request_errors.command_name', 'list'), help=u"""Lists the errors for a work request. \n[Command Reference](listWorkRequestErrors)""")
|
|
896
|
+
@cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
|
|
897
|
+
@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].""")
|
|
898
|
+
@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].""")
|
|
899
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timestamp"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.""")
|
|
900
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
901
|
+
@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.""")
|
|
902
|
+
@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.""")
|
|
903
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
904
|
+
@cli_util.help_option
|
|
905
|
+
@click.pass_context
|
|
906
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'WorkRequestErrorCollection'})
|
|
907
|
+
@cli_util.wrap_exceptions
|
|
908
|
+
def list_work_request_errors(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
|
|
909
|
+
|
|
910
|
+
if all_pages and limit:
|
|
911
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
912
|
+
|
|
913
|
+
if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
|
|
914
|
+
raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
|
|
915
|
+
|
|
916
|
+
kwargs = {}
|
|
917
|
+
if page is not None:
|
|
918
|
+
kwargs['page'] = page
|
|
919
|
+
if limit is not None:
|
|
920
|
+
kwargs['limit'] = limit
|
|
921
|
+
if sort_by is not None:
|
|
922
|
+
kwargs['sort_by'] = sort_by
|
|
923
|
+
if sort_order is not None:
|
|
924
|
+
kwargs['sort_order'] = sort_order
|
|
925
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
926
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
927
|
+
if all_pages:
|
|
928
|
+
if page_size:
|
|
929
|
+
kwargs['limit'] = page_size
|
|
930
|
+
|
|
931
|
+
result = cli_util.list_call_get_all_results(
|
|
932
|
+
client.list_work_request_errors,
|
|
933
|
+
work_request_id=work_request_id,
|
|
934
|
+
**kwargs
|
|
935
|
+
)
|
|
936
|
+
elif limit is not None:
|
|
937
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
938
|
+
client.list_work_request_errors,
|
|
939
|
+
limit,
|
|
940
|
+
page_size,
|
|
941
|
+
work_request_id=work_request_id,
|
|
942
|
+
**kwargs
|
|
943
|
+
)
|
|
944
|
+
else:
|
|
945
|
+
result = client.list_work_request_errors(
|
|
946
|
+
work_request_id=work_request_id,
|
|
947
|
+
**kwargs
|
|
948
|
+
)
|
|
949
|
+
cli_util.render_response(result, ctx)
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
@work_request_log_entry_group.command(name=cli_util.override('kafka.list_work_request_logs.command_name', 'list-work-request-logs'), help=u"""Lists the logs for a work request. \n[Command Reference](listWorkRequestLogs)""")
|
|
953
|
+
@cli_util.option('--work-request-id', required=True, help=u"""The [OCID] of the asynchronous work request.""")
|
|
954
|
+
@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].""")
|
|
955
|
+
@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].""")
|
|
956
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timestamp"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timestamp` is descending.""")
|
|
957
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
958
|
+
@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.""")
|
|
959
|
+
@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.""")
|
|
960
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
961
|
+
@cli_util.help_option
|
|
962
|
+
@click.pass_context
|
|
963
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'WorkRequestLogEntryCollection'})
|
|
964
|
+
@cli_util.wrap_exceptions
|
|
965
|
+
def list_work_request_logs(ctx, from_json, all_pages, page_size, work_request_id, page, limit, sort_by, sort_order):
|
|
966
|
+
|
|
967
|
+
if all_pages and limit:
|
|
968
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
969
|
+
|
|
970
|
+
if isinstance(work_request_id, six.string_types) and len(work_request_id.strip()) == 0:
|
|
971
|
+
raise click.UsageError('Parameter --work-request-id cannot be whitespace or empty string')
|
|
972
|
+
|
|
973
|
+
kwargs = {}
|
|
974
|
+
if page is not None:
|
|
975
|
+
kwargs['page'] = page
|
|
976
|
+
if limit is not None:
|
|
977
|
+
kwargs['limit'] = limit
|
|
978
|
+
if sort_by is not None:
|
|
979
|
+
kwargs['sort_by'] = sort_by
|
|
980
|
+
if sort_order is not None:
|
|
981
|
+
kwargs['sort_order'] = sort_order
|
|
982
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
983
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
984
|
+
if all_pages:
|
|
985
|
+
if page_size:
|
|
986
|
+
kwargs['limit'] = page_size
|
|
987
|
+
|
|
988
|
+
result = cli_util.list_call_get_all_results(
|
|
989
|
+
client.list_work_request_logs,
|
|
990
|
+
work_request_id=work_request_id,
|
|
991
|
+
**kwargs
|
|
992
|
+
)
|
|
993
|
+
elif limit is not None:
|
|
994
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
995
|
+
client.list_work_request_logs,
|
|
996
|
+
limit,
|
|
997
|
+
page_size,
|
|
998
|
+
work_request_id=work_request_id,
|
|
999
|
+
**kwargs
|
|
1000
|
+
)
|
|
1001
|
+
else:
|
|
1002
|
+
result = client.list_work_request_logs(
|
|
1003
|
+
work_request_id=work_request_id,
|
|
1004
|
+
**kwargs
|
|
1005
|
+
)
|
|
1006
|
+
cli_util.render_response(result, ctx)
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
@work_request_group.command(name=cli_util.override('kafka.list_work_requests.command_name', 'list'), help=u"""Lists the work requests in a compartment. \n[Command Reference](listWorkRequests)""")
|
|
1010
|
+
@cli_util.option('--compartment-id', help=u"""The [OCID] of the compartment in which to list resources.""")
|
|
1011
|
+
@cli_util.option('--work-request-id', help=u"""The [OCID] of the asynchronous work request.""")
|
|
1012
|
+
@cli_util.option('--status', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "WAITING", "NEEDS_ATTENTION", "FAILED", "SUCCEEDED", "CANCELING", "CANCELED"]), help=u"""A filter to return only the resources that match the given lifecycle state.""")
|
|
1013
|
+
@cli_util.option('--resource-id', help=u"""The [OCID] of the resource affected by the work request.""")
|
|
1014
|
+
@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].""")
|
|
1015
|
+
@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].""")
|
|
1016
|
+
@cli_util.option('--sort-order', type=custom_types.CliCaseInsensitiveChoice(["ASC", "DESC"]), help=u"""The sort order to use, either ascending (`ASC`) or descending (`DESC`).""")
|
|
1017
|
+
@cli_util.option('--sort-by', type=custom_types.CliCaseInsensitiveChoice(["timeAccepted"]), help=u"""The field to sort by. Only one sort order may be provided. Default order for `timeAccepted` is descending.""")
|
|
1018
|
+
@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.""")
|
|
1019
|
+
@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.""")
|
|
1020
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
1021
|
+
@cli_util.help_option
|
|
1022
|
+
@click.pass_context
|
|
1023
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'managed_kafka', 'class': 'WorkRequestSummaryCollection'})
|
|
1024
|
+
@cli_util.wrap_exceptions
|
|
1025
|
+
def list_work_requests(ctx, from_json, all_pages, page_size, compartment_id, work_request_id, status, resource_id, page, limit, sort_order, sort_by):
|
|
1026
|
+
|
|
1027
|
+
if all_pages and limit:
|
|
1028
|
+
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
1029
|
+
|
|
1030
|
+
kwargs = {}
|
|
1031
|
+
if compartment_id is not None:
|
|
1032
|
+
kwargs['compartment_id'] = compartment_id
|
|
1033
|
+
if work_request_id is not None:
|
|
1034
|
+
kwargs['work_request_id'] = work_request_id
|
|
1035
|
+
if status is not None:
|
|
1036
|
+
kwargs['status'] = status
|
|
1037
|
+
if resource_id is not None:
|
|
1038
|
+
kwargs['resource_id'] = resource_id
|
|
1039
|
+
if page is not None:
|
|
1040
|
+
kwargs['page'] = page
|
|
1041
|
+
if limit is not None:
|
|
1042
|
+
kwargs['limit'] = limit
|
|
1043
|
+
if sort_order is not None:
|
|
1044
|
+
kwargs['sort_order'] = sort_order
|
|
1045
|
+
if sort_by is not None:
|
|
1046
|
+
kwargs['sort_by'] = sort_by
|
|
1047
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
1048
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
1049
|
+
if all_pages:
|
|
1050
|
+
if page_size:
|
|
1051
|
+
kwargs['limit'] = page_size
|
|
1052
|
+
|
|
1053
|
+
result = cli_util.list_call_get_all_results(
|
|
1054
|
+
client.list_work_requests,
|
|
1055
|
+
**kwargs
|
|
1056
|
+
)
|
|
1057
|
+
elif limit is not None:
|
|
1058
|
+
result = cli_util.list_call_get_up_to_limit(
|
|
1059
|
+
client.list_work_requests,
|
|
1060
|
+
limit,
|
|
1061
|
+
page_size,
|
|
1062
|
+
**kwargs
|
|
1063
|
+
)
|
|
1064
|
+
else:
|
|
1065
|
+
result = client.list_work_requests(
|
|
1066
|
+
**kwargs
|
|
1067
|
+
)
|
|
1068
|
+
cli_util.render_response(result, ctx)
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
@kafka_cluster_group.command(name=cli_util.override('kafka.update_kafka_cluster.command_name', 'update'), help=u"""Updates a KafkaCluster. \n[Command Reference](updateKafkaCluster)""")
|
|
1072
|
+
@cli_util.option('--kafka-cluster-id', required=True, help=u"""The [OCID] of the KafkaCluster.""")
|
|
1073
|
+
@cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
|
|
1074
|
+
@cli_util.option('--client-certificate-bundle', help=u"""CA certificate bundle for mTLS broker authentication.""")
|
|
1075
|
+
@cli_util.option('--broker-shape', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1076
|
+
@cli_util.option('--cluster-config-id', help=u"""The [OCID] of Kafka Cluster configuration object""")
|
|
1077
|
+
@cli_util.option('--cluster-config-version', type=click.INT, help=u"""The version of configuration object""")
|
|
1078
|
+
@cli_util.option('--access-subnets', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Subnets where broker/coordinator VNICs will be created.
|
|
1079
|
+
|
|
1080
|
+
This option is a JSON list with items of type SubnetSet. For documentation on SubnetSet please see our API reference: https://docs.cloud.oracle.com/api/#/en/kafkacluster/20240901/datatypes/SubnetSet.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1081
|
+
@cli_util.option('--coordination-type', help=u"""Kafka coordination type. Set of available types depends on Kafka version""")
|
|
1082
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
1083
|
+
|
|
1084
|
+
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1085
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
1086
|
+
|
|
1087
|
+
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1088
|
+
@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.""")
|
|
1089
|
+
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
1090
|
+
@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.""")
|
|
1091
|
+
@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.""")
|
|
1092
|
+
@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.""")
|
|
1093
|
+
@json_skeleton_utils.get_cli_json_input_option({'broker-shape': {'module': 'managed_kafka', 'class': 'BrokerShape'}, 'access-subnets': {'module': 'managed_kafka', 'class': 'list[SubnetSet]'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}})
|
|
1094
|
+
@cli_util.help_option
|
|
1095
|
+
@click.pass_context
|
|
1096
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'broker-shape': {'module': 'managed_kafka', 'class': 'BrokerShape'}, 'access-subnets': {'module': 'managed_kafka', 'class': 'list[SubnetSet]'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'managed_kafka', 'class': 'KafkaCluster'})
|
|
1097
|
+
@cli_util.wrap_exceptions
|
|
1098
|
+
def update_kafka_cluster(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_id, display_name, client_certificate_bundle, broker_shape, cluster_config_id, cluster_config_version, access_subnets, coordination_type, freeform_tags, defined_tags, if_match):
|
|
1099
|
+
|
|
1100
|
+
if isinstance(kafka_cluster_id, six.string_types) and len(kafka_cluster_id.strip()) == 0:
|
|
1101
|
+
raise click.UsageError('Parameter --kafka-cluster-id cannot be whitespace or empty string')
|
|
1102
|
+
if not force:
|
|
1103
|
+
if broker_shape or access_subnets or freeform_tags or defined_tags:
|
|
1104
|
+
if not click.confirm("WARNING: Updates to broker-shape and access-subnets and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
|
|
1105
|
+
ctx.abort()
|
|
1106
|
+
|
|
1107
|
+
kwargs = {}
|
|
1108
|
+
if if_match is not None:
|
|
1109
|
+
kwargs['if_match'] = if_match
|
|
1110
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
1111
|
+
|
|
1112
|
+
_details = {}
|
|
1113
|
+
|
|
1114
|
+
if display_name is not None:
|
|
1115
|
+
_details['displayName'] = display_name
|
|
1116
|
+
|
|
1117
|
+
if client_certificate_bundle is not None:
|
|
1118
|
+
_details['clientCertificateBundle'] = client_certificate_bundle
|
|
1119
|
+
|
|
1120
|
+
if broker_shape is not None:
|
|
1121
|
+
_details['brokerShape'] = cli_util.parse_json_parameter("broker_shape", broker_shape)
|
|
1122
|
+
|
|
1123
|
+
if cluster_config_id is not None:
|
|
1124
|
+
_details['clusterConfigId'] = cluster_config_id
|
|
1125
|
+
|
|
1126
|
+
if cluster_config_version is not None:
|
|
1127
|
+
_details['clusterConfigVersion'] = cluster_config_version
|
|
1128
|
+
|
|
1129
|
+
if access_subnets is not None:
|
|
1130
|
+
_details['accessSubnets'] = cli_util.parse_json_parameter("access_subnets", access_subnets)
|
|
1131
|
+
|
|
1132
|
+
if coordination_type is not None:
|
|
1133
|
+
_details['coordinationType'] = coordination_type
|
|
1134
|
+
|
|
1135
|
+
if freeform_tags is not None:
|
|
1136
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
1137
|
+
|
|
1138
|
+
if defined_tags is not None:
|
|
1139
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
1140
|
+
|
|
1141
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
1142
|
+
result = client.update_kafka_cluster(
|
|
1143
|
+
kafka_cluster_id=kafka_cluster_id,
|
|
1144
|
+
update_kafka_cluster_details=_details,
|
|
1145
|
+
**kwargs
|
|
1146
|
+
)
|
|
1147
|
+
if wait_for_state:
|
|
1148
|
+
|
|
1149
|
+
if hasattr(client, 'get_work_request') and callable(getattr(client, 'get_work_request')):
|
|
1150
|
+
try:
|
|
1151
|
+
wait_period_kwargs = {}
|
|
1152
|
+
if max_wait_seconds is not None:
|
|
1153
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
1154
|
+
if wait_interval_seconds is not None:
|
|
1155
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
1156
|
+
if 'opc-work-request-id' not in result.headers:
|
|
1157
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
1158
|
+
cli_util.render_response(result, ctx)
|
|
1159
|
+
return
|
|
1160
|
+
|
|
1161
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
1162
|
+
result = oci.wait_until(client, client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
1163
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
1164
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
1165
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
1166
|
+
cli_util.render_response(result, ctx)
|
|
1167
|
+
sys.exit(2)
|
|
1168
|
+
except Exception:
|
|
1169
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
1170
|
+
cli_util.render_response(result, ctx)
|
|
1171
|
+
raise
|
|
1172
|
+
else:
|
|
1173
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
1174
|
+
cli_util.render_response(result, ctx)
|
|
1175
|
+
|
|
1176
|
+
|
|
1177
|
+
@kafka_cluster_config_group.command(name=cli_util.override('kafka.update_kafka_cluster_config.command_name', 'update'), help=u"""Updates a KafkaClusterConfig. \n[Command Reference](updateKafkaClusterConfig)""")
|
|
1178
|
+
@cli_util.option('--kafka-cluster-config-id', required=True, help=u"""The [OCID] of the KafkaClusterConfig.""")
|
|
1179
|
+
@cli_util.option('--display-name', help=u"""A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.""")
|
|
1180
|
+
@cli_util.option('--latest-config', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1181
|
+
@cli_util.option('--freeform-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags].
|
|
1182
|
+
|
|
1183
|
+
Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1184
|
+
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
1185
|
+
|
|
1186
|
+
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1187
|
+
@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.""")
|
|
1188
|
+
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
1189
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["CREATING", "ACTIVE", "UPDATING", "DELETED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
1190
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
1191
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
1192
|
+
@json_skeleton_utils.get_cli_json_input_option({'latest-config': {'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersion'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}})
|
|
1193
|
+
@cli_util.help_option
|
|
1194
|
+
@click.pass_context
|
|
1195
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'latest-config': {'module': 'managed_kafka', 'class': 'KafkaClusterConfigVersion'}, 'freeform-tags': {'module': 'managed_kafka', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'managed_kafka', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'managed_kafka', 'class': 'KafkaClusterConfig'})
|
|
1196
|
+
@cli_util.wrap_exceptions
|
|
1197
|
+
def update_kafka_cluster_config(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, kafka_cluster_config_id, display_name, latest_config, freeform_tags, defined_tags, if_match):
|
|
1198
|
+
|
|
1199
|
+
if isinstance(kafka_cluster_config_id, six.string_types) and len(kafka_cluster_config_id.strip()) == 0:
|
|
1200
|
+
raise click.UsageError('Parameter --kafka-cluster-config-id cannot be whitespace or empty string')
|
|
1201
|
+
if not force:
|
|
1202
|
+
if latest_config or freeform_tags or defined_tags:
|
|
1203
|
+
if not click.confirm("WARNING: Updates to latest-config and freeform-tags and defined-tags will replace any existing values. Are you sure you want to continue?"):
|
|
1204
|
+
ctx.abort()
|
|
1205
|
+
|
|
1206
|
+
kwargs = {}
|
|
1207
|
+
if if_match is not None:
|
|
1208
|
+
kwargs['if_match'] = if_match
|
|
1209
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
1210
|
+
|
|
1211
|
+
_details = {}
|
|
1212
|
+
|
|
1213
|
+
if display_name is not None:
|
|
1214
|
+
_details['displayName'] = display_name
|
|
1215
|
+
|
|
1216
|
+
if latest_config is not None:
|
|
1217
|
+
_details['latestConfig'] = cli_util.parse_json_parameter("latest_config", latest_config)
|
|
1218
|
+
|
|
1219
|
+
if freeform_tags is not None:
|
|
1220
|
+
_details['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
1221
|
+
|
|
1222
|
+
if defined_tags is not None:
|
|
1223
|
+
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
1224
|
+
|
|
1225
|
+
client = cli_util.build_client('managed_kafka', 'kafka_cluster', ctx)
|
|
1226
|
+
result = client.update_kafka_cluster_config(
|
|
1227
|
+
kafka_cluster_config_id=kafka_cluster_config_id,
|
|
1228
|
+
update_kafka_cluster_config_details=_details,
|
|
1229
|
+
**kwargs
|
|
1230
|
+
)
|
|
1231
|
+
if wait_for_state:
|
|
1232
|
+
|
|
1233
|
+
if hasattr(client, 'get_kafka_cluster_config') and callable(getattr(client, 'get_kafka_cluster_config')):
|
|
1234
|
+
try:
|
|
1235
|
+
wait_period_kwargs = {}
|
|
1236
|
+
if max_wait_seconds is not None:
|
|
1237
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
1238
|
+
if wait_interval_seconds is not None:
|
|
1239
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
1240
|
+
|
|
1241
|
+
click.echo('Action completed. Waiting until the resource has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
1242
|
+
result = oci.wait_until(client, client.get_kafka_cluster_config(result.data.id), 'lifecycle_state', wait_for_state, **wait_period_kwargs)
|
|
1243
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
1244
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
1245
|
+
click.echo('Failed to wait until the resource entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
1246
|
+
cli_util.render_response(result, ctx)
|
|
1247
|
+
sys.exit(2)
|
|
1248
|
+
except Exception:
|
|
1249
|
+
click.echo('Encountered error while waiting for resource to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
1250
|
+
cli_util.render_response(result, ctx)
|
|
1251
|
+
raise
|
|
1252
|
+
else:
|
|
1253
|
+
click.echo('Unable to wait for the resource to enter the specified state', file=sys.stderr)
|
|
1254
|
+
cli_util.render_response(result, ctx)
|